/*! For license information please see 803.1077b420869fd4795fcb.js.LICENSE.txt */
(self.webpackChunk_rio_rio_ui=self.webpackChunk_rio_rio_ui||[]).push([[803],{37561(e,t,n){var r,o,i=n(81508),s=n(89901),a=n(62908),l=n(22155);function u(e){return e&&e.__esModule?e.default:e}function c(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:c,focusProps:p}=(0,i.useFocusRing)(e),d=u(l).Children.only(t);return u(l).cloneElement(d,(0,a.mergeProps)(d.props,{...p,className:u(s)({[n||""]:o,[r||""]:c})}))}r=e.exports,o=()=>c,Object.defineProperty(r,"FocusRing",{get:o,set:void 0,enumerable:!0,configurable:!0})},45665(e,t,n){var r=n(62908),o=n(35695),i=n(22155);function s(e){return e&&e.__esModule?e.default:e}function a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(e.exports,"FocusScope",()=>p),a(e.exports,"useFocusManager",()=>d),a(e.exports,"getFocusableTreeWalker",()=>S),a(e.exports,"isElementInChildOfActiveScope",()=>v),a(e.exports,"createFocusManager",()=>P);const l=s(i).createContext(null),u="react-aria-focus-scope-restore";let c=null;function p(e){let{children:t,contain:n,restoreFocus:a,autoFocus:p}=e,d=(0,i.useRef)(null),v=(0,i.useRef)(null),P=(0,i.useRef)([]),{parentNode:O}=(0,i.useContext)(l)||{},T=(0,i.useMemo)(()=>new k({scopeRef:P}),[P]);(0,r.useLayoutEffect)(()=>{let e=O||A.root;if(A.getTreeNode(e.scopeRef)&&c&&!b(c,e.scopeRef)){let t=A.getTreeNode(c);t&&(e=t)}e.addChild(T),A.addNode(T)},[T,O]),(0,r.useLayoutEffect)(()=>{let e=A.getTreeNode(P);e&&(e.contain=!!n)},[n]),(0,r.useLayoutEffect)(()=>{var e;let t=null===(e=d.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==v.current;)n.push(t),t.addEventListener(u,r),t=t.nextSibling;return P.current=n,()=>{for(let e of n)e.removeEventListener(u,r)}},[t]),function(e,t,n){(0,r.useLayoutEffect)(()=>{if(t||n)return;let o=e.current;const i=(0,r.getOwnerDocument)(o?o[0]:void 0);let s=t=>{let n=(0,r.getEventTarget)(t);g(n,e.current)?c=e:m(n)||(c=null)};return i.addEventListener("focusin",s,!1),null==o||o.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),null==o||o.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,t,n])}(P,a,n),function(e,t){let n=(0,i.useRef)(void 0),s=(0,i.useRef)(void 0);(0,r.useLayoutEffect)(()=>{let i=e.current;if(!t)return void(s.current&&(cancelAnimationFrame(s.current),s.current=void 0));const a=(0,r.getOwnerDocument)(i?i[0]:void 0);let l=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!h(e)||t.isComposing)return;let n=(0,r.getActiveElement)(a),o=e.current;if(!o||!g(n,o))return;let i=S(f(o),{tabbable:!0},o);if(!n)return;i.currentNode=n;let s=t.shiftKey?i.previousNode():i.nextNode();s||(i.currentNode=t.shiftKey?o[o.length-1].nextElementSibling:o[0].previousElementSibling,s=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),s&&w(s,!0)},u=t=>{c&&!b(c,e)||!g((0,r.getEventTarget)(t),e.current)?h(e)&&!y((0,r.getEventTarget)(t),e)?n.current?n.current.focus():c&&c.current&&_(c.current):h(e)&&(n.current=(0,r.getEventTarget)(t)):(c=e,n.current=(0,r.getEventTarget)(t))},p=t=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{let i=(0,o.getInteractionModality)(),s=("virtual"===i||null===i)&&(0,r.isAndroid)()&&(0,r.isChrome)(),l=(0,r.getActiveElement)(a);if(!s&&l&&h(e)&&!y(l,e)){c=e;let o=(0,r.getEventTarget)(t);var u;o&&o.isConnected?(n.current=o,null===(u=n.current)||void 0===u||u.focus()):c.current&&_(c.current)}})};return a.addEventListener("keydown",l,!1),a.addEventListener("focusin",u,!1),null==i||i.forEach(e=>e.addEventListener("focusin",u,!1)),null==i||i.forEach(e=>e.addEventListener("focusout",p,!1)),()=>{a.removeEventListener("keydown",l,!1),a.removeEventListener("focusin",u,!1),null==i||i.forEach(e=>e.removeEventListener("focusin",u,!1)),null==i||i.forEach(e=>e.removeEventListener("focusout",p,!1))}},[e,t]),(0,r.useLayoutEffect)(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[s])}(P,n),function(e,t,n){const o=(0,i.useRef)("undefined"!=typeof document?(0,r.getActiveElement)((0,r.getOwnerDocument)(e.current?e.current[0]:void 0)):null);(0,r.useLayoutEffect)(()=>{let o=e.current;const i=(0,r.getOwnerDocument)(o?o[0]:void 0);if(!t||n)return;let s=()=>{c&&!b(c,e)||!g((0,r.getActiveElement)(i),e.current)||(c=e)};return i.addEventListener("focusin",s,!1),null==o||o.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),null==o||o.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,n]),(0,r.useLayoutEffect)(()=>{const o=(0,r.getOwnerDocument)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!h(e)||t.isComposing)return;let n=o.activeElement;if(!y(n,e)||!x(e))return;let r=A.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,s=S(o.body,{tabbable:!0});s.currentNode=n;let a=t.shiftKey?s.previousNode():s.nextNode();if(i&&i.isConnected&&i!==o.body||(i=void 0,r.nodeToRestore=void 0),(!a||!y(a,e))&&i){s.currentNode=i;do{a=t.shiftKey?s.previousNode():s.nextNode()}while(y(a,e));t.preventDefault(),t.stopPropagation(),a?w(a,!0):m(i)?w(i,!0):n.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),(0,r.useLayoutEffect)(()=>{const n=(0,r.getOwnerDocument)(e.current?e.current[0]:void 0);if(!t)return;let i=A.getTreeNode(e);var s;return i?(i.nodeToRestore=null!==(s=o.current)&&void 0!==s?s:void 0,()=>{let o=A.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,s=(0,r.getActiveElement)(n);if(t&&i&&(s&&y(s,e)||s===n.body&&x(e))){let t=A.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void E(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&A.getTreeNode(n.scopeRef))return void E(C(n.scopeRef.current,!0));n=n.parent}}})}}):void 0},[e,t])}(P,a,n),function(e,t){const n=s(i).useRef(t);(0,i.useEffect)(()=>{if(n.current){c=e;const t=(0,r.getOwnerDocument)(e.current?e.current[0]:void 0);!g((0,r.getActiveElement)(t),c.current)&&e.current&&_(e.current)}n.current=!1},[e])}(P,p),(0,i.useEffect)(()=>{const e=(0,r.getActiveElement)((0,r.getOwnerDocument)(P.current?P.current[0]:void 0));let t=null;if(g(e,P.current)){for(let n of A.traverse())n.scopeRef&&g(e,n.scopeRef.current)&&(t=n);t===A.getTreeNode(P)&&(c=t.scopeRef)}},[P]),(0,r.useLayoutEffect)(()=>()=>{var e,t,n;let r=null!==(n=null===(t=A.getTreeNode(P))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;P!==c&&!b(P,c)||r&&!A.getTreeNode(r)||(c=r),A.removeTreeNode(P)},[P]);let I=(0,i.useMemo)(()=>function(e){return{focusNext(t={}){let n=e.current,{from:o,tabbable:i,wrap:s,accept:a}=t;var l;let u=o||(0,r.getActiveElement)((0,r.getOwnerDocument)(null!==(l=n[0])&&void 0!==l?l:void 0)),c=n[0].previousElementSibling,p=S(f(n),{tabbable:i,accept:a},n);p.currentNode=g(u,n)?u:c;let d=p.nextNode();return!d&&s&&(p.currentNode=c,d=p.nextNode()),d&&w(d,!0),d},focusPrevious(t={}){let n=e.current,{from:o,tabbable:i,wrap:s,accept:a}=t;var l;let u=o||(0,r.getActiveElement)((0,r.getOwnerDocument)(null!==(l=n[0])&&void 0!==l?l:void 0)),c=n[n.length-1].nextElementSibling,p=S(f(n),{tabbable:i,accept:a},n);p.currentNode=g(u,n)?u:c;let d=p.previousNode();return!d&&s&&(p.currentNode=c,d=p.previousNode()),d&&w(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=S(f(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let s=i.nextNode();return s&&w(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=S(f(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let s=i.previousNode();return s&&w(s,!0),s}}}(P),[]),R=(0,i.useMemo)(()=>({focusManager:I,parentNode:T}),[T,I]);return s(i).createElement(l.Provider,{value:R},s(i).createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:d}),t,s(i).createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:v}))}function d(){var e;return null===(e=(0,i.useContext)(l))||void 0===e?void 0:e.focusManager}function f(e){return e[0].parentElement}function h(e){let t=A.getTreeNode(c);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e){return y(e)}function g(e,t){return!!e&&!!t&&t.some(t=>(0,r.nodeContains)(t,e))}function y(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of A.traverse(A.getTreeNode(t)))if(n&&g(e,n.current))return!0;return!1}function v(e){return y(e,c)}function b(e,t){var n;let r=null===(n=A.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,o.focusSafely)(e)}catch{}}function C(e,t=!0){let n=e[0].previousElementSibling,r=f(e),o=S(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=f(e),o=S(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function _(e,t=!0){w(C(e,t))}function x(e){let t=A.getTreeNode(c);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function E(e){e.dispatchEvent(new CustomEvent(u,{bubbles:!0,cancelable:!0}))&&w(e)}function S(e,t,n){let o=(null==t?void 0:t.tabbable)?r.isTabbable:r.isFocusable,i=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=(0,r.getOwnerDocument)(i),a=(0,r.createShadowTreeWalker)(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(e){if((0,r.nodeContains)(null==t?void 0:t.from,e))return NodeFilter.FILTER_REJECT;if((null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")){if(!function(e){if(e.checked)return!0;let t=[];if(e.form){var n,o;let r=null===(o=e.form)||void 0===o||null===(n=o.elements)||void 0===n?void 0:n.namedItem(e.name);t=[...null!=r?r:[]]}else t=[...(0,r.getOwnerDocument)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e))return NodeFilter.FILTER_REJECT;if("INPUT"===a.currentNode.tagName&&"radio"===a.currentNode.type&&a.currentNode.name===e.name)return NodeFilter.FILTER_REJECT}return!o(e)||n&&!g(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(a.currentNode=t.from),a}function P(e,t={}){return{focusNext(n={}){let o=e.current;if(!o)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=n,u=i||(0,r.getActiveElement)((0,r.getOwnerDocument)(o)),c=S(o,{tabbable:s,accept:l});(0,r.nodeContains)(o,u)&&(c.currentNode=u);let p=c.nextNode();return!p&&a&&(c.currentNode=o,p=c.nextNode()),p&&w(p,!0),p},focusPrevious(n=t){let o=e.current;if(!o)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=n,u=i||(0,r.getActiveElement)((0,r.getOwnerDocument)(o)),c=S(o,{tabbable:s,accept:l});if(!(0,r.nodeContains)(o,u)){let e=O(c);return e&&w(e,!0),null!=e?e:null}c.currentNode=u;let p=c.previousNode();if(!p&&a){c.currentNode=o;let e=O(c);if(!e)return null;p=e}return p&&w(p,!0),null!=p?p:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=S(r,{tabbable:o,accept:i}).nextNode();return s&&w(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=O(S(r,{tabbable:o,accept:i}));return s&&w(s,!0),null!=s?s:null}}}function O(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class T{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new k({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&g(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new T;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let A=new T},3637(e,t,n){var r=n(45665),o=n(37561),i=n(81508),s=n(44015),a=n(9370),l=n(62908),u=n(35695);function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}c(e.exports,"FocusScope",()=>r.FocusScope),c(e.exports,"useFocusManager",()=>r.useFocusManager),c(e.exports,"getFocusableTreeWalker",()=>r.getFocusableTreeWalker),c(e.exports,"createFocusManager",()=>r.createFocusManager),c(e.exports,"isElementInChildOfActiveScope",()=>r.isElementInChildOfActiveScope),c(e.exports,"FocusRing",()=>o.FocusRing),c(e.exports,"useFocusRing",()=>i.useFocusRing),c(e.exports,"useHasTabbableChild",()=>s.useHasTabbableChild),c(e.exports,"moveVirtualFocus",()=>a.moveVirtualFocus),c(e.exports,"dispatchVirtualBlur",()=>a.dispatchVirtualBlur),c(e.exports,"dispatchVirtualFocus",()=>a.dispatchVirtualFocus),c(e.exports,"getVirtuallyFocusedElement",()=>a.getVirtuallyFocusedElement),c(e.exports,"isFocusable",()=>l.isFocusable),c(e.exports,"FocusableProvider",()=>u.FocusableProvider),c(e.exports,"Focusable",()=>u.Focusable),c(e.exports,"useFocusable",()=>u.useFocusable),c(e.exports,"focusSafely",()=>u.focusSafely)},81508(e,t,n){var r,o,i=n(35695),s=n(22155);function a(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,s.useRef)({isFocused:!1,isFocusVisible:t||(0,i.isFocusVisible)()}),[a,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),p=(0,s.useCallback)(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,s.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=(0,i.isFocusVisible)(),l(e),p()},[p]);(0,i.useFocusVisibleListener)(e=>{o.current.isFocusVisible=e,p()},[n,a],{enabled:a,isTextInput:n});let{focusProps:f}=(0,i.useFocus)({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=(0,i.useFocusWithin)({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:u,focusProps:r?h:f}}r=e.exports,o=()=>a,Object.defineProperty(r,"useFocusRing",{get:o,set:void 0,enumerable:!0,configurable:!0})},44015(e,t,n){var r,o,i=n(45665),s=n(62908),a=n(22155);function l(e,t){let n=null==t?void 0:t.isDisabled,[r,o]=(0,a.useState)(!1);return(0,s.useLayoutEffect)(()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=(0,i.getFocusableTreeWalker)(e.current,{tabbable:!0});o(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}}),!n&&r}r=e.exports,o=()=>l,Object.defineProperty(r,"useHasTabbableChild",{get:o,set:void 0,enumerable:!0,configurable:!0})},9370(e,t,n){var r=n(62908);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function i(e){let t=l((0,r.getOwnerDocument)(e));t!==e&&(t&&s(t,e),e&&a(e,t))}function s(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function a(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function l(e){let t=(0,r.getActiveElement)(e),n=null==t?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}o(e.exports,"moveVirtualFocus",()=>i),o(e.exports,"getVirtuallyFocusedElement",()=>l),o(e.exports,"dispatchVirtualBlur",()=>s),o(e.exports,"dispatchVirtualFocus",()=>a)},57356(e,t,n){var r=n(70766),o=n(93177),i=n(22155);function s(e){return e&&e.__esModule?e.default:e}function a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(e.exports,"I18nProvider",()=>p),a(e.exports,"useLocale",()=>d);const l=s(i).createContext(null);function u(e){let{locale:t,children:n}=e,o=s(i).useMemo(()=>({locale:t,direction:(0,r.isRTL)(t)?"rtl":"ltr"}),[t]);return s(i).createElement(l.Provider,{value:o},n)}function c(e){let{children:t}=e,n=(0,o.useDefaultLocale)();return s(i).createElement(l.Provider,{value:n},t)}function p(e){let{locale:t,children:n}=e;return t?s(i).createElement(u,{locale:t,children:n}):s(i).createElement(c,{children:n})}function d(){let e=(0,o.useDefaultLocale)();return(0,i.useContext)(l)||e}},40999(e,t,n){var r=n(57356),o=n(84349),i=n(27458),s=n(20098),a=n(72702),l=n(49611),u=n(82706),c=n(14366),p=n(70766);function d(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}d(e.exports,"I18nProvider",()=>r.I18nProvider),d(e.exports,"useLocale",()=>r.useLocale),d(e.exports,"useMessageFormatter",()=>o.useMessageFormatter),d(e.exports,"useLocalizedStringFormatter",()=>i.useLocalizedStringFormatter),d(e.exports,"useLocalizedStringDictionary",()=>i.useLocalizedStringDictionary),d(e.exports,"useListFormatter",()=>s.useListFormatter),d(e.exports,"useDateFormatter",()=>a.useDateFormatter),d(e.exports,"useNumberFormatter",()=>l.useNumberFormatter),d(e.exports,"useCollator",()=>u.useCollator),d(e.exports,"useFilter",()=>c.useFilter),d(e.exports,"isRTL",()=>p.isRTL)},82706(e,t,n){var r,o,i=n(57356);r=e.exports,o=()=>a,Object.defineProperty(r,"useCollator",{get:o,set:void 0,enumerable:!0,configurable:!0});let s=new Map;function a(e){let{locale:t}=(0,i.useLocale)(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(s.has(n))return s.get(n);let r=new Intl.Collator(t,e);return s.set(n,r),r}},72702(e,t,n){var r,o,i=n(57356),s=n(5285),a=n(62908),l=n(22155);function u(e){e=(0,a.useDeepMemo)(null!=e?e:{},c);let{locale:t}=(0,i.useLocale)();return(0,l.useMemo)(()=>new(0,s.DateFormatter)(t,e),[t,e])}function c(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}r=e.exports,o=()=>u,Object.defineProperty(r,"useDateFormatter",{get:o,set:void 0,enumerable:!0,configurable:!0})},93177(e,t,n){var r,o,i=n(70766),s=n(22155),a=n(84308);r=e.exports,o=()=>f,Object.defineProperty(r,"useDefaultLocale",{get:o,set:void 0,enumerable:!0,configurable:!0});const l=Symbol.for("react-aria.i18n.locale");function u(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:(0,i.isRTL)(e)?"rtl":"ltr"}}let c=u(),p=new Set;function d(){c=u();for(let e of p)e(c)}function f(){let e=(0,a.useIsSSR)(),[t,n]=(0,s.useState)(c);return(0,s.useEffect)(()=>(0===p.size&&window.addEventListener("languagechange",d),p.add(n),()=>{p.delete(n),0===p.size&&window.removeEventListener("languagechange",d)}),[]),e?{locale:"undefined"!=typeof window&&window[l]||"en-US",direction:"ltr"}:t}},14366(e,t,n){var r,o,i=n(82706),s=n(22155);function a(e){let t=(0,i.useCollator)({usage:"search",...e}),n=(0,s.useCallback)((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),[t]),r=(0,s.useCallback)((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),[t]),o=(0,s.useCallback)((e,n)=>{if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1},[t]);return(0,s.useMemo)(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}r=e.exports,o=()=>a,Object.defineProperty(r,"useFilter",{get:o,set:void 0,enumerable:!0,configurable:!0})},20098(e,t,n){var r,o,i=n(57356),s=n(22155);function a(e={}){let{locale:t}=(0,i.useLocale)();return(0,s.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}r=e.exports,o=()=>a,Object.defineProperty(r,"useListFormatter",{get:o,set:void 0,enumerable:!0,configurable:!0})},27458(e,t,n){var r=n(57356),o=n(83604),i=n(22155);function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}s(e.exports,"useLocalizedStringDictionary",()=>l),s(e.exports,"useLocalizedStringFormatter",()=>u);const a=new WeakMap;function l(e,t){return t&&o.LocalizedStringDictionary.getGlobalDictionaryForPackage(t)||function(e){let t=a.get(e);return t||(t=new(0,o.LocalizedStringDictionary)(e),a.set(e,t)),t}(e)}function u(e,t){let{locale:n}=(0,r.useLocale)(),s=l(e,t);return(0,i.useMemo)(()=>new(0,o.LocalizedStringFormatter)(n,s),[n,s])}},84349(e,t,n){var r,o,i=n(57356),s=n(17700),a=n(22155);r=e.exports,o=()=>u,Object.defineProperty(r,"useMessageFormatter",{get:o,set:void 0,enumerable:!0,configurable:!0});const l=new WeakMap;function u(e){let{locale:t}=(0,i.useLocale)(),n=(0,a.useMemo)(()=>function(e){let t=l.get(e);return t||(t=new(0,s.MessageDictionary)(e),l.set(e,t)),t}(e),[e]),r=(0,a.useMemo)(()=>new(0,s.MessageFormatter)(t,n),[t,n]);return(0,a.useCallback)((e,t)=>r.format(e,t),[r])}},49611(e,t,n){var r,o,i=n(57356),s=n(74849),a=n(22155);function l(e={}){let{locale:t}=(0,i.useLocale)();return(0,a.useMemo)(()=>new(0,s.NumberFormatter)(t,e),[t,e])}r=e.exports,o=()=>l,Object.defineProperty(r,"useNumberFormatter",{get:o,set:void 0,enumerable:!0,configurable:!0})},70766(e){var t,n;t=e.exports,n=()=>i,Object.defineProperty(t,"isRTL",{get:n,set:void 0,enumerable:!0,configurable:!0});const r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return o.has(t)}},31866(e,t,n){var r=n(21140),o=n(62908),i=n(22155);function s(e){return e&&e.__esModule?e.default:e}function a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(e.exports,"PressResponder",()=>l),a(e.exports,"ClearPressResponder",()=>u);const l=s(i).forwardRef(({children:e,...t},n)=>{let a=(0,i.useRef)(!1),l=(0,i.useContext)(r.PressResponderContext),u=(0,o.mergeProps)(l||{},{...t,register(){a.current=!0,l&&l.register()}});return u.ref=(0,o.useObjectRef)(n||(null==l?void 0:l.ref)),(0,o.useSyncRef)(l,u.ref),(0,i.useEffect)(()=>{a.current||(a.current=!0)},[]),s(i).createElement(r.PressResponderContext.Provider,{value:u},e)});function u({children:e}){let t=(0,i.useMemo)(()=>({register:()=>{}}),[]);return s(i).createElement(r.PressResponderContext.Provider,{value:t},e)}},72148(e,t,n){var r,o,i=n(93001),s=n(38580),a=n(62908),l=n(22155);function u(e){return e&&e.__esModule?e.default:e}r=e.exports,o=()=>c,Object.defineProperty(r,"Pressable",{get:o,set:void 0,enumerable:!0,configurable:!0});const c=u(l).forwardRef(({children:e,...t},n)=>{n=(0,a.useObjectRef)(n);let{pressProps:r}=(0,i.usePress)({...t,ref:n}),{focusableProps:o}=(0,s.useFocusable)(t,n),c=u(l).Children.only(e);(0,l.useEffect)(()=>{},[n,t.isDisabled]);let p=parseInt(u(l).version,10)<19?c.ref:c.props.ref;return u(l).cloneElement(c,{...(0,a.mergeProps)(r,o,c.props),ref:(0,a.mergeRefs)(p,n)})})},21140(e,t,n){var r,o,i=n(22155);r=e.exports,o=()=>s,Object.defineProperty(r,"PressResponderContext",{get:o,set:void 0,enumerable:!0,configurable:!0});const s=(a=i,a&&a.__esModule?a.default:a).createContext({register:()=>{}});var a;s.displayName="PressResponderContext"},52231(e){var t,n;function r(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t};e(r),t&&n.stopPropagation()}}t=e.exports,n=()=>r,Object.defineProperty(t,"createEventHandler",{get:n,set:void 0,enumerable:!0,configurable:!0})},1283(e,t,n){var r,o,i=n(93486),s=n(62908);function a(e){const t=(0,s.getOwnerDocument)(e);if("virtual"===(0,i.getInteractionModality)()){let n=(0,s.getActiveElement)(t);(0,s.runAfterTransition)(()=>{const r=(0,s.getActiveElement)(t);r!==n&&r!==t.body||!e.isConnected||(0,s.focusWithoutScrolling)(e)})}else(0,s.focusWithoutScrolling)(e)}r=e.exports,o=()=>a,Object.defineProperty(r,"focusSafely",{get:o,set:void 0,enumerable:!0,configurable:!0})},35695(e,t,n){var r=n(72148),o=n(31866),i=n(67148),s=n(93486),a=n(50833),l=n(16982),u=n(40483),c=n(71439),p=n(29535),d=n(93001),f=n(42388),h=n(68447),m=n(38580),g=n(1283);function y(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}y(e.exports,"Pressable",()=>r.Pressable),y(e.exports,"PressResponder",()=>o.PressResponder),y(e.exports,"ClearPressResponder",()=>o.ClearPressResponder),y(e.exports,"useFocus",()=>i.useFocus),y(e.exports,"isFocusVisible",()=>s.isFocusVisible),y(e.exports,"getInteractionModality",()=>s.getInteractionModality),y(e.exports,"setInteractionModality",()=>s.setInteractionModality),y(e.exports,"getPointerType",()=>s.getPointerType),y(e.exports,"addWindowFocusTracking",()=>s.addWindowFocusTracking),y(e.exports,"useInteractionModality",()=>s.useInteractionModality),y(e.exports,"useFocusVisible",()=>s.useFocusVisible),y(e.exports,"useFocusVisibleListener",()=>s.useFocusVisibleListener),y(e.exports,"useFocusWithin",()=>a.useFocusWithin),y(e.exports,"useHover",()=>l.useHover),y(e.exports,"useInteractOutside",()=>u.useInteractOutside),y(e.exports,"useKeyboard",()=>c.useKeyboard),y(e.exports,"useMove",()=>p.useMove),y(e.exports,"usePress",()=>d.usePress),y(e.exports,"useScrollWheel",()=>f.useScrollWheel),y(e.exports,"useLongPress",()=>h.useLongPress),y(e.exports,"useFocusable",()=>m.useFocusable),y(e.exports,"FocusableProvider",()=>m.FocusableProvider),y(e.exports,"Focusable",()=>m.Focusable),y(e.exports,"FocusableContext",()=>m.FocusableContext),y(e.exports,"focusSafely",()=>g.focusSafely)},1656(e,t,n){var r=n(62908);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"disableTextSelection",()=>l),o(e.exports,"restoreTextSelection",()=>u);let i="default",s="",a=new WeakMap;function l(e){if((0,r.isIOS)()){if("default"===i){const t=(0,r.getOwnerDocument)(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}i="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";a.set(e,e.style[t]),e.style[t]="none"}}function u(e){if((0,r.isIOS)()){if("disabled"!==i)return;i="restoring",setTimeout(()=>{(0,r.runAfterTransition)(()=>{if("restoring"===i){const t=(0,r.getOwnerDocument)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=s||""),s="",i="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&a.has(e)){let t=a.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),a.delete(e)}}},67148(e,t,n){var r,o,i=n(34310),s=n(22155),a=n(62908);function l(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const l=(0,s.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),u=(0,i.useSyntheticBlurEvent)(l),c=(0,s.useCallback)(e=>{const t=(0,a.getOwnerDocument)(e.target),r=t?(0,a.getActiveElement)(t):(0,a.getActiveElement)();e.target===e.currentTarget&&r===(0,a.getEventTarget)(e.nativeEvent)&&(n&&n(e),o&&o(!0),u(e))},[o,n,u]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:t||!r&&!o?void 0:l}}}r=e.exports,o=()=>l,Object.defineProperty(r,"useFocus",{get:o,set:void 0,enumerable:!0,configurable:!0})},93486(e,t,n){var r=n(34310),o=n(62908),i=n(22155),s=n(84308);function a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(e.exports,"addWindowFocusTracking",()=>x),a(e.exports,"isFocusVisible",()=>E),a(e.exports,"getInteractionModality",()=>S),a(e.exports,"setInteractionModality",()=>P),a(e.exports,"getPointerType",()=>O),a(e.exports,"useInteractionModality",()=>T),a(e.exports,"useFocusVisible",()=>A),a(e.exports,"useFocusVisibleListener",()=>I);let l=null,u="keyboard";const c=new Set;let p=new Map,d=!1,f=!1;const h={Tab:!0,Escape:!0};function m(e,t){for(let n of c)n(e,t)}function g(e){d=!0,!o.openLink.isOpening&&function(e){return!(e.metaKey||!(0,o.isMac)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(l="keyboard",u="keyboard",m("keyboard",e))}function y(e){l="pointer",u="pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(d=!0,m("pointer",e))}function v(e){!o.openLink.isOpening&&(0,o.isVirtualClick)(e)&&(d=!0,l="virtual",u="virtual")}function b(e){e.target!==window&&e.target!==document&&!r.ignoreFocusEvent&&e.isTrusted&&(d||f||(l="virtual",u="virtual",m("virtual",e)),d=!1,f=!1)}function w(){r.ignoreFocusEvent||(d=!1,f=!0)}function C(e){if("undefined"==typeof window||"undefined"==typeof document||p.get((0,o.getOwnerWindow)(e)))return;const t=(0,o.getOwnerWindow)(e),n=(0,o.getOwnerDocument)(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,r.apply(this,arguments)},n.addEventListener("keydown",g,!0),n.addEventListener("keyup",g,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",b,!0),t.addEventListener("blur",w,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",y,!0),n.addEventListener("pointermove",y,!0),n.addEventListener("pointerup",y,!0)),t.addEventListener("beforeunload",()=>{_(e)},{once:!0}),p.set(t,{focus:r})}const _=(e,t)=>{const n=(0,o.getOwnerWindow)(e),r=(0,o.getOwnerDocument)(e);t&&r.removeEventListener("DOMContentLoaded",t),p.has(n)&&(n.HTMLElement.prototype.focus=p.get(n).focus,r.removeEventListener("keydown",g,!0),r.removeEventListener("keyup",g,!0),r.removeEventListener("click",v,!0),n.removeEventListener("focus",b,!0),n.removeEventListener("blur",w,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",y,!0),r.removeEventListener("pointermove",y,!0),r.removeEventListener("pointerup",y,!0)),p.delete(n))};function x(e){const t=(0,o.getOwnerDocument)(e);let n;return"loading"!==t.readyState?C(e):(n=()=>{C(e)},t.addEventListener("DOMContentLoaded",n)),()=>_(e,n)}function E(){return"pointer"!==l}function S(){return l}function P(e){l=e,u="pointer"===e?"mouse":e,m(e,null)}function O(){return u}function T(){C();let[e,t]=(0,i.useState)(l);return(0,i.useEffect)(()=>{let e=()=>{t(l)};return c.add(e),()=>{c.delete(e)}},[]),(0,s.useIsSSR)()?null:e}"undefined"!=typeof document&&x();const k=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,i.useState)(n||E());return I(e=>{o(e)},[t],{isTextInput:t}),{isFocusVisible:r}}function I(e,t,n){C(),(0,i.useEffect)(()=>{if(!1===(null==n?void 0:n.enabled))return;let t=(t,r)=>{(function(e,t,n){let r=(0,o.getOwnerDocument)(null==n?void 0:n.target);const i="undefined"!=typeof window?(0,o.getOwnerWindow)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?(0,o.getOwnerWindow)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?(0,o.getOwnerWindow)(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,o.getOwnerWindow)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!k.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof l&&!h[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(E())};return c.add(t),()=>{c.delete(t)}},t)}},50833(e,t,n){var r,o,i=n(34310),s=n(22155),a=n(62908);function l(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,l=(0,s.useRef)({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:c}=(0,a.useGlobalListeners)(),p=(0,s.useCallback)(e=>{(0,a.nodeContains)(e.currentTarget,e.target)&&l.current.isFocusWithin&&!(0,a.nodeContains)(e.currentTarget,e.relatedTarget)&&(l.current.isFocusWithin=!1,c(),n&&n(e),o&&o(!1))},[n,o,l,c]),d=(0,i.useSyntheticBlurEvent)(p),f=(0,s.useCallback)(e=>{if(!(0,a.nodeContains)(e.currentTarget,e.target))return;const t=(0,a.getOwnerDocument)(e.target),n=(0,a.getActiveElement)(t);if(!l.current.isFocusWithin&&n===(0,a.getEventTarget)(e.nativeEvent)){r&&r(e),o&&o(!0),l.current.isFocusWithin=!0,d(e);let n=e.currentTarget;u(t,"focus",e=>{if(l.current.isFocusWithin&&!(0,a.nodeContains)(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});(0,i.setEventTarget)(r,n);let o=(0,i.createSyntheticEvent)(r);p(o)}},{capture:!0})}},[r,o,d,u,p]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:p}}}r=e.exports,o=()=>l,Object.defineProperty(r,"useFocusWithin",{get:o,set:void 0,enumerable:!0,configurable:!0})},38580(e,t,n){var r=n(1283),o=n(67148),i=n(71439),s=n(62908),a=n(22155);function l(e){return e&&e.__esModule?e.default:e}function u(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}u(e.exports,"FocusableContext",()=>c),u(e.exports,"FocusableProvider",()=>p),u(e.exports,"useFocusable",()=>d),u(e.exports,"Focusable",()=>f);let c=l(a).createContext(null);const p=l(a).forwardRef(function(e,t){let{children:n,...r}=e,o={...r,ref:(0,s.useObjectRef)(t)};return l(a).createElement(c.Provider,{value:o},n)});function d(e,t){let{focusProps:n}=(0,o.useFocus)(e),{keyboardProps:l}=(0,i.useKeyboard)(e),u=(0,s.mergeProps)(n,l),p=function(e){let t=(0,a.useContext)(c)||{};(0,s.useSyncRef)(t,e);let{ref:n,...r}=t;return r}(t),d=e.isDisabled?{}:p,f=(0,a.useRef)(e.autoFocus);(0,a.useEffect)(()=>{f.current&&t.current&&(0,r.focusSafely)(t.current),f.current=!1},[t]);let h=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(h=void 0),{focusableProps:(0,s.mergeProps)({...u,tabIndex:h},d)}}const f=(0,a.forwardRef)(({children:e,...t},n)=>{n=(0,s.useObjectRef)(n);let{focusableProps:r}=d(t,n),o=l(a).Children.only(e);(0,a.useEffect)(()=>{},[n,t.isDisabled]);let i=parseInt(l(a).version,10)<19?o.ref:o.props.ref;return l(a).cloneElement(o,{...(0,s.mergeProps)(r,o.props),ref:(0,s.mergeRefs)(i,n)})})},16982(e,t,n){var r,o,i=n(62908),s=n(22155);r=e.exports,o=()=>p,Object.defineProperty(r,"useHover",{get:o,set:void 0,enumerable:!0,configurable:!0});let a=!1,l=0;function u(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},50))}function c(){if("undefined"!=typeof document)return 0===l&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),l++,()=>{l--,l>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",u)}}function p(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[l,u]=(0,s.useState)(!1),p=(0,s.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,s.useEffect)(c,[]);let{addGlobalListener:d,removeAllGlobalListeners:f}=(0,i.useGlobalListeners)(),{hoverProps:h,triggerHoverEnd:m}=(0,s.useMemo)(()=>{let e=(e,t)=>{let o=p.target;p.pointerType="",p.target=null,"touch"!==t&&p.isHovered&&o&&(p.isHovered=!1,f(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),u(!1))},s={};return"undefined"!=typeof PointerEvent&&(s.onPointerEnter=r=>{a&&"mouse"===r.pointerType||((r,s)=>{if(p.pointerType=s,o||"touch"===s||p.isHovered||!(0,i.nodeContains)(r.currentTarget,r.target))return;p.isHovered=!0;let a=r.currentTarget;p.target=a,d((0,i.getOwnerDocument)(r.target),"pointerover",t=>{p.isHovered&&p.target&&!(0,i.nodeContains)(p.target,t.target)&&e(0,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:s}),n&&n(!0),u(!0)})(r,r.pointerType)},s.onPointerLeave=t=>{!o&&(0,i.nodeContains)(t.currentTarget,t.target)&&e(0,t.pointerType)}),{hoverProps:s,triggerHoverEnd:e}},[t,n,r,o,p,d,f]);return(0,s.useEffect)(()=>{o&&m({currentTarget:p.target},p.pointerType)},[o]),{hoverProps:h,isHovered:l}}},40483(e,t,n){var r,o,i=n(62908),s=n(22155);function a(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,a=(0,s.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=(0,i.useEffectEvent)(e=>{n&&l(e,t)&&(o&&o(e),a.current.isPointerDown=!0)}),c=(0,i.useEffectEvent)(e=>{n&&n(e)});(0,s.useEffect)(()=>{let e=a.current;if(r)return;const n=t.current,o=(0,i.getOwnerDocument)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&l(n,t)&&c(n),e.isPointerDown=!1};return o.addEventListener("pointerdown",u,!0),o.addEventListener("click",n,!0),()=>{o.removeEventListener("pointerdown",u,!0),o.removeEventListener("click",n,!0)}}},[t,r])}function l(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!(0,i.nodeContains)(t.documentElement,e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}r=e.exports,o=()=>a,Object.defineProperty(r,"useInteractOutside",{get:o,set:void 0,enumerable:!0,configurable:!0})},71439(e,t,n){var r,o,i=n(52231);function s(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:(0,i.createEventHandler)(e.onKeyDown),onKeyUp:(0,i.createEventHandler)(e.onKeyUp)}}}r=e.exports,o=()=>s,Object.defineProperty(r,"useKeyboard",{get:o,set:void 0,enumerable:!0,configurable:!0})},68447(e,t,n){var r,o,i=n(93001),s=n(62908),a=n(22155);r=e.exports,o=()=>u,Object.defineProperty(r,"useLongPress",{get:o,set:void 0,enumerable:!0,configurable:!0});const l=500;function u(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:u=l,accessibilityDescription:c}=e;const p=(0,a.useRef)(void 0);let{addGlobalListener:d,removeGlobalListener:f}=(0,s.useGlobalListeners)(),{pressProps:h}=(0,i.usePress)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),p.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,s.getOwnerDocument)(e.target).activeElement!==e.target&&(0,s.focusWithoutScrolling)(e.target),o&&o({...e,type:"longpress"}),p.current=void 0},u),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};d(e.target,"contextmenu",t,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{f(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){p.current&&clearTimeout(p.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}}),m=(0,s.useDescription)(o&&!t?c:void 0);return{longPressProps:(0,s.mergeProps)(h,m)}}},29535(e,t,n){var r,o,i=n(1656),s=n(22155),a=n(62908);function l(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=(0,s.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:l,removeGlobalListener:u}=(0,a.useGlobalListeners)(),c=(0,s.useCallback)((e,r,i,s)=>{0===i&&0===s||(o.current.didMove||(o.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==n||n({type:"move",pointerType:r,deltaX:i,deltaY:s,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,n,o]),p=(0,a.useEffectEvent)(c),d=(0,s.useCallback)((e,t)=>{(0,i.restoreTextSelection)(),o.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[r,o]),f=(0,a.useEffectEvent)(d),[h,m]=(0,s.useState)(null);(0,a.useLayoutEffect)(()=>{if("pointer"===h){let e=e=>{if(e.pointerId===o.current.id){var t,n;let s=e.pointerType||"mouse";var r,i;p(e,s,e.pageX-(null!==(r=null===(t=o.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=o.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},t=n=>{if(n.pointerId===o.current.id){let r=n.pointerType||"mouse";f(n,r),o.current.id=null,u(window,"pointermove",e,!1),u(window,"pointerup",t,!1),u(window,"pointercancel",t,!1),m(null)}};return l(window,"pointermove",e,!1),l(window,"pointerup",t,!1),l(window,"pointercancel",t,!1),()=>{u(window,"pointermove",e,!1),u(window,"pointerup",t,!1),u(window,"pointercancel",t,!1)}}},[h,l,u]);let g=(0,s.useMemo)(()=>{let e={},t=()=>{(0,i.disableTextSelection)(),o.current.didMove=!1};e.onPointerDown=e=>{0===e.button&&null==o.current.id&&(t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,m("pointer"))};let n=(e,n,r)=>{t(),c(e,"keyboard",n,r),d(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e},[o,c,d]);return{moveProps:g}}r=e.exports,o=()=>l,Object.defineProperty(r,"useMove",{get:o,set:void 0,enumerable:!0,configurable:!0})},93001(e,t,n){var r,o,i=n(34310),s=n(1656),a=n(21140),l=n(36994),u=n(71344),c=n(70246),p=n(62908),d=(n(70316),n(22155));r=e.exports,o=()=>v,Object.defineProperty(r,"usePress",{get:o,set:void 0,enumerable:!0,configurable:!0});var f=new WeakMap;class h{continuePropagation(){(0,c._)(this,f,!1)}get shouldStopPropagation(){return(0,l._)(this,f)}constructor(e,t,n,r){var o;(0,u._)(this,f,{writable:!0,value:void 0}),(0,c._)(this,f,!0);let i=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget;const s=null==i?void 0:i.getBoundingClientRect();let a,l,p=0,d=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,d=n.clientY),s&&(null!=l&&null!=d?(a=l-s.left,p=d-s.top):(a=s.width/2,p=s.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=p,this.key=n.key}}const m=Symbol("linkClicked"),g="react-aria-pressable-style",y="data-react-aria-pressable";function v(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:l,onClick:u,isDisabled:c,isPressed:f,preventFocusOnPress:v,shouldCancelOnPointerExit:x,allowTextSelectionOnPress:E,ref:S,...P}=function(e){let t=(0,d.useContext)(a.PressResponderContext);if(t){let{register:n,ref:r,...o}=t;e=(0,p.mergeProps)(o,e),n()}return(0,p.useSyncRef)(t,e.ref),e}(e),[O,T]=(0,d.useState)(!1),k=(0,d.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:A,removeAllGlobalListeners:I,removeGlobalListener:R}=(0,p.useGlobalListeners)(),M=(0,d.useCallback)((e,t)=>{let o=k.current;if(c||o.didFirePressStart)return!1;let i=!0;if(o.isTriggeringEvent=!0,r){let n=new h("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,T(!0),i},[c,r,n]),D=(0,d.useCallback)((e,r,i=!0)=>{let s=k.current;if(!s.didFirePressStart)return!1;s.didFirePressStart=!1,s.isTriggeringEvent=!0;let a=!0;if(o){let t=new h("pressend",r,e);o(t),a=t.shouldStopPropagation}if(n&&n(!1),T(!1),t&&i&&!c){let n=new h("press",r,e);t(n),a&&(a=n.shouldStopPropagation)}return s.isTriggeringEvent=!1,a},[c,o,n,t]),L=(0,p.useEffectEvent)(D),N=(0,d.useCallback)((e,t)=>{let n=k.current;if(c)return!1;if(l){n.isTriggeringEvent=!0;let r=new h("pressup",t,e);return l(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[c,l]),V=(0,p.useEffectEvent)(N),j=(0,d.useCallback)(e=>{let t=k.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&D(C(t.target,e),t.pointerType,!1),t.isPressed=!1,Q(null),t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,I(),E||(0,s.restoreTextSelection)(t.target);for(let e of t.disposables)e();t.disposables=[]}},[E,I,D]),F=(0,p.useEffectEvent)(j),z=(0,d.useCallback)(e=>{x&&j(e)},[x,j]),B=(0,d.useCallback)(e=>{c||null==u||u(e)},[c,u]),H=(0,d.useCallback)((e,t)=>{if(!c&&u){let n=new MouseEvent("click",e);(0,i.setEventTarget)(n,t),u((0,i.createSyntheticEvent)(n))}},[c,u]),U=(0,p.useEffectEvent)(H),[q,W]=(0,d.useState)(!1);(0,p.useLayoutEffect)(()=>{let e=k.current;if(q){let t=t=>{var n;if(e.isPressed&&e.target&&w(t,e.target)){var r;_((0,p.getEventTarget)(t),t.key)&&t.preventDefault();let n=(0,p.getEventTarget)(t),o=(0,p.nodeContains)(e.target,(0,p.getEventTarget)(t));L(C(e.target,t),"keyboard",o),o&&U(t,e.target),I(),"Enter"!==t.key&&b(e.target)&&(0,p.nodeContains)(e.target,n)&&!t[m]&&(t[m]=!0,(0,p.openLink)(e.target,t,!1)),e.isPressed=!1,W(!1),null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var o;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",n))}},n=e.target,r=t=>{n&&w(t,n)&&!t.repeat&&(0,p.nodeContains)(n,(0,p.getEventTarget)(t))&&e.target&&V(C(e.target,t),"keyboard")},o=(0,p.chain)(r,t);return A((0,p.getOwnerDocument)(e.target),"keyup",o,!0),()=>{R((0,p.getOwnerDocument)(e.target),"keyup",o,!0)}}},[q,A,I,R]);let[$,Q]=(0,d.useState)(null);(0,p.useLayoutEffect)(()=>{let e=k.current;if("pointer"===$){let t=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if((0,p.nodeContains)(e.target,(0,p.getEventTarget)(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?F(t):((0,p.focusWithoutScrolling)(e.target),e.target.click()))},80);A(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else F(t);e.isOverTarget=!1}},n=e=>{F(e)};return A((0,p.getOwnerDocument)(e.target),"pointerup",t,!1),A((0,p.getOwnerDocument)(e.target),"pointercancel",n,!1),()=>{R((0,p.getOwnerDocument)(e.target),"pointerup",t,!1),R((0,p.getOwnerDocument)(e.target),"pointercancel",n,!1)}}},[$,A,R]);let G=(0,d.useMemo)(()=>{let e=k.current,t={onKeyDown(t){if(w(t.nativeEvent,t.currentTarget)&&(0,p.nodeContains)(t.currentTarget,(0,p.getEventTarget)(t.nativeEvent))){var n;_((0,p.getEventTarget)(t.nativeEvent),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,W(!0),e.pointerType="keyboard",r=M(t,"keyboard")),r&&t.stopPropagation(),t.metaKey&&(0,p.isMac)()&&(null===(n=e.metaKeyEvents)||void 0===n||n.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||(0,p.nodeContains)(t.currentTarget,(0,p.getEventTarget)(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!p.openLink.isOpening){let n=!0;if(c&&t.preventDefault(),e.ignoreEmulatedMouseEvents||e.isPressed||"virtual"!==e.pointerType&&!(0,p.isVirtualClick)(t.nativeEvent)){if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",o=N(C(t.currentTarget,t),r),i=D(C(t.currentTarget,t),r,!0);n=o&&i,e.isOverTarget=!1,B(t),j(t)}}else{let e=M(t,"virtual"),r=N(t,"virtual"),o=D(t,"virtual");B(t),n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}};return"undefined"!=typeof PointerEvent&&(t.onPointerDown=t=>{if(0!==t.button||!(0,p.nodeContains)(t.currentTarget,(0,p.getEventTarget)(t.nativeEvent)))return;if((0,p.isVirtualPointerEvent)(t.nativeEvent))return void(e.pointerType="virtual");e.pointerType=t.pointerType;let n=!0;if(!e.isPressed){e.isPressed=!0,Q("pointer"),e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,E||(0,s.disableTextSelection)(e.target),n=M(t,e.pointerType);let r=(0,p.getEventTarget)(t.nativeEvent);"releasePointerCapture"in r&&("hasPointerCapture"in r?r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId):r.releasePointerCapture(t.pointerId))}n&&t.stopPropagation()},t.onMouseDown=t=>{if((0,p.nodeContains)(t.currentTarget,(0,p.getEventTarget)(t.nativeEvent))&&0===t.button){if(v){let n=(0,i.preventFocus)(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{(0,p.nodeContains)(t.currentTarget,(0,p.getEventTarget)(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||N(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,M(C(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,D(C(e.target,t),e.pointerType,!1),z(t))},t.onDragStart=e=>{(0,p.nodeContains)(e.currentTarget,(0,p.getEventTarget)(e.nativeEvent))&&j(e)}),t},[c,v,I,E,j,z,D,M,N,B,H]);return(0,d.useEffect)(()=>{if(!S)return;const e=(0,p.getOwnerDocument)(S.current);if(!e||!e.head||e.getElementById(g))return;const t=e.createElement("style");t.id=g,t.textContent=`\n@layer {\n  [${y}] {\n    touch-action: pan-x pan-y pinch-zoom;\n  }\n}\n    `.trim(),e.head.prepend(t)},[S]),(0,d.useEffect)(()=>{let e=k.current;return()=>{var t;E||(0,s.restoreTextSelection)(null!==(t=e.target)&&void 0!==t?t:void 0);for(let t of e.disposables)t();e.disposables=[]}},[E]),{isPressed:f||O,pressProps:(0,p.mergeProps)(P,G,{[y]:!0})}}function b(e){return"A"===e.tagName&&e.hasAttribute("href")}function w(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof(0,p.getOwnerWindow)(o).HTMLInputElement&&!E(o,n)||o instanceof(0,p.getOwnerWindow)(o).HTMLTextAreaElement||o.isContentEditable||("link"===i||!i&&b(o))&&"Enter"!==n)}function C(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function _(e,t){return e instanceof HTMLInputElement?!E(e,t):function(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:b(e)))}(e)}const x=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function E(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:x.has(e.type)}},42388(e,t,n){var r,o,i=n(22155),s=n(62908);function a(e,t){let{onScroll:n,isDisabled:r}=e,o=(0,i.useCallback)(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);(0,s.useEvent)(t,"wheel",r?void 0:o)}r=e.exports,o=()=>a,Object.defineProperty(r,"useScrollWheel",{get:o,set:void 0,enumerable:!0,configurable:!0})},34310(e,t,n){var r=n(62908),o=n(22155);function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function s(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function a(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function l(e){let t=(0,o.useRef)({isFocused:!1,observer:null});return(0,r.useLayoutEffect)(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,o.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=n=>{if(t.current.isFocused=!1,r.disabled){let t=s(n);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}i(e.exports,"createSyntheticEvent",()=>s),i(e.exports,"setEventTarget",()=>a),i(e.exports,"useSyntheticBlurEvent",()=>l),i(e.exports,"ignoreFocusEvent",()=>u),i(e.exports,"preventFocus",()=>c);let u=!1;function c(e){for(;e&&!(0,r.isFocusable)(e);)e=e.parentElement;let t=(0,r.getOwnerWindow)(e),n=t.document.activeElement;if(!n||n===e)return;u=!0;let o=!1,i=e=>{(e.target===n||o)&&e.stopImmediatePropagation()},s=t=>{(t.target===n||o)&&(t.stopImmediatePropagation(),e||o||(o=!0,(0,r.focusWithoutScrolling)(n),c()))},a=t=>{(t.target===e||o)&&t.stopImmediatePropagation()},l=t=>{(t.target===e||o)&&(t.stopImmediatePropagation(),o||(o=!0,(0,r.focusWithoutScrolling)(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(p),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),u=!1,o=!1},p=requestAnimationFrame(c);return c}},4917(e,t,n){var r,o,i=n(67752),s=n(22155),a=n(62908),l=n(40999),u=n(4247);function c(e){return e&&e.__esModule?e.default:e}function p(e){let{onDismiss:t,...n}=e,r=(0,l.useLocalizedStringFormatter)(c(i),"@react-aria/overlays"),o=(0,a.useLabels)(n,r.format("dismiss"));return c(s).createElement(u.VisuallyHidden,null,c(s).createElement("button",{...o,tabIndex:-1,onClick:()=>{t&&t()},style:{width:1,height:1}}))}r=e.exports,o=()=>p,Object.defineProperty(r,"DismissButton",{get:o,set:void 0,enumerable:!0,configurable:!0})},12429(e,t,n){var r=n(96078),o=n(35695),i=n(3637),s=n(22155),a=n(70316),l=n(84308),u=n(62908);function c(e){return e&&e.__esModule?e.default:e}function p(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}p(e.exports,"Overlay",()=>f),p(e.exports,"useOverlayFocusContain",()=>h);const d=c(s).createContext(null);function f(e){let t=(0,l.useIsSSR)(),{portalContainer:n=(t?null:document.body),isExiting:u}=e,[p,f]=(0,s.useState)(!1),h=(0,s.useMemo)(()=>({contain:p,setContain:f}),[p,f]),{getContainer:m}=(0,r.useUNSAFE_PortalContext)();if(!e.portalContainer&&m&&(n=m()),!n)return null;let g=e.children;return e.disableFocusManagement||(g=c(s).createElement(i.FocusScope,{restoreFocus:!0,contain:(e.shouldContainFocus||p)&&!u},g)),g=c(s).createElement(d.Provider,{value:h},c(s).createElement(o.ClearPressResponder,null,g)),c(a).createPortal(g,n)}function h(){let e=(0,s.useContext)(d),t=null==e?void 0:e.setContain;(0,u.useLayoutEffect)(()=>{null==t||t(!0)},[t])}},96078(e,t,n){var r=n(22155);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"UNSAFE_PortalProvider",()=>s),o(e.exports,"useUNSAFE_PortalContext",()=>a);const i=(0,r.createContext)({});function s(e){let{getContainer:t}=e,{getContainer:n}=a();return(o=r,o&&o.__esModule?o.default:o).createElement(i.Provider,{value:{getContainer:null===t?void 0:null!=t?t:n}},e.children);var o}function a(){var e;return null!==(e=(0,r.useContext)(i))&&void 0!==e?e:{}}},4437(e){e.exports={dismiss:"تجاهل"}},1129(e,t,n){var r=n(62908);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"ariaHideOutside",()=>l),o(e.exports,"keepVisible",()=>u);const i="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype;let s=new WeakMap,a=[];function l(e,t){let n=(0,r.getOwnerWindow)(null==e?void 0:e[0]),o=t instanceof n.Element?{root:t}:t;var l;let u=null!==(l=null==o?void 0:o.root)&&void 0!==l?l:document.body,c=(null==o?void 0:o.shouldUseInert)&&i,p=new Set(e),d=new Set,f=(e,t)=>{c&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof n.HTMLElement&&(e.inert=!1))},h=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))p.add(t);let t=e=>{if(d.has(e)||p.has(e)||e.parentElement&&d.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of p)if((0,r.nodeContains)(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&m(e),o!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)m(e),e=n.nextNode()}},m=e=>{var t;let r=null!==(t=s.get(e))&&void 0!==t?t:0;var o;o=e,(c&&o instanceof n.HTMLElement?o.inert:"true"===o.getAttribute("aria-hidden"))&&0===r||(0===r&&f(e,!0),d.add(e),s.set(e,r+1))};a.length&&a[a.length-1].disconnect(),h(u);let g=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&t.target.isConnected&&![...p,...d].some(e=>(0,r.nodeContains)(e,t.target)))for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&h(e):p.add(e)});g.observe(u,{childList:!0,subtree:!0});let y={visibleNodes:p,hiddenNodes:d,observe(){g.observe(u,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return a.push(y),()=>{g.disconnect();for(let e of d){let t=s.get(e);null!=t&&(1===t?(f(e,!1),s.delete(e)):s.set(e,t-1))}y===a[a.length-1]?(a.pop(),a.length&&a[a.length-1].observe()):a.splice(a.indexOf(y),1)}}function u(e){let t=a[a.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}},51390(e){e.exports={dismiss:"Отхвърляне"}},56728(e,t,n){var r=n(62908);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"calculatePosition",()=>g),o(e.exports,"getRect",()=>y);const i={top:"top",bottom:"top",left:"left",right:"left"},s={top:"bottom",bottom:"top",left:"right",right:"left"},a={top:"left",left:"top"},l={top:"height",left:"width"},u={width:"totalWidth",height:"totalHeight"},c={};function p(e,t){let n=0,o=0,i=0,s=0,a=0,l=0,u={};var c;let p=(null!==(c=null==t?void 0:t.scale)&&void 0!==c?c:1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let r=document.documentElement;var d,f;i=r.clientWidth,s=r.clientHeight,n=null!==(d=null==t?void 0:t.width)&&void 0!==d?d:i,o=null!==(f=null==t?void 0:t.height)&&void 0!==f?f:s,u.top=r.scrollTop||e.scrollTop,u.left=r.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,l=t.offsetLeft)}else({width:n,height:o,top:a,left:l}=v(e,!1)),u.top=e.scrollTop,u.left=e.scrollLeft,i=n,s=o;var h,m;return(0,r.isWebKit)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&p&&(u.top=0,u.left=0,a=null!==(h=null==t?void 0:t.pageTop)&&void 0!==h?h:0,l=null!==(m=null==t?void 0:t.pageLeft)&&void 0!==m?m:0),{width:n,height:o,totalWidth:i,totalHeight:s,scroll:u,top:a,left:l}}function d(e,t,n,r,o,s,a){var u;let c=null!==(u=o.scroll[e])&&void 0!==u?u:0,p=r[l[e]],d=a[e]+r.scroll[i[e]]+s,f=a[e]+r.scroll[i[e]]+p-s,h=t-c+r.scroll[i[e]]+a[e]-r[i[e]],m=t-c+n+r.scroll[i[e]]+a[e]-r[i[e]];return h<d?d-h:m>f?Math.max(f-m,d-h):0}function f(e){if(c[e])return c[e];let[t,n]=e.split(" "),r=i[t]||"right",o=a[r];i[n]||(n="center");let s=l[r],u=l[o];return c[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:s,crossSize:u},c[e]}function h(e,t,n,o,i,a,l,c,p,d,f){let{placement:h,crossPlacement:m,axis:g,crossAxis:y,size:v,crossSize:b}=o,w={};var C,_,x,E,S;w[y]=null!==(C=e[y])&&void 0!==C?C:0,"center"===m?w[y]+=((null!==(_=e[b])&&void 0!==_?_:0)-(null!==(x=n[b])&&void 0!==x?x:0))/2:m!==y&&(w[y]+=(null!==(E=e[b])&&void 0!==E?E:0)-(null!==(S=n[b])&&void 0!==S?S:0)),w[y]+=a;const P=e[y]-n[b]+p+d,O=e[y]+e[b]-p-d;if(w[y]=(0,r.clamp)(w[y],P,O),h===g){let t=c?f[v]:f[u[v]];w[s[g]]=Math.floor(t-e[g]+i)}else w[g]=Math.floor(e[g]+e[v]+i);return w}function m(e,t,n,r,o,i,a,l){let{placement:u,axis:c,size:p}=i;var d,f,h,m;return u===c?Math.max(0,n[c]-(null!==(d=a.scroll[c])&&void 0!==d?d:0)-(e[c]+(l?t[c]:0))-(null!==(f=r[c])&&void 0!==f?f:0)-r[s[c]]-o):Math.max(0,e[p]+e[c]+(l?t[c]:0)-n[c]-n[p]+(null!==(h=a.scroll[c])&&void 0!==h?h:0)-(null!==(m=r[c])&&void 0!==m?m:0)-r[s[c]]-o)}function g(e){let{placement:t,targetNode:n,overlayNode:o,scrollNode:a,padding:l,shouldFlip:c,boundaryElement:g,offset:y,crossOffset:C,maxHeight:_,arrowSize:x=0,arrowBoundaryOffset:E=0}=e,S="undefined"!=typeof document?window.visualViewport:null,P=o instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!w(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!w(t);)t=t.parentElement;return t||document.documentElement}(o):document.documentElement,O=P===document.documentElement;const T=window.getComputedStyle(P).position;let k=!!T&&"static"!==T,A=O?v(n,!1):b(n,P,!1);if(!O){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);A.top+=parseInt(e,10)||0,A.left+=parseInt(t,10)||0}let I=v(o,!0),R=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(o);var M,D,L,N,V;return I.width+=(null!==(M=R.left)&&void 0!==M?M:0)+(null!==(D=R.right)&&void 0!==D?D:0),I.height+=(null!==(L=R.top)&&void 0!==L?L:0)+(null!==(N=R.bottom)&&void 0!==N?N:0),(V=a).scrollTop,V.scrollLeft,V.scrollWidth,V.scrollHeight,function(e,t,n,o,a,l,c,p,g,y,v,b,w,C,_,x,E,S){let P=f(e),{size:O,crossAxis:T,crossSize:k,placement:A,crossPlacement:I}=P,R=h(t,0,n,P,v,b,0,w,_,x,g),M=v,D=m(p,y,t,a,l+v,P,g,E);if(c&&n[O]>D){let e=f(`${s[A]} ${I}`),r=h(t,0,n,e,v,b,0,w,_,x,g);m(p,y,t,a,l+v,e,g,E)>D&&(P=e,R=r,M=v)}let L="bottom";"top"===P.axis?"top"===P.placement?L="top":"bottom"===P.placement&&(L="bottom"):"top"===P.crossAxis&&("top"===P.crossPlacement?L="bottom":"bottom"===P.crossPlacement&&(L="top"));let N=d(T,R[T],n[k],p,g,l,y);R[T]+=N;let V=function(e,t,n,r,o,i,s,a,l,c,p){var d,f;let h=(null!=e.top?e.top:l[u.height]-(null!==(d=e.bottom)&&void 0!==d?d:0)-s)-(null!==(f=l.scroll.top)&&void 0!==f?f:0),m=c?n.top:0;var g,y,v;let b=Math.max(t.top+m,(null!==(g=null==p?void 0:p.offsetTop)&&void 0!==g?g:t.top)+m),w=Math.min(t.top+t.height+m,(null!==(y=null==p?void 0:p.offsetTop)&&void 0!==y?y:0)+(null!==(v=null==p?void 0:p.height)&&void 0!==v?v:0));var C,_,x,E;return"top"!==a?Math.max(0,w-h-((null!==(C=o.top)&&void 0!==C?C:0)+(null!==(_=o.bottom)&&void 0!==_?_:0)+i)):Math.max(0,h+s-b-((null!==(x=o.top)&&void 0!==x?x:0)+(null!==(E=o.bottom)&&void 0!==E?E:0)+i))}(R,p,y,0,a,l,n.height,L,g,E,S);C&&C<V&&(V=C),n.height=Math.min(n.height,V),R=h(t,0,n,P,M,b,0,w,_,x,g),N=d(T,R[T],n[k],p,g,l,y),R[T]+=N;let j={},F=t[T]-R[T]-a[i[T]],z=F+.5*t[k];const B=_/2+x;var H,U,q,W;const $="left"===i[T]?(null!==(H=a.left)&&void 0!==H?H:0)+(null!==(U=a.right)&&void 0!==U?U:0):(null!==(q=a.top)&&void 0!==q?q:0)+(null!==(W=a.bottom)&&void 0!==W?W:0),Q=n[k]-$-_/2-x,G=t[T]+_/2-(R[T]+a[i[T]]),Y=t[T]+t[k]-_/2-(R[T]+a[i[T]]),Z=(0,r.clamp)(z,G,Y);j[T]=(0,r.clamp)(Z,B,Q),({placement:A,crossPlacement:I}=P),_?F=j[T]:"right"===I?F+=t[k]:"center"===I&&(F+=t[k]/2);let K="left"===A||"top"===A?n[O]:0,X={x:"top"===A||"bottom"===A?F:K,y:"left"===A||"right"===A?F:K};return{position:R,maxHeight:V,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:A,triggerAnchorPoint:X}}(t,A,I,0,R,l,c,p(g,S),p(P,S),b(g,P,!1),y,C,k,_,x,E,(0,r.nodeContains)(g,P),S)}function y(e,t){let{top:n,left:r,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:o,height:i}}function v(e,t){let{top:n,left:r,width:o,height:i}=y(e,t),{scrollTop:s,scrollLeft:a,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+s-l,left:r+a-u,width:o,height:i}}function b(e,t,n){let r,o=window.getComputedStyle(e);if("fixed"===o.position)r=y(e,n);else{r=v(e,n);let o=v(t,n),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(o.marginTop,10)||0,r.left-=parseInt(o.marginLeft,10)||0,r}function w(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}},32861(e){e.exports={dismiss:"Odstranit"}},99752(e){e.exports={dismiss:"Luk"}},366(e){e.exports={dismiss:"Schließen"}},85254(e){e.exports={dismiss:"Απόρριψη"}},33523(e){e.exports={dismiss:"Dismiss"}},29724(e){e.exports={dismiss:"Descartar"}},30039(e){e.exports={dismiss:"Lõpeta"}},51514(e){e.exports={dismiss:"Hylkää"}},79224(e){e.exports={dismiss:"Rejeter"}},87048(e){e.exports={dismiss:"התעלם"}},86367(e){e.exports={dismiss:"Odbaci"}},15326(e){e.exports={dismiss:"Elutasítás"}},67752(e,t,n){var r=n(4437),o=n(51390),i=n(32861),s=n(99752),a=n(366),l=n(85254),u=n(33523),c=n(29724),p=n(30039),d=n(51514),f=n(79224),h=n(87048),m=n(86367),g=n(15326),y=n(69070),v=n(28899),b=n(44433),w=n(77332),C=n(11620),_=n(40741),x=n(25040),E=n(21548),S=n(66212),P=n(62380),O=n(89134),T=n(89482),k=n(45628),A=n(34619),I=n(76352),R=n(81969),M=n(52940),D=n(94562),L=n(98077),N=n(19821);e.exports={"ar-AE":r,"bg-BG":o,"cs-CZ":i,"da-DK":s,"de-DE":a,"el-GR":l,"en-US":u,"es-ES":c,"et-EE":p,"fi-FI":d,"fr-FR":f,"he-IL":h,"hr-HR":m,"hu-HU":g,"it-IT":y,"ja-JP":v,"ko-KR":b,"lt-LT":w,"lv-LV":C,"nb-NO":_,"nl-NL":x,"pl-PL":E,"pt-BR":S,"pt-PT":P,"ro-RO":O,"ru-RU":T,"sk-SK":k,"sl-SI":A,"sr-SP":I,"sv-SE":R,"tr-TR":M,"uk-UA":D,"zh-CN":L,"zh-TW":N}},69070(e){e.exports={dismiss:"Ignora"}},28899(e){e.exports={dismiss:"閉じる"}},44433(e){e.exports={dismiss:"무시"}},77332(e){e.exports={dismiss:"Atmesti"}},11620(e){e.exports={dismiss:"Nerādīt"}},2531(e,t,n){var r=n(65121),o=n(66664),i=n(58596),s=n(93273),a=n(487),l=n(4917),u=n(1129),c=n(71795),p=n(88269),d=n(12429),f=n(96078);function h(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}h(e.exports,"useOverlayPosition",()=>r.useOverlayPosition),h(e.exports,"useOverlay",()=>o.useOverlay),h(e.exports,"useOverlayTrigger",()=>i.useOverlayTrigger),h(e.exports,"usePreventScroll",()=>s.usePreventScroll),h(e.exports,"ModalProvider",()=>a.ModalProvider),h(e.exports,"useModalProvider",()=>a.useModalProvider),h(e.exports,"OverlayProvider",()=>a.OverlayProvider),h(e.exports,"OverlayContainer",()=>a.OverlayContainer),h(e.exports,"useModal",()=>a.useModal),h(e.exports,"DismissButton",()=>l.DismissButton),h(e.exports,"ariaHideOutside",()=>u.ariaHideOutside),h(e.exports,"usePopover",()=>c.usePopover),h(e.exports,"useModalOverlay",()=>p.useModalOverlay),h(e.exports,"Overlay",()=>d.Overlay),h(e.exports,"useOverlayFocusContain",()=>d.useOverlayFocusContain),h(e.exports,"UNSAFE_PortalProvider",()=>f.UNSAFE_PortalProvider),h(e.exports,"useUNSAFE_PortalContext",()=>f.useUNSAFE_PortalContext)},40741(e){e.exports={dismiss:"Lukk"}},25040(e){e.exports={dismiss:"Negeren"}},21548(e){e.exports={dismiss:"Zignoruj"}},66212(e){e.exports={dismiss:"Descartar"}},62380(e){e.exports={dismiss:"Dispensar"}},89134(e){e.exports={dismiss:"Revocare"}},89482(e){e.exports={dismiss:"Пропустить"}},45628(e){e.exports={dismiss:"Zrušiť"}},34619(e){e.exports={dismiss:"Opusti"}},76352(e){e.exports={dismiss:"Odbaci"}},81969(e){e.exports={dismiss:"Avvisa"}},52940(e){e.exports={dismiss:"Kapat"}},94562(e){e.exports={dismiss:"Скасувати"}},45348(e,t,n){var r=n(62908),o=n(22155);function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}i(e.exports,"onCloseMap",()=>s),i(e.exports,"useCloseOnScroll",()=>a);const s=new WeakMap;function a(e){let{triggerRef:t,isOpen:n,onClose:i}=e;(0,o.useEffect)(()=>{if(!n||null===i)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!(0,r.nodeContains)(n,t.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let o=i||s.get(t.current);o&&o()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,i,t])}},487(e,t,n){var r=n(96078),o=n(22155),i=n(70316),s=n(84308);function a(e){return e&&e.__esModule?e.default:e}function l(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}l(e.exports,"ModalProvider",()=>c),l(e.exports,"useModalProvider",()=>p),l(e.exports,"OverlayProvider",()=>f),l(e.exports,"OverlayContainer",()=>h),l(e.exports,"useModal",()=>m);const u=a(o).createContext(null);function c(e){let{children:t}=e,n=(0,o.useContext)(u),[r,i]=(0,o.useState)(0),s=(0,o.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return a(o).createElement(u.Provider,{value:s},t)}function p(){let e=(0,o.useContext)(u);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||void 0}}}function d(e){let{modalProviderProps:t}=p();return a(o).createElement("div",{"data-overlay-container":!0,...e,...t})}function f(e){return a(o).createElement(c,null,a(o).createElement(d,e))}function h(e){let t=(0,s.useIsSSR)(),{portalContainer:n=(t?null:document.body),...l}=e,{getContainer:u}=(0,r.useUNSAFE_PortalContext)();if(!e.portalContainer&&u&&(n=u()),a(o).useEffect(()=>{if(null==n?void 0:n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let c=a(o).createElement(f,l);return a(i).createPortal(c,n)}function m(e){let t=(0,o.useContext)(u);if(!t)throw new Error("Modal is not contained within a provider");return(0,o.useEffect)(()=>{if(!(null==e?void 0:e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null==e?void 0:e.isDisabled)}}}},88269(e,t,n){var r,o,i=n(1129),s=n(66664),a=n(12429),l=n(93273),u=n(62908),c=n(22155);function p(e,t,n){let{overlayProps:r,underlayProps:o}=(0,s.useOverlay)({...e,isOpen:t.isOpen,onClose:t.close},n);return(0,l.usePreventScroll)({isDisabled:!t.isOpen}),(0,a.useOverlayFocusContain)(),(0,c.useEffect)(()=>{if(t.isOpen&&n.current)return(0,i.ariaHideOutside)([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:(0,u.mergeProps)(r),underlayProps:o}}r=e.exports,o=()=>p,Object.defineProperty(r,"useModalOverlay",{get:o,set:void 0,enumerable:!0,configurable:!0})},66664(e,t,n){var r,o,i=n(3637),s=n(22155),a=n(35695);r=e.exports,o=()=>u,Object.defineProperty(r,"useOverlay",{get:o,set:void 0,enumerable:!0,configurable:!0});const l=[];function u(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:u=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:p}=e,d=(0,s.useRef)(void 0);(0,s.useEffect)(()=>{if(o&&!l.includes(t))return l.push(t),()=>{let e=l.indexOf(t);e>=0&&l.splice(e,1)}},[o,t]);let f=()=>{l[l.length-1]===t&&n&&n()};(0,a.useInteractOutside)({ref:t,onInteractOutside:u&&o?e=>{p&&!p(e.target)||(l[l.length-1]===t&&(e.stopPropagation(),e.preventDefault()),d.current===t&&f()),d.current=void 0}:void 0,onInteractOutsideStart:e=>{const n=l[l.length-1];d.current=n,p&&!p(e.target)||n===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:h}=(0,a.useFocusWithin)({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!(0,i.isElementInChildOfActiveScope)(e.relatedTarget)&&(p&&!p(e.relatedTarget)||null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||c||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),f())},...h},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},65121(e,t,n){var r,o,i=n(56728),s=n(45348),a=n(62908),l=n(22155),u=n(40999);r=e.exports,o=()=>p,Object.defineProperty(r,"useOverlayPosition",{get:o,set:void 0,enumerable:!0,configurable:!0});let c="undefined"!=typeof document?window.visualViewport:null;function p(e){let{direction:t}=(0,u.useLocale)(),{arrowSize:n,targetRef:r,overlayRef:o,arrowRef:p,scrollRef:f=o,placement:h="bottom",containerPadding:m=12,shouldFlip:g=!0,boundaryElement:y=("undefined"!=typeof document?document.body:null),offset:v=0,crossOffset:b=0,shouldUpdatePosition:w=!0,isOpen:C=!0,onClose:_,maxHeight:x,arrowBoundaryOffset:E=0}=e,[S,P]=(0,l.useState)(null),O=[w,h,o.current,r.current,null==p?void 0:p.current,f.current,m,g,y,v,b,C,t,x,E,n],T=(0,l.useRef)(null==c?void 0:c.scale);(0,l.useEffect)(()=>{C&&(T.current=null==c?void 0:c.scale)},[C]);let k=(0,l.useCallback)(()=>{if(!(!1!==w&&C&&o.current&&r.current&&y))return;if((null==c?void 0:c.scale)!==T.current)return;let e=null;if(f.current&&(0,a.nodeContains)(f.current,document.activeElement)){var s;let t=null===(s=document.activeElement)||void 0===s?void 0:s.getBoundingClientRect(),n=f.current.getBoundingClientRect();var l,u;e={type:"top",offset:(null!==(l=null==t?void 0:t.top)&&void 0!==l?l:0)-n.top},e.offset>n.height/2&&(e.type="bottom",e.offset=(null!==(u=null==t?void 0:t.bottom)&&void 0!==u?u:0)-n.bottom)}let _=o.current;var S,O;!x&&o.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(null!==(O=null===(S=window.visualViewport)||void 0===S?void 0:S.height)&&void 0!==O?O:window.innerHeight)+"px");let k=(0,i.calculatePosition)({placement:d(h,t),overlayNode:o.current,targetNode:r.current,scrollNode:f.current||o.current,padding:m,shouldFlip:g,boundaryElement:y,offset:v,crossOffset:b,maxHeight:x,arrowSize:null!=n?n:(null==p?void 0:p.current)?(0,i.getRect)(p.current,!0).width:0,arrowBoundaryOffset:E});if(k.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(k.position).forEach(e=>_.style[e]=k.position[e]+"px"),_.style.maxHeight=null!=k.maxHeight?k.maxHeight+"px":"",e&&document.activeElement&&f.current){let t=document.activeElement.getBoundingClientRect(),n=f.current.getBoundingClientRect(),r=t[e.type]-n[e.type];f.current.scrollTop+=r-e.offset}P(k)}},O);var A;(0,a.useLayoutEffect)(k,O),A=k,(0,a.useLayoutEffect)(()=>(window.addEventListener("resize",A,!1),()=>{window.removeEventListener("resize",A,!1)}),[A]),(0,a.useResizeObserver)({ref:o,onResize:k}),(0,a.useResizeObserver)({ref:r,onResize:k});let I=(0,l.useRef)(!1);(0,a.useLayoutEffect)(()=>{let e,t=()=>{I.current=!0,clearTimeout(e),e=setTimeout(()=>{I.current=!1},500),k()},n=()=>{I.current&&t()};return null==c||c.addEventListener("resize",t),null==c||c.addEventListener("scroll",n),()=>{null==c||c.removeEventListener("resize",t),null==c||c.removeEventListener("scroll",n)}},[k]);let R=(0,l.useCallback)(()=>{I.current||null==_||_()},[_,I]);var M,D,L;return(0,s.useCloseOnScroll)({triggerRef:r,isOpen:C,onClose:_&&R}),{overlayProps:{style:{position:S?"absolute":"fixed",top:S?void 0:0,left:S?void 0:0,zIndex:1e5,...null==S?void 0:S.position,maxHeight:null!==(M=null==S?void 0:S.maxHeight)&&void 0!==M?M:"100vh"}},placement:null!==(D=null==S?void 0:S.placement)&&void 0!==D?D:null,triggerAnchorPoint:null!==(L=null==S?void 0:S.triggerAnchorPoint)&&void 0!==L?L:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==S?void 0:S.arrowOffsetLeft,top:null==S?void 0:S.arrowOffsetTop}},updatePosition:k}}function d(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}},58596(e,t,n){var r,o,i=n(45348),s=n(22155),a=n(62908);function l(e,t,n){let r,{type:o}=e,{isOpen:l}=t;(0,s.useEffect)(()=>{n&&n.current&&i.onCloseMap.set(n.current,t.close)}),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let u=(0,a.useId)();return{triggerProps:{"aria-haspopup":r,"aria-expanded":l,"aria-controls":l?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}r=e.exports,o=()=>l,Object.defineProperty(r,"useOverlayTrigger",{get:o,set:void 0,enumerable:!0,configurable:!0})},71795(e,t,n){var r,o,i=n(1129),s=n(65121),a=n(66664),l=n(93273),u=n(62908),c=n(22155);function p(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:p,isKeyboardDismissDisabled:d,shouldCloseOnInteractOutside:f,...h}=e,m="SubmenuTrigger"===h.trigger,{overlayProps:g,underlayProps:y}=(0,a.useOverlay)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!p||m,isKeyboardDismissDisabled:d,shouldCloseOnInteractOutside:f},null!=o?o:r),{overlayProps:v,arrowProps:b,placement:w,triggerAnchorPoint:C}=(0,s.useOverlayPosition)({...h,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:p&&!m?t.close:null});return(0,l.usePreventScroll)({isDisabled:p||!t.isOpen}),(0,c.useEffect)(()=>{var e,n;if(t.isOpen&&r.current)return p?(0,i.keepVisible)(null!==(e=null==o?void 0:o.current)&&void 0!==e?e:r.current):(0,i.ariaHideOutside)([null!==(n=null==o?void 0:o.current)&&void 0!==n?n:r.current],{shouldUseInert:!0})},[p,t.isOpen,r,o]),{popoverProps:(0,u.mergeProps)(g,v),arrowProps:b,underlayProps:y,placement:w,triggerAnchorPoint:C}}r=e.exports,o=()=>p,Object.defineProperty(r,"usePopover",{get:o,set:void 0,enumerable:!0,configurable:!0})},93273(e,t,n){var r,o,i=n(62908);r=e.exports,o=()=>u,Object.defineProperty(r,"usePreventScroll",{get:o,set:void 0,enumerable:!0,configurable:!0});const s="undefined"!=typeof document&&window.visualViewport;let a,l=0;function u(e={}){let{isDisabled:t}=e;(0,i.useLayoutEffect)(()=>{if(!t)return l++,1===l&&(a=(0,i.isIOS)()?function(){let e,t=!1,n=document.createElement("style");n.textContent="\n@layer {\n  * {\n    overscroll-behavior: contain;\n  }\n}".trim(),document.head.prepend(n);let r=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=null!=document.activeElement&&(0,i.willOpenKeyboard)(document.activeElement);r.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||d(this,t)};let o=(0,i.chain)(p(document,"touchstart",n=>{let r=n.target;e=(0,i.isScrollable)(r)?r:(0,i.getScrollParent)(r,!0),t=!1;let o=r.ownerDocument.defaultView.getSelection();o&&!o.isCollapsed&&o.containsNode(r,!0)&&(t=!0),n.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(t=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(t=!0)},{passive:!1,capture:!0}),p(document,"touchmove",n=>{2===n.touches.length||t||(e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault():n.preventDefault())},{passive:!1,capture:!0}),p(document,"blur",e=>{let t=e.target,n=e.relatedTarget;if(n&&(0,i.willOpenKeyboard)(n))n.focus({preventScroll:!0}),d(n,(0,i.willOpenKeyboard)(t));else if(!n){var r;let e=null===(r=t.parentElement)||void 0===r?void 0:r.closest("[tabindex]");null==e||e.focus({preventScroll:!0})}},!0));return()=>{o(),n.remove(),HTMLElement.prototype.focus=r}}():function(){let e=window.innerWidth-document.documentElement.clientWidth;return(0,i.chain)(e>0&&("scrollbarGutter"in document.documentElement.style?c(document.documentElement,"scrollbarGutter","stable"):c(document.documentElement,"paddingRight",`${e}px`)),c(document.documentElement,"overflow","hidden"))}()),()=>{l--,0===l&&a()}},[t])}function c(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function p(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function d(e,t){t||!s?f(e):s.addEventListener("resize",()=>f(e),{once:!0})}function f(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=(0,i.getScrollParent)(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;s&&(n=Math.min(n,s.offsetTop+s.height));let o=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+o)),behavior:"smooth"})}}n=e.parentElement}}},98077(e){e.exports={dismiss:"取消"}},19821(e){e.exports={dismiss:"關閉"}},28709(e,t,n){var r=n(22155);function o(e){return e&&e.__esModule?e.default:e}function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}i(e.exports,"SSRProvider",()=>c),i(e.exports,"useIsSSR",()=>y),i(e.exports,"useSSRSafeId",()=>f);const s={prefix:String(Math.round(1e10*Math.random())),current:0},a=o(r).createContext(s),l=o(r).createContext(!1);function u(e){let t=(0,r.useContext)(a),n=d(t===s),[i,u]=(0,r.useState)(!0),c=(0,r.useMemo)(()=>({prefix:t===s?"":`${t.prefix}-${n}`,current:0}),[t,n]);return"undefined"!=typeof document&&(0,r.useLayoutEffect)(()=>{u(!1)},[]),o(r).createElement(a.Provider,{value:c},o(r).createElement(l.Provider,{value:i},e.children))}function c(e){return"function"==typeof o(r).useId?o(r).createElement(o(r).Fragment,null,e.children):o(r).createElement(u,e)}Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);let p=new WeakMap;function d(e=!1){let t=(0,r.useContext)(a),n=(0,r.useRef)(null);if(null===n.current&&!e){var i,s;let e=null===(s=o(r).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===s||null===(i=s.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let n=p.get(e);null==n?p.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,p.delete(e))}n.current=++t.current}return n.current}const f="function"==typeof o(r).useId?function(e){let t=o(r).useId(),[n]=(0,r.useState)(y());return e||`${n?"react-aria":`react-aria${s.prefix}`}-${t}`}:function(e){let t=(0,r.useContext)(a),n=d(!!e),o=`react-aria${t.prefix}`;return e||`${o}-${n}`};function h(){return!1}function m(){return!0}function g(e){return()=>{}}function y(){return"function"==typeof o(r).useSyncExternalStore?o(r).useSyncExternalStore(g,h,m):(0,r.useContext)(l)}},84308(e,t,n){var r=n(28709);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"SSRProvider",()=>r.SSRProvider),o(e.exports,"useSSRSafeId",()=>r.useSSRSafeId),o(e.exports,"useIsSSR",()=>r.useIsSSR)},5229(e,t,n){var r=n(46645),o=n(96214);function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function s(e,t){if(!(0,o.shadowDOM)())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:(0,r.isShadowRoot)(n)?n.host:n.parentNode}return!1}i(e.exports,"nodeContains",()=>s),i(e.exports,"getActiveElement",()=>a),i(e.exports,"getEventTarget",()=>l);const a=(e=document)=>{var t;if(!(0,o.shadowDOM)())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function l(e){return(0,o.shadowDOM)()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}},74944(e,t,n){var r=n(5229),o=n(96214);function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}i(e.exports,"ShadowTreeWalker",()=>s),i(e.exports,"createShadowTreeWalker",()=>a);class s{get currentNode(){return this._currentNode}set currentNode(e){if(!(0,r.nodeContains)(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const t=[];let n=e,o=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const e=n,r=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(r),r.currentNode=o,this._currentSetFor.add(r),n=o=e.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,r.nodeContains)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if("function"==typeof this.filter?n=this.filter(e):(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}const t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if("function"==typeof this.filter?e=this.filter(t):(null===(n=this.filter)||void 0===n?void 0:n.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){const n=e.shadowRoot;if(n){const e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}var t;if("function"==typeof this.filter)return this.filter(e);if(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=r?r:null,this.whatToShow=null!=n?n:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const o=t.shadowRoot;if(o){const e=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}function a(e,t,n,r){return(0,o.shadowDOM)()?new s(e,t,n,r):e.createTreeWalker(t,n,r)}},63780(e,t,n){var r=n(79278),o=n(70316),i=n(22155);function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function a(e,t=!0){let[n,o]=(0,i.useState)(!0),s=n&&t;return(0,r.useLayoutEffect)(()=>{if(s&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,s]),u(e,s,(0,i.useCallback)(()=>o(!1),[])),s}function l(e,t){let[n,r]=(0,i.useState)(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let o="exiting"===n;return u(e,o,(0,i.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),o}function u(e,t,n){(0,r.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,o.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}s(e.exports,"useEnterAnimation",()=>a),s(e.exports,"useExitAnimation",()=>l)},19217(e){var t,n;function r(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}t=e.exports,n=()=>r,Object.defineProperty(t,"chain",{get:n,set:void 0,enumerable:!0,configurable:!0})},37309(e){function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}t(e.exports,"CLEAR_FOCUS_EVENT",()=>n),t(e.exports,"FOCUS_EVENT",()=>r);const n="react-aria-clear-focus",r="react-aria-focus"},46645(e){function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}t(e.exports,"getOwnerDocument",()=>n),t(e.exports,"getOwnerWindow",()=>r),t(e.exports,"isShadowRoot",()=>o);const n=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},r=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window;function o(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}},82346(e){var t,n;t=e.exports,n=()=>u,Object.defineProperty(t,"filterDOMProps",{get:n,set:void 0,enumerable:!0,configurable:!0});const r=new Set(["id"]),o=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),i=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=new Set(["dir","lang","hidden","inert","translate"]),a=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),l=/^(data-.*)$/;function u(e,t={}){let{labelable:n,isLink:u,global:c,events:p=c,propNames:d}=t,f={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&o.has(t)||u&&i.has(t)||c&&s.has(t)||p&&(a.has(t)||t.endsWith("Capture")&&a.has(t.slice(0,-7)))||(null==d?void 0:d.has(t))||l.test(t))&&(f[t]=e[t]);return f}},7579(e){var t,n;function r(e){if(function(){if(null==o){o=!1;try{document.createElement("div").focus({get preventScroll(){return o=!0,!0}})}catch{}}return o}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}t=e.exports,n=()=>r,Object.defineProperty(t,"focusWithoutScrolling",{get:n,set:void 0,enumerable:!0,configurable:!0});let o=null},51555(e){var t,n;function r(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}t=e.exports,n=()=>r,Object.defineProperty(t,"getOffset",{get:n,set:void 0,enumerable:!0,configurable:!0})},73425(e,t,n){var r,o,i=n(39949);function s(e,t){let n=e;for((0,i.isScrollable)(n,t)&&(n=n.parentElement);n&&!(0,i.isScrollable)(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}r=e.exports,o=()=>s,Object.defineProperty(r,"getScrollParent",{get:o,set:void 0,enumerable:!0,configurable:!0})},37744(e,t,n){var r,o,i=n(39949);function s(e,t){const n=[];for(;e&&e!==document.documentElement;)(0,i.isScrollable)(e,t)&&n.push(e),e=e.parentElement;return n}r=e.exports,o=()=>s,Object.defineProperty(r,"getScrollParents",{get:o,set:void 0,enumerable:!0,configurable:!0})},79281(e,t,n){var r,o,i=n(22155);function s(e){const t=i.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}r=e.exports,o=()=>s,Object.defineProperty(r,"inertValue",{get:o,set:void 0,enumerable:!0,configurable:!0})},3876(e,t,n){var r,o,i=n(46645);r=e.exports,o=()=>a,Object.defineProperty(r,"isElementVisible",{get:o,set:void 0,enumerable:!0,configurable:!0});const s="undefined"!=typeof Element&&"checkVisibility"in Element.prototype;function a(e,t){return s?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){const t=(0,i.getOwnerWindow)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o="none"!==n&&"hidden"!==r&&"collapse"!==r;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||a(e.parentElement,e))}},25610(e,t,n){var r=n(3876);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"isFocusable",()=>l),o(e.exports,"isTabbable",()=>u);const i=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],s=i.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";i.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const a=i.join(':not([hidden]):not([tabindex="-1"]),');function l(e){return e.matches(s)&&(0,r.isElementVisible)(e)&&!c(e)}function u(e){return e.matches(a)&&(0,r.isElementVisible)(e)&&!c(e)}function c(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}},39949(e){var t,n;function r(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}t=e.exports,n=()=>r,Object.defineProperty(t,"isScrollable",{get:n,set:void 0,enumerable:!0,configurable:!0})},16209(e,t,n){var r=n(73379);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function i(e){return!(""!==e.pointerType||!e.isTrusted)||((0,r.isAndroid)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!(0,r.isAndroid)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}o(e.exports,"isVirtualClick",()=>i),o(e.exports,"isVirtualPointerEvent",()=>s)},91673(e,t,n){var r=n(73379);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function i(e){return(0,r.isMac)()?e.metaKey:e.ctrlKey}o(e.exports,"isCtrlKeyPressed",()=>i),o(e.exports,"willOpenKeyboard",()=>a);const s=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function a(e){return e instanceof HTMLInputElement&&!s.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}},62908(e,t,n){var r=n(99684),o=n(19217),i=n(74944),s=n(5229),a=n(46645),l=n(95076),u=n(39684),c=n(82346),p=n(7579),d=n(51555),f=n(91798),h=n(89552),m=n(32210),g=n(3357),y=n(82206),v=n(33469),b=n(72975),w=n(92153),C=n(79278),_=n(57901),x=n(40029),E=n(73425),S=n(37744),P=n(39949),O=n(1094),T=n(52803),k=n(73379),A=n(19617),I=n(88233),R=n(21976),M=n(16209),D=n(80824),L=n(73667),N=n(84770),V=n(15816),j=n(18968),F=n(79281),z=n(37309),B=n(91673),H=n(63780),U=n(25610),q=n(75618);function W(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}W(e.exports,"useId",()=>r.useId),W(e.exports,"mergeIds",()=>r.mergeIds),W(e.exports,"useSlotId",()=>r.useSlotId),W(e.exports,"chain",()=>o.chain),W(e.exports,"createShadowTreeWalker",()=>i.createShadowTreeWalker),W(e.exports,"ShadowTreeWalker",()=>i.ShadowTreeWalker),W(e.exports,"getActiveElement",()=>s.getActiveElement),W(e.exports,"getEventTarget",()=>s.getEventTarget),W(e.exports,"nodeContains",()=>s.nodeContains),W(e.exports,"getOwnerDocument",()=>a.getOwnerDocument),W(e.exports,"getOwnerWindow",()=>a.getOwnerWindow),W(e.exports,"isShadowRoot",()=>a.isShadowRoot),W(e.exports,"mergeProps",()=>l.mergeProps),W(e.exports,"mergeRefs",()=>u.mergeRefs),W(e.exports,"filterDOMProps",()=>c.filterDOMProps),W(e.exports,"focusWithoutScrolling",()=>p.focusWithoutScrolling),W(e.exports,"getOffset",()=>d.getOffset),W(e.exports,"openLink",()=>f.openLink),W(e.exports,"getSyntheticLinkProps",()=>f.getSyntheticLinkProps),W(e.exports,"useSyntheticLinkProps",()=>f.useSyntheticLinkProps),W(e.exports,"RouterProvider",()=>f.RouterProvider),W(e.exports,"shouldClientNavigate",()=>f.shouldClientNavigate),W(e.exports,"useRouter",()=>f.useRouter),W(e.exports,"useLinkProps",()=>f.useLinkProps),W(e.exports,"handleLinkClick",()=>f.handleLinkClick),W(e.exports,"runAfterTransition",()=>h.runAfterTransition),W(e.exports,"useDrag1D",()=>m.useDrag1D),W(e.exports,"useGlobalListeners",()=>g.useGlobalListeners),W(e.exports,"useLabels",()=>y.useLabels),W(e.exports,"useObjectRef",()=>v.useObjectRef),W(e.exports,"useUpdateEffect",()=>b.useUpdateEffect),W(e.exports,"useUpdateLayoutEffect",()=>w.useUpdateLayoutEffect),W(e.exports,"useLayoutEffect",()=>C.useLayoutEffect),W(e.exports,"useResizeObserver",()=>_.useResizeObserver),W(e.exports,"useSyncRef",()=>x.useSyncRef),W(e.exports,"getScrollParent",()=>E.getScrollParent),W(e.exports,"getScrollParents",()=>S.getScrollParents),W(e.exports,"isScrollable",()=>P.isScrollable),W(e.exports,"useViewportSize",()=>O.useViewportSize),W(e.exports,"useDescription",()=>T.useDescription),W(e.exports,"isMac",()=>k.isMac),W(e.exports,"isIPhone",()=>k.isIPhone),W(e.exports,"isIPad",()=>k.isIPad),W(e.exports,"isIOS",()=>k.isIOS),W(e.exports,"isAppleDevice",()=>k.isAppleDevice),W(e.exports,"isWebKit",()=>k.isWebKit),W(e.exports,"isChrome",()=>k.isChrome),W(e.exports,"isAndroid",()=>k.isAndroid),W(e.exports,"isFirefox",()=>k.isFirefox),W(e.exports,"useEvent",()=>A.useEvent),W(e.exports,"useValueEffect",()=>I.useValueEffect),W(e.exports,"scrollIntoView",()=>R.scrollIntoView),W(e.exports,"scrollIntoViewport",()=>R.scrollIntoViewport),W(e.exports,"clamp",()=>q.clamp),W(e.exports,"snapValueToStep",()=>q.snapValueToStep),W(e.exports,"isVirtualClick",()=>M.isVirtualClick),W(e.exports,"isVirtualPointerEvent",()=>M.isVirtualPointerEvent),W(e.exports,"useEffectEvent",()=>D.useEffectEvent),W(e.exports,"useDeepMemo",()=>L.useDeepMemo),W(e.exports,"useFormReset",()=>N.useFormReset),W(e.exports,"useLoadMore",()=>V.useLoadMore),W(e.exports,"useLoadMoreSentinel",()=>j.useLoadMoreSentinel),W(e.exports,"UNSTABLE_useLoadMoreSentinel",()=>j.useLoadMoreSentinel),W(e.exports,"inertValue",()=>F.inertValue),W(e.exports,"CLEAR_FOCUS_EVENT",()=>z.CLEAR_FOCUS_EVENT),W(e.exports,"FOCUS_EVENT",()=>z.FOCUS_EVENT),W(e.exports,"isCtrlKeyPressed",()=>B.isCtrlKeyPressed),W(e.exports,"willOpenKeyboard",()=>B.willOpenKeyboard),W(e.exports,"useEnterAnimation",()=>H.useEnterAnimation),W(e.exports,"useExitAnimation",()=>H.useExitAnimation),W(e.exports,"isFocusable",()=>U.isFocusable),W(e.exports,"isTabbable",()=>U.isTabbable)},95076(e,t,n){var r,o,i=n(19217),s=n(99684),a=n(39684),l=n(89901);function u(e){return e&&e.__esModule?e.default:e}function c(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=(0,i.chain)(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=(0,s.mergeIds)(n,o):"ref"===e&&n&&o?t.ref=(0,a.mergeRefs)(n,o):t[e]=void 0!==o?o:n:t[e]=u(l)(n,o)}}return t}r=e.exports,o=()=>c,Object.defineProperty(r,"mergeProps",{get:o,set:void 0,enumerable:!0,configurable:!0})},39684(e){var t,n;function r(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1;const r=e.map(e=>{const r=o(e,t);return n||(n="function"==typeof r),r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():o(e[n],null)})}}}function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}t=e.exports,n=()=>r,Object.defineProperty(t,"mergeRefs",{get:n,set:void 0,enumerable:!0,configurable:!0})},91798(e,t,n){var r=n(7579),o=n(73379),i=n(22155);function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}s(e.exports,"RouterProvider",()=>l),s(e.exports,"shouldClientNavigate",()=>c),s(e.exports,"openLink",()=>p),s(e.exports,"useRouter",()=>u),s(e.exports,"useSyntheticLinkProps",()=>f),s(e.exports,"getSyntheticLinkProps",()=>h),s(e.exports,"useLinkProps",()=>m),s(e.exports,"handleLinkClick",()=>g);const a=(0,i.createContext)({isNative:!0,open:function(e,t){d(e,e=>p(e,t))},useHref:e=>e});function l(e){let{children:t,navigate:n,useHref:r}=e,o=(0,i.useMemo)(()=>({isNative:!1,open:(e,t,r,o)=>{d(e,e=>{c(e,t)?n(r,o):p(e,t)})},useHref:r||(e=>e)}),[n,r]);return(s=i,s&&s.__esModule?s.default:s).createElement(a.Provider,{value:o},t);var s}function u(){return(0,i.useContext)(a)}function c(e,t){let n=e.getAttribute("target");return!(n&&"_self"!==n||e.origin!==location.origin||e.hasAttribute("download")||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)}function p(e,t,n=!0){var i,s;let{metaKey:a,ctrlKey:l,altKey:u,shiftKey:c}=t;(0,o.isFirefox)()&&(null===(s=window.event)||void 0===s||null===(i=s.type)||void 0===i?void 0:i.startsWith("key"))&&"_blank"===e.target&&((0,o.isMac)()?a=!0:l=!0);let d=(0,o.isWebKit)()&&(0,o.isMac)()&&!(0,o.isIPad)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:l,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:a,ctrlKey:l,altKey:u,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});p.isOpening=n,(0,r.focusWithoutScrolling)(e),e.dispatchEvent(d),p.isOpening=!1}function d(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function f(e){var t;const n=u().useHref(null!==(t=e.href)&&void 0!==t?t:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function h(e){return{"data-href":e.href,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function m(e){var t;const n=u().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}function g(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&c(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}p.isOpening=!1},73379(e){function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function n(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function o(e){let t=null;return()=>(null==t&&(t=e()),t)}t(e.exports,"isMac",()=>i),t(e.exports,"isIPhone",()=>s),t(e.exports,"isIPad",()=>a),t(e.exports,"isIOS",()=>l),t(e.exports,"isAppleDevice",()=>u),t(e.exports,"isWebKit",()=>c),t(e.exports,"isChrome",()=>p),t(e.exports,"isAndroid",()=>d),t(e.exports,"isFirefox",()=>f);const i=o(function(){return r(/^Mac/i)}),s=o(function(){return r(/^iPhone/i)}),a=o(function(){return r(/^iPad/i)||i()&&navigator.maxTouchPoints>1}),l=o(function(){return s()||a()}),u=o(function(){return i()||l()}),c=o(function(){return n(/AppleWebKit/i)&&!p()}),p=o(function(){return n(/Chrome/i)}),d=o(function(){return n(/Android/i)}),f=o(function(){return n(/Firefox/i)})},89552(e){var t,n;t=e.exports,n=()=>s,Object.defineProperty(t,"runAfterTransition",{get:n,set:void 0,enumerable:!0,configurable:!0});let r=new Map,o=new Set;function i(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let i=r.get(n.target);if(i&&(i.delete(n.propertyName),0===i.size&&(n.target.removeEventListener("transitioncancel",t),r.delete(n.target)),0===r.size)){for(let e of o)e();o.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let o=r.get(n.target);o||(o=new Set,r.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function s(e){requestAnimationFrame(()=>{!function(){for(const[e]of r)"isConnected"in e&&!e.isConnected&&r.delete(e)}(),0===r.size?e():o.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i))},21976(e,t,n){var r=n(37744),o=n(5229);function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function s(e,t){let n=a(e,t,"left"),r=a(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:p,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:h}=getComputedStyle(e),m=s+parseInt(c,10),g=l+parseInt(u,10),y=m+e.clientWidth,v=g+e.clientHeight,b=parseInt(p,10)||0,w=parseInt(f,10)||0,C=parseInt(d,10)||0,_=parseInt(h,10)||0;n<=s+_?s=n-parseInt(c,10)-_:n+o>y-C&&(s+=n+o-y+C),r<=g+b?l=r-parseInt(u,10)-b:r+i>v-w&&(l+=r+i-v+w),e.scrollLeft=s,e.scrollTop=l}function a(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if((0,o.nodeContains)(t.offsetParent,e)){i-=e[r];break}t=t.offsetParent}return i}function l(e,t){if(e&&(0,o.nodeContains)(document,e)){let o=document.scrollingElement||document.documentElement,u="hidden"===window.getComputedStyle(o).overflow;if(u){let t=(0,r.getScrollParents)(e);u||t.push(o);for(let n of t)s(n,e)}else{var n;let{left:r,top:o}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:s,top:u}=e.getBoundingClientRect();var i,a,l;(Math.abs(r-s)>1||Math.abs(o-u)>1)&&(null==t||null===(a=t.containingElement)||void 0===a||null===(i=a.scrollIntoView)||void 0===i||i.call(a,{block:"center",inline:"center"}),null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"}))}}}i(e.exports,"scrollIntoView",()=>s),i(e.exports,"scrollIntoViewport",()=>l)},73667(e,t,n){var r,o,i=n(22155);function s(e,t){let n=(0,i.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}r=e.exports,o=()=>s,Object.defineProperty(r,"useDeepMemo",{get:o,set:void 0,enumerable:!0,configurable:!0})},52803(e,t,n){var r,o,i=n(79278),s=n(22155);r=e.exports,o=()=>u,Object.defineProperty(r,"useDescription",{get:o,set:void 0,enumerable:!0,configurable:!0});let a=0;const l=new Map;function u(e){let[t,n]=(0,s.useState)();return(0,i.useLayoutEffect)(()=>{if(!e)return;let t=l.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+a++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},l.set(e,t)}return t.refCount++,()=>{t&&0===--t.refCount&&(t.element.remove(),l.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}},32210(e,t,n){var r,o,i=n(51555),s=n(5229),a=n(22155);r=e.exports,o=()=>u,Object.defineProperty(r,"useDrag1D",{get:o,set:void 0,enumerable:!0,configurable:!0});const l=[];function u(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:u,onPositionChange:c,onIncrement:p,onDecrement:d,onIncrementToMax:f,onDecrementToMin:h,onCollapseToggle:m}=e,g=e=>{let o=(0,i.getOffset)(t.current,n,r),s=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-s:s-o},y=(0,a.useRef)(!1),v=(0,a.useRef)(0),b=(0,a.useRef)({onPositionChange:c,onDrag:u});b.current.onDrag=u,b.current.onPositionChange=c;let w=e=>{e.preventDefault();let t=g(e);y.current||(y.current=!0,b.current.onDrag&&b.current.onDrag(!0),b.current.onPositionChange&&b.current.onPositionChange(t)),v.current!==t&&(v.current=t,c&&c(t))},C=e=>{const t=e.target;y.current=!1;let n=g(e);b.current.onDrag&&b.current.onDrag(!1),b.current.onPositionChange&&b.current.onPositionChange(n),l.splice(l.indexOf(t),1),window.removeEventListener("mouseup",C,!1),window.removeEventListener("mousemove",w,!1)};return{onMouseDown:e=>{const t=e.currentTarget;l.some(e=>(0,s.nodeContains)(t,e))||(l.push(t),window.addEventListener("mousemove",w,!1),window.addEventListener("mouseup",C,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),d&&!n?d():p&&n&&p());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),d&&!n?d():p&&n&&p());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),p&&!n?p():d&&n&&d());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),p&&!n?p():d&&n&&d());break;case"Home":e.preventDefault(),h&&h();break;case"End":e.preventDefault(),f&&f();break;case"Enter":e.preventDefault(),m&&m()}}}}},80824(e,t,n){var r,o,i,s=n(79278),a=n(22155);r=e.exports,o=()=>c,Object.defineProperty(r,"useEffectEvent",{get:o,set:void 0,enumerable:!0,configurable:!0});const l=null!==(i=(u=a,u&&u.__esModule?u.default:u).useInsertionEffect)&&void 0!==i?i:s.useLayoutEffect;var u;function c(e){const t=(0,a.useRef)(null);return l(()=>{t.current=e},[e]),(0,a.useCallback)((...e)=>{const n=t.current;return null==n?void 0:n(...e)},[])}},19617(e,t,n){var r,o,i=n(80824),s=n(22155);function a(e,t,n,r){let o=(0,i.useEffectEvent)(n),a=null==n;(0,s.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,o,r),()=>{n.removeEventListener(t,o,r)}},[e,t,r,a])}r=e.exports,o=()=>a,Object.defineProperty(r,"useEvent",{get:o,set:void 0,enumerable:!0,configurable:!0})},84770(e,t,n){var r,o,i=n(80824),s=n(22155);function a(e,t,n){let r=(0,i.useEffectEvent)(()=>{n&&n(t)});(0,s.useEffect)(()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",r),()=>{null==n||n.removeEventListener("reset",r)}},[e])}r=e.exports,o=()=>a,Object.defineProperty(r,"useFormReset",{get:o,set:void 0,enumerable:!0,configurable:!0})},3357(e,t,n){var r,o,i=n(22155);function s(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,i.useCallback)((t,n,r,o)=>{var i;let s=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,s,o),e.current.delete(r)},[]),r=(0,i.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,i.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}r=e.exports,o=()=>s,Object.defineProperty(r,"useGlobalListeners",{get:o,set:void 0,enumerable:!0,configurable:!0})},99684(e,t,n){var r=n(79278),o=n(88233),i=n(22155),s=n(84308);function a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(e.exports,"useId",()=>p),a(e.exports,"mergeIds",()=>d),a(e.exports,"useSlotId",()=>f);let l,u=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=new Map;function p(e){let[t,n]=(0,i.useState)(e),o=(0,i.useRef)(null),a=(0,s.useSSRSafeId)(t),p=(0,i.useRef)(null);if(l&&l.register(p,a),u){const e=c.get(a);e&&!e.includes(o)?e.push(o):c.set(a,[o])}return(0,r.useLayoutEffect)(()=>{let e=a;return()=>{l&&l.unregister(p),c.delete(e)}},[a]),(0,i.useEffect)(()=>{let e=o.current;return e&&n(e),()=>{e&&(o.current=null)}}),a}function d(e,t){if(e===t)return e;let n=c.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=c.get(t);return r?(r.forEach(t=>t.current=e),e):t}function f(e=[]){let t=p(),[n,s]=(0,o.useValueEffect)(t),a=(0,i.useCallback)(()=>{s(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,s]);return(0,r.useLayoutEffect)(a,[t,a,...e]),n}"undefined"!=typeof FinalizationRegistry&&(l=new FinalizationRegistry(e=>{c.delete(e)}))},82206(e,t,n){var r,o,i=n(99684);function s(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=(0,i.useId)(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}r=e.exports,o=()=>s,Object.defineProperty(r,"useLabels",{get:o,set:void 0,enumerable:!0,configurable:!0})},79278(e,t,n){var r,o,i=n(22155);r=e.exports,o=()=>s,Object.defineProperty(r,"useLayoutEffect",{get:o,set:void 0,enumerable:!0,configurable:!0});const s="undefined"!=typeof document?(a=i,a&&a.__esModule?a.default:a).useLayoutEffect:()=>{};var a},15816(e,t,n){var r,o,i=n(19617),s=n(79278),a=n(22155);function l(e,t){let{isLoading:n,onLoadMore:r,scrollOffset:o=1,items:l}=e,u=(0,a.useRef)(n),c=(0,a.useRef)(e),p=(0,a.useCallback)(()=>{t.current&&!u.current&&r&&t.current.scrollHeight-t.current.scrollTop-t.current.clientHeight<t.current.clientHeight*o&&(u.current=!0,r())},[r,t,o]),d=(0,a.useRef)(l);(0,s.useLayoutEffect)(()=>{e!==c.current&&(u.current=n,c.current=e),(null==t?void 0:t.current)&&!u.current&&r&&(!l||l!==d.current)&&t.current.clientHeight===t.current.scrollHeight&&(u.current=!0,null==r||r()),d.current=l},[n,r,e,t,l]),(0,i.useEvent)(t,"scroll",p)}r=e.exports,o=()=>l,Object.defineProperty(r,"useLoadMore",{get:o,set:void 0,enumerable:!0,configurable:!0})},18968(e,t,n){var r,o,i=n(73425),s=n(80824),a=n(79278),l=n(22155);function u(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1}=e,u=(0,l.useRef)(null),c=(0,s.useEffectEvent)(e=>{for(let t of e)t.isIntersecting&&r&&r()});(0,a.useLayoutEffect)(()=>(t.current&&(u.current=new IntersectionObserver(c,{root:(0,i.getScrollParent)(null==t?void 0:t.current),rootMargin:`0px ${100*o}% ${100*o}% ${100*o}%`}),u.current.observe(t.current)),()=>{u.current&&u.current.disconnect()}),[n,t,o])}r=e.exports,o=()=>u,Object.defineProperty(r,"useLoadMoreSentinel",{get:o,set:void 0,enumerable:!0,configurable:!0})},33469(e,t,n){var r,o,i=n(22155);function s(e){const t=(0,i.useRef)(null),n=(0,i.useRef)(void 0),r=(0,i.useCallback)(t=>{if("function"==typeof e){const n=e,r=n(t);return()=>{"function"==typeof r?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,i.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))}}),[r])}r=e.exports,o=()=>s,Object.defineProperty(r,"useObjectRef",{get:o,set:void 0,enumerable:!0,configurable:!0})},57901(e,t,n){var r,o,i=n(80824),s=n(22155);function a(e){const{ref:t,box:n,onResize:r}=e;let o=(0,i.useEffectEvent)(r);(0,s.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)};{const t=new window.ResizeObserver(e=>{e.length&&o()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}},[t,n])}r=e.exports,o=()=>a,Object.defineProperty(r,"useResizeObserver",{get:o,set:void 0,enumerable:!0,configurable:!0})},40029(e,t,n){var r,o,i=n(79278);function s(e,t){(0,i.useLayoutEffect)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}r=e.exports,o=()=>s,Object.defineProperty(r,"useSyncRef",{get:o,set:void 0,enumerable:!0,configurable:!0})},72975(e,t,n){var r,o,i=n(80824),s=n(22155);function a(e,t){const n=(0,s.useRef)(!0),r=(0,s.useRef)(null);let o=(0,i.useEffectEvent)(e);(0,s.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,s.useEffect)(()=>{let e=r.current;n.current?n.current=!1:e&&!t.some((t,n)=>!Object.is(t,e[n]))||o(),r.current=t},t)}r=e.exports,o=()=>a,Object.defineProperty(r,"useUpdateEffect",{get:o,set:void 0,enumerable:!0,configurable:!0})},92153(e,t,n){var r,o,i=n(79278),s=n(22155);function a(e,t){const n=(0,s.useRef)(!0),r=(0,s.useRef)(null);(0,i.useLayoutEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,i.useLayoutEffect)(()=>{n.current?n.current=!1:r.current&&!t.some((e,t)=>!Object.is(e,r[t]))||e(),r.current=t},t)}r=e.exports,o=()=>a,Object.defineProperty(r,"useUpdateLayoutEffect",{get:o,set:void 0,enumerable:!0,configurable:!0})},88233(e,t,n){var r,o,i=n(79278),s=n(22155);function a(e){let[t,n]=(0,s.useState)(e),r=(0,s.useRef)(t),o=(0,s.useRef)(null),a=(0,s.useRef)(()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:r.current===e.value?a.current():n(e.value)});(0,i.useLayoutEffect)(()=>{r.current=t,o.current&&a.current()});let l=(0,s.useCallback)(e=>{o.current=e(r.current),a.current()},[a]);return[t,l]}r=e.exports,o=()=>a,Object.defineProperty(r,"useValueEffect",{get:o,set:void 0,enumerable:!0,configurable:!0})},1094(e,t,n){var r,o,i=n(91673),s=n(22155),a=n(84308);r=e.exports,o=()=>u,Object.defineProperty(r,"useViewportSize",{get:o,set:void 0,enumerable:!0,configurable:!0});let l="undefined"!=typeof document&&window.visualViewport;function u(){let e=(0,a.useIsSSR)(),[t,n]=(0,s.useState)(()=>e?{width:0,height:0}:c());return(0,s.useEffect)(()=>{let e,t=e=>{n(t=>e.width===t.width&&e.height===t.height?t:e)},r=()=>{l&&l.scale>1||t(c())},o=n=>{l&&l.scale>1||(0,i.willOpenKeyboard)(n.target)&&(e=requestAnimationFrame(()=>{document.activeElement&&(0,i.willOpenKeyboard)(document.activeElement)||t({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return t(c()),window.addEventListener("blur",o,!0),l?l.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(e),window.removeEventListener("blur",o,!0),l?l.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function c(){return{width:l?l.width*l.scale:document.documentElement.clientWidth,height:l?l.height*l.scale:document.documentElement.clientHeight}}},70658(e,t,n){var r=n(62908),o=n(22155),i=n(35695);function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}s(e.exports,"useVisuallyHidden",()=>l),s(e.exports,"VisuallyHidden",()=>u);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e={}){let{style:t,isFocusable:n}=e,[r,s]=(0,o.useState)(!1),{focusWithinProps:l}=(0,i.useFocusWithin)({isDisabled:!n,onFocusWithinChange:e=>s(e)});return{visuallyHiddenProps:{...l,style:(0,o.useMemo)(()=>r?t:t?{...a,...t}:a,[r])}}}function u(e){let{children:t,elementType:n="div",isFocusable:i,style:s,...a}=e,{visuallyHiddenProps:u}=l(e);return(c=o,c&&c.__esModule?c.default:c).createElement(n,(0,r.mergeProps)(a,u),t);var c}},4247(e,t,n){var r=n(70658);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"useVisuallyHidden",()=>r.useVisuallyHidden),o(e.exports,"VisuallyHidden",()=>r.VisuallyHidden)},96214(e){function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}t(e.exports,"enableTableNestedRows",()=>o),t(e.exports,"tableNestedRows",()=>i),t(e.exports,"enableShadowDOM",()=>s),t(e.exports,"shadowDOM",()=>a);let n=!1,r=!1;function o(){n=!0}function i(){return n}function s(){r=!0}function a(){return r}},75618(e,t,n){var r=n(19302),o=n(86339);function i(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}i(e.exports,"useControlledState",()=>r.useControlledState),i(e.exports,"clamp",()=>o.clamp),i(e.exports,"snapValueToStep",()=>o.snapValueToStep),i(e.exports,"toFixedNumber",()=>o.toFixedNumber)},86339(e){function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function n(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function r(e,t){let n=e,r=0,o=t.toString(),i=o.toLowerCase().indexOf("e-");if(i>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let e=o.indexOf(".");e>=0&&(r=o.length-e)}if(r>0){let e=Math.pow(10,r);n=Math.round(n*e)/e}return n}function o(e,t,n,o){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%o,s=r(2*Math.abs(i)>=o?e+Math.sign(i)*(o-Math.abs(i)):e-i,o);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(r(n/o,o))*o):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(r((n-t)/o,o))*o),s=r(s,o),s}function i(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}t(e.exports,"clamp",()=>n),t(e.exports,"snapValueToStep",()=>o),t(e.exports,"toFixedNumber",()=>i)},19302(e,t,n){var r,o,i,s=n(22155);function a(e){return e&&e.__esModule?e.default:e}r=e.exports,o=()=>u,Object.defineProperty(r,"useControlledState",{get:o,set:void 0,enumerable:!0,configurable:!0});const l="undefined"!=typeof document?null!==(i=a(s).useInsertionEffect)&&void 0!==i?i:a(s).useLayoutEffect:()=>{};function u(e,t,n){let[r,o]=(0,s.useState)(e||t),i=(0,s.useRef)(r),a=(0,s.useRef)(void 0!==e),u=void 0!==e;(0,s.useEffect)(()=>{a.current,a.current=u},[u]);let c=u?e:r;l(()=>{i.current=c});let[,p]=(0,s.useReducer)(()=>({}),{}),d=(0,s.useCallback)((e,...t)=>{let r="function"==typeof e?e(i.current):e;Object.is(i.current,r)||(i.current=r,o(r),p(),null==n||n(r,...t))},[n]);return[c,d]}},38126(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o;n.d(t,{AO:()=>f,B6:()=>k,G3:()=>ae,Gh:()=>j,HC:()=>Z,HS:()=>F,HW:()=>se,Oi:()=>u,Pq:()=>U,RO:()=>A,Rr:()=>h,Sk:()=>Y,TM:()=>l,V2:()=>G,VV:()=>K,aE:()=>pe,o1:()=>M,pX:()=>X,pb:()=>I,rc:()=>o,ro:()=>C,sC:()=>s,tH:()=>q,tW:()=>T,ue:()=>b,v6:()=>Q,yD:()=>V,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function s(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map((e,t)=>m(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let s=u(null==r?t.length-1:r),a=o.Pop,l=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function p(){return t[s]}function m(e,n,r){void 0===n&&(n=null);let o=d(t?p().pathname:"/",e,n,r);return c("/"===o.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),o}function g(e){return"string"==typeof e?e:f(e)}return{get index(){return s},get action(){return a},get location(){return p()},createHref:g,createURL:e=>new URL(g(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?h(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a=o.Push;let r=m(e,n);s+=1,t.splice(s,t.length,r),i&&l&&l({action:a,location:r,delta:1})},replace(e,n){a=o.Replace;let r=m(e,n);t[s]=r,i&&l&&l({action:a,location:r,delta:0})},go(e){a=o.Pop;let n=u(s+e),r=t[n];s=n,l&&l({action:a,location:r,delta:e})},listen:e=>(l=e,()=>{l=null})}}function a(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return d("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:f(t)},null,e)}function l(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=h(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),d("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:f(t))},function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,o){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,s){void 0===s&&(s={});let{window:a=document.defaultView,v5Compat:l=!1}=s,c=a.history,h=o.Pop,m=null,g=y();function y(){return(c.state||{idx:null}).idx}function v(){h=o.Pop;let e=y(),t=null==e?null:e-g;g=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:f(e);return n=n.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,c.replaceState(r({},c.state,{idx:g}),""));let w={get action(){return h},get location(){return e(a,c)},listen(e){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(i,v),m=e,()=>{a.removeEventListener(i,v),m=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=o.Push;let r=d(w.location,e,t);n&&n(r,e),g=y()+1;let i=p(r,g),s=w.createHref(r);try{c.pushState(i,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(s)}l&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=o.Replace;let r=d(w.location,e,t);n&&n(r,e),g=y();let i=p(r,g),s=w.createHref(r);c.replaceState(i,"",s),l&&m&&m({action:h,location:w.location,delta:0})},go:e=>c.go(e)};return w}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));const y=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n,o){return void 0===n&&(n=[]),void 0===o&&(o={}),e.map((e,i)=>{let s=[...n,String(i)],a="string"==typeof e.id?e.id:s.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!o[a],'Found a route id collision on id "'+a+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:a});return o[a]=n,n}{let n=r({},e,t(e),{id:a,children:void 0});return o[a]=n,e.children&&(n.children=v(e.children,t,s,o)),n}})}function b(e,t,n){return void 0===n&&(n="/"),w(e,t,n,!1)}function w(e,t,n,r){let o=I(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=_(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let s=null;for(let e=0;null==s&&e<i.length;++e){let t=A(o);s=O(i[e],t,r)}return s}function C(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function _(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(u(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=F([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),_(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:P(a,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of x(e.path))o(e,t,n);else o(e,t)}),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=x(r.join("/")),a=[];return a.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}const E=/^:[\w-]+$/,S=e=>"*"===e;function P(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter(e=>!S(e)).reduce((e,t)=>e+(E.test(t)?3:""===t?1:10),r)}function O(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=k({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u),p=a.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=k({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:F([i,c.pathname]),pathnameBase:z(F([i,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(i=F([i,c.pathnameBase]))}return s}function T(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(c(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",o=e=>null==e?"":"string"==typeof e?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&"*"===e)return o(t["*"]);const i=e.match(/^:([\w-]+)(\??)$/);if(i){const[,e,n]=i;let r=t[e];return u("?"===n||null!=r,'Missing ":'+e+'" param'),o(r)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function k(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=a[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:s,pattern:e}}function A(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const R=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function M(e,t){void 0===t&&(t="/");let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?h(e):e;if(r)if(s=r,R.test(s))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),c(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?D(r.substring(1),"/"):D(r,t)}else n=t;var s;return{pathname:n,search:B(o),hash:H(i)}}function D(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function L(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function N(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function V(e,t){let n=N(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function j(e,t,n,o){let i;void 0===o&&(o=!1),"string"==typeof e?i=h(e):(i=r({},e),u(!i.pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),u(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),u(!i.search||!i.search.includes("#"),L("#","search","hash",i)));let s,a=""===e||""===i.pathname,l=a?"/":i.pathname;if(null==l)s=n;else{let e=t.length-1;if(!o&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=M(i,s),p=l&&"/"!==l&&l.endsWith("/"),d=(a||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!p&&!d||(c.pathname+="/"),c}const F=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",H=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",U=function(e,t){void 0===t&&(t={});let n="number"==typeof t?{status:t}:t,o=new Headers(n.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),r({},n,{headers:o}))};class q extends Error{}class W{constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],u(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>n=t),this.controller=new AbortController;let r=()=>n(new q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(n,e,void 0,t),t=>this.onSettle(n,e,t));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach(n=>n(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise(t=>{this.subscribe(r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return u(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:$(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function $(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Q=function(e,t){return void 0===t&&(t={}),new W(e,"number"==typeof t?{status:t}:t)},G=function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let o=new Headers(n.headers);return o.set("Location",e),new Response(null,r({},n,{headers:o}))},Y=(e,t)=>{let n=G(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n},Z=(e,t)=>{let n=G(e,t);return n.headers.set("X-Remix-Replace","true"),n};class K{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function X(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const J=["post","put","patch","delete"],ee=new Set(J),te=["get",...J],ne=new Set(te),re=new Set([301,302,303,307,308]),oe=new Set([307,308]),ie={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},se={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ae={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ue=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions";function pe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,i=!n;let s;if(u(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;s=e=>({hasErrorBoundary:t(e)})}else s=ue;let a,l,p,f={},h=v(e.routes,s,void 0,f),m=e.basename||"/",_=e.dataStrategy||Ce,x=e.patchRoutesOnNavigation,E=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,P=new Set,O=null,T=null,k=null,A=null!=e.hydrationData,R=b(h,e.history.location,m),M=!1,D=null;if(null==R&&!x){let t=Me(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Re(h);R=n,D={[r.id]:t}}if(R&&!e.hydrationData&&ct(R,h,e.history.location.pathname).active&&(R=null),R)if(R.some(e=>e.route.lazy))l=!1;else if(R.some(e=>e.route.loader))if(E.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=R.findIndex(e=>void 0!==n[e.route.id]);l=R.slice(0,e+1).every(e=>!ge(e.route,t,n))}else l=R.every(e=>!ge(e.route,t,n))}else l=null!=e.hydrationData;else l=!0;else if(l=!1,R=[],E.v7_partialHydration){let t=ct(null,h,e.history.location.pathname);t.active&&t.matches&&(M=!0,R=t.matches)}let L,N,V={historyAction:e.history.action,location:e.history.location,matches:R,initialized:l,navigation:ie,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},j=o.Pop,F=!1,z=!1,B=new Map,H=null,U=!1,q=!1,W=[],$=new Set,Q=new Map,G=0,Y=-1,Z=new Map,K=new Set,J=new Map,ee=new Map,te=new Set,ne=new Map,re=new Map;function pe(e,t){void 0===t&&(t={}),V=r({},V,e);let n=[],o=[];E.v7_fetcherPersist&&V.fetchers.forEach((e,t)=>{"idle"===e.state&&(te.has(t)?o.push(t):n.push(t))}),te.forEach(e=>{V.fetchers.has(e)||Q.has(e)||o.push(e)}),[...P].forEach(e=>e(V,{deletedFetchers:o,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),E.v7_fetcherPersist?(n.forEach(e=>V.fetchers.delete(e)),o.forEach(e=>Xe(e))):o.forEach(e=>te.delete(e))}function he(t,n,i){var s,l;let u,{flushSync:c}=void 0===i?{}:i,p=null!=V.actionData&&null!=V.navigation.formMethod&&He(V.navigation.formMethod)&&"loading"===V.navigation.state&&!0!==(null==(s=t.state)?void 0:s._isRedirect);u=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:p?V.actionData:null;let d=n.loaderData?ke(V.loaderData,n.loaderData,n.matches||[],n.errors):V.loaderData,f=V.blockers;f.size>0&&(f=new Map(f),f.forEach((e,t)=>f.set(t,ae)));let m,g=!0===F||null!=V.navigation.formMethod&&He(V.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(a&&(h=a,a=void 0),U||j===o.Pop||(j===o.Push?e.history.push(t,t.state):j===o.Replace&&e.history.replace(t,t.state)),j===o.Pop){let e=B.get(V.location.pathname);e&&e.has(t.pathname)?m={currentLocation:V.location,nextLocation:t}:B.has(t.pathname)&&(m={currentLocation:t,nextLocation:V.location})}else if(z){let e=B.get(V.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),B.set(V.location.pathname,e)),m={currentLocation:V.location,nextLocation:t}}pe(r({},n,{actionData:u,loaderData:d,historyAction:j,location:t,initialized:!0,navigation:ie,revalidation:"idle",restoreScrollPosition:ut(t,n.matches||V.matches),preventScrollReset:g,blockers:f}),{viewTransitionOpts:m,flushSync:!0===c}),j=o.Pop,F=!1,z=!1,U=!1,q=!1,W=[]}async function ye(t,n,i){L&&L.abort(),L=null,j=t,U=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(O&&k){let n=lt(e,t);O[n]=k()}}(V.location,V.matches),F=!0===(i&&i.preventScrollReset),z=!0===(i&&i.enableViewTransition);let s=a||h,l=i&&i.overrideNavigation,u=null!=i&&i.initialHydration&&V.matches&&V.matches.length>0&&!M?V.matches:b(s,n,m),c=!0===(i&&i.flushSync);if(u&&V.initialized&&!q&&(p=V.location,d=n,p.pathname===d.pathname&&p.search===d.search&&(""===p.hash?""!==d.hash:p.hash===d.hash||""!==d.hash))&&!(i&&i.submission&&He(i.submission.formMethod)))return void he(n,{matches:u},{flushSync:c});var p,d;let f=ct(u,s,n.pathname);if(f.active&&f.matches&&(u=f.matches),!u){let{error:e,notFoundMatches:t,route:r}=st(n.pathname);return void he(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:c})}L=new AbortController;let y,v=Se(e.history,n,L.signal,i&&i.submission);if(i&&i.pendingError)y=[Ie(u).route.id,{type:g.error,error:i.pendingError}];else if(i&&i.submission&&He(i.submission.formMethod)){let t=await async function(t,n,r,i,s,a){void 0===a&&(a={}),Le();let l,u=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(n,r);if(pe({navigation:u},{flushSync:!0===a.flushSync}),s){let e=await pt(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ie(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:g.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=st(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:g.error,error:t}]}}i=e.matches}let c=Qe(i,n);if(c.route.action||c.route.lazy){if(l=(await Pe("action",V,t,[c],i,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else l={type:g.error,error:Me(405,{method:t.method,pathname:n.pathname,routeId:c.route.id})};if(Fe(l)){let n;return n=a&&null!=a.replace?a.replace:Ee(l.response.headers.get("Location"),new URL(t.url),m,e.history)===V.location.pathname+V.location.search,await we(t,l,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(Ve(l))throw Me(400,{type:"defer-action"});if(je(l)){let e=Ie(i,c.route.id);return!0!==(a&&a.replace)&&(j=o.Push),{matches:i,pendingActionResult:[e.route.id,l]}}return{matches:i,pendingActionResult:[c.route.id,l]}}(v,n,i.submission,u,f.active,{replace:i.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(je(r)&&X(r.error)&&404===r.error.status)return L=null,void he(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}u=t.matches||u,y=t.pendingActionResult,l=Ye(n,i.submission),c=!1,f.active=!1,v=Se(e.history,v.url,v.signal)}let{shortCircuited:w,matches:C,loaderData:_,errors:x}=await async function(t,n,o,i,s,l,u,c,p,d,f){let g=s||Ye(n,l),y=l||u||Ge(g),v=!(U||E.v7_partialHydration&&p);if(i){if(v){let e=ve(f);pe(r({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:d})}let e=await pt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ie(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=st(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=a||h,[w,C]=me(e.history,V,o,y,n,E.v7_partialHydration&&!0===p,E.v7_skipActionErrorRevalidation,q,W,$,te,J,K,b,m,f);if(at(e=>!(o&&o.some(t=>t.route.id===e))||w&&w.some(t=>t.route.id===e)),Y=++G,0===w.length&&0===C.length){let e=tt();return he(n,r({matches:o,loaderData:{},errors:f&&je(f[1])?{[f[0]]:f[1].error}:null},Ae(f),e?{fetchers:new Map(V.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(v){let e={};if(!i){e.navigation=g;let t=ve(f);void 0!==t&&(e.actionData=t)}C.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=V.fetchers.get(e.key),n=Ze(void 0,t?t.data:void 0);V.fetchers.set(e.key,n)}),new Map(V.fetchers)}(C)),pe(e,{flushSync:d})}C.forEach(e=>{Je(e.key),e.controller&&Q.set(e.key,e.controller)});let _=()=>C.forEach(e=>Je(e.key));L&&L.signal.addEventListener("abort",_);let{loaderResults:x,fetcherResults:S}=await Oe(V,o,w,C,t);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",_),C.forEach(e=>Q.delete(e.key));let P=De(x);if(P)return await we(t,P.result,!0,{replace:c}),{shortCircuited:!0};if(P=De(S),P)return K.add(P.key),await we(t,P.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:O,errors:T}=Te(V,o,x,f,C,S,ne);ne.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&ne.delete(t)})}),E.v7_partialHydration&&p&&V.errors&&(T=r({},V.errors,T));let k=tt(),A=nt(Y),I=k||A||C.length>0;return r({matches:o,loaderData:O,errors:T},I?{fetchers:new Map(V.fetchers)}:{})}(v,n,u,f.active,l,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,c,y);w||(L=null,he(n,r({matches:C||u},Ae(y),{loaderData:_,errors:x})))}function ve(e){return e&&!je(e[1])?{[e[0]]:e[1].data}:V.actionData?0===Object.keys(V.actionData).length?null:V.actionData:void 0}async function we(i,s,a,l){let{submission:c,fetcherSubmission:p,preventScrollReset:f,replace:h}=void 0===l?{}:l;s.response.headers.has("X-Remix-Revalidate")&&(q=!0);let g=s.response.headers.get("Location");u(g,"Expected a Location header on the redirect Response"),g=Ee(g,new URL(i.url),m,e.history);let y=d(V.location,g,{_isRedirect:!0});if(n){let n=!1;if(s.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(le.test(g)){const r=e.history.createURL(g);n=r.origin!==t.location.origin||null==I(r.pathname,m)}if(n)return void(h?t.location.replace(g):t.location.assign(g))}L=null;let v=!0===h||s.response.headers.has("X-Remix-Replace")?o.Replace:o.Push,{formMethod:b,formAction:w,formEncType:C}=V.navigation;!c&&!p&&b&&w&&C&&(c=Ge(V.navigation));let _=c||p;if(oe.has(s.response.status)&&_&&He(_.formMethod))await ye(v,y,{submission:r({},_,{formAction:g}),preventScrollReset:f||F,enableViewTransition:a?z:void 0});else{let e=Ye(y,c);await ye(v,y,{overrideNavigation:e,fetcherSubmission:p,preventScrollReset:f||F,enableViewTransition:a?z:void 0})}}async function Pe(e,t,n,o,i,a){let l,p={};try{l=await async function(e,t,n,o,i,s,a,l,p,d){let f=s.map(e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let i=n[e.id];u(i,"No route found in manifest");let s={};for(let e in o){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||y.has(e)||(s[e]=o[e])}Object.assign(i,s),Object.assign(i,r({},t(i),{lazy:void 0}))}(e.route,p,l):void 0),h=s.map((e,n)=>{let s=f[n],a=i.some(t=>t.route.id===e.route.id);return r({},e,{shouldLoad:a,resolve:async n=>(n&&"GET"===o.method&&(e.route.lazy||e.route.loader)&&(a=!0),a?async function(e,t,n,r,o,i){let s,a,l=r=>{let s,l=new Promise((e,t)=>s=t);a=()=>s(),t.signal.addEventListener("abort",a);let u=o=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:i},...void 0!==o?[o]:[]),c=(async()=>{try{return{type:"data",result:await(o?o(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,l])};try{let o=n.route[e];if(r)if(o){let e,[t]=await Promise.all([l(o).catch(t=>{e=t}),r]);if(void 0!==e)throw e;s=t}else{if(await r,o=n.route[e],!o){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Me(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:g.data,result:void 0}}s=await l(o)}else{if(!o){let e=new URL(t.url);throw Me(404,{pathname:e.pathname+e.search})}s=await l(o)}u(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:g.error,result:e}}finally{a&&t.signal.removeEventListener("abort",a)}return s}(t,o,e,s,n,d):Promise.resolve({type:g.data,result:void 0}))})}),m=await e({matches:h,request:o,params:s[0].params,fetcherKey:a,context:d});try{await Promise.all(f)}catch(e){}return m}(_,e,0,n,o,i,a,f,s)}catch(e){return o.forEach(t=>{p[t.route.id]={type:g.error,error:e}}),p}for(let[e,t]of Object.entries(l))if(Ne(t)){let r=t.result;p[e]={type:g.redirect,response:xe(r,n,e,i,m,E.v7_relativeSplatPath)}}else p[e]=await _e(t);return p}async function Oe(t,n,r,o,i){let s=t.matches,a=Pe("loader",0,i,r,n,null),l=Promise.all(o.map(async t=>{if(t.matches&&t.match&&t.controller){let n=(await Pe("loader",0,Se(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:g.error,error:Me(404,{pathname:t.path})}})})),u=await a,c=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Ue(n,u,i.signal,s,t.loaderData),qe(n,c,o)]),{loaderResults:u,fetcherResults:c}}function Le(){q=!0,W.push(...at()),J.forEach((e,t)=>{Q.has(t)&&$.add(t),Je(t)})}function ze(e,t,n){void 0===n&&(n={}),V.fetchers.set(e,t),pe({fetchers:new Map(V.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Be(e,t,n,r){void 0===r&&(r={});let o=Ie(V.matches,t);Xe(e),pe({errors:{[o.route.id]:n},fetchers:new Map(V.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function $e(e){return ee.set(e,(ee.get(e)||0)+1),te.has(e)&&te.delete(e),V.fetchers.get(e)||se}function Xe(e){let t=V.fetchers.get(e);!Q.has(e)||t&&"loading"===t.state&&Z.has(e)||Je(e),J.delete(e),Z.delete(e),K.delete(e),E.v7_fetcherPersist&&te.delete(e),$.delete(e),V.fetchers.delete(e)}function Je(e){let t=Q.get(e);t&&(t.abort(),Q.delete(e))}function et(e){for(let t of e){let e=Ke($e(t).data);V.fetchers.set(t,e)}}function tt(){let e=[],t=!1;for(let n of K){let r=V.fetchers.get(n);u(r,"Expected fetcher: "+n),"loading"===r.state&&(K.delete(n),e.push(n),t=!0)}return et(e),t}function nt(e){let t=[];for(let[n,r]of Z)if(r<e){let e=V.fetchers.get(n);u(e,"Expected fetcher: "+n),"loading"===e.state&&(Je(n),Z.delete(n),t.push(n))}return et(t),t.length>0}function rt(e){V.blockers.delete(e),re.delete(e)}function ot(e,t){let n=V.blockers.get(e)||ae;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(V.blockers);r.set(e,t),pe({blockers:r})}function it(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===re.size)return;re.size>1&&c(!1,"A router only supports one blocker at a time");let o=Array.from(re.entries()),[i,s]=o[o.length-1],a=V.blockers.get(i);return a&&"proceeding"===a.state?void 0:s({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function st(e){let t=Me(404,{pathname:e}),n=a||h,{matches:r,route:o}=Re(n);return at(),{notFoundMatches:r,route:o,error:t}}function at(e){let t=[];return ne.forEach((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),ne.delete(r))}),t}function lt(e,t){return T&&T(e,t.map(e=>C(e,V.loaderData)))||e.key}function ut(e,t){if(O){let n=lt(e,t),r=O[n];if("number"==typeof r)return r}return null}function ct(e,t,n){if(x){if(!e)return{active:!0,matches:w(t,n,m,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:w(t,n,m,!0)}}return{active:!1,matches:null}}async function pt(e,t,n,r){if(!x)return{type:"success",matches:e};let o=e;for(;;){let e=null==a,i=a||h,l=f;try{await x({signal:n,path:t,matches:o,fetcherKey:r,patch:(e,t)=>{n.aborted||be(e,t,i,l,s)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&!n.aborted&&(h=[...h])}if(n.aborted)return{type:"aborted"};let u=b(i,t,m);if(u)return{type:"success",matches:u};let c=w(i,t,m,!0);if(!c||o.length===c.length&&o.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};o=c}}return p={get basename(){return m},get future(){return E},get state(){return V},get routes(){return h},get window(){return t},initialize:function(){if(S=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(N)return N(),void(N=void 0);c(0===re.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=it({currentLocation:V.location,nextLocation:r,historyAction:n});if(i&&null!=o){let t=new Promise(e=>{N=e});return e.history.go(-1*o),void ot(i,{state:"blocked",location:r,proceed(){ot(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(o))},reset(){let e=new Map(V.blockers);e.set(i,ae),pe({blockers:e})}})}return ye(n,r)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(ce);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,B);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(n))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,B);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return V.initialized||ye(o.Pop,V.location,{initialHydration:!0}),p},subscribe:function(e){return P.add(e),()=>P.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,k=t,T=n||null,!A&&V.navigation===ie){A=!0;let e=ut(V.location,V.matches);null!=e&&pe({restoreScrollPosition:e})}return()=>{O=null,k=null,T=null}},navigate:async function t(n,i){if("number"==typeof n)return void e.history.go(n);let s=de(V.location,V.matches,m,E.v7_prependBasename,n,E.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:a,submission:l,error:u}=fe(E.v7_normalizeFormMethod,!1,s,i),c=V.location,p=d(V.location,a,i&&i.state);p=r({},p,e.history.encodeLocation(p));let f=i&&null!=i.replace?i.replace:void 0,h=o.Push;!0===f?h=o.Replace:!1===f||null!=l&&He(l.formMethod)&&l.formAction===V.location.pathname+V.location.search&&(h=o.Replace);let g=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,y=!0===(i&&i.flushSync),v=it({currentLocation:c,nextLocation:p,historyAction:h});if(!v)return await ye(h,p,{submission:l,pendingError:u,preventScrollReset:g,replace:i&&i.replace,enableViewTransition:i&&i.viewTransition,flushSync:y});ot(v,{state:"blocked",location:p,proceed(){ot(v,{state:"proceeding",proceed:void 0,reset:void 0,location:p}),t(n,i)},reset(){let e=new Map(V.blockers);e.set(v,ae),pe({blockers:e})}})},fetch:function(t,n,r,o){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Je(t);let s=!0===(o&&o.flushSync),l=a||h,c=de(V.location,V.matches,m,E.v7_prependBasename,r,E.v7_relativeSplatPath,n,null==o?void 0:o.relative),p=b(l,c,m),d=ct(p,l,c);if(d.active&&d.matches&&(p=d.matches),!p)return void Be(t,n,Me(404,{pathname:c}),{flushSync:s});let{path:f,submission:g,error:y}=fe(E.v7_normalizeFormMethod,!0,c,o);if(y)return void Be(t,n,y,{flushSync:s});let v=Qe(p,f),w=!0===(o&&o.preventScrollReset);g&&He(g.formMethod)?async function(t,n,r,o,i,s,l,c,p){function d(e){if(!e.route.action&&!e.route.lazy){let e=Me(405,{method:p.formMethod,pathname:r,routeId:n});return Be(t,n,e,{flushSync:l}),!0}return!1}if(Le(),J.delete(t),!s&&d(o))return;let f=V.fetchers.get(t);ze(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(p,f),{flushSync:l});let g=new AbortController,y=Se(e.history,r,g.signal,p);if(s){let e=await pt(i,new URL(y.url).pathname,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Be(t,n,e.error,{flushSync:l});if(!e.matches)return void Be(t,n,Me(404,{pathname:r}),{flushSync:l});if(d(o=Qe(i=e.matches,r)))return}Q.set(t,g);let v=G,w=(await Pe("action",0,y,[o],i,t))[o.route.id];if(y.signal.aborted)return void(Q.get(t)===g&&Q.delete(t));if(E.v7_fetcherPersist&&te.has(t)){if(Fe(w)||je(w))return void ze(t,Ke(void 0))}else{if(Fe(w))return Q.delete(t),Y>v?void ze(t,Ke(void 0)):(K.add(t),ze(t,Ze(p)),we(y,w,!1,{fetcherSubmission:p,preventScrollReset:c}));if(je(w))return void Be(t,n,w.error)}if(Ve(w))throw Me(400,{type:"defer-action"});let C=V.navigation.location||V.location,_=Se(e.history,C,g.signal),x=a||h,S="idle"!==V.navigation.state?b(x,V.navigation.location,m):V.matches;u(S,"Didn't find any matches after fetcher action");let P=++G;Z.set(t,P);let O=Ze(p,w.data);V.fetchers.set(t,O);let[T,k]=me(e.history,V,S,p,C,!1,E.v7_skipActionErrorRevalidation,q,W,$,te,J,K,x,m,[o.route.id,w]);k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=V.fetchers.get(t),r=Ze(void 0,n?n.data:void 0);V.fetchers.set(t,r),Je(t),e.controller&&Q.set(t,e.controller)}),pe({fetchers:new Map(V.fetchers)});let A=()=>k.forEach(e=>Je(e.key));g.signal.addEventListener("abort",A);let{loaderResults:I,fetcherResults:R}=await Oe(V,S,T,k,_);if(g.signal.aborted)return;g.signal.removeEventListener("abort",A),Z.delete(t),Q.delete(t),k.forEach(e=>Q.delete(e.key));let M=De(I);if(M)return we(_,M.result,!1,{preventScrollReset:c});if(M=De(R),M)return K.add(M.key),we(_,M.result,!1,{preventScrollReset:c});let{loaderData:D,errors:N}=Te(V,S,I,void 0,k,R,ne);if(V.fetchers.has(t)){let e=Ke(w.data);V.fetchers.set(t,e)}nt(P),"loading"===V.navigation.state&&P>Y?(u(j,"Expected pending action"),L&&L.abort(),he(V.navigation.location,{matches:S,loaderData:D,errors:N,fetchers:new Map(V.fetchers)})):(pe({errors:N,loaderData:ke(V.loaderData,D,S,N),fetchers:new Map(V.fetchers)}),q=!1)}(t,n,f,v,p,d.active,s,w,g):(J.set(t,{routeId:n,path:f}),async function(t,n,r,o,i,s,a,l,c){let p=V.fetchers.get(t);ze(t,Ze(c,p?p.data:void 0),{flushSync:a});let d=new AbortController,f=Se(e.history,r,d.signal);if(s){let e=await pt(i,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Be(t,n,e.error,{flushSync:a});if(!e.matches)return void Be(t,n,Me(404,{pathname:r}),{flushSync:a});o=Qe(i=e.matches,r)}Q.set(t,d);let h=G,m=(await Pe("loader",0,f,[o],i,t))[o.route.id];if(Ve(m)&&(m=await We(m,f.signal,!0)||m),Q.get(t)===d&&Q.delete(t),!f.signal.aborted){if(!te.has(t))return Fe(m)?Y>h?void ze(t,Ke(void 0)):(K.add(t),void await we(f,m,!1,{preventScrollReset:l})):void(je(m)?Be(t,n,m.error):(u(!Ve(m),"Unhandled fetcher deferred data"),ze(t,Ke(m.data))));ze(t,Ke(void 0))}}(t,n,f,v,p,d.active,s,w,g))},revalidate:function(){Le(),pe({revalidation:"loading"}),"submitting"!==V.navigation.state&&("idle"!==V.navigation.state?ye(j||V.historyAction,V.navigation.location,{overrideNavigation:V.navigation,enableViewTransition:!0===z}):ye(V.historyAction,V.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:$e,deleteFetcher:function(e){let t=(ee.get(e)||0)-1;t<=0?(ee.delete(e),te.add(e),E.v7_fetcherPersist||Xe(e)):ee.set(e,t),pe({fetchers:new Map(V.fetchers)})},dispose:function(){S&&S(),H&&H(),P.clear(),L&&L.abort(),V.fetchers.forEach((e,t)=>Xe(t)),V.blockers.forEach((e,t)=>rt(t))},getBlocker:function(e,t){let n=V.blockers.get(e)||ae;return re.get(e)!==t&&re.set(e,t),n},deleteBlocker:rt,patchRoutes:function(e,t){let n=null==a;be(e,t,a||h,f,s),n&&(h=[...h],pe({}))},_internalFetchControllers:Q,_internalActiveDeferreds:ne,_internalSetRoutes:function(e){f={},a=v(e,s,void 0,f)}},p}function de(e,t,n,r,o,i,s,a){let l,u;if(s){l=[];for(let e of t)if(l.push(e),e.route.id===s){u=e;break}}else l=t,u=t[t.length-1];let c=j(o||".",V(l,i),I(e.pathname,n)||e.pathname,"path"===a);if(null==o&&(c.search=e.search,c.hash=e.hash),(null==o||""===o||"."===o)&&u){let e=$e(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();c.search=n?"?"+n:""}}return r&&"/"!==n&&(c.pathname="/"===c.pathname?n:F([n,c.pathname])),f(c)}function fe(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!ne.has(o.toLowerCase())))return{path:n,error:Me(405,{method:r.formMethod})};var o;let i,s,a=()=>({path:n,error:Me(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),p=Le(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!He(c))return a();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:c,formAction:p,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!He(c))return a();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:p,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=Pe(r.formData),s=r.formData;else if(r.body instanceof FormData)i=Pe(r.body),s=r.body;else if(r.body instanceof URLSearchParams)i=r.body,s=Oe(i);else if(null==r.body)i=new URLSearchParams,s=new FormData;else try{i=new URLSearchParams(r.body),s=Oe(i)}catch(e){return a()}let d={formMethod:c,formAction:p,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(He(d.formMethod))return{path:n,submission:d};let m=h(n);return t&&m.search&&$e(m.search)&&i.append("index",""),m.search="?"+i,{path:f(m),submission:d}}function he(e,t,n){void 0===n&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function me(e,t,n,o,i,s,a,l,u,c,p,d,f,h,m,g){let y=g?je(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),w=e.createURL(i),C=n;s&&t.errors?C=he(n,Object.keys(t.errors)[0],!0):g&&je(g[1])&&(C=he(n,g[0]));let _=g?g[1].statusCode:void 0,x=a&&_&&_>=400,E=C.filter((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(s)return ge(i,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||u.some(t=>t===e.route.id))return!0;let a=t.matches[n],c=e;return ve(e,r({currentUrl:v,currentParams:a.params,nextUrl:w,nextParams:c.params},o,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!x&&(l||v.pathname+v.search===w.pathname+w.search||v.search!==w.search||ye(a,c))}))}),S=[];return d.forEach((e,i)=>{if(s||!n.some(t=>t.route.id===e.routeId)||p.has(i))return;let a=b(h,e.path,m);if(!a)return void S.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(i),d=Qe(a,e.path),g=!1;f.has(i)?g=!1:c.has(i)?(c.delete(i),g=!0):g=u&&"idle"!==u.state&&void 0===u.data?l:ve(d,r({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},o,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!x&&l})),g&&S.push({key:i,routeId:e.routeId,path:e.path,matches:a,match:d,controller:new AbortController})}),[E,S]}function ge(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function ye(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ve(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function be(e,t,n,r,o){var i;let s;if(e){let t=r[e];u(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),s=t.children}else s=n;let a=v(t.filter(e=>!s.some(t=>we(e,t))),o,[e||"_","patch",String((null==(i=s)?void 0:i.length)||"0")],r);s.push(...a)}function we(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>{var r;return null==(r=t.children)?void 0:r.some(t=>we(e,t))}))}async function Ce(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function _e(e){let{result:t,type:n}=e;if(Be(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:g.error,error:e}}return n===g.error?{type:g.error,error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:g.data,data:e,statusCode:t.status,headers:t.headers}}var r,o,i,s,a,l,u,c;return n===g.error?ze(t)?t.data instanceof Error?{type:g.error,error:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(s=t.init)&&s.headers?new Headers(t.init.headers):void 0}:{type:g.error,error:new K((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:X(t)?t.status:void 0,headers:null!=(o=t.init)&&o.headers?new Headers(t.init.headers):void 0}:{type:g.error,error:t,statusCode:X(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:g.deferred,deferredData:t,statusCode:null==(a=t.init)?void 0:a.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:ze(t)?{type:g.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:g.data,data:t}}function xe(e,t,n,r,o,i){let s=e.headers.get("Location");if(u(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!le.test(s)){let a=r.slice(0,r.findIndex(e=>e.route.id===n)+1);s=de(new URL(t.url),a,o,!0,s,i),e.headers.set("Location",s)}return e}function Ee(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(le.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let s=null!=I(i.pathname,n);if(i.origin===t.origin&&s)return i.pathname+i.search+i.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Se(e,t,n,r){let o=e.createURL(Le(t)).toString(),i={signal:n};if(r&&He(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Pe(r.formData):i.body=r.formData}return new Request(o,i)}function Pe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Oe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Te(e,t,n,o,i,s,a){let{loaderData:l,errors:c}=function(e,t,n,r,o){let i,s={},a=null,l=!1,c={},p=n&&je(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(u(!Fe(f),"Cannot handle redirect results in processLoaderData"),je(f)){let t=f.error;if(void 0!==p&&(t=p,p=void 0),a=a||{},o)a[d]=t;else{let n=Ie(e,d);null==a[n.route.id]&&(a[n.route.id]=t)}s[d]=void 0,l||(l=!0,i=X(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else Ve(f)?(r.set(d,f.deferredData),s[d]=f.deferredData.data,null==f.statusCode||200===f.statusCode||l||(i=f.statusCode),f.headers&&(c[d]=f.headers)):(s[d]=f.data,f.statusCode&&200!==f.statusCode&&!l&&(i=f.statusCode),f.headers&&(c[d]=f.headers))}),void 0!==p&&n&&(a={[n[0]]:p},s[n[0]]=void 0),{loaderData:s,errors:a,statusCode:i||200,loaderHeaders:c}}(t,n,o,a,!1);return i.forEach(t=>{let{key:n,match:o,controller:i}=t,a=s[n];if(u(a,"Did not find corresponding fetcher result"),!i||!i.signal.aborted)if(je(a)){let t=Ie(e.matches,null==o?void 0:o.route.id);c&&c[t.route.id]||(c=r({},c,{[t.route.id]:a.error})),e.fetchers.delete(n)}else if(Fe(a))u(!1,"Unhandled fetcher revalidation redirect");else if(Ve(a))u(!1,"Unhandled fetcher deferred data");else{let t=Ke(a.data);e.fetchers.set(n,t)}}),{loaderData:l,errors:c}}function ke(e,t,n,o){let i=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(i[n]=t[n]):void 0!==e[n]&&r.route.loader&&(i[n]=e[n]),o&&o.hasOwnProperty(n))break}return i}function Ae(e){return e?je(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ie(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Re(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Me(e,t){let{pathname:n,routeId:r,method:o,type:i,message:s}=void 0===t?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(a="Not Found",l='No route matches URL "'+n+'"'):405===e&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new K(e||500,a,new Error(l),!0)}function De(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Fe(r))return{key:n,result:r}}}function Le(e){return f(r({},"string"==typeof e?h(e):e,{hash:""}))}function Ne(e){return Be(e.result)&&re.has(e.result.status)}function Ve(e){return e.type===g.deferred}function je(e){return e.type===g.error}function Fe(e){return(e&&e.type)===g.redirect}function ze(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Be(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function He(e){return ee.has(e.toLowerCase())}async function Ue(e,t,n,r,o){let i=Object.entries(t);for(let s=0;s<i.length;s++){let[a,l]=i[s],u=e.find(e=>(null==e?void 0:e.route.id)===a);if(!u)continue;let c=r.find(e=>e.route.id===u.route.id),p=null!=c&&!ye(c,u)&&void 0!==(o&&o[u.route.id]);Ve(l)&&p&&await We(l,n,!1).then(e=>{e&&(t[a]=e)})}}async function qe(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:i,controller:s}=n[r],a=t[o];e.find(e=>(null==e?void 0:e.route.id)===i)&&Ve(a)&&(u(s,"Expected an AbortController for revalidating fetcher deferred result"),await We(a,s.signal,!0).then(e=>{e&&(t[o]=e)}))}}async function We(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:g.data,data:e.deferredData.unwrappedData}}catch(e){return{type:g.error,error:e}}return{type:g.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Qe(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&$e(n||""))return e[e.length-1];let r=N(e);return r[r.length-1]}function Ge(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==s?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}:void 0}function Ye(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ze(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},79043(e,t,n){"use strict";n.d(t,{Cp:()=>o,Wt:()=>l,ZQ:()=>s,gV:()=>u,o:()=>a,v4:()=>c,wd:()=>i});var r=n(23447);function o(e,t){return(0,r.BF)().captureException(e,{captureContext:t})}function i(e,t){const n="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,r.BF)().captureMessage(e,n,o)}function s(e){(0,r.BF)().addBreadcrumb(e)}function a(e,t){(0,r.BF)().setContext(e,t)}function l(e){(0,r.BF)().setTags(e)}function u(e){(0,r.BF)().setUser(e)}function c(e){(0,r.BF)().withScope(e)}},23447(e,t,n){"use strict";n.d(t,{BF:()=>h});var r=n(99009),o=n(8088),i=n(93276),s=n(43366),a=n(94053),l=n(17828),u=n(2392);const c=100;class p{__init(){this._stack=[{}]}constructor(e,t=new l.H,n=4){this._version=n,p.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=l.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,i.eJ)(),r=new Error("Sentry syntheticException");return this._withClient((o,i)=>{o.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.eJ)(),o=new Error(e);return this._withClient((i,s)=>{i.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},s)}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,i.eJ)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((r,o)=>{r.captureEvent(e,{...t,event_id:n},o)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=c}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const l={timestamp:(0,a.lu)(),...e},u=i?(0,o.pq)(()=>i(l,t)):l;null!==u&&n.addBreadcrumb(u,s)}setUser(e){const t=this.getScope();t&&t.setUser(e)}setTags(e){const t=this.getScope();t&&t.setTags(e)}setExtras(e){const t=this.getScope();t&&t.setExtras(e)}setTag(e,t){const n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){const n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){const n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){const t=f(this);try{e(this)}finally{f(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,u.Vu)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:o,environment:i}=n&&n.getOptions()||{},{userAgent:s}=r.OW.navigator||{},a=(0,u.fj)({release:o,environment:i,...t&&{user:t.getUser()},...s&&{userAgent:s},...e});if(t){const e=t.getSession&&t.getSession();e&&"ok"===e.status&&(0,u.qO)(e,{status:"exited"}),this.endSession(),t.setSession(a)}return a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(!e)return;const n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=d().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function d(){return r.OW.__SENTRY__=r.OW.__SENTRY__||{extensions:{},hub:void 0},r.OW}function f(e){const t=d(),n=g(t);return y(t,e),n}function h(){const e=d();return m(e)&&!g(e).isOlderThan(4)||y(e,new p),(0,s.wD)()?function(e){try{const t=d().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return g(e);if(!m(n)||g(n).isOlderThan(4)){const t=g(e).getStackTop();y(n,new p(t.client,l.H.clone(t.scope)))}return g(n)}catch(t){return g(e)}}(e):g(e)}function m(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g(e){return(0,r.BY)("hub",()=>new p,e)}function y(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},17828(e,t,n){"use strict";n.d(t,{H:()=>c,l:()=>d});var r=n(99009),o=n(26628),i=n(8088),s=n(93276),a=n(38374),l=n(94053),u=n(2392);class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new c;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,u.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof c?t:this}return e instanceof c?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,o.Qd)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,l.lu)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction&&this._span.transaction.name;t&&(e.tags={transaction:t,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...p(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new a.T2((s,a)=>{const l=e[r];if(null===t||"function"!=typeof l)s(t);else{const u=l({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===u&&i.vF.log(`Event processor "${l.id}" dropped event`),(0,o.Qg)(u)?u.then(t=>this._notifyEventProcessors(e,t,n,r+1).then(s)).then(null,a):this._notifyEventProcessors(e,u,n,r+1).then(s).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.k9)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function p(){return(0,r.BY)("globalEventProcessors",()=>[])}function d(e){p().push(e)}},2392(e,t,n){"use strict";n.d(t,{Vu:()=>l,fj:()=>s,qO:()=>a});var r=n(93276),o=n(17039),i=n(94053);function s(e){const t=(0,i.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Ce)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&a(n,e),n}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},88234(e,t,n){"use strict";n.d(t,{YZ:()=>m,BF:()=>v,EU:()=>g});var r=n(65927),o=n(12985),i=n(47060),s=n(20469),a=n(28890),l=n(85513),u="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,c=n(78925),p=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&((0,c.Qg)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach(function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)})}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e(function(e,o){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){o(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){o(e)}else o(t)}]),r._executeHandlers()})},e.prototype.catch=function(e){return this.then(function(e){return e},e)},e.prototype.finally=function(t){var n=this;return new e(function(e,r){var o,i;return n.then(function(e){i=!1,o=e,t&&t()},function(e){i=!0,o=e,t&&t()}).then(function(){i?r(o):e(o)})})},e}(),d=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,r.__spread)(t._breadcrumbs),n._tags=(0,r.__assign)({},t._tags),n._extra=(0,r.__assign)({},t._extra),n._contexts=(0,r.__assign)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,r.__spread)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),t._tags),this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),t._extra),this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,c.Qd)(t)&&(this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),t.tags),this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),t.extra),this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var o=(0,r.__assign)({timestamp:(0,i.lu)()},e);return this._breadcrumbs=(0,r.__spread)(this._breadcrumbs,[o]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,r.__assign)((0,r.__assign)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,r.__assign)((0,r.__assign)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,r.__assign)((0,r.__assign)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,r.__assign)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,r.__assign)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,r.__spread)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,r.__spread)((0,a.B)("globalEventProcessors",function(){return[]}),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=(0,r.__assign)((0,r.__assign)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,o){var i=this;return void 0===o&&(o=0),new p(function(s,a){var l=e[o];if(null===t||"function"!=typeof l)s(t);else{var u=l((0,r.__assign)({},t),n);(0,c.Qg)(u)?u.then(function(t){return i._notifyEventProcessors(e,t,n,o+1).then(s)}).then(null,a):i._notifyEventProcessors(e,u,n,o+1).then(s).then(null,a)}})},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(e)}),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();var f=n(56526),h=function(){function e(e){this.errors=0,this.sid=(0,o.eJ)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,i.zf)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,i.zf)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,o.eJ)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,f.Ce)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),m=function(){function e(e,t,n){void 0===t&&(t=new d),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=d.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.eJ)(),i=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}i={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,(0,r.__assign)((0,r.__assign)({},i),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,o.eJ)(),s=n;if(!n){var a=void 0;try{throw new Error(e)}catch(e){a=e}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,(0,r.__assign)((0,r.__assign)({},s),{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:(0,o.eJ)();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,(0,r.__assign)((0,r.__assign)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),o=n.scope,a=n.client;if(o&&a){var l=a.getOptions&&a.getOptions()||{},u=l.beforeBreadcrumb,c=void 0===u?null:u,p=l.maxBreadcrumbs,d=void 0===p?100:p;if(!(d<=0)){var f=(0,i.lu)(),h=(0,r.__assign)({timestamp:f},e),m=c?(0,s.pq)(function(){return c(h,t)}):h;null!==m&&o.addBreadcrumb(m,d)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=y(this);try{e(this)}finally{y(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return u&&s.vF.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,o=t.client,i=o&&o.getOptions()||{},s=i.release,l=i.environment,u=((0,a.V)().navigator||{}).userAgent,c=new h((0,r.__assign)((0,r.__assign)((0,r.__assign)({release:s,environment:l},n&&{user:n.getUser()}),u&&{userAgent:u}),e));if(n){var p=n.getSession&&n.getSession();p&&"ok"===p.status&&p.update({status:"exited"}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=this.getStackTop(),s=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,(0,r.__spread)(n,[s]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=g().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);u&&s.vF.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function g(){var e=(0,a.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function y(e){var t=g(),n=w(t);return C(t,e),n}function v(){var e=g();return b(e)&&!w(e).isOlderThan(4)||C(e,new m),(0,l.wD)()?function(e){try{var t=g().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return w(e);if(!b(n)||w(n).isOlderThan(4)){var r=w(e).getStackTop();C(n,new m(r.client,d.clone(r.scope)))}return w(n)}catch(t){return w(e)}}(e):w(e)}function b(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function w(e){return(0,a.B)("hub",function(){return new m},e)}function C(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},28045(e,t,n){"use strict";n.d(t,{T:()=>ze});const r="7.27.0";var o=n(8088),i=n(93276),s=n(72633);const a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class l{static __initStatic(){this.id="InboundFilters"}__init(){this.name=l.id}constructor(e={}){this._options=e,l.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(l);if(t){const r=n.getClient(),l=r?r.getOptions():{},c=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...a],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,l);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.$X)(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error(`Cannot extract message for event ${(0,i.$X)(e)}`),[]}return[]}(e).some(e=>(0,s.Xr)(e,t))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.$X)(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=u(e);return!!n&&(0,s.Xr)(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.$X)(e)}.\nUrl: ${u(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=u(e);return!n||(0,s.Xr)(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.$X)(e)}.\nUrl: ${u(e)}`),!0)}(e,c)?null:e}}return e};n.id=this.name,e(n)}}function u(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error(`Cannot extract url for event ${(0,i.$X)(e)}`),null}}l.__initStatic();var c=n(17039);let p;class d{constructor(){d.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=d.id}setupOnce(){p=Function.prototype.toString,Function.prototype.toString=function(...e){const t=(0,c.sp)(this)||this;return p.apply(t,e)}}}d.__initStatic();var f=n(23447),h=n(17828);const m=[];function g(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach(e=>{e.isDefaultInstance=!0}),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,i.k9)(n(t)):t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),s=o.findIndex(e=>"Debug"===e.name);if(-1!==s){const[e]=o.splice(s,1);o.push(e)}return o}var y=n(22865),v=n(66252),b=n(69969),w=n(87801),C=n(34147),_=n(26628),x=n(38374),E=n(52036),S=n(94053),P=n(68601),O=n(28088);function T(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,c.u4)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}var k=n(2392);const A="Not capturing exception because it's already been captured.";class I{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(I.prototype.__init.call(this),I.prototype.__init2.call(this),I.prototype.__init3.call(this),I.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(0,C.AD)(e.dsn);const t=T(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,i.GR)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log(A));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=(0,_.sO)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then(e=>this._captureEvent(e,n,r)).then(e=>{o=e})),o}captureEvent(e,t,n){if(t&&t.originalException&&(0,i.GR)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log(A));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,k.qO)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):(0,x.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach(e=>{t[e.name]=e,-1===m.indexOf(e.name)&&(e.setupOnce(h.l,f.BF),m.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log(`Integration installed: ${e.name}`))}),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let n=function(e,t,n,r){const o=(0,E.Cj)(n),i=e.type||"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=(0,E.n2)(e,o,r,t);delete e.sdkProcessingMetadata;const a=[{type:i},e];return(0,E.h4)(s,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,E.W3)(n,(0,E.bm)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(n)}}sendSession(e){if(this._dsn){const t=function(e,t,n,r){const o=(0,E.Cj)(n),i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&{dsn:(0,C.SB)(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return(0,E.h4)(i,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,k.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new x.T2(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=this.getOptions(),s={...e,event_id:e.event_id||t.event_id||(0,i.eJ)(),timestamp:e.timestamp||(0,S.lu)()};this._applyClientOptions(s),this._applyIntegrationsMetadata(s);let a=n;t.captureContext&&(a=h.H.clone(a).update(t.captureContext));let l=(0,x.XW)(s);if(a&&a.getAttachments){const e=[...t.attachments||[],...a.getAttachments()];e.length&&(t.attachments=e),l=a.applyToEvent(s,t)}return l.then(e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,o):e)}_normalizeEvent(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,P.S8)(e.data,t,n)}}))},...e.user&&{user:(0,P.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,P.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,P.S8)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,P.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=(0,P.S8)(e.data,t,n)),e))),r}_applyClientOptions(e){const t=this.getOptions(),{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=(0,s.xv)(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,s.xv)(a.value,i));const l=e.request;l&&l.url&&(l.url=(0,s.xv)(l.url,i))}_applyIntegrationsMetadata(e){const t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?o.vF.log(t.message):o.vF.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r;if(!this._isEnabled())return(0,x.xg)(new O.U("SDK not enabled, will not capture event.","log"));const i=M(e),s=R(e),a=e.type||"error",l=`before send for type \`${a}\``;return s&&"number"==typeof o&&Math.random()>o?(this.recordDroppedEvent("sample_rate","error",e),(0,x.xg)(new O.U(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))):this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",a,e),new O.U("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return R(t)&&r?r(t,n):M(t)&&o?o(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,_.Qg)(e))return e.then(e=>{if(!(0,_.Qd)(e)&&null!==e)throw new O.U(n);return e},e=>{throw new O.U(`${t} rejected with ${e}`)});if(!(0,_.Qd)(e)&&null!==e)throw new O.U(n);return e}(o,l)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error",e),new O.U(`${l} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e,changes:[...s.changes,{source:e,timestamp:r.timestamp,propagations:s.propagations}]}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof O.U)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new O.U(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error("Error while sending event:",e)}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function R(e){return void 0===e.type}function M(e){return"transaction"===e.type}function D(e,t){const n=N(e,t),r={type:t&&t.name,value:j(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function L(e,t){return{exception:{values:[D(e,t)]}}}function N(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(V.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const V=/Minified React error #\d+;/i;function j(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function F(e,t,n,r,o){let s;if((0,_.T2)(t)&&t.error)return L(e,t.error);if((0,_.BD)(t)||(0,_.W6)(t)){const o=t;if("stack"in t)s=L(e,t);else{const t=o.name||((0,_.BD)(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;s=z(e,a,n,r),(0,i.gO)(s,a)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return(0,_.bJ)(t)?L(e,t):(0,_.Qd)(t)||(0,_.xH)(t)?(s=function(e,t,n,r){const o=(0,f.BF)().getClient(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:(0,_.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,c.HF)(t)}`}]},extra:{__serialized__:(0,P.cd)(t,i)}};if(n){const t=N(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,o),(0,i.M6)(s,{synthetic:!0}),s):(s=z(e,t,n,r),(0,i.gO)(s,`${t}`,void 0),(0,i.M6)(s,{synthetic:!0}),s)}function z(e,t,n,r){const o={message:t};if(r&&n){const r=N(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}return o}var B=n(79043);const H=n(99009).OW;let U=0;function q(){return U>0}function W(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,c.sp)(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map(e=>W(e,t));return e.apply(this,o)}catch(e){throw U++,setTimeout(()=>{U--}),(0,B.v4)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,i.gO)(e,void 0,void 0),(0,i.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,B.Cp)(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,c.pO)(r,e),(0,c.my)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}var $=n(51858);const Q=["fatal","error","warning","log","info","debug"];function G(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}const Y="Breadcrumbs";class Z{static __initStatic(){this.id=Y}__init(){this.name=Z.id}constructor(e){Z.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&(0,b.O)("console",K),this.options.dom&&(0,b.O)("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{n=t.event.target?(0,$.Hd)(t.event.target,{keyAttrs:r,maxStringLength:i}):(0,$.Hd)(t.event,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&(0,f.BF)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,b.O)("xhr",X),this.options.fetch&&(0,b.O)("fetch",J),this.options.history&&(0,b.O)("history",ee)}addSentryBreadcrumb(e){this.options.sentry&&(0,f.BF)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,i.$X)(e)},{event:e})}}function K(e){for(let t=0;t<e.args.length;t++)if("ref=Ref<"===e.args[t]){e.args[t+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:(n=e.level,"warn"===n?"warning":Q.includes(n)?n:"log"),message:(0,s.gt)(e.args," ")};var n;if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,s.gt)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,f.BF)().addBreadcrumb(t,{input:e.args,level:e.level})}function X(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:o}=e.xhr.__sentry_xhr__||{};return void(0,f.BF)().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:o})}}function J(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,f.BF)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,f.BF)().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function ee(e){let t=e.from,n=e.to;const r=G(H.location.href);let o=G(t);const i=G(n);o.path||(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),(0,f.BF)().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}Z.__initStatic();class te extends I{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},super(e),e.sendClientReports&&H.document&&H.document.addEventListener("visibilitychange",()=>{"hidden"===H.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=F(e,t,n&&n.syntheticException||void 0,r);return(0,i.M6)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,x.XW)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=z(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,x.XW)(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(Y);(0,w.z)([n,"optionalAccess",e=>e.addSentryBreadcrumb,"optionalCall",t=>t(e)]),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log("Sending outcomes:",e);const t=T(this._dsn,this._options),n=function(e,t){const n=[{type:"client_report"},{timestamp:(0,S.lu)(),discarded_events:e}];return(0,E.h4)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,C.SB)(this._dsn));try{"[object Navigator]"===Object.prototype.toString.call(H&&H.navigator)&&"function"==typeof H.navigator.sendBeacon&&!this._options.transportOptions?H.navigator.sendBeacon.bind(H.navigator)(t,(0,E.bN)(n)):this._sendEnvelope(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error(e)}}}const ne="?";function re(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const oe=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ie=/\((\S*)(?::(\d+))(?::(\d+))\)/,se=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,le=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ue=[[30,e=>{const t=oe.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=ie.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=pe(t[1]||ne,t[2]);return re(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=se.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=ae.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||ne;return[n,e]=pe(n,e),re(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=le.exec(e);return t?re(t[2],t[1]||ne,+t[3],t[4]?+t[4]:void 0):void 0}]],ce=(0,y.gd)(...ue),pe=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:ne,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},de=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class fe{static __initStatic(){this.id="TryCatch"}__init(){this.name=fe.id}constructor(e){fe.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,c.GS)(H,"setTimeout",he),this._options.setInterval&&(0,c.GS)(H,"setInterval",he),this._options.requestAnimationFrame&&(0,c.GS)(H,"requestAnimationFrame",me),this._options.XMLHttpRequest&&"XMLHttpRequest"in H&&(0,c.GS)(XMLHttpRequest.prototype,"send",ge);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:de).forEach(ye)}}function he(e){return function(...t){const n=t[0];return t[0]=W(n,{mechanism:{data:{function:(0,y.qQ)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function me(e){return function(t){return e.apply(this,[W(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,y.qQ)(e)},handled:!0,type:"instrument"}})])}}function ge(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,c.GS)(n,e,function(t){const n={mechanism:{data:{function:e,handler:(0,y.qQ)(t)},handled:!0,type:"instrument"}},r=(0,c.sp)(t);return r&&(n.mechanism.data.handler=(0,y.qQ)(r)),W(t,n)})}),e.apply(this,t)}}function ye(e){const t=H,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.GS)(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=W(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,y.qQ)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,W(r,{mechanism:{data:{function:"addEventListener",handler:(0,y.qQ)(r),target:e},handled:!0,type:"instrument"}}),o])}}),(0,c.GS)(n,"removeEventListener",function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}}))}fe.__initStatic();class ve{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ve.id}__init2(){this._installFunc={onerror:be,onunhandledrejection:we}}constructor(e){ve.prototype.__init.call(this),ve.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const t in e){const n=this._installFunc[t];n&&e[t]&&(_e(t),n(),this._installFunc[t]=void 0)}}}function be(){(0,b.O)("error",e=>{const[t,n,r]=Ee();if(!t.getIntegration(ve))return;const{msg:o,url:i,line:s,column:a,error:l}=e;if(q()||l&&l.__sentry_own_request__)return;const u=void 0===l&&(0,_.Kg)(o)?function(e,t,n,r){let o=(0,_.T2)(e)?e.message:e,i="Error";const s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(i=s[1],o=s[2]);return Ce({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,s,a):Ce(F(n,l||o,void 0,r,!1),i,s,a);u.level="error",xe(t,l,u,"onerror")})}function we(){(0,b.O)("unhandledrejection",e=>{const[t,n,r]=Ee();if(!t.getIntegration(ve))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(q()||o&&o.__sentry_own_request__)return!0;const i=(0,_.sO)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:F(n,o,void 0,r,!0);i.level="error",xe(t,o,i,"onunhandledrejection")})}function Ce(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,p=(0,_.Kg)(t)&&t.length>0?t:(0,$.$N)();return 0===l.length&&l.push({colno:u,filename:p,function:"?",in_app:!0,lineno:c}),e}function _e(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.log(`Global Handler attached: ${e}`)}function xe(e,t,n,r){(0,i.M6)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ee(){const e=(0,f.BF)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}ve.__initStatic();class Se{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Se.id}constructor(e={}){Se.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,f.BF)().getClient();e&&(0,h.l)((t,n)=>{const r=(0,f.BF)().getIntegration(Se);return r?function(e,t,n,r,o){if(!(r.exception&&r.exception.values&&o&&(0,_.tH)(o.originalException,Error)))return r;const i=Pe(e,n,o.originalException,t);return r.exception.values=[...i,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t})}}function Pe(e,t,n,r,o=[]){if(!(0,_.tH)(n[r],Error)||o.length+1>=t)return o;const i=D(e,n[r]);return Pe(e,t,n[r],r,[i,...o])}Se.__initStatic();class Oe{constructor(){Oe.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Oe.id}setupOnce(e,t){const n=e=>{const n=t().getIntegration(Oe);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!ke(e,t)&&!!Te(e,t))))}(e,t)||!!function(e,t){const n=Ae(t),r=Ae(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!ke(e,t)&&!!Te(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Te(e,t){let n=Ie(e),r=Ie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function ke(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Ae(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ie(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Oe.__initStatic();class Re{constructor(){Re.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Re.id}setupOnce(){(0,h.l)(e=>{if((0,f.BF)().getIntegration(Re)){if(!H.navigator&&!H.location&&!H.document)return e;const t=e.request&&e.request.url||H.location&&H.location.href,{referrer:n}=H.document||{},{userAgent:r}=H.navigator||{},o={...t&&{url:t},headers:{...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}}};return{...e,request:o}}return e})}}function Me(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,x.xg)(new O.U("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new x.T2((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,x.XW)(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};return{send:function(i){const s=[];if((0,E.yH)(i,(t,n)=>{const o=(0,E.zk)(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=De(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)}),0===s.length)return(0,x.XW)();const a=(0,E.h4)(i[0],s),l=t=>{(0,E.yH)(a,(n,r)=>{const o=De(n,r);e.recordDroppedEvent(t,(0,E.zk)(r),o)})};return n.add(()=>t({body:(0,E.bN)(a,e.textEncoder)}).then(e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n]=e.split(":",2),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))o[e]=r+s;else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}(r,e)},e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error("Failed while sending event:",e),l("network_error")})).then(e=>e,e=>{if(e instanceof O.U)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,x.XW)();throw e})},flush:e=>n.drain(e)}}function De(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Le;function Ne(e,t=function(){if(Le)return Le;if((0,v.ap)(H.fetch))return Le=H.fetch.bind(H);const e=H.document;let t=H.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Le=t.bind(H)}()){return Me(e,function(n){const r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n.body.length<=65536,...e.fetchOptions};try{return t(e.url,r).then(e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return Le=void 0,(0,x.xg)(e)}})}function Ve(e){return Me(e,function(t){return new x.T2((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)})})}Re.__initStatic();const je=[new l,new d,new fe,new Z,new ve,new Se,new Oe,new Re];function Fe(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function ze(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:r}],version:r},function(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=je),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),H.SENTRY_RELEASE&&H.SENTRY_RELEASE.id&&(e.release=H.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,y.vk)(e.stackParser||ce),integrations:g(e),transport:e.transport||((0,v.vm)()?Ne:Ve)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,f.BF)(),r=n.getScope();r&&r.update(t.initialScope);const i=new e(t);n.bindClient(i)}(te,t),e.autoSessionTracking&&function(){if(void 0===H.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,f.BF)();e.captureSession&&(Fe(e),(0,b.O)("history",({from:e,to:t})=>{void 0!==e&&e!==t&&Fe((0,f.BF)())}))}()}(e)}},80610(e,t,n){"use strict";n.d(t,{e:()=>Nt});var r=n(23447);const o=n(99009).OW,i="sentryReplaySession",s="replay_event",a="Unable to send Replay",l=3e5,u=l,c=36e5;var p=n(87801),d=n(79043),f=n(17828),h=n(8088),m=n(69969),g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},y=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,w=/^0o[0-7]+$/i,C=parseInt,_="object"==typeof g&&g&&g.Object===Object&&g,x="object"==typeof self&&self&&self.Object===Object&&self,E=_||x,S=Object.prototype.toString,P=Math.max,O=Math.min,T=function(){return E.Date.now()};function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function A(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==S.call(e)}(e))return NaN;if(k(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=k(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(y,"");var n=b.test(e);return n||w.test(e)?C(e.slice(2),n?2:8):v.test(e)?NaN:+e}var I=n(51858);function R(e){return{timestamp:(new Date).getTime()/1e3,type:"default",...e}}var M,D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)};function L(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function V(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function j(e){var t,n=null===(t=e)||void 0===t?void 0:t.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===e)}function F(e){var t=e.maskInputOptions,n=e.tagName,r=e.type,o=e.value,i=e.maskInputFn,s=o||"";return(t[n.toLowerCase()]||t[r])&&(s=i?i(s):"*".repeat(s.length)),s}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(M||(M={}));var z,B,H="__rrweb_original__",U=1,q=new RegExp("[^a-z0-9-_:]");function W(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map($).join(""):null}catch(e){return null}}function $(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=W(e.styleSheet)||t}catch(e){}return t}var Q=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,G=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Y=/^(data:)([^,]*),(.*)/i;function Z(e,t){return(e||"").replace(Q,function(e,n,r,o,i,s){var a,l=r||i||s,u=n||o||"";if(!l)return e;if(!G.test(l))return"url("+u+l+u+")";if(Y.test(l))return"url("+u+l+u+")";if("/"===l[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+l)+u+")";var c=t.split("/"),p=l.split("/");c.pop();for(var d=0,f=p;d<f.length;d++){var h=f[d];"."!==h&&(".."===h?c.pop():c.push(h))}return"url("+u+c.join("/")+u+")"})}var K=/^[^ \t\n\r\u000c]+/,X=/^[, \t\n\r\u000c]+/;function J(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function ee(){var e=document.createElement("a");return e.href="",e.href}function te(e,t,n,r){return"src"===n||"href"===n&&r||"xlink:href"===n&&r&&"#"!==r[0]?J(e,r):"background"!==n||!r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n&&r?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}for(var o=[];r(X),!(n>=t.length);){var i=r(K);if(","===i.slice(-1))i=J(e,i.substring(0,i.length-1)),o.push(i);else{var s="";i=J(e,i);for(var a=!1;;){var l=t.charAt(n);if(""===l){o.push((i+s).trim());break}if(a)")"===l&&(a=!1);else{if(","===l){n+=1,o.push((i+s).trim());break}"("===l&&(a=!0)}s+=l,n+=1}}}return o.join(", ")}(e,r):"style"===n&&r?Z(r,ee()):"object"===t&&"data"===n&&r?J(e,r):r:J(e,r)}function ne(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var o=e.classList[r];if(t.test(o))return!0}return!(!n||!e.matches(n))||ne(e.parentNode,t,n)}return e.nodeType,e.TEXT_NODE,ne(e.parentNode,t,n)}function re(e){return void 0===e?"":e.toLowerCase()}function oe(e,t){var n,r=t.doc,o=t.map,i=t.blockClass,s=t.blockSelector,a=t.maskTextClass,l=t.maskTextSelector,u=t.skipChild,c=void 0!==u&&u,p=t.inlineStylesheet,d=void 0===p||p,f=t.maskInputOptions,h=void 0===f?{}:f,m=t.maskTextFn,g=t.maskInputFn,y=t.slimDOMOptions,v=t.dataURLOptions,b=void 0===v?{}:v,w=t.inlineImages,C=void 0!==w&&w,_=t.recordCanvas,x=void 0!==_&&_,E=t.onSerialize,S=t.onIframeLoad,P=t.iframeLoadTimeout,O=void 0===P?5e3:P,T=t.keepIframeSrcFn,k=void 0===T?function(){return!1}:T,A=t.preserveWhiteSpace,I=void 0===A||A,R=function(e,t){var n,r,o,i,s=t.doc,a=t.blockClass,l=t.blockSelector,u=t.maskTextClass,c=t.maskTextSelector,p=t.inlineStylesheet,d=t.maskInputOptions,f=void 0===d?{}:d,h=t.maskTextFn,m=t.maskInputFn,g=t.dataURLOptions,y=void 0===g?{}:g,v=t.inlineImages,b=t.recordCanvas,w=t.keepIframeSrcFn;if(s.__sn){var C=s.__sn.id;r=1===C?void 0:C}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:M.Document,childNodes:[],compatMode:e.compatMode,rootId:r}:{type:M.Document,childNodes:[],rootId:r};case e.DOCUMENT_TYPE_NODE:return{type:M.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:r};case e.ELEMENT_NODE:for(var _=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var o=e.classList[r];if(t.test(o))return!0}return!!n&&e.matches(n)}(e,a,l),x=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return q.test(t)?"div":t}(e),E={},S=0,P=Array.from(e.attributes);S<P.length;S++){var O=P[S],T=O.name,k=O.value;E[T]=te(s,x,T,k)}if("link"===x&&p){var A=Array.from(s.styleSheets).find(function(t){return t.href===e.href}),I=null;A&&(I=W(A)),I&&(delete E.rel,delete E.href,E._cssText=Z(I,A.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length&&(I=W(e.sheet))&&(E._cssText=Z(I,ee())),"input"!==x&&"textarea"!==x&&"select"!==x||(k=e.value,"radio"!==E.type&&"checkbox"!==E.type&&"submit"!==E.type&&"button"!==E.type&&k?E.value=F({type:E.type,tagName:x,value:k,maskInputOptions:f,maskInputFn:m}):e.checked&&(E.checked=e.checked)),"option"===x&&(e.selected&&!f.select?E.selected=!0:delete E.selected),"canvas"===x&&b)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var o=t.getImageData,i=H in o?o[H]:o;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){var R=e.toDataURL(y.type,y.quality),D=document.createElement("canvas");D.width=e.width,D.height=e.height,R!==D.toDataURL(y.type,y.quality)&&(E.rr_dataURL=R)}if("img"===x&&v){z||(z=s.createElement("canvas"),B=z.getContext("2d"));var L=e,N=L.crossOrigin;L.crossOrigin="anonymous";var V=function(){try{z.width=L.naturalWidth,z.height=L.naturalHeight,B.drawImage(L,0,0),E.rr_dataURL=z.toDataURL(y.type,y.quality)}catch(e){console.warn("Cannot inline img src="+L.currentSrc+"! Error: "+e)}N?E.crossOrigin=N:delete E.crossOrigin};L.complete&&0!==L.naturalWidth?V():L.onload=V}if("audio"!==x&&"video"!==x||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop),_){var j=e.getBoundingClientRect(),U=j.width,$=j.height;E={class:E.class,rr_width:U+"px",rr_height:$+"px"}}return"iframe"!==x||w(E.src)||(e.contentDocument||(E.rr_src=E.src),delete E.src),{type:M.Element,tagName:x,attributes:E,childNodes:[],isSVG:(i=e,Boolean("svg"===i.tagName||i.ownerSVGElement)||void 0),needBlock:_,rootId:r};case e.TEXT_NODE:var Q=e.parentNode&&e.parentNode.tagName,G=e.textContent,Y="STYLE"===Q||void 0,K="SCRIPT"===Q||void 0;if(Y&&G){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(G=(o=e.parentNode.sheet).cssRules?Array.from(o.cssRules).map(function(e){return e.cssText||""}).join(""):"")}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}G=Z(G,ee())}return K&&(G="SCRIPT_PLACEHOLDER"),!Y&&!K&&ne(e,u,c)&&G&&(G=h?h(G):G.replace(/[\S]/g,"*")),{type:M.Text,textContent:G||"",isStyle:Y,rootId:r};case e.CDATA_SECTION_NODE:return{type:M.CDATA,textContent:"",rootId:r};case e.COMMENT_NODE:return{type:M.Comment,textContent:e.textContent||"",rootId:r};default:return!1}}(e,{doc:r,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:l,inlineStylesheet:d,maskInputOptions:h,maskTextFn:m,maskInputFn:g,dataURLOptions:b,inlineImages:C,recordCanvas:x,keepIframeSrcFn:k});if(!R)return console.warn(e,"not serialized"),null;n="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===M.Comment)return!0;if(e.type===M.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(re(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===re(e.attributes.name)||"icon"===re(e.attributes.rel)||"apple-touch-icon"===re(e.attributes.rel)||"shortcut icon"===re(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&re(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(re(e.attributes.property).match(/^(og|twitter|fb):/)||re(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===re(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===re(e.attributes.name)||"googlebot"===re(e.attributes.name)||"bingbot"===re(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===re(e.attributes.name)||"generator"===re(e.attributes.name)||"framework"===re(e.attributes.name)||"publisher"===re(e.attributes.name)||"progid"===re(e.attributes.name)||re(e.attributes.property).match(/^article:/)||re(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===re(e.attributes.name)||"yandex-verification"===re(e.attributes.name)||"csrf-token"===re(e.attributes.name)||"p:domain_verify"===re(e.attributes.name)||"verify-v1"===re(e.attributes.name)||"verification"===re(e.attributes.name)||"shopify-checkout-api-token"===re(e.attributes.name)))return!0}}return!1}(R,y)&&(I||R.type!==M.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?U++:-2;var D=Object.assign(R,{id:n});if(e.__sn=D,-2===n)return null;o[n]=e,E&&E(e);var L=!c;if(D.type===M.Element&&(L=L&&!D.needBlock,delete D.needBlock,e.shadowRoot&&(D.isShadowHost=!0)),(D.type===M.Document||D.type===M.Element)&&L){y.headWhitespace&&R.type===M.Element&&"head"===R.tagName&&(I=!1);for(var N={doc:r,map:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:l,skipChild:c,inlineStylesheet:d,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:C,recordCanvas:x,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:O,keepIframeSrcFn:k},V=0,$=Array.from(e.childNodes);V<$.length;V++)(Y=oe($[V],N))&&D.childNodes.push(Y);if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(var Q=0,G=Array.from(e.shadowRoot.childNodes);Q<G.length;Q++){var Y;(Y=oe(G[Q],N))&&(Y.isShadow=!0,D.childNodes.push(Y))}}return e.parentNode&&j(e.parentNode)&&(D.isShadow=!0),D.type===M.Element&&"iframe"===D.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"===o){var s="about:blank";r.location.href===s&&e.src!==s&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}else{var a=setTimeout(function(){i||(t(),i=!0)},n);e.addEventListener("load",function(){clearTimeout(a),i=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&S){var n=oe(t,{doc:t,map:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:C,recordCanvas:x,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:O,keepIframeSrcFn:k});n&&S(e,n)}},O),D}var ie,se,ae,le,ue,ce;function pe(e,t,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}new RegExp(/([^\\]):hover/.source,"g"),function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"}(ie||(ie={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"}(se||(se={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(ae||(ae={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(le||(le={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(ue||(ue={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(ce||(ce={}));var de="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",fe={map:{},getId:function(){return console.error(de),-1},getNode:function(){return console.error(de),null},removeNodeFromMap:function(){console.error(de)},has:function(){return console.error(de),!1},reset:function(){console.error(de)}};function he(e,t,n){void 0===n&&(n={});var r=null,o=0;return function(i){var s=Date.now();o||!1!==n.leading||(o=s);var a=t-(s-o),l=this,u=arguments;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(l,u)):r||!1===n.trailing||(r=setTimeout(function(){o=!1===n.leading?0:Date.now(),r=null,e.apply(l,u)},a))}}function me(e,t,n,r,o){void 0===o&&(o=window);var i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),i&&i.set&&i.set.call(this,e)}}),function(){return me(e,t,i||{},!0)}}function ge(e,t,n){try{if(!(t in e))return function(){};var r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,function(){e[t]=r}}catch(e){return function(){}}}function ye(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ve(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function be(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var n=!1;if("string"==typeof t){if(void 0!==e.closest)return null!==e.closest("."+t);n=e.classList.contains(t)}else e.classList.forEach(function(e){t.test(e)&&(n=!0)});return n||be(e.parentNode,t)}return e.nodeType,e.TEXT_NODE,be(e.parentNode,t)}function we(e){return"__sn"in e&&-2===e.__sn.id}function Ce(e,t){if(j(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ce(e.parentNode,t))}function _e(e){return Boolean(e.changedTouches)}function xe(e){return"__sn"in e&&e.__sn.type===M.Element&&"iframe"===e.__sn.tagName}function Ee(e){return Boolean(null==e?void 0:e.shadowRoot)}function Se(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(fe=new Proxy(fe,{get:function(e,t,n){return"map"===t&&console.error(de),Reflect.get(e,t,n)}})),function(){function e(){this.reset()}e.prototype.add=function(e){var t=this.indexes.get(e.parentId),n={id:e.node.id,mutation:e,children:[],texts:[],attributes:[]};t?(n.parent=t,t.children[n.id]=n):this.tree[n.id]=n,this.indexes.set(n.id,n)},e.prototype.remove=function(e,t){var n=this,r=this.indexes.get(e.parentId),o=this.indexes.get(e.id),i=function(e){n.removeIdSet.add(e);var r=t.getNode(e);null==r||r.childNodes.forEach(function(e){"__sn"in e&&i(e.__sn.id)})},s=function(t){n.removeIdSet.add(t.id),Object.values(t.children).forEach(function(e){return s(e)});var r=n.indexes.get(t.id);if(r){var o=r.parent;o&&(delete r.parent,delete o.children[r.id],n.indexes.delete(e.id))}};o?r?(delete o.parent,delete r.children[o.id],this.indexes.delete(e.id),s(o)):(delete this.tree[o.id],this.indexes.delete(o.id),s(o)):(this.removeNodeMutations.push(e),i(e.id))},e.prototype.text=function(e){var t=this.indexes.get(e.id);t?t.texts.push(e):this.textMutations.push(e)},e.prototype.attribute=function(e){var t=this.indexes.get(e.id);t?t.attributes.push(e):this.attributeMutations.push(e)},e.prototype.scroll=function(e){this.scrollMap.set(e.id,e)},e.prototype.input=function(e){this.inputMap.set(e.id,e)},e.prototype.flush=function(){var e,t,n,r,o=this,i=this,s=i.tree,a=i.removeNodeMutations,l=i.textMutations,u=i.attributeMutations,c={source:se.Mutation,removes:a,texts:l,attributes:u,adds:[]},p=function(e,t){t&&o.removeIdSet.add(e.id),c.texts=c.texts.concat(t?[]:e.texts).filter(function(e){return!o.removeIdSet.has(e.id)}),c.attributes=c.attributes.concat(t?[]:e.attributes).filter(function(e){return!o.removeIdSet.has(e.id)}),o.removeIdSet.has(e.id)||o.removeIdSet.has(e.mutation.parentId)||t?Object.values(e.children).forEach(function(e){return p(e,!0)}):(c.adds.push(e.mutation),e.children&&Object.values(e.children).forEach(function(e){return p(e,!1)}))};Object.values(s).forEach(function(e){return p(e,!1)});try{for(var d=L(this.scrollMap.keys()),f=d.next();!f.done;f=d.next()){var h=f.value;this.removeIdSet.has(h)&&this.scrollMap.delete(h)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var m=L(this.inputMap.keys()),g=m.next();!g.done;g=m.next())h=g.value,this.removeIdSet.has(h)&&this.inputMap.delete(h)}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}var y=new Map(this.scrollMap),v=new Map(this.inputMap);return this.reset(),{mutationData:c,scrollMap:y,inputMap:v}},e.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},e.prototype.idRemoved=function(e){return this.removeIdSet.has(e)}}();var Pe=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t},e.prototype.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Se(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else e.nextSibling&&Se(e.nextSibling)&&e.nextSibling.__ln.previous?(n=e.nextSibling.__ln.previous,t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)):(this.head&&(this.head.previous=t),t.next=this.head,this.head=t);this.length++},e.prototype.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},e}(),Oe=function(e,t){return"".concat(e,"@").concat(t)};function Te(e){return"__sn"in e}var ke=function(){function e(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(e.processMutation),e.emit()},this.emit=function(){var t,n,r,o;if(!e.frozen&&!e.locked){for(var i=[],s=new Pe,a=function(t){for(var n=t,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&e.mirror.getId(n);return r},l=function(t){for(var n,r,o,l,u,c=t.getRootNode?null===(n=t.getRootNode())||void 0===n?void 0:n.host:null,p=c;null===(o=null===(r=null==p?void 0:p.getRootNode)||void 0===r?void 0:r.call(p))||void 0===o?void 0:o.host;)p=(null===(u=null===(l=null==p?void 0:p.getRootNode)||void 0===l?void 0:l.call(p))||void 0===u?void 0:u.host)||null;var d=!(e.doc.contains(t)||null!==p&&e.doc.contains(p));if(t.parentNode&&!d){var f=j(t.parentNode)?e.mirror.getId(c):e.mirror.getId(t.parentNode),h=a(t);if(-1===f||-1===h)return s.addNode(t);var m=oe(t,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(n){xe(n)&&e.iframeManager.addIframe(n),Ee(t)&&e.shadowDomManager.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n),e.shadowDomManager.observeAttachShadow(t)}});m&&i.push({parentId:f,nextId:h,node:m})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var u=L(e.movedSet),c=u.next();!c.done;c=u.next()){var p=c.value;Ie(e.removes,p,e.mirror)&&!e.movedSet.has(p.parentNode)||l(p)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}try{for(var d=L(e.addedSet),f=d.next();!f.done;f=d.next())p=f.value,Re(e.droppedSet,p)||Ie(e.removes,p,e.mirror)?Re(e.movedSet,p)?l(p):e.droppedSet.add(p):l(p)}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}for(var h=null;s.length;){var m=null;if(h){var g=e.mirror.getId(h.value.parentNode),y=a(h.value);-1!==g&&-1!==y&&(m=h)}if(!m)for(var v=s.length-1;v>=0;v--){var b=s.get(v);if(b&&(g=e.mirror.getId(b.value.parentNode),y=a(b.value),-1!==g&&-1!==y)){m=b;break}}if(!m){for(;s.head;)s.removeNode(s.head.value);break}h=m.previous,s.removeNode(m.value),l(m.value)}var w={texts:e.texts.map(function(t){return{id:e.mirror.getId(t.node),value:t.value}}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:i};(w.texts.length||w.attributes.length||w.removes.length||w.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(w))}},this.processMutation=function(t){var n,r,o,i;if(!we(t.target))switch(t.type){case"characterData":var s=t.target.textContent;be(t.target,e.blockClass)||s===t.oldValue||e.texts.push({value:ne(t.target,e.maskTextClass,e.maskTextSelector)&&s?e.maskTextFn?e.maskTextFn(s):s.replace(/[\S]/g,"*"):s,node:t.target});break;case"attributes":var a=t.target;if(s=t.target.getAttribute(t.attributeName),"value"===t.attributeName&&(s=F({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:s,maskInputFn:e.maskInputFn})),be(t.target,e.blockClass)||s===t.oldValue)return;var l=e.attributes.find(function(e){return e.node===t.target});if(l||(l={node:t.target,attributes:{}},e.attributes.push(l)),"style"===t.attributeName){var u=e.doc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue),void 0!==l.attributes.style&&null!==l.attributes.style||(l.attributes.style={});var c=l.attributes.style;try{for(var p=L(Array.from(a.style)),d=p.next();!d.done;d=p.next()){var f=d.value,h=a.style.getPropertyValue(f),m=a.style.getPropertyPriority(f);h===u.style.getPropertyValue(f)&&m===u.style.getPropertyPriority(f)||(c[f]=""===m?h:[h,m])}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var g=L(Array.from(u.style)),y=g.next();!y.done;y=g.next())f=y.value,""===a.style.getPropertyValue(f)&&(c[f]=!1)}catch(e){o={error:e}}finally{try{y&&!y.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}}else l.attributes[t.attributeName]=te(e.doc,t.target.tagName,t.attributeName,s);break;case"childList":t.addedNodes.forEach(function(n){return e.genAdds(n,t.target)}),t.removedNodes.forEach(function(n){var r=e.mirror.getId(n),o=j(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);be(t.target,e.blockClass)||we(n)||(e.addedSet.has(n)?(Ae(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&-1===r||Ce(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[Oe(r,o)]?Ae(e.movedSet,n):e.removes.push({parentId:o,id:r,isShadow:!!j(t.target)||void 0})),e.mapRemoves.push(n))})}},this.genAdds=function(t,n){if(!n||!be(n,e.blockClass)){if(Te(t)){if(we(t))return;e.movedSet.add(t);var r=null;n&&Te(n)&&(r=n.__sn.id),r&&(e.movedMap[Oe(t.__sn.id,r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);be(t,e.blockClass)||t.childNodes.forEach(function(t){return e.genAdds(t)})}}}return e.prototype.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(n){t[n]=e[n]})},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Ae(e,t){e.delete(t),t.childNodes.forEach(function(t){return Ae(e,t)})}function Ie(e,t,n){var r=t.parentNode;if(!r)return!1;var o=n.getId(r);return!!e.some(function(e){return e.id===o})||Ie(e,r,n)}function Re(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||Re(e,n))}var Me=[],De="undefined"!=typeof CSSGroupingRule,Le="undefined"!=typeof CSSMediaRule,Ne="undefined"!=typeof CSSSupportsRule,Ve="undefined"!=typeof CSSConditionRule;function je(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function Fe(e,t){var n,r,o=new ke;Me.push(o),o.init(e);var i=window.MutationObserver||window.__rrMutationObserver,s=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");s&&window[s]&&(i=window[s]);var a=new i(o.processMutations.bind(o));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ze(e){var t=e.scrollCb,n=e.doc,r=e.mirror,o=e.blockClass;return pe("scroll",he(function(e){var i=je(e);if(i&&!be(i,o)){var s=r.getId(i);if(i===n){var a=n.scrollingElement||n.documentElement;t({id:s,x:a.scrollLeft,y:a.scrollTop})}else t({id:s,x:i.scrollLeft,y:i.scrollTop})}},e.sampling.scroll||100),n)}function Be(e,t){var n=D({},e);return t||delete n.userTriggered,n}var He=["INPUT","TEXTAREA","SELECT"],Ue=new WeakMap;function qe(e){return function(e,t){if(De&&e.parentRule instanceof CSSGroupingRule||Le&&e.parentRule instanceof CSSMediaRule||Ne&&e.parentRule instanceof CSSSupportsRule||Ve&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n);return t}(e,[])}function We(e,t){var n,r;void 0===t&&(t={});var o=e.doc.defaultView;if(!o)return function(){};!function(e,t){var n=e.mutationCb,r=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,u=e.styleSheetRuleCb,c=e.styleDeclarationCb,p=e.canvasMutationCb,d=e.fontCb;e.mutationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mutation&&t.mutation.apply(t,V([],N(e),!1)),n.apply(void 0,V([],N(e),!1))},e.mousemoveCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mousemove&&t.mousemove.apply(t,V([],N(e),!1)),r.apply(void 0,V([],N(e),!1))},e.mouseInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mouseInteraction&&t.mouseInteraction.apply(t,V([],N(e),!1)),o.apply(void 0,V([],N(e),!1))},e.scrollCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.scroll&&t.scroll.apply(t,V([],N(e),!1)),i.apply(void 0,V([],N(e),!1))},e.viewportResizeCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.viewportResize&&t.viewportResize.apply(t,V([],N(e),!1)),s.apply(void 0,V([],N(e),!1))},e.inputCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.input&&t.input.apply(t,V([],N(e),!1)),a.apply(void 0,V([],N(e),!1))},e.mediaInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mediaInteaction&&t.mediaInteaction.apply(t,V([],N(e),!1)),l.apply(void 0,V([],N(e),!1))},e.styleSheetRuleCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.styleSheetRule&&t.styleSheetRule.apply(t,V([],N(e),!1)),u.apply(void 0,V([],N(e),!1))},e.styleDeclarationCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.styleDeclaration&&t.styleDeclaration.apply(t,V([],N(e),!1)),c.apply(void 0,V([],N(e),!1))},e.canvasMutationCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.canvasMutation&&t.canvasMutation.apply(t,V([],N(e),!1)),p.apply(void 0,V([],N(e),!1))},e.fontCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.font&&t.font.apply(t,V([],N(e),!1)),d.apply(void 0,V([],N(e),!1))}}(e,t);var i=Fe(e,e.doc),s=function(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var i,s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,l=[],u=he(function(e){var n=Date.now()-i;t(l.map(function(e){return e.timeOffset-=n,e}),e),l=[],i=null},a),c=he(function(e){var t=je(e),n=_e(e)?e.changedTouches[0]:e,r=n.clientX,s=n.clientY;i||(i=Date.now()),l.push({x:r,y:s,id:o.getId(t),timeOffset:Date.now()-i}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?se.Drag:e instanceof MouseEvent?se.MouseMove:se.TouchMove)},s,{trailing:!1}),p=[pe("mousemove",c,r),pe("touchmove",c,r),pe("drag",c,r)];return function(){p.forEach(function(e){return e()})}}(e),a=function(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.sampling;if(!1===i.mouseInteraction)return function(){};var s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[];return Object.keys(ae).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]}).forEach(function(e){var i=e.toLowerCase(),s=function(e){return function(n){var i=je(n);if(!be(i,o)){var s=_e(n)?n.changedTouches[0]:n;if(s){var a=r.getId(i),l=s.clientX,u=s.clientY;t({type:ae[e],id:a,x:l,y:u})}}}}(e);a.push(pe(i,s,n))}),function(){a.forEach(function(e){return e()})}}(e),l=ze(e),u=function(e){var t=e.viewportResizeCb,n=-1,r=-1;return pe("resize",he(function(){var e=ye(),o=ve();n===e&&r===o||(t({width:Number(o),height:Number(e)}),n=e,r=o)},200),window)}(e),c=function(e){var t=e.inputCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.ignoreClass,s=e.maskInputOptions,a=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function c(e){var t=je(e),r=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(He.indexOf(t.tagName)<0)&&!be(t,o)){var l=t.type;if(!t.classList.contains(i)){var c=t.value,d=!1;"radio"===l||"checkbox"===l?d=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(c=F({maskInputOptions:s,tagName:t.tagName,type:l,value:c,maskInputFn:a})),p(t,Be({text:c,isChecked:d,userTriggered:r},u));var f=t.name;"radio"===l&&f&&d&&n.querySelectorAll('input[type="radio"][name="'.concat(f,'"]')).forEach(function(e){e!==t&&p(e,Be({text:e.value,isChecked:!d,userTriggered:!1},u))})}}}function p(e,n){var o=Ue.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){Ue.set(e,n);var i=r.getId(e);t(D(D({},n),{id:i}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return pe(e,c,n)}),f=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),h=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return f&&f.set&&d.push.apply(d,V([],N(h.map(function(e){return me(e[0],e[1],{set:function(){c({target:this})}})})),!1)),function(){d.forEach(function(e){return e()})}}(e),p=function(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.mirror,o=e.sampling,i=function(e){return he(function(o){var i=je(o);if(i&&!be(i,n)){var s=i,a=s.currentTime,l=s.volume,u=s.muted;t({type:e,id:r.getId(i),currentTime:a,volume:l,muted:u})}},o.media||500)},s=[pe("play",i(0)),pe("pause",i(1)),pe("seeked",i(2)),pe("volumechange",i(3))];return function(){s.forEach(function(e){return e()})}}(e),d=function(e,t){var n=e.styleSheetRuleCb,r=e.mirror,o=t.win,i=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=function(e,t){var o=r.getId(this.ownerNode);return-1!==o&&n({id:o,adds:[{rule:e,index:t}]}),i.apply(this,arguments)};var s=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=function(e){var t=r.getId(this.ownerNode);return-1!==t&&n({id:t,removes:[{index:e}]}),s.apply(this,arguments)};var a={};De?a.CSSGroupingRule=o.CSSGroupingRule:(Le&&(a.CSSMediaRule=o.CSSMediaRule),Ve&&(a.CSSConditionRule=o.CSSConditionRule),Ne&&(a.CSSSupportsRule=o.CSSSupportsRule));var l={};return Object.entries(a).forEach(function(e){var t=N(e,2),o=t[0],i=t[1];l[o]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=function(e,t){var i=r.getId(this.parentStyleSheet.ownerNode);return-1!==i&&n({id:i,adds:[{rule:e,index:V(V([],N(qe(this)),!1),[t||0],!1)}]}),l[o].insertRule.apply(this,arguments)},i.prototype.deleteRule=function(e){var t=r.getId(this.parentStyleSheet.ownerNode);return-1!==t&&n({id:t,removes:[{index:V(V([],N(qe(this)),!1),[e],!1)}]}),l[o].deleteRule.apply(this,arguments)}}),function(){o.CSSStyleSheet.prototype.insertRule=i,o.CSSStyleSheet.prototype.deleteRule=s,Object.entries(a).forEach(function(e){var t=N(e,2),n=t[0],r=t[1];r.prototype.insertRule=l[n].insertRule,r.prototype.deleteRule=l[n].deleteRule})}}(e,{win:o}),f=function(e,t){var n=e.styleDeclarationCb,r=e.mirror,o=t.win,i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=function(e,t,o){var s,a,l=r.getId(null===(a=null===(s=this.parentRule)||void 0===s?void 0:s.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==l&&n({id:l,set:{property:e,value:t,priority:o},index:qe(this.parentRule)}),i.apply(this,arguments)};var s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=function(e){var t,o,i=r.getId(null===(o=null===(t=this.parentRule)||void 0===t?void 0:t.parentStyleSheet)||void 0===o?void 0:o.ownerNode);return-1!==i&&n({id:i,remove:{property:e},index:qe(this.parentRule)}),s.apply(this,arguments)},function(){o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}}(e,{win:o}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var o=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,n){var r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var a=ge(n.fonts,"add",function(e){return function(n){return setTimeout(function(){var e=i.get(n);e&&(t(e),i.delete(n))},0),e.apply(this,[n])}});return o.push(function(){r.FontFace=s}),o.push(a),function(){o.forEach(function(e){return e()})}}(e):function(){},m=[];try{for(var g=L(e.plugins),y=g.next();!y.done;y=g.next()){var v=y.value;m.push(v.observer(v.callback,o,v.options))}}catch(e){n={error:e}}finally{try{y&&!y.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}return function(){Me.forEach(function(e){return e.reset()}),i.disconnect(),s(),a(),l(),u(),c(),p(),d(),f(),h(),m.forEach(function(e){return e()})}}for(var $e=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)},e}(),Qe=function(){function e(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var t=this;this.restorePatches.push(ge(HTMLElement.prototype,"attachShadow",function(e){return function(){var n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}}))}return e.prototype.addShadowRoot=function(e,t){Fe(D(D({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),ze(D(D({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},e.prototype.observeAttachShadow=function(e){if(e.contentWindow){var t=this;this.restorePatches.push(ge(e.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){var r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}}))}},e.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},e}(),Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ye="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ze=0;Ze<64;Ze++)Ye[Ge.charCodeAt(Ze)]=Ze;var Ke=new Map,Xe=function(e,t,n){if(e&&(et(e,t)||"object"==typeof e)){var r=function(e,t){var n=Ke.get(e);return n||(n=new Map,Ke.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o}};function Je(e,t,n){if(e instanceof Array)return e.map(function(e){return Je(e,t,n)});if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var r=e.constructor.name,o=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=Ge[n[t]>>2],o+=Ge[(3&n[t])<<4|n[t+1]>>4],o+=Ge[(15&n[t+1])<<2|n[t+2]>>6],o+=Ge[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:r,base64:o}}return e instanceof DataView?{rr_type:e.constructor.name,args:[Je(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof ImageData?{rr_type:e.constructor.name,args:[Je(e.data,t,n),e.width,e.height]}:et(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Xe(e,t,n)}:e}var et=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(n.find(function(n){return e instanceof t[n]}))};function tt(e,t,n,r,o,i){var s,a,l=[],u=Object.getOwnPropertyNames(e),c=function(s){try{if("function"!=typeof e[s])return"continue";var a=ge(e,s,function(a){return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var c=a.apply(this,l);if(Xe(c,i,e),!be(this.canvas,r)){o.getId(this.canvas);var p=function(e,t,n){return V([],N(e),!1).map(function(e){return Je(e,t,n)})}(V([],N(l),!1),i,e),d={type:t,property:s,args:p};n(this.canvas,d)}return c}});l.push(a)}catch(r){var u=me(e,s,{set:function(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});l.push(u)}};try{for(var p=L(u),d=p.next();!d.done;d=p.next())c(d.value)}catch(e){s={error:e}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(s)throw s.error}}return l}var nt,rt,ot=function(){function e(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass)}return e.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1},e.prototype.initCanvasMutationObserver=function(e,t){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=function(e,t){var n=[];try{var r=ge(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return be(this,t)||"__context"in this||(this.__context=n),e.apply(this,V([n],N(r),!1))}});n.push(r)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach(function(e){return e()})}}(e,t),r=function(e,t,n){var r,o,i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=function(r){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[r])return"continue";var o=ge(t.CanvasRenderingContext2D.prototype,r,function(t){return function(){for(var o=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return be(this.canvas,n)||setTimeout(function(){var t=V([],N(i),!1);if("drawImage"===r&&t[0]&&t[0]instanceof HTMLCanvasElement){var n=t[0],s=n.getContext("2d"),a=null==s?void 0:s.getImageData(0,0,n.width,n.height),l=null==a?void 0:a.data;t[0]=JSON.stringify(l)}e(o.canvas,{type:le["2D"],property:r,args:t})},0),t.apply(this,i)}});i.push(o)}catch(n){var s=me(t.CanvasRenderingContext2D.prototype,r,{set:function(t){e(this.canvas,{type:le["2D"],property:r,args:[t],setter:!0})}});i.push(s)}};try{for(var l=L(s),u=l.next();!u.done;u=l.next())a(u.value)}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return function(){i.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,this.mirror),o=function(e,t,n,r){var o=[];return o.push.apply(o,V([],N(tt(t.WebGLRenderingContext.prototype,le.WebGL,e,n,r,t)),!1)),void 0!==t.WebGL2RenderingContext&&o.push.apply(o,V([],N(tt(t.WebGL2RenderingContext.prototype,le.WebGL2,e,n,r,t)),!1)),function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,this.mirror);this.resetObservers=function(){n(),r(),o()}},e.prototype.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},e.prototype.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},e.prototype.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var r=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},e.prototype.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(e);if(n&&-1!==t){var r=n.map(function(e){e.type;var t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["type"]);return t}),o=n[0].type;this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}},e}();function it(e){return D(D({},e),{timestamp:Date.now()})}var st={map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,n=e.__sn&&e.__sn.id;delete this.map[n],e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}};function at(e){void 0===e&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,o=e.blockClass,i=void 0===o?"rr-block":o,s=e.blockSelector,a=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,c=e.maskTextClass,p=void 0===c?"rr-mask":c,d=e.maskTextSelector,f=void 0===d?null:d,h=e.inlineStylesheet,m=void 0===h||h,g=e.maskAllInputs,y=e.maskInputOptions,v=e.slimDOMOptions,b=e.maskInputFn,w=e.maskTextFn,C=e.hooks,_=e.packFn,x=e.sampling,E=void 0===x?{}:x,S=e.mousemoveWait,P=e.recordCanvas,O=void 0!==P&&P,T=e.userTriggeredOnInput,k=void 0!==T&&T,A=e.collectFonts,I=void 0!==A&&A,R=e.inlineImages,M=void 0!==R&&R,V=e.plugins,j=e.keepIframeSrcFn,F=void 0===j?function(){return!1}:j;if(!t)throw new Error("emit function is required");void 0!==S&&void 0===E.mousemove&&(E.mousemove=S);var z,B,H=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==y?y:{password:!0},U=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};void 0===z&&(z=window),"NodeList"in z&&!z.NodeList.prototype.forEach&&(z.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in z&&!z.DOMTokenList.prototype.forEach&&(z.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1});var q=0;nt=function(e,o){var i;if(!(null===(i=Me[0])||void 0===i?void 0:i.isFrozen())||e.type===ie.FullSnapshot||e.type===ie.IncrementalSnapshot&&e.data.source===se.Mutation||Me.forEach(function(e){return e.unfreeze()}),t(function(e){var t,n;try{for(var r=L(V||[]),o=r.next();!o.done;o=r.next()){var i=o.value;i.eventProcessor&&(e=i.eventProcessor(e))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return _&&(e=_(e)),e}(e),o),e.type===ie.FullSnapshot)B=e,q=0;else if(e.type===ie.IncrementalSnapshot){if(e.data.source===se.Mutation&&e.data.isAttachIframe)return;q++;var s=r&&q>=r,a=n&&e.timestamp-B.timestamp>n;(s||a)&&rt(!0)}};var W=function(e){nt(it({type:ie.IncrementalSnapshot,data:D({source:se.Mutation},e)}))},$=function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.Scroll},e)}))},Q=function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.CanvasMutation},e)}))},G=new $e({mutationCb:W}),Y=new ot({recordCanvas:O,mutationCb:Q,win:window,blockClass:i,mirror:st}),Z=new Qe({mutationCb:W,scrollCb:$,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:p,maskTextSelector:f,inlineStylesheet:m,maskInputOptions:H,maskTextFn:w,maskInputFn:b,recordCanvas:O,inlineImages:M,sampling:E,slimDOMOptions:U,iframeManager:G,canvasManager:Y},mirror:st});rt=function(e){var t,n,r,o;void 0===e&&(e=!1),nt(it({type:ie.Meta,data:{href:window.location.href,width:ve(),height:ye()}}),e),Me.forEach(function(e){return e.lock()});var s=N(function(e,t){var n=t||{},r=n.blockClass,o=n.blockSelector,i=n.maskTextClass,s=n.maskTextSelector,a=n.inlineStylesheet,l=n.inlineImages,u=n.recordCanvas,c=n.maskAllInputs,p=void 0!==c&&c,d=n.slimDOM,f=void 0!==d&&d,h=n.keepIframeSrcFn,m={};return[oe(e,{doc:e,map:m,blockClass:void 0===r?"rr-block":r,blockSelector:void 0===o?null:o,maskTextClass:void 0===i?"rr-mask":i,maskTextSelector:void 0===s?null:s,skipChild:!1,inlineStylesheet:void 0===a||a,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===p?{password:!0}:p,maskTextFn:n.maskTextFn,maskInputFn:n.maskInputFn,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:n.dataURLOptions,inlineImages:void 0!==l&&l,recordCanvas:void 0!==u&&u,preserveWhiteSpace:n.preserveWhiteSpace,onSerialize:n.onSerialize,onIframeLoad:n.onIframeLoad,iframeLoadTimeout:n.iframeLoadTimeout,keepIframeSrcFn:void 0===h?function(){return!1}:h}),m]}(document,{blockClass:i,blockSelector:a,maskTextClass:p,maskTextSelector:f,inlineStylesheet:m,maskAllInputs:H,maskTextFn:w,slimDOM:U,recordCanvas:O,inlineImages:M,onSerialize:function(e){xe(e)&&G.addIframe(e),Ee(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){G.attachIframe(e,t),Z.observeAttachShadow(e)},keepIframeSrcFn:F}),2),l=s[0],u=s[1];if(!l)return console.warn("Failed to snapshot the document");st.map=u,nt(it({type:ie.FullSnapshot,data:{node:l,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),Me.forEach(function(e){return e.unlock()})};try{var K=[];K.push(pe("DOMContentLoaded",function(){nt(it({type:ie.DomContentLoaded,data:{}}))}));var X=function(e){var t;return We({mutationCb:W,mousemoveCb:function(e,t){return nt(it({type:ie.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.MouseInteraction},e)}))},scrollCb:$,viewportResizeCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.ViewportResize},e)}))},inputCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.Input},e)}))},mediaInteractionCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.StyleDeclaration},e)}))},canvasMutationCb:Q,fontCb:function(e){return nt(it({type:ie.IncrementalSnapshot,data:D({source:se.Font},e)}))},blockClass:i,ignoreClass:u,maskTextClass:p,maskTextSelector:f,maskInputOptions:H,inlineStylesheet:m,sampling:E,recordCanvas:O,inlineImages:M,userTriggeredOnInput:k,collectFonts:I,doc:e,maskInputFn:b,maskTextFn:w,blockSelector:a,slimDOMOptions:U,mirror:st,iframeManager:G,shadowDomManager:Z,canvasManager:Y,plugins:(null===(t=null==V?void 0:V.filter(function(e){return e.observer}))||void 0===t?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return nt(it({type:ie.Plugin,data:{plugin:e.name,payload:t}}))}}}))||[]},C)};G.addLoadListener(function(e){try{K.push(X(e.contentDocument))}catch(e){console.warn("error in rrweb iframe observer",e)}});var J=function(){rt(),K.push(X(document))};return"interactive"===document.readyState||"complete"===document.readyState?J():K.push(pe("load",function(){nt(it({type:ie.Load,data:{}})),J()},window)),function(){K.forEach(function(e){return e()})}}catch(e){console.warn(e)}}at.addCustomEvent=function(e,t){if(!nt)throw new Error("please add custom event after start recording");nt(it({type:ie.Custom,data:{tag:e,payload:t}}))},at.freezePage=function(){Me.forEach(function(e){return e.freeze()})},at.takeFullSnapshot=function(e){if(!rt)throw new Error("please take full snapshot after start recording");rt(e)},at.mirror=st;let lt=null;function ut(e,t){return"scope"===e?function(e){const t=e.getLastBreadcrumb();return lt!==t&&t?(lt=t,t.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:R(t)):null}(t):function(e){let t,n;try{n=function(e){return e.event.target?e.event.target:e.event}(e),t=(0,I.Hd)(n)}catch(e){t="<unknown>"}return 0===t.length?null:R({category:`ui.${e.name}`,message:t,data:{...n?{nodeId:at.mirror.getId(n)}:{}}})}(t)}function ct(e,t,n){if(!e.eventBuffer)return;if(e.isPaused())return;const r=t.timestamp>9999999999?t.timestamp:1e3*t.timestamp;if(r+l<(new Date).getTime())return;const o=e.getContext().earliestEvent;0===(0,p.z)([e,"access",e=>e.session,"optionalAccess",e=>e.segmentId])&&(!o||r<o)&&(e.getContext().earliestEvent=r),e.eventBuffer.addEvent(t,n)}function pt(e,t){t.map(({type:t,start:n,end:r,name:o,data:i})=>ct(e,{type:ie.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}}))}function dt(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!(0,p.z)([e,"access",e=>e.getOptions,"call",e=>e(),"access",e=>e._experiments,"optionalAccess",e=>e.traceInternals]))&&!function(e){const t=(0,p.z)([r.BF,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getDsn,"call",e=>e()]);return!!t&&e.includes(t.host)}(t)}const ft=["name","type","startTime","transferSize","duration"];function ht(e){return function(t){return ft.every(n=>e[n]===t[n])}}var mt=n(94053);const gt={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,encodedBodySize:s,transferSize:a}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:vt(i),end:vt(o),name:r,data:{size:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=vt(o);return{type:n,name:r,start:i,end:i+t}},navigation:function(e){const{entryType:t,name:n,duration:r,domComplete:o,startTime:i,transferSize:s,type:a}=e;return 0===r?null:{type:`${t}.${a}`,start:vt(i),end:vt(o),name:n,data:{size:s,duration:r}}},"largest-contentful-paint":function(e){const{duration:t,entryType:n,startTime:r,size:o}=e,i=vt(r);return{type:n,name:n,start:i,end:i+t,data:{duration:t,size:o,nodeId:at.mirror.getId(e.element)}}}};function yt(e){return void 0===gt[e.entryType]?null:gt[e.entryType](e)}function vt(e){return((mt.k3||o.performance.timeOrigin)+e)/1e3}class bt{constructor(){this._events=[]}destroy(){this._events=[]}get length(){return this._events.length}addEvent(e,t){t?this._events=[e]:this._events.push(e)}finish(){return new Promise(e=>{const t=this._events;this._events=[],e(JSON.stringify(t))})}}class wt{__init(){this._eventBufferItemLength=0}__init2(){this._id=0}constructor(e){wt.prototype.__init.call(this),wt.prototype.__init2.call(this),this._worker=e}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Destroying compression worker"),(0,p.z)([this,"access",e=>e._worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this._worker=null}get length(){return this._eventBufferItemLength}async addEvent(e,t){return t&&await this._postMessage({id:this._getAndIncrementId(),method:"init",args:[]}),this._sendEventToWorker(e)}finish(){return this._finishRequest(this._getAndIncrementId())}_postMessage({id:e,method:t,args:n}){return new Promise((r,o)=>{const i=({data:n})=>{if(n.method===t&&n.id===e){if((0,p.z)([this,"access",e=>e._worker,"optionalAccess",e=>e.removeEventListener,"call",e=>e("message",i)]),!n.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay]",n.response),void o(new Error("Error in compression worker"));r(n.response)}};let s;try{s=JSON.stringify(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay] Error when trying to stringify args",e),s="[]"}(0,p.z)([this,"access",e=>e._worker,"optionalAccess",e=>e.addEventListener,"call",e=>e("message",i)]),(0,p.z)([this,"access",e=>e._worker,"optionalAccess",e=>e.postMessage,"call",n=>n({id:e,method:t,args:s})])})}_sendEventToWorker(e){const t=this._postMessage({id:this._getAndIncrementId(),method:"addEvent",args:[e]});return this._eventBufferItemLength++,t}async _finishRequest(e){const t=this._postMessage({id:e,method:"finish",args:[]});return this._eventBufferItemLength=0,t}_getAndIncrementId(){return this._id++}}function Ct(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function _t(e,t,n=+new Date){return Ct(e.started,c,n)||Ct((0,p.z)([e,"optionalAccess",e=>e.lastActivity]),t,n)}function xt(e){if("sessionStorage"in o)try{o.sessionStorage.setItem(i,JSON.stringify(e))}catch(e){}}var Et=n(93276);function St(e){return void 0!==e&&Math.random()<e}function Pt(e){const t=(new Date).getTime();return{id:e.id||(0,Et.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled}}function Ot({sessionSampleRate:e,errorSampleRate:t,stickySession:n=!1}){const r=function(e,t){return St(e)?"session":!!St(t)&&"error"}(e,t),o=Pt({sampled:r});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log(`[Replay] Creating new session: ${o.id}`),n&&xt(o),o}var Tt=n(52036);function kt(e,t,n,r){return(0,Tt.h4)((0,Tt.n2)(e,(0,Tt.Cj)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:t.length},t]])}let At;class It{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this._performanceObserver=null}__init5(){this._retryCount=0}__init6(){this._retryInterval=5e3}__init7(){this._flushLock=null}__init8(){this._lastActivity=(new Date).getTime()}__init9(){this._isEnabled=!1}__init10(){this._isPaused=!1}__init11(){this._hasInitializedCoreListeners=!1}__init12(){this._stopRecording=null}__init13(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:(new Date).getTime(),initialUrl:""}}constructor({options:e,recordingOptions:t}){It.prototype.__init.call(this),It.prototype.__init2.call(this),It.prototype.__init3.call(this),It.prototype.__init4.call(this),It.prototype.__init5.call(this),It.prototype.__init6.call(this),It.prototype.__init7.call(this),It.prototype.__init8.call(this),It.prototype.__init9.call(this),It.prototype.__init10.call(this),It.prototype.__init11.call(this),It.prototype.__init12.call(this),It.prototype.__init13.call(this),It.prototype.__init14.call(this),It.prototype.__init15.call(this),It.prototype.__init16.call(this),It.prototype.__init17.call(this),It.prototype.__init18.call(this),It.prototype.__init19.call(this),this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){var r,o,i,s,a,l,u=0,c=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,u=t,s=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-u>=i}function m(){var e=T();if(h(e))return g(e);a=setTimeout(m,function(e){var n=t-(e-l);return p?O(n,i-(e-u)):n}(e))}function g(e){return a=void 0,d&&r?f(e):(r=o=void 0,s)}function y(){var e=T(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(m,t),c?f(e):s}(l);if(p)return a=setTimeout(m,t),f(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=A(t)||0,k(n)&&(c=!!n.leading,i=(p="maxWait"in n)?P(A(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=l=o=a=void 0},y.flush=function(){return void 0===a?s:g(T())},y}(()=>this.flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){this.setInitialState(),this.loadSession({expiry:l}),this.session?this.session.sampled&&("error"===this.session.sampled&&(this.recordingMode="error"),this.updateSessionActivity(),this.eventBuffer=function({useCompression:e}){if(e&&window.Worker){const e=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},S=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let U=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var O=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);S(t,t.dyn_ltree,e-1),S(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},T={_tr_init:t=>{U||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),U=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:O,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var N=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const F=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var L=(t,e,a,i)=>{const n=F,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=T,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:J,Z_OK:W,Z_STREAM_END:q,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=N(t.adler,e,n,a):2===t.state.wrap&&(t.adler=L(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),W},Zt=t=>{const e=Rt(t);var a;return e===W&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},St=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var Ut={deflateInit:(t,e)=>St(t,e,ot,15,8,st),deflateInit2:St,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,W),deflate:(t,e)=>{if(Et(t)||e>J||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,W}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=L(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,W;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,W;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),W;if(2===i&&(e===Y?K(a):e!==J&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,W}return e!==X?W:a.wrap<=0?q:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?W:q)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):W},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=N(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,W},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ot=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Tt=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Nt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nt=!1}const Ft=new Uint8Array(256);for(let t=0;t<256;t++)Ft[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ft[254]=Ft[254]=1;var Lt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Ft[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Nt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ft[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Jt,Z_DEFLATED:Wt}=B;function qt(t){this.options=Ot({level:Xt,method:Wt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Jt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ut.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&Ut.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Lt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=Ut.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new qt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}qt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Lt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=Ut.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=Ut.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},qt.prototype.onData=function(t){this.chunks.push(t)},qt.prototype.onEnd=function(t){t===Yt&&(this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:qt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,S,U,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(S=0,U=r[m]):r[m]>=u?(S=D[r[m]-u],U=A[r[m]-u]):(S=96,U=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|S<<16|U|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Se={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=L(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,r-f):N(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,t.next_out-f):N(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=N(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ue=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Oe,Z_FINISH:Te,Z_OK:Ne,Z_STREAM_END:Fe,Z_NEED_DICT:Le,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Ot({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Se.inflateInit2(this.strm,e.windowBits);if(a!==Ne)throw new Error(I[a]);if(this.header=new Ue,Se.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Lt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Se.inflateSetDictionary(this.strm,e.dictionary),a!==Ne)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Te:Oe,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Se.inflate(a,r),s===Le&&n&&(s=Se.inflateSetDictionary(a,n),s===Ne?s=Se.inflate(a,r):s===Be&&(s=Le));a.avail_in>0&&s===Fe&&a.state.wrap>0&&0!==t[a.next_in];)Se.inflateReset(a),s=Se.inflate(a,r);switch(s){case Ie:case Be:case Le:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Fe))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Ne||0!==o){if(s===Fe)return s=Se.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Ne&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=B;const Xe=new class{constructor(){this.added=0,this.init()}init(){this.added=0,this.deflate=new Ye,this.deflate.push("[",Ge.Z_NO_FLUSH)}addEvent(t){if(!t)return;const e=this.added>0?",":"";this.deflate.push(e+JSON.stringify(t),Ge.Z_NO_FLUSH),this.added++}finish(){if(this.deflate.push("]",Ge.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this.init(),t}},Je={init:()=>(Xe.init(),""),addEvent:t=>(Xe.addEvent(t),""),finish:()=>Xe.finish()};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,[i]=t.data.args?JSON.parse(t.data.args):[];if(e in Je&&"function"==typeof Je[e])try{const t=Je[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t}),console.error(t)}}));']),t=URL.createObjectURL(e);try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Using compression worker");const e=new Worker(t);if(e)return new wt(e);(0,d.Cp)(new Error("Unable to create compression worker"))}catch(e){}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Falling back to simple event buffer")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Using simple buffer"),new bt}({useCompression:Boolean(this._options.useCompression)}),this.addListeners(),this._isEnabled=!0,this.startRecording()):this.handleException(new Error("No session found"))}startRecording(){try{this._stopRecording=at({...this._recordingOptions,..."error"===this.recordingMode&&{checkoutEveryNth:6e4},emit:this.handleRecordingEmit})}catch(e){this.handleException(e)}}stopRecording(){return!!this._stopRecording&&(this._stopRecording(),!0)}stop(){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Stopping Replays"),this._isEnabled=!1,this.removeListeners(),(0,p.z)([this,"access",e=>e._stopRecording,"optionalCall",e=>e()]),(0,p.z)([this,"access",e=>e.eventBuffer,"optionalAccess",e=>e.destroy,"call",e=>e()]),this.eventBuffer=null}catch(e){this.handleException(e)}}pause(){this._isPaused=!0;try{this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0)}catch(e){this.handleException(e)}}resume(){this._isPaused=!1,this.startRecording()}handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,d.Cp)(e)}clearSession(){try{!function(){if("sessionStorage"in o)try{o.sessionStorage.removeItem(i)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}loadSession({expiry:e}){const{type:t,session:n}=function({expiry:e,currentSession:t,stickySession:n,sessionSampleRate:r,errorSampleRate:s}){const a=t||n&&function(){if(!("sessionStorage"in o))return null;try{const e=o.sessionStorage.getItem(i);return e?Pt(JSON.parse(e)):null}catch(e){return null}}();if(a){if(!_t(a,e))return{type:"saved",session:a};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Session has expired")}return{type:"new",session:Ot({stickySession:n,sessionSampleRate:r,errorSampleRate:s})}}({expiry:e,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});"new"===t&&this.setInitialState(),n.id!==(0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.id])&&(n.previousSessionId=(0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.id])),this.session=n}setInitialState(){const e=`${o.location.pathname}${o.location.hash}${o.location.search}`,t=`${o.location.origin}${e}`;this.performanceEvents=[],this.clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=(new Date).getTime(),this._context.urls.push(t)}addListeners(){try{if(o.document.addEventListener("visibilitychange",this.handleVisibilityChange),o.addEventListener("blur",this.handleWindowBlur),o.addEventListener("focus",this.handleWindowFocus),function(e){const t=(0,r.BF)().getClient();if(!t)return;const n=t.recordDroppedEvent.bind(t);t.recordDroppedEvent=(t,r,o)=>(o&&o.event_id&&e.delete(o.event_id),n(t,r,o)),At=n}(this._context.errorIds),!this._hasInitializedCoreListeners){const t=(0,r.BF)().getScope();(0,p.z)([t,"optionalAccess",e=>e.addScopeListener,"call",e=>e(this.handleCoreBreadcrumbListener("scope"))]),(0,m.O)("dom",this.handleCoreBreadcrumbListener("dom")),(0,m.O)("fetch",(e=this,t=>{if(!e.isEnabled())return;const n=function(e){if(!e.endTimestamp)return null;const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:o.status}}}(t);null!==n&&(dt(e,n.name)||e.addUpdate(()=>(pt(e,[n]),!0)))})),(0,m.O)("xhr",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){if(e.xhr.__sentry_own_request__)return null;if(e.startTimestamp&&(e.xhr.__sentry_xhr__=e.xhr.__sentry_xhr__||{},e.xhr.__sentry_xhr__.startTimestamp=e.startTimestamp),!e.endTimestamp)return null;const{method:t,url:n,status_code:r}=e.xhr.__sentry_xhr__||{};return void 0===n?null:{type:"resource.xhr",name:n,start:((0,p.z)([e,"access",e=>e.xhr,"access",e=>e.__sentry_xhr__,"optionalAccess",e=>e.startTimestamp])||0)/1e3||e.endTimestamp/1e3,end:e.endTimestamp/1e3,data:{method:t,statusCode:r}}}(t);null!==n&&(dt(e,n.name)||e.addUpdate(()=>(pt(e,[n]),!0)))}}(this)),(0,m.O)("history",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=(new Date).getTime()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(pt(e,[n]),!1)))}}(this)),(0,f.l)(function(e){return t=>{if(t.type===s)return delete t.breadcrumbs,t;if(function(e){return!(e.type||!(0,p.z)([e,"access",e=>e.exception,"optionalAccess",e=>e.values,"optionalAccess",e=>e.length]))&&e.exception.values.some(e=>!!(0,p.z)([e,"access",e=>e.stacktrace,"optionalAccess",e=>e.frames,"optionalAccess",e=>e.length])&&e.stacktrace.frames.some(e=>(0,p.z)([e,"access",e=>e.filename,"optionalAccess",e=>e.includes,"call",e=>e("/rrweb/src/")])))}(t)&&!(0,p.z)([e,"access",e=>e.getOptions,"call",e=>e(),"access",e=>e._experiments,"optionalAccess",e=>e.captureExceptions]))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Ignoring error from rrweb internals",t),null;if("transaction"===t.type&&"session"!==e.recordingMode||(t.tags={...t.tags,replayId:(0,p.z)([e,"access",e=>e.session,"optionalAccess",e=>e.id])}),"transaction"===t.type&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id)return e.getContext().traceIds.add(t.contexts.trace.trace_id),t;t.type||e.getContext().errorIds.add(t.event_id);const n=(0,p.z)([t,"access",e=>e.exception,"optionalAccess",e=>e.values,"optionalAccess",e=>e[0]]);return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(0,p.z)([e,"access",e=>e.getOptions,"call",e=>e(),"access",e=>e._experiments,"optionalAccess",e=>e.traceInternals])&&function(e){const{category:t,level:n,message:r,...o}=e;(0,d.ZQ)({category:t||"console",level:n||"debug",message:`[debug]: ${r}`,...o})}({message:`Tagging event (${t.event_id}) - ${t.message} - ${(0,p.z)([n,"optionalAccess",e=>e.type])||"Unknown"}: ${(0,p.z)([n,"optionalAccess",e=>e.value])||"n/a"}`}),"error"===e.recordingMode&&t.exception&&t.message!==a&&setTimeout(async()=>{await e.flushImmediate(),e.stopRecording()&&(e.recordingMode="session",e.startRecording())}),t}}(this)),this._hasInitializedCoreListeners=!0}}catch(e){this.handleException(e)}var e;"_performanceObserver"in o&&(this._performanceObserver=function(e){const t=new PerformanceObserver(t=>{const n=function(e,t){const[n,r,o]=e.reduce((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e),[[],[],[]]),i=[],s=[];let a=r.length?r[r.length-1]:void 0;return t.forEach(e=>{if("largest-contentful-paint"!==e.entryType){if("navigation"===e.entryType){const t=e;return void(e.duration>0&&!n.find(ht(t))&&!s.find(ht(t))&&s.push(t))}i.push(e)}else(!a||a.startTime<e.startTime)&&(a=e)}),[...a?[a]:[],...n,...o,...i,...s].sort((e,t)=>e.startTime-t.startTime)}(e.performanceEvents,t.getEntries());e.performanceEvents=n});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(e=>{try{t.observe({type:e,buffered:!0})}catch(e){}}),t}(this))}removeListeners(){try{o.document.removeEventListener("visibilitychange",this.handleVisibilityChange),o.removeEventListener("blur",this.handleWindowBlur),o.removeEventListener("focus",this.handleWindowFocus),function(){const e=(0,r.BF)().getClient();e&&At&&(e.recordDroppedEvent=At)}(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(e){this.handleException(e)}}addUpdate(e){const t=(0,p.z)([e,"optionalCall",e=>e()]);"error"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}__init14(){this.handleRecordingEmit=(e,t)=>{this.checkAndHandleExpiredSession()?this.addUpdate(()=>("error"===this.recordingMode&&2===e.type&&this.setInitialState(),ct(this,e,t),2===e.type&&((0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.previousSessionId])||("error"===this.recordingMode&&this.session&&this._context.earliestEvent&&(this.session.started=this._context.earliestEvent,this._maybeSaveSession()),"session"===this.recordingMode&&this.flushImmediate()),!0))):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay] Received replay event after session expired.")}}__init15(){this.handleVisibilityChange=()=>{"visible"===o.document.visibilityState?this.doChangeToForegroundTasks():this.doChangeToBackgroundTasks()}}__init16(){this.handleWindowBlur=()=>{const e=R({category:"ui.blur"});this.doChangeToBackgroundTasks(e)}}__init17(){this.handleWindowFocus=()=>{const e=R({category:"ui.focus"});this.doChangeToForegroundTasks(e)}}__init18(){this.handleCoreBreadcrumbListener=e=>t=>{if(!this._isEnabled)return;const n=ut(e,t);null!==n&&"sentry.transaction"!==n.category&&("ui.click"===n.category?this.triggerUserActivity():this.checkAndHandleExpiredSession(),this.addUpdate(()=>(ct(this,{type:ie.Custom,timestamp:1e3*(n.timestamp||0),data:{tag:"breadcrumb",payload:n}}),"console"===n.category)))}}doChangeToBackgroundTasks(e){if(!this.session)return;const t=_t(this.session,u);e&&!t&&this.createCustomBreadcrumb(e),this.conditionalFlush()}doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession({expiry:u})?e&&this.createCustomBreadcrumb(e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Document has become active, but session has expired"))}triggerFullSnapshot(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.log("[Replay] Taking full rrweb snapshot"),at.takeFullSnapshot(!0)}updateUserActivity(e=(new Date).getTime()){this._lastActivity=e}updateSessionActivity(e=(new Date).getTime()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}triggerUserActivity(){if(this.updateUserActivity(),!this._stopRecording)return this.loadSession({expiry:l}),void this.resume();this.checkAndHandleExpiredSession(),this.updateSessionActivity()}createCustomBreadcrumb(e){this.addUpdate(()=>{ct(this,{type:ie.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}addPerformanceEntries(){const e=[...this.performanceEvents];this.performanceEvents=[],pt(this,function(e){return e.map(yt).filter(Boolean)}(e))}checkAndHandleExpiredSession({expiry:e=3e5}={}){const t=(0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.id]);if(!this._lastActivity||!Ct(this._lastActivity,c))return this.loadSession({expiry:e}),t===(0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.id])||(this.triggerFullSnapshot(),!1);this.pause()}conditionalFlush(){"error"!==this.recordingMode&&this.flushImmediate()}clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}popEventContext(){this._context.earliestEvent&&this._context.earliestEvent<this._context.initialTimestamp&&(this._context.initialTimestamp=this._context.earliestEvent);const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds).filter(Boolean),traceIds:Array.from(this._context.traceIds).filter(Boolean),urls:this._context.urls};return this.clearContext(),e}async runFlush(){if(this.session){if(await this.addPerformanceEntries(),(0,p.z)([this,"access",e=>e.eventBuffer,"optionalAccess",e=>e.length])){await function(e){try{pt(e,[createMemoryEntry(o.performance.memory)])}catch(e){}}(this);try{const e=await this.eventBuffer.finish(),t=this.session.id,n=this.popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await this.sendReplay({replayId:t,events:e,segmentId:r,includeReplayStartTimestamp:0===r,eventContext:n})}catch(e){this.handleException(e)}}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay] No session found to flush.")}__init19(){this.flush=async()=>{if(this._isEnabled)if(this.checkAndHandleExpiredSession())if((0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.id])){if((0,p.z)([this,"access",e=>e._debouncedFlush,"optionalAccess",e=>e.cancel,"call",e=>e()]),!this._flushLock)return this._flushLock=this.runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error(e)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.vF.error("[Replay] Attempting to finish replay event after session expired.")}}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}async sendReplayRequest({events:e,replayId:t,segmentId:n,includeReplayStartTimestamp:o,eventContext:i}){const l=function({events:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({events:e,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:f}=i,h=(new Date).getTime(),m=(0,r.BF)(),g=m.getClient(),y=m.getScope(),v=g&&g.getTransport(),b=(0,p.z)([g,"optionalAccess",e=>e.getDsn,"call",e=>e()]);if(!(g&&y&&v&&b))return;const w={type:s,...o?{replay_start_timestamp:f/1e3}:{},timestamp:h/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:n},C=await async function({client:e,scope:t,replayId:n,event:r}){const o=await e._prepareEvent(r,{event_id:n},t),i=e.getOptions()&&e.getOptions()._metadata,{name:s}=i&&i.sdk||{};return o.sdk={...o.sdk,version:"7.27.0",name:s},o}({scope:y,client:g,replayId:t,event:w});C.tags={...C.tags,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate,replayType:(0,p.z)([this,"access",e=>e.session,"optionalAccess",e=>e.sampled])};const _=kt(C,l,b,g.getOptions().tunnel);try{return v.send(_)}catch(e){throw new Error(a)}}resetRetries(){this._retryCount=0,this._retryInterval=5e3}async sendReplay({replayId:e,events:t,segmentId:n,includeReplayStartTimestamp:r,eventContext:o}){if(t.length)try{return await this.sendReplayRequest({events:t,replayId:e,segmentId:n,includeReplayStartTimestamp:r,eventContext:o}),this.resetRetries(),!0}catch(i){if((0,d.o)("Replays",{_retryCount:this._retryCount}),this.handleException(i),this._retryCount>=3)throw new Error(`${a} - max retries exceeded`);return this._retryCount=this._retryCount+1,this._retryInterval=this._retryCount*this._retryInterval,await new Promise((i,s)=>{setTimeout(async()=>{try{await this.sendReplay({replayId:e,events:t,segmentId:n,includeReplayStartTimestamp:r,eventContext:o}),i(!0)}catch(e){s(e)}},this._retryInterval)})}}_maybeSaveSession(){this.session&&this._options.stickySession&&xt(this.session)}}var Rt=n(43366);function Mt(){return"undefined"!=typeof window&&!(0,Rt.wD)()}const Dt="img,image,svg,path,rect,area,video,object,picture,embed,map,audio";let Lt=!1;class Nt{static __initStatic(){this.id="Replay"}__init(){this.name=Nt.id}get _isInitialized(){return Lt}set _isInitialized(e){Lt=e}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=15e3,initialFlushDelay:n=5e3,stickySession:r=!0,useCompression:o=!0,sessionSampleRate:i,errorSampleRate:s,maskAllText:a=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,_experiments:c={},blockClass:p="sentry-block",ignoreClass:d="sentry-ignore",maskTextClass:f="sentry-mask",blockSelector:h="[data-sentry-block]",...m}={}){if(Nt.prototype.__init.call(this),this.recordingOptions={maskAllInputs:l,blockClass:p,ignoreClass:d,maskTextClass:f,blockSelector:h,...m},this.options={flushMinDelay:e,flushMaxDelay:t,stickySession:r,initialFlushDelay:n,sessionSampleRate:.1,errorSampleRate:1,useCompression:o,maskAllText:a,blockAllMedia:u,_experiments:c},"number"==typeof i&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${i} })`),this.options.sessionSampleRate=i),"number"==typeof s&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${s} })`),this.options.errorSampleRate=s),this.options.maskAllText&&(this.recordingOptions.maskTextSelector="body *:not(style,script)"),this.options.blockAllMedia&&(this.recordingOptions.blockSelector=this.recordingOptions.blockSelector?`${this.recordingOptions.blockSelector},${Dt}`:Dt),Mt()&&this._isInitialized)throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}setupOnce(){Mt()&&(this._setup(),setTimeout(()=>this.start()))}start(){this._replay&&this._replay.start()}stop(){this._replay&&this._replay.stop()}_setup(){this._loadReplayOptionsFromClient(),this._replay=new It({options:this.options,recordingOptions:this.recordingOptions})}_loadReplayOptionsFromClient(){const e=(0,r.BF)().getClient(),t=e&&e.getOptions();t&&"number"==typeof t.replaysSessionSampleRate&&(this.options.sessionSampleRate=t.replaysSessionSampleRate),t&&"number"==typeof t.replaysOnErrorSampleRate&&(this.options.errorSampleRate=t.replaysOnErrorSampleRate)}}Nt.__initStatic()},29716(e,t,n){"use strict";n.d(t,{_:()=>r,e:()=>o});var r="finishReason",o=["heartbeatFailed","idleTimeout","documentHidden"]},36378(e,t,n){"use strict";n.d(t,{w:()=>r});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},17496(e,t,n){"use strict";n.d(t,{lk:()=>v,pd:()=>y});var r=n(65927),o=n(88234),i=n(20469),s=n(78925),a=n(85513),l=n(50754),u=n(36378),c=n(8040);function p(){var e=(0,c.Z7)();if(e){var t="internal_error";u.w&&i.vF.log("[Tracing] Transaction: "+t+" -> Global error occured"),e.setStatus(t)}}var d=n(10079),f=n(13701);function h(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function m(e,t,n){return(0,c.wt)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"==typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(o)}})):void 0!==n.parentSampled?(o=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(o=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(o)}})),r=o,((0,s.yr)(r)||"number"!=typeof r&&"boolean"!=typeof r?(u.w&&i.vF.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(r)+" of type "+JSON.stringify(typeof r)+"."),0):!(r<0||r>1)||(u.w&&i.vF.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+r+"."),0))?o?(e.sampled=Math.random()<o,e.sampled?(u.w&&i.vF.log("[Tracing] starting "+e.op+" transaction - "+e.name),e):(u.w&&i.vF.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(o)+")"),e)):(u.w&&i.vF.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(u.w&&i.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var r,o}function g(e,t){var n=this.getClient(),o=n&&n.getOptions()||{},i=new f.Z(e,this);return(i=m(i,o,(0,r.__assign)({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&i.initSpanRecorder(o._experiments&&o._experiments.maxSpans),i}function y(e,t,n,o,i){var s=e.getClient(),a=s&&s.getOptions()||{},l=new d.zX(t,e,n,o);return(l=m(l,a,(0,r.__assign)({parentSampled:t.parentSampled,transactionContext:t},i))).sampled&&l.initSpanRecorder(a._experiments&&a._experiments.maxSpans),l}function v(){var t;(t=(0,o.EU)()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=g),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=h)),(0,a.wD)()&&function(){var t=(0,o.EU)();if(t.__SENTRY__){var n={mongodb:function(){return new((0,a.fj)(e,"./integrations/node/mongo").Mongo)},mongoose:function(){return new((0,a.fj)(e,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,a.fj)(e,"./integrations/node/mysql").Mysql)},pg:function(){return new((0,a.fj)(e,"./integrations/node/postgres").Postgres)}},i=Object.keys(n).filter(function(e){return!!(0,a.Vw)(e)}).map(function(e){try{return n[e]()}catch(e){return}}).filter(function(e){return e});i.length>0&&(t.__SENTRY__.integrations=(0,r.__spread)(t.__SENTRY__.integrations||[],i))}}(),(0,l.O)("error",p),(0,l.O)("unhandledrejection",p)}e=n.hmd(e)},10079(e,t,n){"use strict";n.d(t,{$F:()=>c,zX:()=>d});var r=n(65927),o=n(20469),i=n(47060),s=n(29716),a=n(36378),l=n(75745),u=n(13701),c=1e3,p=function(e){function t(t,n,r,o){void 0===r&&(r="");var i=e.call(this,o)||this;return i._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return(0,r.__extends)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:(0,i.LU)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(l.lh),d=function(e){function t(t,n,r,i){void 0===r&&(r=c),void 0===i&&(i=!1);var s=e.call(this,t,n)||this;return s._idleHub=n,s._idleTimeout=r,s._onScope=i,s.activities={},s._heartbeatCounter=0,s._finished=!1,s._beforeFinishCallbacks=[],n&&i&&(f(n),a.w&&o.vF.log("Setting idle transaction on scope. Span ID: "+s.spanId),n.configureScope(function(e){return e.setSpan(s)})),s._initTimeout=setTimeout(function(){s._finished||s.finish()},s._idleTimeout),s}return(0,r.__extends)(t,e),t.prototype.finish=function(t){var n,s,l=this;if(void 0===t&&(t=(0,i.LU)()),this._finished=!0,this.activities={},this.spanRecorder){a.w&&o.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var u=(0,r.__values)(this._beforeFinishCallbacks),c=u.next();!c.done;c=u.next())(0,c.value)(this,t)}catch(e){n={error:e}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(e){if(e.spanId===l.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),a.w&&o.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||a.w&&o.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n}),a.w&&o.vF.log("[Tracing] flushing IdleTransaction")}else a.w&&o.vF.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;this.spanRecorder||(this.spanRecorder=new p(function(e){t._finished||t._pushActivity(e)},function(e){t._finished||t._popActivity(e)},this.spanId,e),a.w&&o.vF.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),a.w&&o.vF.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,a.w&&o.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var t=this;if(this.activities[e]&&(a.w&&o.vF.log("[Tracing] popActivity "+e),delete this.activities[e],a.w&&o.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=(0,i.LU)()+n/1e3;setTimeout(function(){t._finished||(t.setTag(s._,s.e[1]),t.finish(r))},n)}},t.prototype._beat=function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(a.w&&o.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(s._,s.e[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;a.w&&o.vF.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){e._beat()},5e3)},t}(u.Z);function f(e){if(e){var t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}}},85531(e,t,n){"use strict";n.d(t,{IQ:()=>r});var r={};n.r(r),n.d(r,{Jh:()=>N});var o=n(17496),i=n(65927),s=n(20469),a=n(28890),l=n(36378),u=n(10079),c=n(8040),p=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"),d=n(29716),f=(0,a.V)(),h=n(85513),m=n(47060),g=n(78925);function y(e,t){try{for(var n=e,r=[],o=0,i=0,s=void 0;n&&o++<5&&!("html"===(s=v(n,t))||o>1&&i+3*r.length+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function v(e,t){var n,r,o,i,s,a=e,l=[];if(!a||!a.tagName)return"";l.push(a.tagName.toLowerCase());var u=t&&t.length?t.filter(function(e){return a.getAttribute(e)}).map(function(e){return[e,a.getAttribute(e)]}):null;if(u&&u.length)u.forEach(function(e){l.push("["+e[0]+'="'+e[1]+'"]')});else if(a.id&&l.push("#"+a.id),(n=a.className)&&(0,g.Kg)(n))for(r=n.split(/\s+/),s=0;s<r.length;s++)l.push("."+r[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)o=c[s],(i=a.getAttribute(o))&&l.push("["+o+'="'+i+'"]');return l.join("")}var b=function(e,t,n){var r;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},w=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},C=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(e){return e.getEntries().map(t)});return n.observe({type:e,buffered:!0}),n}}catch(e){}},_=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==(0,a.V)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},x=-1,E=function(){return x<0&&(x="hidden"===(0,a.V)().document.visibilityState?0:1/0,_(function(e){var t=e.timeStamp;x=t},!0)),{get firstHiddenTime(){return x}}},S={},P=(0,a.V)(),O=function(){function e(e){void 0===e&&(e=!1),this._reportAllChanges=e,this._measurements={},this._performanceCursor=0,!(0,h.wD)()&&P&&P.performance&&P.document&&(P.performance.mark&&P.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(P&&P.performance&&P.performance.getEntries&&m.k3){l.w&&s.vF.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,o=(0,c.rv)(m.k3);if(P.performance.getEntries().slice(this._performanceCursor).forEach(function(i){var a=(0,c.rv)(i.startTime),u=(0,c.rv)(i.duration);if(!("navigation"===e.op&&o+a<e.startTimestamp))switch(i.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(r){T(e,t,r,n)}),T(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),T(e,t,"fetch",n,"cache","domainLookupStart"),T(e,t,"domainLookup",n,"DNS"),function(e,t,n){k(e,{op:"browser",description:"request",startTimestamp:n+(0,c.rv)(t.requestStart),endTimestamp:n+(0,c.rv)(t.responseEnd)}),k(e,{op:"browser",description:"response",startTimestamp:n+(0,c.rv)(t.responseStart),endTimestamp:n+(0,c.rv)(t.responseEnd)})}(e,t,n)}(e,i,o),n=o+(0,c.rv)(i.responseStart),r=o+(0,c.rv)(i.requestStart);break;case"mark":case"paint":case"measure":var p=function(e,t,n,r,o){var i=o+n,s=i+r;return k(e,{description:t.name,endTimestamp:s,op:t.entryType,startTimestamp:i}),i}(e,i,a,u,o),d=E(),f=i.startTime<d.firstHiddenTime;"first-paint"===i.name&&f&&(l.w&&s.vF.log("[Measurements] Adding FP"),t._measurements.fp={value:i.startTime},t._measurements["mark.fp"]={value:p}),"first-contentful-paint"===i.name&&f&&(l.w&&s.vF.log("[Measurements] Adding FCP"),t._measurements.fcp={value:i.startTime},t._measurements["mark.fcp"]={value:p});break;case"resource":var h=i.name.replace(P.location.origin,"");!function(e,t,n,r,o,i){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var s={};"transferSize"in t&&(s["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(s["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(s["Decoded Body Size"]=t.decodedBodySize);var a=i+r;k(e,{description:n,endTimestamp:a+o,op:t.initiatorType?"resource."+t.initiatorType:"resource",startTimestamp:a,data:s})}}(e,i,h,a,u,o)}}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var i=(0,c.rv)(m.k3);"number"==typeof n&&(l.w&&s.vF.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(n-e.startTimestamp)},"number"==typeof r&&r<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-r)})),["fcp","fp","lcp"].forEach(function(n){if(t._measurements[n]&&!(i>=e.startTimestamp)){var r=t._measurements[n].value,o=i+(0,c.rv)(r),a=Math.abs(1e3*(o-e.startTimestamp)),u=a-r;l.w&&s.vF.log("[Measurements] Normalized "+n+" from "+r+" to "+a+" ("+u+")"),t._measurements[n].value=a}}),this._measurements["mark.fid"]&&this._measurements.fid&&k(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,c.rv)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),function(e,t,n){t&&(l.w&&s.vF.log("[Measurements] Adding LCP Data"),t.element&&e.setTag("lcp.element",y(t.element)),t.id&&e.setTag("lcp.id",t.id),t.url&&e.setTag("lcp.url",t.url.trim().slice(0,200)),e.setTag("lcp.size",t.size)),n&&n.sources&&(l.w&&s.vF.log("[Measurements] Adding CLS Data"),n.sources.forEach(function(t,n){return e.setTag("cls.source."+(n+1),y(t.node))}))}(e,this._lcpEntry,this._clsEntry),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},e.prototype._trackNavigator=function(e){var t=P.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),A(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),A(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),A(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),A(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackCLS=function(){var e,t,n,r,o,i,a,u=this;e=function(e){var t=e.entries.pop();t&&(l.w&&s.vF.log("[Measurements] Adding CLS"),u._measurements.cls={value:e.value},u._clsEntry=t)},n=w("CLS",0),r=0,o=[],(a=C("layout-shift",i=function(e){if(e&&!e.hadRecentInput){var i=o[0],s=o[o.length-1];r&&0!==o.length&&e.startTime-s.startTime<1e3&&e.startTime-i.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e]),r>n.value&&(n.value=r,n.entries=o,t&&t())}}))&&(t=b(e,n,void 0),_(function(){a.takeRecords().map(i),t(!0)}))},e.prototype._trackLCP=function(){var e=this;!function(t,n){var r,o=E(),i=w("LCP"),a=function(e){var t=e.startTime;t<o.firstHiddenTime&&(i.value=t,i.entries.push(e)),r&&r()},u=C("largest-contentful-paint",a);if(u){r=b(function(t){var n=t.entries.pop();if(n){var r=(0,c.rv)(m.k3),o=(0,c.rv)(n.startTime);l.w&&s.vF.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=n}},i,n);var p=function(){S[i.id]||(u.takeRecords().map(a),u.disconnect(),S[i.id]=!0,r(!0))};["keydown","click"].forEach(function(e){addEventListener(e,p,{once:!0,capture:!0})}),_(p,!0)}}(0,this._reportAllChanges)},e.prototype._trackFID=function(){var e,t,n,r,o,i,a=this;e=function(e){var t=e.entries.pop();if(t){var n=(0,c.rv)(m.k3),r=(0,c.rv)(t.startTime);l.w&&s.vF.log("[Measurements] Adding FID"),a._measurements.fid={value:e.value},a._measurements["mark.fid"]={value:n+r}}},n=E(),r=w("FID"),(i=C("first-input",o=function(e){t&&e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))}))&&(t=b(e,r,void 0),_(function(){i.takeRecords().map(o),i.disconnect()},!0))},e}();function T(e,t,n,r,o,i){var s=i?t[i]:t[n+"End"],a=t[n+"Start"];a&&s&&k(e,{op:"browser",description:null!=o?o:n,startTimestamp:r+(0,c.rv)(a),endTimestamp:r+(0,c.rv)(s)})}function k(e,t){var n=t.startTimestamp,r=(0,i.__rest)(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild((0,i.__assign)({startTimestamp:n},r))}function A(e){return"number"==typeof e&&isFinite(e)}function I(e,t){return!!(0,g.Kg)(e)&&((0,g.gd)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}var R=n(50754),M={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};var D=(0,a.V)(),L=(0,i.__assign)({idleTimeout:u.$F,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),D&&D.location){var r,o=D.location.href;t&&(r=e({name:D.location.pathname,op:"pageload"})),n&&(0,R.O)("history",function(t){var n=t.to,i=t.from;void 0===i&&o&&-1!==o.indexOf(n)?o=void 0:i!==n&&(o=void 0,r&&(l.w&&s.vF.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:D.location.pathname,op:"navigation"}))})}else l.w&&s.vF.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},M),N=function(){function e(t){this.name=e.id,this._configuredIdleTimeout=void 0;var n=M.tracingOrigins;t&&(this._configuredIdleTimeout=t.idleTimeout,t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:l.w&&(this._emitOptionsWarning=!0)),this.options=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},L),t),{tracingOrigins:n});var r=this.options._metricOptions;this._metrics=new O(r&&r._reportAllChanges)}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(l.w&&s.vF.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),l.w&&s.vF.warn("[Tracing] We added a reasonable default for you: "+M.tracingOrigins));var r=this.options,o=r.routingInstrumentation,a=r.startTransactionOnLocationChange,u=r.startTransactionOnPageLoad,p=r.markBackgroundTransactions,h=r.traceFetch,m=r.traceXHR,y=r.tracingOrigins,v=r.shouldCreateSpanForRequest;o(function(e){return n._createRouteTransaction(e)},u,a),p&&(f&&f.document?f.document.addEventListener("visibilitychange",function(){var e=(0,c.Z7)();if(f.document.hidden&&e){var t="cancelled";l.w&&s.vF.log("[Tracing] Transaction: "+t+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.setTag(d._,d.e[2]),e.finish()}}):l.w&&s.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){var t=(0,i.__assign)((0,i.__assign)({},M),e),n=t.traceFetch,r=t.traceXHR,o=t.tracingOrigins,s=t.shouldCreateSpanForRequest,a={},l=function(e){if(a[e])return a[e];var t=o;return a[e]=t.some(function(t){return I(e,t)})&&!I(e,"sentry_key"),a[e]},u=l;"function"==typeof s&&(u=function(e){return l(e)&&s(e)});var p={};n&&(0,R.O)("fetch",function(e){!function(e,t,n){if((0,c.wt)()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;(s=n[r])&&(e.response?s.setHttpStatus(e.response.status):e.error&&s.setStatus("internal_error"),s.finish(),delete n[r])}else{var o=(0,c.Z7)();if(o){var s=o.startChild({data:(0,i.__assign)((0,i.__assign)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=s.spanId,n[s.spanId]=s;var a=e.args[0]=e.args[0],l=e.args[1]=e.args[1]||{},u=l.headers;(0,g.tH)(a,Request)&&(u=a.headers),u?"function"==typeof u.append?u.append("sentry-trace",s.toTraceparent()):u=Array.isArray(u)?(0,i.__spread)(u,[["sentry-trace",s.toTraceparent()]]):(0,i.__assign)((0,i.__assign)({},u),{"sentry-trace":s.toTraceparent()}):u={"sentry-trace":s.toTraceparent()},l.headers=u}}}(e,u,p)}),r&&(0,R.O)("xhr",function(e){!function(e,t,n){if(!(!(0,c.wt)()||e.xhr&&e.xhr.__sentry_own_request__)&&e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)){var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var o=e.xhr.__sentry_xhr_span_id__;if(!o)return;(a=n[o])&&(a.setHttpStatus(r.status_code),a.finish(),delete n[o])}else{var s=(0,c.Z7)();if(s){var a=s.startChild({data:(0,i.__assign)((0,i.__assign)({},r.data),{type:"xhr",method:r.method,url:r.url}),description:r.method+" "+r.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(e){}}}}}(e,u,p)})}({traceFetch:h,traceXHR:m,tracingOrigins:y,shouldCreateSpanForRequest:v})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,u=n.idleTimeout,d=n.maxTransactionDuration,f="pageload"===e.op?function(){var e,t=(e=(0,a.V)().document.querySelector("meta[name=sentry-trace]"))?e.getAttribute("content"):null;if(t)return function(e){var t=e.match(p);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}(t)}():void 0,h=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},e),f),{trimEnd:!0}),m="function"==typeof r?r(h):h,g=void 0===m?(0,i.__assign)((0,i.__assign)({},h),{sampled:!1}):m;!1===g.sampled&&l.w&&s.vF.log("[Tracing] Will not send "+g.op+" transaction because of beforeNavigate."),l.w&&s.vF.log("[Tracing] Starting "+g.op+" transaction on scope");var y=this._getCurrentHub(),v=(0,a.V)().location,b=(0,o.pd)(y,g,u,!0,{location:v});return b.registerBeforeFinishCallback(function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus("deadline_exceeded"),t.setTag("maxTransactionDurationExceeded","true"))}((0,c.vO)(d),e,n)}),b.setTag("idleTimeout",this._configuredIdleTimeout),b}l.w&&s.vF.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();(0,o.lk)()},75745(e,t,n){"use strict";n.d(t,{L9:()=>l,lh:()=>a});var r=n(65927),o=n(12985),i=n(56526),s=n(47060),a=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),l=function(){function e(e){if(this.traceId=(0,o.eJ)(),this.spanId=(0,o.eJ)().substring(16),this.startTimestamp=(0,s.LU)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,r.__assign)((0,r.__assign)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,r.__assign)((0,r.__assign)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,r.__assign)((0,r.__assign)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:(0,s.LU)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return(0,i.Ce)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,o,i;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(o=e.tags)?o:{},this.traceId=null!=(i=e.traceId)?i:this.traceId,this},e.prototype.getTraceContext=function(){return(0,i.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,i.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},13701(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(65927),o=n(88234),i=n(78925),s=n(20469),a=n(56526),l=n(36378),u=n(75745),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=(0,o.BF)(),(0,i.tH)(n,o.YZ)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return(0,r.__extends)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new u.lh(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,r.__assign)({},e)},t.prototype.setMetadata=function(e){this.metadata=(0,r.__assign)((0,r.__assign)({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(l.w&&s.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter(function(e){return e!==n&&e.endTimestamp}):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce(function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e}).endTimestamp);var o={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(l.w&&s.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),l.w&&s.vF.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(o)}l.w&&s.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient(),a=i&&i.getTransport&&i.getTransport();a&&a.recordLostEvent&&a.recordLostEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return(0,a.Ce)((0,r.__assign)((0,r.__assign)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(u.L9)},8040(e,t,n){"use strict";n.d(t,{Z7:()=>i,rv:()=>s,vO:()=>a,wt:()=>o});var r=n(88234);function o(e){var t=(0,r.BF)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){var t=(e||(0,r.BF)()).getScope();return t&&t.getTransaction()}function s(e){return e/1e3}function a(e){return 1e3*e}},17306(e,t,n){"use strict";n.d(t,{w:()=>r});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},28890(e,t,n){"use strict";n.d(t,{B:()=>s,V:()=>i});var r=n(85513),o={};function i(){return(0,r.wD)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function s(e,t,n){var r=n||i(),o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},50754(e,t,n){"use strict";n.d(t,{O:()=>b});var r=n(65927),o=n(17306),i=n(28890),s=n(78925),a=n(20469),l=n(56526),u="<anonymous>";function c(e){try{return e&&"function"==typeof e&&e.name||u}catch(e){return u}}function p(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var d,f,h,m=(0,i.V)(),g={},y={};function v(e){if(!y[e])switch(y[e]=!0,e){case"console":"console"in m&&a.Ow.forEach(function(e){e in m.console&&(0,l.GS)(m.console,e,function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];w("console",{args:n,level:e}),t&&t.apply(m.console,n)}})});break;case"dom":!function(){if("document"in m){var e=w.bind(null,"dom"),t=_(e,!0);m.document.addEventListener("click",t,!1),m.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var n=m[t]&&m[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,l.GS)(n,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){var a=_(e);s.handler=a,t.call(this,n,a,o)}s.refCount+=1}catch(e){}return t.call(this,n,r,o)}}),(0,l.GS)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in m){var e=XMLHttpRequest.prototype;(0,l.GS)(e,"open",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=t[1],i=r.__sentry_xhr__={method:(0,s.Kg)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,s.Kg)(o)&&"POST"===i.method&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{i.status_code=r.status}catch(e){}w("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?(0,l.GS)(r,"onreadystatechange",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}}):r.addEventListener("readystatechange",a),e.apply(r,t)}}),(0,l.GS)(e,"send",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),w("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})}}();break;case"fetch":(function(){if(!function(){if(!("fetch"in(0,i.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}())return!1;var e=(0,i.V)();if(p(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=p(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){o.w&&a.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&(0,l.GS)(m,"fetch",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o,i={args:t,fetchData:{method:(o=t,void 0===o&&(o=[]),"Request"in m&&(0,s.tH)(o[0],Request)&&o[0].method?String(o[0].method).toUpperCase():o[1]&&o[1].method?String(o[1].method).toUpperCase():"GET"),url:C(t)},startTimestamp:Date.now()};return w("fetch",(0,r.__assign)({},i)),e.apply(m,t).then(function(e){return w("fetch",(0,r.__assign)((0,r.__assign)({},i),{endTimestamp:Date.now(),response:e})),e},function(e){throw w("fetch",(0,r.__assign)((0,r.__assign)({},i),{endTimestamp:Date.now(),error:e})),e})}});break;case"history":!function(){if(function(){var e=(0,i.V)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=m.onpopstate;m.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=m.location.href,o=d;if(d=r,w("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,l.GS)(m.history,"pushState",t),(0,l.GS)(m.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=d,i=String(r);d=i,w("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":x=m.onerror,m.onerror=function(e,t,n,r,o){return w("error",{column:r,error:o,line:n,msg:e,url:t}),!!x&&x.apply(this,arguments)};break;case"unhandledrejection":E=m.onunhandledrejection,m.onunhandledrejection=function(e){return w("unhandledrejection",e),!E||E.apply(this,arguments)};break;default:return void(o.w&&a.vF.warn("unknown instrumentation type:",e))}}function b(e,t){g[e]=g[e]||[],g[e].push(t),v(e)}function w(e,t){var n,i;if(e&&g[e])try{for(var s=(0,r.__values)(g[e]||[]),l=s.next();!l.done;l=s.next()){var u=l.value;try{u(t)}catch(t){o.w&&a.vF.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+c(u)+"\nError:",t)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}function C(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in m&&(0,s.tH)(e[0],Request)?e[0].url:String(e[0])}function _(e,t){return void 0===t&&(t=!1),function(n){if(n&&h!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===f||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(h,n))&&(e({event:n,name:r,global:t}),h=n),clearTimeout(f),f=m.setTimeout(function(){f=void 0},1e3)}}}var x=null,E=null},78925(e,t,n){"use strict";n.d(t,{Kg:()=>i,Qd:()=>s,Qg:()=>l,gd:()=>a,tH:()=>c,yr:()=>u});var r=Object.prototype.toString;function o(e,t){return r.call(e)==="[object "+t+"]"}function i(e){return o(e,"String")}function s(e){return o(e,"Object")}function a(e){return o(e,"RegExp")}function l(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function u(e){return"number"==typeof e&&e!=e}function c(e,t){try{return e instanceof t}catch(e){return!1}}},20469(e,t,n){"use strict";n.d(t,{Ow:()=>l,pq:()=>u,vF:()=>r});var r,o=n(65927),i=n(17306),s=n(28890),a=(0,s.V)(),l=["debug","info","warn","error","log","assert"];function u(e){var t=(0,s.V)();if(!("console"in t))return e();var n=t.console,r={};l.forEach(function(e){var o=n[e]&&n[e].__sentry_original__;e in t.console&&o&&(r[e]=n[e],n[e]=o)});try{return e()}finally{Object.keys(r).forEach(function(e){n[e]=r[e]})}}function c(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return i.w?l.forEach(function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e&&u(function(){var e;(e=a.console)[n].apply(e,(0,o.__spread)(["Sentry Logger ["+n+"]:"],t))})}}):l.forEach(function(e){t[e]=function(){}}),t}r=i.w?(0,s.B)("logger",c):c()},12985(e,t,n){"use strict";n.d(t,{eJ:()=>o});var r=n(28890);function o(){var e=(0,r.V)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var o=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return o(n[0])+o(n[1])+o(n[2])+o(n[3])+o(n[4])+o(n[5])+o(n[6])+o(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},85513(e,t,n){"use strict";n.d(t,{fj:()=>i,wD:()=>o,Vw:()=>s}),e=n.hmd(e);var r=n(85409);function o(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function i(e,t){return e.require(t)}function s(t){var n;try{n=i(e,t)}catch(e){}try{var r=i(e,"process").cwd;n=i(e,r()+"/node_modules/"+t)}catch(e){}return n}},56526(e,t,n){"use strict";n.d(t,{Ce:()=>s,GS:()=>i});var r=n(65927),o=n(78925);function i(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{!function(e,t){var n,r,o=t.prototype||{};e.prototype=t.prototype=o,n=e,r=t,Object.defineProperty(n,"__sentry_original__",{value:r,writable:!0,configurable:!0})}(o,r)}catch(e){}e[t]=o}}function s(e){var t,n;if((0,o.Qd)(e)){var i={};try{for(var a=(0,r.__values)(Object.keys(e)),l=a.next();!l.done;l=a.next()){var u=l.value;void 0!==e[u]&&(i[u]=s(e[u]))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(s):e}},47060(e,t,n){"use strict";n.d(t,{LU:()=>c,k3:()=>p,lu:()=>l,zf:()=>u});var r=n(28890),o=n(85513);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}},s=(0,o.wD)()?function(){try{return(0,o.fj)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.V)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),a=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},l=i.nowSeconds.bind(i),u=a.nowSeconds.bind(a),c=u,p=function(){var e=(0,r.V)().performance;if(e&&e.now){var t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,s=i<t,a=e.timing&&e.timing.navigationStart,l="number"==typeof a?Math.abs(a+n-o):t;return s||l<t?i<=l?e.timeOrigin:a:o}}()},51858(e,t,n){"use strict";n.d(t,{$N:()=>a,Hd:()=>i});var r=n(26628);const o=(0,n(99009).VZ)();function i(e,t={}){try{let n=e;const r=5,o=[];let i=0,a=0;const l=" > ",u=l.length;let c;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(c=s(n,p),!("html"===c||i>1&&a+o.length*u+c.length>=d));)o.push(c),a+=c.length,n=n.parentNode;return o.reverse().join(l)}catch(e){return"<unknown>"}}function s(e,t){const n=e,o=[];let i,s,a,l,u;if(!n||!n.tagName)return"";o.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(c&&c.length)c.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&o.push(`#${n.id}`),i=n.className,i&&(0,r.Kg)(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)o.push(`.${s[u]}`);const p=["type","name","title","alt"];for(u=0;u<p.length;u++)a=p[u],l=n.getAttribute(a),l&&o.push(`[${a}="${l}"]`);return o.join("")}function a(){try{return o.document.location.href}catch(e){return""}}},87801(e,t,n){"use strict";function r(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}n.d(t,{z:()=>r})},34147(e,t,n){"use strict";n.d(t,{AD:()=>a,SB:()=>i});var r=n(28088);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function i(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function s(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function a(e){const t="string"==typeof e?function(e){const t=o.exec(e);if(!t)throw new r.U(`Invalid Sentry Dsn: ${e}`);const[n,i,a="",l,u="",c]=t.slice(1);let p="",d=c;const f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return s({host:l,pass:a,path:p,projectId:d,port:u,protocol:n,publicKey:i})}(e):s(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:o}=e;if(["protocol","publicKey","host","projectId"].forEach(t=>{if(!e[t])throw new r.U(`Invalid Sentry Dsn: ${t} missing`)}),!n.match(/^\d+$/))throw new r.U(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(o))throw new r.U(`Invalid Sentry Dsn: Invalid protocol ${o}`);if(t&&isNaN(parseInt(t,10)))throw new r.U(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}},52036(e,t,n){"use strict";n.d(t,{Cj:()=>h,W3:()=>a,bN:()=>c,bm:()=>p,h4:()=>s,n2:()=>m,yH:()=>l,zk:()=>f});var r=n(34147),o=n(68601),i=n(17039);function s(e,t=[]){return[e,t]}function a(e,t){const[n,r]=e;return[n,[...r,t]]}function l(e,t){e[1].forEach(e=>{const n=e[0].type;t(e,n)})}function u(e,t){return(t||new TextEncoder).encode(e)}function c(e,t){const[n,r]=e;let i=JSON.stringify(n);function s(e){"string"==typeof i?i="string"==typeof e?i+e:[u(i,t),e]:i.push("string"==typeof e?u(e,t):e)}for(const e of r){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,o.S8)(n))}s(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function p(e,t){const n="string"==typeof e.data?u(e.data,t):e.data;return[(0,i.Ce)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const d={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile"};function f(e){return d[e]}function h(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function m(e,t,n,o){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:(0,r.SB)(o)},..."transaction"===e.type&&s&&{trace:(0,i.Ce)({...s})}}}},28088(e,t,n){"use strict";n.d(t,{U:()=>r});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},69969(e,t,n){"use strict";n.d(t,{O:()=>p});var r=n(26628),o=n(8088),i=n(17039),s=n(22865),a=n(66252);const l=(0,n(99009).VZ)(),u={},c={};function p(e,t){u[e]=u[e]||[],u[e].push(t),function(e){if(!c[e])switch(c[e]=!0,e){case"console":"console"in l&&o.Ow.forEach(function(e){e in l.console&&(0,i.GS)(l.console,e,function(t){return function(...n){d("console",{args:n,level:e}),t&&t.apply(l.console,n)}})});break;case"dom":!function(){if(!("document"in l))return;const e=d.bind(null,"dom"),t=v(e,!0);l.document.addEventListener("click",t,!1),l.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=l[t]&&l[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.GS)(n,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const r=v(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(e){}return t.call(this,n,r,o)}}),(0,i.GS)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in l))return;const e=XMLHttpRequest.prototype;(0,i.GS)(e,"open",function(e){return function(...t){const n=this,o=t[1],s=n.__sentry_xhr__={method:(0,r.Kg)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,r.Kg)(o)&&"POST"===s.method&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=function(){if(4===n.readyState){try{s.status_code=n.status}catch(e){}d("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?(0,i.GS)(n,"onreadystatechange",function(e){return function(...t){return a(),e.apply(n,t)}}):n.addEventListener("readystatechange",a),e.apply(n,t)}}),(0,i.GS)(e,"send",function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),d("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})}();break;case"fetch":(0,a.m7)()&&(0,i.GS)(l,"fetch",function(e){return function(...t){const n={args:t,fetchData:{method:f(t),url:h(t)},startTimestamp:Date.now()};return d("fetch",{...n}),e.apply(l,t).then(e=>(d("fetch",{...n,endTimestamp:Date.now(),response:e}),e),e=>{throw d("fetch",{...n,endTimestamp:Date.now(),error:e}),e})}});break;case"history":!function(){if(!(0,a.NJ)())return;const e=l.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=m,t=String(n);m=t,d("history",{from:e,to:t})}return e.apply(this,t)}}l.onpopstate=function(...t){const n=l.location.href,r=m;if(m=n,d("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,i.GS)(l.history,"pushState",t),(0,i.GS)(l.history,"replaceState",t)}();break;case"error":b=l.onerror,l.onerror=function(e,t,n,r,o){return d("error",{column:r,error:o,line:n,msg:e,url:t}),!!b&&b.apply(this,arguments)};break;case"unhandledrejection":w=l.onunhandledrejection,l.onunhandledrejection=function(e){return d("unhandledrejection",e),!w||w.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.warn("unknown instrumentation type:",e)}}(e)}function d(e,t){if(e&&u[e])for(const n of u[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.vF.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.qQ)(n)}\nError:`,t)}}function f(e=[]){return"Request"in l&&(0,r.tH)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function h(e=[]){return"string"==typeof e[0]?e[0]:"Request"in l&&(0,r.tH)(e[0],Request)?e[0].url:String(e[0])}let m,g,y;function v(e,t=!1){return n=>{if(!n||y===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===g||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(y,n))&&(e({event:n,name:r,global:t}),y=n),clearTimeout(g),g=l.setTimeout(()=>{g=void 0},1e3)}}let b=null,w=null},26628(e,t,n){"use strict";n.d(t,{BD:()=>a,Kg:()=>u,Qd:()=>p,Qg:()=>m,T2:()=>s,W6:()=>l,bJ:()=>o,gd:()=>h,mE:()=>g,sO:()=>c,tH:()=>v,vq:()=>f,xH:()=>d,yr:()=>y});const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function c(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function p(e){return i(e,"Object")}function d(e){return"undefined"!=typeof Event&&v(e,Event)}function f(e){return"undefined"!=typeof Element&&v(e,Element)}function h(e){return i(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e){return"number"==typeof e&&e!=e}function v(e,t){try{return e instanceof t}catch(e){return!1}}},8088(e,t,n){"use strict";n.d(t,{Ow:()=>o,pq:()=>i,vF:()=>a});var r=n(99009);const o=["debug","info","warn","error","log","assert","trace"];function i(e){if(!("console"in r.OW))return e();const t=r.OW.console,n={};o.forEach(e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)});try{return e()}finally{Object.keys(n).forEach(e=>{t[e]=n[e]})}}function s(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.forEach(n=>{t[n]=(...t)=>{e&&i(()=>{r.OW.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>{}}),t}let a;a="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.BY)("logger",s):s()},93276(e,t,n){"use strict";n.d(t,{$X:()=>a,GR:()=>c,M6:()=>u,eJ:()=>i,gO:()=>l,k9:()=>p});var r=n(17039),o=n(99009);function i(){const e=o.OW,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){const{message:t,event_id:n}=e;if(t)return t;const r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function u(e,t){const n=s(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function c(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}function p(e){return Array.isArray(e)?e:[e]}},43366(e,t,n){"use strict";n.d(t,{fj:()=>i,wD:()=>o}),e=n.hmd(e);var r=n(85409);function o(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function i(e,t){return e.require(t)}},68601(e,t,n){"use strict";n.d(t,{S8:()=>s,cd:()=>a});var r=n(26628),o=n(17039),i=n(22865);function s(e,t=1/0,n=1/0){try{return l("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t=3,n=102400){const r=s(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?a(e,t-1,n):r;var o}function l(e,t,s=1/0,a=1/0,u=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[c,p]=u;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,r.yr)(t))return t;const d=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,r.mE)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${(0,i.qQ)(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;if(0===s)return d.replace("object ","");if(c(t))return"[Circular ~]";const f=t;if(f&&"function"==typeof f.toJSON)try{return l("",f.toJSON(),s-1,a,u)}catch(e){}const h=Array.isArray(t)?[]:{};let m=0;const g=(0,o.W4)(t);for(const e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=a){h[e]="[MaxProperties ~]";break}const t=g[e];h[e]=l(e,t,s-1,a,u),m++}return p(t),h}},17039(e,t,n){"use strict";n.d(t,{Ce:()=>m,GS:()=>s,HF:()=>h,W4:()=>p,my:()=>a,pO:()=>l,sp:()=>u,u4:()=>c});var r=n(51858),o=n(26628),i=n(72633);function s(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);if("function"==typeof o)try{l(o,r)}catch(e){}e[t]=o}function a(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function l(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,a(e,"__sentry_original__",t)}function u(e){return e.__sentry_original__}function c(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if((0,o.xH)(e)){const t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return(0,o.vq)(e)?(0,r.Hd)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function f(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){const n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,i.xv)(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,i.xv)(r,t)}return""}function m(e){return g(e,new Map)}function g(e,t){if((0,o.Qd)(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=g(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(g(e,t))}),r}return e}},22865(e,t,n){"use strict";function r(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{const r=[];for(const o of e.split("\n").slice(n)){const e=o.replace(/\(error: (.*)\)/,"$1");for(const n of t){const t=n(e);if(t){r.push(t);break}}}return function(e){if(!e.length)return[];let t=e;const n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"})).reverse()}(r)}}function o(e){return Array.isArray(e)?r(...e):e}n.d(t,{gd:()=>r,qQ:()=>s,vk:()=>o});const i="<anonymous>";function s(e){try{return e&&"function"==typeof e&&e.name||i}catch(e){return i}}},72633(e,t,n){"use strict";n.d(t,{Xr:()=>s,gt:()=>i,xv:()=>o});var r=n(26628);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function i(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):!!(0,r.Kg)(t)&&(n?e===t:e.includes(t)))}(e,t,n))}},66252(e,t,n){"use strict";n.d(t,{NJ:()=>l,ap:()=>s,m7:()=>a,vm:()=>i});var r=n(8088);const o=(0,n(99009).VZ)();function i(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!i())return!1;if(s(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function l(){const e=o.chrome,t=e&&e.app&&e.app.runtime,n="history"in o&&!!o.history.pushState&&!!o.history.replaceState;return!t&&n}},38374(e,t,n){"use strict";n.d(t,{T2:()=>a,XW:()=>i,xg:()=>s});var r,o=n(26628);function i(e){return new a(t=>{t(e)})}function s(e){return new a((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class a{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),a.prototype.__init5.call(this),a.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new a((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,o.Qg)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}},94053(e,t,n){"use strict";n.d(t,{k3:()=>d,lu:()=>u,zf:()=>c});var r=n(43366),o=n(99009);e=n.hmd(e);const i=(0,o.VZ)(),s={nowSeconds:()=>Date.now()/1e3},a=(0,r.wD)()?function(){try{return(0,r.fj)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=i;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=s.nowSeconds.bind(s),c=l.nowSeconds.bind(l);let p;const d=(()=>{const{performance:e}=i;if(!e||!e.now)return void(p="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,a=e.timing&&e.timing.navigationStart,l="number"==typeof a?Math.abs(a+n-r):t;return s||l<t?o<=l?(p="timeOrigin",e.timeOrigin):(p="navigationStart",a):(p="dateNow",r)})()},99009(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{BY:()=>s,OW:()=>o,VZ:()=>i});const o="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return o}function s(e,t,n){const r=n||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},67520(e,t,n){"use strict";n.d(t,{n:()=>i});const r={},o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),r[e]=t,o[t]=e}function i(e){let t="";for(let n=0;n<e.byteLength;n++)t+=r[e[n]];return t}},49366(e,t,n){"use strict";n.d(t,{VS:()=>jr,H2:()=>Qr,Gc:()=>Rr});var r=n(65723),o=n(22155),i=n(5779),s=n(83971),a=n(6063),l=n(60616),u=n(17076),c=n(32262),p=n(96785);const d=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],f=["Enter"," ","Escape"],h={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var m,g,y;!function(e){e.Strict="strict",e.Loose="loose"}(m||(m={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(g||(g={})),function(e){e.Partial="partial",e.Full="full"}(y||(y={}));const v={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var b,w,C;!function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"}(b||(b={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(w||(w={})),function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(C||(C={}));const _={[C.Left]:C.Right,[C.Right]:C.Left,[C.Top]:C.Bottom,[C.Bottom]:C.Top};function x(e){return null===e?null:e?"valid":"invalid"}const E=e=>"id"in e&&"source"in e&&"target"in e,S=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),P=(e,t=[0,0])=>{const{width:n,height:r}=X(e),o=e.origin??t,i=n*o[0],s=r*o[1];return{x:e.position.x-i,y:e.position.y-s}},O=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=L(n,F(e)),r=!0)}),r?V(n):{x:0,y:0,width:0,height:0}},T=(e,t,[n,r,o]=[0,0,1],i=!1,s=!1)=>{const a={...$(t,[n,r,o]),width:t.width/o,height:t.height/o},l=[];for(const t of e.values()){const{measured:e,selectable:n=!0,hidden:r=!1}=t;if(s&&!n||r)continue;const o=e.width??t.width??t.initialWidth??null,u=e.height??t.height??t.initialHeight??null,c=B(a,j(t)),p=(o??0)*(u??0),d=i&&c>0;(!t.internals.handleBounds||d||c>=p||t.dragging)&&l.push(t)}return l};function k({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){const s=n.get(e),a=s.parentId?n.get(s.parentId):void 0,{x:l,y:u}=a?a.internals.positionAbsolute:{x:0,y:0},c=s.origin??r;let p=s.extent||o;if("parent"!==s.extent||s.expandParent)a&&K(s.extent)&&(p=[[s.extent[0][0]+l,s.extent[0][1]+u],[s.extent[1][0]+l,s.extent[1][1]+u]]);else if(a){const e=a.measured.width,t=a.measured.height;e&&t&&(p=[[l,u],[l+e,u+t]])}else i?.("005","Only child nodes can use a parent extent.");const d=K(p)?I(t,p,s.measured):t;return void 0!==s.measured.width&&void 0!==s.measured.height||i?.("015","It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."),{position:{x:d.x-l+(s.measured.width??0)*c[0],y:d.y-u+(s.measured.height??0)*c[1]},positionAbsolute:d}}const A=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),I=(e={x:0,y:0},t,n)=>({x:A(e.x,t[0][0],t[1][0]-(n?.width??0)),y:A(e.y,t[0][1],t[1][1]-(n?.height??0))});function R(e,t,n){const{width:r,height:o}=X(n),{x:i,y:s}=n.internals.positionAbsolute;return I(e,[[i,s],[i+r,s+o]],t)}const M=(e,t,n)=>e<t?A(Math.abs(e-t),1,t)/t:e>n?-A(Math.abs(e-n),1,t)/t:0,D=(e,t,n=15,r=40)=>[M(e.x,r,t.width-r)*n,M(e.y,r,t.height-r)*n],L=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),N=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),V=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),j=(e,t=[0,0])=>{const{x:n,y:r}=S(e)?e.internals.positionAbsolute:P(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},F=(e,t=[0,0])=>{const{x:n,y:r}=S(e)?e.internals.positionAbsolute:P(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},z=(e,t)=>V(L(N(e),N(t))),B=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},H=e=>U(e.width)&&U(e.height)&&U(e.x)&&U(e.y),U=e=>!isNaN(e)&&isFinite(e),q=(e,t)=>{},W=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),$=({x:e,y:t},[n,r,o],i=!1,s=[1,1])=>{const a={x:(e-n)/o,y:(t-r)/o};return i?W(a,s):a},Q=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function G(e,t){if("number"==typeof e)return Math.floor(.5*(t-t/(1+e)));if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}const Y=(e,t,n,r,o,i)=>{const s=function(e,t,n){if("string"==typeof e||"number"==typeof e){const r=G(e,n),o=G(e,t);return{top:r,right:o,bottom:r,left:o,x:2*o,y:2*r}}if("object"==typeof e){const r=G(e.top??e.y??0,n),o=G(e.bottom??e.y??0,n),i=G(e.left??e.x??0,t),s=G(e.right??e.x??0,t);return{top:r,right:s,bottom:o,left:i,x:i+s,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,t,n),a=(t-s.x)/e.width,l=(n-s.y)/e.height,u=Math.min(a,l),c=A(u,r,o),p=t/2-(e.x+e.width/2)*c,d=n/2-(e.y+e.height/2)*c,f=function(e,t,n,r,o,i){const{x:s,y:a}=Q(e,[t,n,r]),{x:l,y:u}=Q({x:e.x+e.width,y:e.y+e.height},[t,n,r]),c=o-l,p=i-u;return{left:Math.floor(s),top:Math.floor(a),right:Math.floor(c),bottom:Math.floor(p)}}(e,p,d,c,t,n),h=Math.min(f.left-s.left,0),m=Math.min(f.top-s.top,0);return{x:p-h+Math.min(f.right-s.right,0),y:d-m+Math.min(f.bottom-s.bottom,0),zoom:c}},Z=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function K(e){return null!=e&&"parent"!==e}function X(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function J(e){return void 0!==(e.measured?.width??e.width??e.initialWidth)&&void 0!==(e.measured?.height??e.height??e.initialHeight)}function ee(e,t={width:0,height:0},n,r,o){const i={...e},s=r.get(n);if(s){const e=s.origin||o;i.x+=s.internals.positionAbsolute.x-(t.width??0)*e[0],i.y+=s.internals.positionAbsolute.y-(t.height??0)*e[1]}return i}function te(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function ne(e){return{...h,...e||{}}}function re(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){const{x:i,y:s}=ue(e),a=$({x:i-(o?.left??0),y:s-(o?.top??0)},r),{x:l,y:u}=n?W(a,t):a;return{xSnapped:l,ySnapped:u,...a}}const oe=e=>({width:e.offsetWidth,height:e.offsetHeight}),ie=e=>e?.getRootNode?.()||window?.document,se=["INPUT","SELECT","TEXTAREA"];function ae(e){const t=e.composedPath?.()?.[0]||e.target;return 1===t?.nodeType&&(se.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey"))}const le=e=>"clientX"in e,ue=(e,t)=>{const n=le(e),r=n?e.clientX:e.touches?.[0].clientX,o=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:o-(t?.top??0)}},ce=(e,t,n,r,o)=>{const i=t.querySelectorAll(`.${e}`);return i&&i.length?Array.from(i).map(t=>{const i=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:o,position:t.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...oe(t)}}):null};function pe({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:s,targetControlY:a}){const l=.125*e+.375*o+.375*s+.125*n,u=.125*t+.375*i+.375*a+.125*r;return[l,u,Math.abs(l-e),Math.abs(u-t)]}function de(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function fe({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case C.Left:return[t-de(t-r,i),n];case C.Right:return[t+de(r-t,i),n];case C.Top:return[t,n-de(n-o,i)];case C.Bottom:return[t,n+de(o-n,i)]}}function he({sourceX:e,sourceY:t,sourcePosition:n=C.Bottom,targetX:r,targetY:o,targetPosition:i=C.Top,curvature:s=.25}){const[a,l]=fe({pos:n,x1:e,y1:t,x2:r,y2:o,c:s}),[u,c]=fe({pos:i,x1:r,y1:o,x2:e,y2:t,c:s}),[p,d,f,h]=pe({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${a},${l} ${u},${c} ${r},${o}`,p,d,f,h]}function me({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,s=Math.abs(r-t)/2;return[i,r<t?r+s:r-s,o,s]}function ge({sourceNode:e,targetNode:t,width:n,height:r,transform:o}){const i=L(F(e),F(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const s={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]};return B(s,V(i))>0}const ye=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`;function ve({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,s,a]=me({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,s,a]}const be={[C.Left]:{x:-1,y:0},[C.Right]:{x:1,y:0},[C.Top]:{x:0,y:-1},[C.Bottom]:{x:0,y:1}},we=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function Ce({sourceX:e,sourceY:t,sourcePosition:n=C.Bottom,targetX:r,targetY:o,targetPosition:i=C.Top,borderRadius:s=5,centerX:a,centerY:l,offset:u=20,stepPosition:c=.5}){const[p,d,f,h,m]=function({source:e,sourcePosition:t=C.Bottom,target:n,targetPosition:r=C.Top,center:o,offset:i,stepPosition:s}){const a=be[t],l=be[r],u={x:e.x+a.x*i,y:e.y+a.y*i},c={x:n.x+l.x*i,y:n.y+l.y*i},p=(({source:e,sourcePosition:t=C.Bottom,target:n})=>t===C.Left||t===C.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1})({source:u,sourcePosition:t,target:c}),d=0!==p.x?"x":"y",f=p[d];let h,m,g=[];const y={x:0,y:0},v={x:0,y:0},[,,b,w]=me({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*l[d]===-1){"x"===d?(h=o.x??u.x+(c.x-u.x)*s,m=o.y??(u.y+c.y)/2):(h=o.x??(u.x+c.x)/2,m=o.y??u.y+(c.y-u.y)*s);const e=[{x:h,y:u.y},{x:h,y:c.y}],t=[{x:u.x,y:m},{x:c.x,y:m}];g=a[d]===f?"x"===d?e:t:"x"===d?t:e}else{const o=[{x:u.x,y:c.y}],s=[{x:c.x,y:u.y}];if(g="x"===d?a.x===f?s:o:a.y===f?o:s,t===r){const t=Math.abs(e[d]-n[d]);if(t<=i){const r=Math.min(i-1,i-t);a[d]===f?y[d]=(u[d]>e[d]?-1:1)*r:v[d]=(c[d]>n[d]?-1:1)*r}}if(t!==r){const e="x"===d?"y":"x",t=a[d]===l[e],n=u[e]>c[e],r=u[e]<c[e];(1===a[d]&&(!t&&n||t&&r)||1!==a[d]&&(!t&&r||t&&n))&&(g="x"===d?o:s)}const p={x:u.x+y.x,y:u.y+y.y},b={x:c.x+v.x,y:c.y+v.y};Math.max(Math.abs(p.x-g[0].x),Math.abs(b.x-g[0].x))>=Math.max(Math.abs(p.y-g[0].y),Math.abs(b.y-g[0].y))?(h=(p.x+b.x)/2,m=g[0].y):(h=g[0].x,m=(p.y+b.y)/2)}return[[e,{x:u.x+y.x,y:u.y+y.y},...g,{x:c.x+v.x,y:c.y+v.y},n],h,m,b,w]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:a,y:l},offset:u,stepPosition:c});return[p.reduce((e,t,n)=>{let r="";return r=n>0&&n<p.length-1?function(e,t,n,r){const o=Math.min(we(e,t)/2,we(t,n)/2,r),{x:i,y:s}=t;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s)return`L ${i+o*(e.x<n.x?-1:1)},${s}Q ${i},${s} ${i},${s+o*(e.y<n.y?1:-1)}`;const a=e.x<n.x?1:-1;return`L ${i},${s+o*(e.y<n.y?-1:1)}Q ${i},${s} ${i+o*a},${s}`}(p[n-1],t,p[n+1],s):`${0===n?"M":"L"}${t.x} ${t.y}`,e+r},""),d,f,h,m]}function _e(e){return e&&!(!e.internals.handleBounds&&!e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function xe(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,"source"===r.type?t.push(r):"target"===r.type&&n.push(r);return{source:t,target:n}}function Ee(e,t,n=C.Left,r=!1){const o=(t?.x??0)+e.internals.positionAbsolute.x,i=(t?.y??0)+e.internals.positionAbsolute.y,{width:s,height:a}=t??X(e);if(r)return{x:o+s/2,y:i+a/2};switch(t?.position??n){case C.Top:return{x:o+s/2,y:i};case C.Right:return{x:o+s,y:i+a/2};case C.Bottom:return{x:o+s/2,y:i+a};case C.Left:return{x:o,y:i+a/2}}}function Se(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function Pe(e,t){return e?"string"==typeof e?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`:""}const Oe={nodeOrigin:[0,0],nodeExtent:d,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Te={...Oe,checkEquality:!0};function ke(e,t){const n={...e};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Ae(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;const n=[],r=[];for(const t of e.handles){const o={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(o):"target"===t.type&&r.push(o)}return{source:n,target:r}}function Ie(e){return"manual"===e}function Re(e,t,n,r={}){const o=ke(Te,r),i={i:0},s=new Map(t),a=o?.elevateNodesOnSelect&&!Ie(o.zIndexMode)?1e3:0;let l=e.length>0;t.clear(),n.clear();for(const u of e){let e=s.get(u.id);if(o.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{const n=P(u,o.nodeOrigin),r=K(u.extent)?u.extent:o.nodeExtent,i=I(n,r,X(u));e={...o.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:i,handleBounds:Ae(u,e),z:De(u,a,o.zIndexMode),userNode:u}},t.set(u.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(l=!1),u.parentId&&Me(e,t,n,r,i)}return l}function Me(e,t,n,r,o){const{elevateNodesOnSelect:i,nodeOrigin:s,nodeExtent:a,zIndexMode:l}=ke(Oe,r),u=e.parentId,c=t.get(u);if(!c)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),o&&!c.parentId&&void 0===c.internals.rootParentIndex&&"auto"===l&&(c.internals.rootParentIndex=++o.i,c.internals.z=c.internals.z+10*o.i),o&&void 0!==c.internals.rootParentIndex&&(o.i=c.internals.rootParentIndex);const p=i&&!Ie(l)?1e3:0,{x:d,y:f,z:h}=function(e,t,n,r,o,i){const{x:s,y:a}=t.internals.positionAbsolute,l=X(e),u=P(e,n),c=K(e.extent)?I(u,e.extent,l):u;let p=I({x:s+c.x,y:a+c.y},r,l);"parent"===e.extent&&(p=R(p,l,t));const d=De(e,o,i),f=t.internals.z??0;return{x:p.x,y:p.y,z:f>=d?f+1:d}}(e,c,s,a,p,l),{positionAbsolute:m}=e.internals,g=d!==m.x||f!==m.y;(g||h!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:g?{x:d,y:f}:m,z:h}})}function De(e,t,n){const r=U(e.zIndex)?e.zIndex:0;return Ie(n)?r:r+(e.selected?t:0)}function Le(e,t,n,r=[0,0]){const o=[],i=new Map;for(const n of e){const e=t.get(n.parentId);if(!e)continue;const r=i.get(n.parentId)?.expandedRect??j(e),o=z(r,n.rect);i.set(n.parentId,{expandedRect:o,parent:e})}return i.size>0&&i.forEach(({expandedRect:t,parent:i},s)=>{const a=i.internals.positionAbsolute,l=X(i),u=i.origin??r,c=t.x<a.x?Math.round(Math.abs(a.x-t.x)):0,p=t.y<a.y?Math.round(Math.abs(a.y-t.y)):0,d=Math.max(l.width,Math.round(t.width)),f=Math.max(l.height,Math.round(t.height)),h=(d-l.width)*u[0],m=(f-l.height)*u[1];(c>0||p>0||h||m)&&(o.push({id:s,type:"position",position:{x:i.position.x-c+h,y:i.position.y-p+m}}),n.get(s)?.forEach(t=>{e.some(e=>e.id===t.id)||o.push({id:t.id,type:"position",position:{x:t.position.x+c,y:t.position.y+p}})})),(l.width<t.width||l.height<t.height||c||p)&&o.push({id:s,type:"dimensions",setAttributes:!0,dimensions:{width:d+(c?u[0]*c-h:0),height:f+(p?u[1]*p-m:0)}})}),o}function Ne(e,t,n,r,o,i){let s=o;const a=r.get(s)||new Map;r.set(s,a.set(n,t)),s=`${o}-${e}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,t)),i){s=`${o}-${e}-${i}`;const a=r.get(s)||new Map;r.set(s,a.set(n,t))}}function Ve(e,t,n){e.clear(),t.clear();for(const r of n){const{source:n,target:o,sourceHandle:i=null,targetHandle:s=null}=r,a={edgeId:r.id,source:n,target:o,sourceHandle:i,targetHandle:s},l=`${n}-${i}--${o}-${s}`;Ne("source",a,`${o}-${s}--${n}-${i}`,e,n,i),Ne("target",a,l,e,o,s),t.set(r.id,r)}}function je(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return!!n&&(!!n.selected||je(n,t))}function Fe(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function ze({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){const o=[];for(const[e,i]of t){const t=n.get(e)?.internals.userNode;t&&o.push({...t,position:i.position,dragging:r})}if(!e)return[o[0],o];const i=n.get(e)?.internals.userNode;return[i?{...i,position:t.get(e)?.position||i.position,dragging:r}:o[0],o]}function Be(e,t,n,r,o,i=!1){const s=r.get(e);if(!s)return null;const a="strict"===o?s.internals.handleBounds?.[t]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],l=(n?a?.find(e=>e.id===n):a?.[0])??null;return l&&i?{...l,...Ee(s,l,l.position,!0)}:l}function He(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}const Ue=()=>!0;function qe(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:s,lib:a,flowId:l,isValidConnection:u=Ue,nodeLookup:c}){const p="target"===i,d=t?s.querySelector(`.${a}-flow__handle[data-id="${l}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:f,y:h}=ue(e),g=s.elementFromPoint(f,h),y=g?.classList.contains(`${a}-flow__handle`)?g:d,v={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){const e=He(void 0,y),t=y.getAttribute("data-nodeid"),i=y.getAttribute("data-handleid"),s=y.classList.contains("connectable"),a=y.classList.contains("connectableend");if(!t||!e)return v;const l={source:p?t:r,sourceHandle:p?i:o,target:p?r:t,targetHandle:p?o:i};v.connection=l;const d=s&&a&&(n===m.Strict?p&&"source"===e||!p&&"target"===e:t!==r||i!==o);v.isValid=d&&u(l),v.toHandle=Be(t,e,i,c,n,!0)}return v}const We={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:s,domNode:a,nodeLookup:l,lib:u,autoPanOnConnect:c,flowId:p,panBy:d,cancelConnection:f,onConnectStart:h,onConnect:m,onConnectEnd:g,isValidConnection:y=Ue,onReconnectEnd:v,updateConnection:b,getTransform:w,getFromHandle:x,autoPanSpeed:E,dragThreshold:S=1,handleDomNode:P}){const O=ie(e.target);let T,k=0;const{x:A,y:I}=ue(e),R=He(i,P),M=a?.getBoundingClientRect();let L=!1;if(!M||!R)return;const N=Be(o,R,r,l,t);if(!N)return;let V=ue(e,M),F=!1,z=null,H=!1,U=null;function q(){if(!c||!M)return;const[e,t]=D(V,M,E);d({x:e,y:t}),k=requestAnimationFrame(q)}const W={...N,nodeId:o,type:R,position:N.position},G=l.get(o);let Y={inProgress:!0,isValid:null,from:Ee(G,W,C.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:G,to:V,toHandle:null,toPosition:_[W.position],toNode:null,pointer:V};function Z(){L=!0,b(Y),h?.(e,{nodeId:o,handleId:r,handleType:R})}function K(e){if(!L){const{x:t,y:n}=ue(e),r=t-A,o=n-I;if(!(r*r+o*o>S*S))return;Z()}if(!x()||!W)return void X(e);const i=w();V=ue(e,M),T=function(e,t,n,r){let o=[],i=1/0;const s=function(e,t,n){const r=[],o={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(const e of t.values())B(o,j(e))>0&&r.push(e);return r}(e,n,t+250);for(const n of s){const s=[...n.internals.handleBounds?.source??[],...n.internals.handleBounds?.target??[]];for(const a of s){if(r.nodeId===a.nodeId&&r.type===a.type&&r.id===a.id)continue;const{x:s,y:l}=Ee(n,a,a.position,!0),u=Math.sqrt(Math.pow(s-e.x,2)+Math.pow(l-e.y,2));u>t||(u<i?(o=[{...a,x:s,y:l}],i=u):u===i&&o.push({...a,x:s,y:l}))}}if(!o.length)return null;if(o.length>1){const e="source"===r.type?"target":"source";return o.find(t=>t.type===e)??o[0]}return o[0]}($(V,i,!1,[1,1]),n,l,W),F||(q(),F=!0);const a=qe(e,{handle:T,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:s?"target":"source",isValidConnection:y,doc:O,lib:u,flowId:p,nodeLookup:l});U=a.handleDomNode,z=a.connection,H=function(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}(!!T,a.isValid);const c=l.get(o),d=c?Ee(c,W,C.Left,!0):Y.from,f={...Y,from:d,isValid:H,to:a.toHandle&&H?Q({x:a.toHandle.x,y:a.toHandle.y},i):V,toHandle:a.toHandle,toPosition:H&&a.toHandle?a.toHandle.position:_[W.position],toNode:a.toHandle?l.get(a.toHandle.nodeId):null,pointer:V};b(f),Y=f}function X(e){if(!("touches"in e&&e.touches.length>0)){if(L){(T||U)&&z&&H&&m?.(z);const{inProgress:t,...n}=Y,r={...n,toPosition:Y.toHandle?Y.toPosition:null};g?.(e,r),i&&v?.(e,r)}f(),cancelAnimationFrame(k),F=!1,H=!1,z=null,U=null,O.removeEventListener("mousemove",K),O.removeEventListener("mouseup",X),O.removeEventListener("touchmove",K),O.removeEventListener("touchend",X)}}0===S&&Z(),O.addEventListener("mousemove",K),O.addEventListener("mouseup",X),O.addEventListener("touchmove",K),O.addEventListener("touchend",X)},isValid:qe},$e=e=>({x:e.x,y:e.y,zoom:e.k}),Qe=({x:e,y:t,zoom:n})=>u.GS.translate(e,t).scale(n),Ge=(e,t)=>e.target.closest(`.${t}`),Ye=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),Ze=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Ke=(e,t=0,n=Ze,r=()=>{})=>{const o="number"==typeof t&&t>0;return o||r(),o?e.transition().duration(t).ease(n).on("end",r):e},Xe=e=>{const t=e.ctrlKey&&Z()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};var Je;function et(e){return{isHorizontal:e.includes("right")||e.includes("left"),isVertical:e.includes("bottom")||e.includes("top"),affectsX:e.includes("left"),affectsY:e.includes("top")}}function tt(e,t){return Math.max(0,t-e)}function nt(e,t){return Math.max(0,e-t)}function rt(e,t,n){return Math.max(0,t-e,e-n)}function ot(e,t){return e?!t:t}!function(e){e.Line="line",e.Handle="handle"}(Je||(Je={}));const it={width:0,height:0,x:0,y:0},st={...it,pointerX:0,pointerY:0,aspectRatio:1};function at(e,t,n){const r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,a=n[0]*i,l=n[1]*s;return[[r-a,o-l],[r+i-a,o+s-l]]}var lt=n(5682),ut=n(54056);n(70316);const ct=(0,o.createContext)(null),pt=ct.Provider,dt="[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001";function ft(e,t){const n=(0,o.useContext)(ct);if(null===n)throw new Error(dt);return(0,lt.n)(n,e,t)}function ht(){const e=(0,o.useContext)(ct);if(null===e)throw new Error(dt);return(0,o.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const mt={display:"none"},gt={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},yt="react-flow__node-desc",vt="react-flow__edge-desc",bt=e=>e.ariaLiveMessage,wt=e=>e.ariaLabelConfig;function Ct({rfId:e}){const t=ft(bt);return(0,r.jsx)("div",{id:`react-flow__aria-live-${e}`,"aria-live":"assertive","aria-atomic":"true",style:gt,children:t})}function _t({rfId:e,disableKeyboardA11y:t}){const n=ft(wt);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{id:`${yt}-${e}`,style:mt,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),(0,r.jsx)("div",{id:`${vt}-${e}`,style:mt,children:n["edge.a11yDescription.default"]}),!t&&(0,r.jsx)(Ct,{rfId:e})]})}const xt=(0,o.forwardRef)(({position:e="top-left",children:t,className:n,style:o,...s},a)=>{const l=`${e}`.split("-");return(0,r.jsx)("div",{className:(0,i.A)(["react-flow__panel",n,...l]),style:o,ref:a,...s,children:t})});function Et({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:(0,r.jsx)(xt,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:(0,r.jsx)("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}xt.displayName="Panel";const St=e=>{const t=[],n=[];for(const[,n]of e.nodeLookup)n.selected&&t.push(n.internals.userNode);for(const[,t]of e.edgeLookup)t.selected&&n.push(t);return{selectedNodes:t,selectedEdges:n}},Pt=e=>e.id;function Ot(e,t){return(0,ut.x)(e.selectedNodes.map(Pt),t.selectedNodes.map(Pt))&&(0,ut.x)(e.selectedEdges.map(Pt),t.selectedEdges.map(Pt))}function Tt({onSelectionChange:e}){const t=ht(),{selectedNodes:n,selectedEdges:r}=ft(St,Ot);return(0,o.useEffect)(()=>{const o={nodes:n,edges:r};e?.(o),t.getState().onSelectionChangeHandlers.forEach(e=>e(o))},[n,r,e]),null}const kt=e=>!!e.onSelectionChangeHandlers;function At({onSelectionChange:e}){const t=ft(kt);return e||t?(0,r.jsx)(Tt,{onSelectionChange:e}):null}const It=[0,0],Rt={x:0,y:0,zoom:1},Mt=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode","rfId"],Dt=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),Lt={translateExtent:d,nodeOrigin:It,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function Nt(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:s,setNodeExtent:a,reset:l,setDefaultNodesAndEdges:u}=ft(Dt,ut.x),c=ht();(0,o.useEffect)(()=>(u(e.defaultNodes,e.defaultEdges),()=>{p.current=Lt,l()}),[]);const p=(0,o.useRef)(Lt);return(0,o.useEffect)(()=>{for(const o of Mt){const l=e[o];l!==p.current[o]&&void 0!==e[o]&&("nodes"===o?t(l):"edges"===o?n(l):"minZoom"===o?r(l):"maxZoom"===o?i(l):"translateExtent"===o?s(l):"nodeExtent"===o?a(l):"ariaLabelConfig"===o?c.setState({ariaLabelConfig:ne(l)}):"fitView"===o?c.setState({fitViewQueued:l}):"fitViewOptions"===o?c.setState({fitViewOptions:l}):c.setState({[o]:l}))}p.current=e},Mt.map(t=>e[t])),null}function Vt(){return"undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null}const jt="undefined"!=typeof document?document:null;function Ft(e=null,t={target:jt,actInsideInputWithModifier:!0}){const[n,r]=(0,o.useState)(!1),i=(0,o.useRef)(!1),s=(0,o.useRef)(new Set([])),[a,l]=(0,o.useMemo)(()=>{if(null!==e){const t=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e).map(e=>e.replace("+","\n").replace("\n\n","\n+").split("\n")),n=t.reduce((e,t)=>e.concat(...t),[]);return[t,n]}return[[],[]]},[e]);return(0,o.useEffect)(()=>{const n=t?.target??jt,o=t?.actInsideInputWithModifier??!0;if(null!==e){const e=e=>{if(i.current=e.ctrlKey||e.metaKey||e.shiftKey||e.altKey,(!i.current||i.current&&!o)&&ae(e))return!1;const n=Bt(e.code,l);if(s.current.add(e[n]),zt(a,s.current,!1)){const n=e.composedPath?.()?.[0]||e.target,o="BUTTON"===n?.nodeName||"A"===n?.nodeName;!1===t.preventDefault||!i.current&&o||e.preventDefault(),r(!0)}},u=e=>{const t=Bt(e.code,l);zt(a,s.current,!0)?(r(!1),s.current.clear()):s.current.delete(e[t]),"Meta"===e.key&&s.current.clear(),i.current=!1},c=()=>{s.current.clear(),r(!1)};return n?.addEventListener("keydown",e),n?.addEventListener("keyup",u),window.addEventListener("blur",c),window.addEventListener("contextmenu",c),()=>{n?.removeEventListener("keydown",e),n?.removeEventListener("keyup",u),window.removeEventListener("blur",c),window.removeEventListener("contextmenu",c)}}},[e,r]),n}function zt(e,t,n){return e.filter(e=>n||e.length===t.size).some(e=>e.every(e=>t.has(e)))}function Bt(e,t){return t.includes(e)?"code":"key"}function Ht(e,t){const n=[],r=new Map,o=[];for(const t of e)if("add"!==t.type)if("remove"===t.type||"replace"===t.type)r.set(t.id,[t]);else{const e=r.get(t.id);e?e.push(t):r.set(t.id,[t])}else o.push(t);for(const e of t){const t=r.get(e.id);if(!t){n.push(e);continue}if("remove"===t[0].type)continue;if("replace"===t[0].type){n.push({...t[0].item});continue}const o={...e};for(const e of t)Ut(e,o);n.push(o)}return o.length&&o.forEach(e=>{void 0!==e.index?n.splice(e.index,0,{...e.item}):n.push({...e.item})}),n}function Ut(e,t){switch(e.type){case"select":t.selected=e.selected;break;case"position":void 0!==e.position&&(t.position=e.position),void 0!==e.dragging&&(t.dragging=e.dragging);break;case"dimensions":void 0!==e.dimensions&&(t.measured={...e.dimensions},e.setAttributes&&(!0!==e.setAttributes&&"width"!==e.setAttributes||(t.width=e.dimensions.width),!0!==e.setAttributes&&"height"!==e.setAttributes||(t.height=e.dimensions.height))),"boolean"==typeof e.resizing&&(t.resizing=e.resizing)}}function qt(e,t){return{id:e,type:"select",selected:t}}function Wt(e,t=new Set,n=!1){const r=[];for(const[o,i]of e){const e=t.has(o);void 0===i.selected&&!e||i.selected===e||(n&&(i.selected=e),r.push(qt(i.id,e)))}return r}function $t({items:e=[],lookup:t}){const n=[],r=new Map(e.map(e=>[e.id,e]));for(const[r,o]of e.entries()){const e=t.get(o.id),i=e?.internals?.userNode??e;void 0!==i&&i!==o&&n.push({id:o.id,item:o,type:"replace"}),void 0===i&&n.push({item:o,type:"add",index:r})}for(const[e]of t)void 0===r.get(e)&&n.push({id:e,type:"remove"});return n}function Qt(e){return{id:e.id,type:"remove"}}const Gt=e=>(e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e))(e);function Yt(e){return(0,o.forwardRef)(e)}const Zt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Kt(e){const[t,n]=(0,o.useState)(BigInt(0)),[r]=(0,o.useState)(()=>function(){let e=[];return{get:()=>e,reset:()=>{e=[]},push:t=>{e.push(t),n(e=>e+BigInt(1))}}}());return Zt(()=>{const t=r.get();t.length&&(e(t),r.reset())},[t]),r}const Xt=(0,o.createContext)(null);function Jt({children:e}){const t=ht(),n=Kt((0,o.useCallback)(e=>{const{nodes:n=[],setNodes:r,hasDefaultNodes:o,onNodesChange:i,nodeLookup:s,fitViewQueued:a,onNodesChangeMiddlewareMap:l}=t.getState();let u=n;for(const t of e)u="function"==typeof t?t(u):t;let c=$t({items:u,lookup:s});for(const e of l.values())c=e(c);o&&r(u),c.length>0?i?.(c):a&&window.requestAnimationFrame(()=>{const{fitViewQueued:e,nodes:n,setNodes:r}=t.getState();e&&r(n)})},[])),i=Kt((0,o.useCallback)(e=>{const{edges:n=[],setEdges:r,hasDefaultEdges:o,onEdgesChange:i,edgeLookup:s}=t.getState();let a=n;for(const t of e)a="function"==typeof t?t(a):t;o?r(a):i&&i($t({items:a,lookup:s}))},[])),s=(0,o.useMemo)(()=>({nodeQueue:n,edgeQueue:i}),[]);return(0,r.jsx)(Xt.Provider,{value:s,children:e})}const en=e=>!!e.panZoom;function tn(){const e=(()=>{const e=ht();return(0,o.useMemo)(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t?.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t?.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,o,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??o,zoom:t.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:o,minZoom:i,maxZoom:s,panZoom:a}=e.getState(),l=Y(t,r,o,i,s,n?.padding??.1);return a?(await a.setViewport(l,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:o,snapToGrid:i,domNode:s}=e.getState();if(!s)return t;const{x:a,y:l}=s.getBoundingClientRect(),u={x:t.x-a,y:t.y-l},c=n.snapGrid??o,p=n.snapToGrid??i;return $(u,r,p,c)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),s=Q(t,n);return{x:s.x+o,y:s.y+i}}}),[])})(),t=ht(),n=function(){const e=(0,o.useContext)(Xt);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}(),r=ft(en),i=(0,o.useMemo)(()=>{const e=e=>t.getState().nodeLookup.get(e),r=e=>{n.nodeQueue.push(e)},o=e=>{n.edgeQueue.push(e)},i=e=>{const{nodeLookup:n,nodeOrigin:r}=t.getState(),o=Gt(e)?e:n.get(e.id),i=o.parentId?ee(o.position,o.measured,o.parentId,n,r):o.position,s={...o,position:i,width:o.measured?.width??o.width,height:o.measured?.height??o.height};return j(s)},s=(e,t,n={replace:!1})=>{r(r=>r.map(r=>{if(r.id===e){const e="function"==typeof t?t(r):t;return n.replace&&Gt(e)?e:{...r,...e}}return r}))},a=(e,t,n={replace:!1})=>{o(r=>r.map(r=>{if(r.id===e){const e="function"==typeof t?t(r):t;return n.replace&&E(e)?e:{...r,...e}}return r}))};return{getNodes:()=>t.getState().nodes.map(e=>({...e})),getNode:t=>e(t)?.internals.userNode,getInternalNode:e,getEdges:()=>{const{edges:e=[]}=t.getState();return e.map(e=>({...e}))},getEdge:e=>t.getState().edgeLookup.get(e),setNodes:r,setEdges:o,addNodes:e=>{const t=Array.isArray(e)?e:[e];n.nodeQueue.push(e=>[...e,...t])},addEdges:e=>{const t=Array.isArray(e)?e:[e];n.edgeQueue.push(e=>[...e,...t])},toObject:()=>{const{nodes:e=[],edges:n=[],transform:r}=t.getState(),[o,i,s]=r;return{nodes:e.map(e=>({...e})),edges:n.map(e=>({...e})),viewport:{x:o,y:i,zoom:s}}},deleteElements:async({nodes:e=[],edges:n=[]})=>{const{nodes:r,edges:o,onNodesDelete:i,onEdgesDelete:s,triggerNodeChanges:a,triggerEdgeChanges:l,onDelete:u,onBeforeDelete:c}=t.getState(),{nodes:p,edges:d}=await async function({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){const i=new Set(e.map(e=>e.id)),s=[];for(const e of n){if(!1===e.deletable)continue;const t=i.has(e.id),n=!t&&e.parentId&&s.find(t=>t.id===e.parentId);(t||n)&&s.push(e)}const a=new Set(t.map(e=>e.id)),l=r.filter(e=>!1!==e.deletable),u=((e,t)=>{const n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))})(s,l),c=u;for(const e of l)a.has(e.id)&&!c.find(t=>t.id===e.id)&&c.push(e);if(!o)return{edges:c,nodes:s};const p=await o({nodes:s,edges:c});return"boolean"==typeof p?p?{edges:c,nodes:s}:{edges:[],nodes:[]}:p}({nodesToRemove:e,edgesToRemove:n,nodes:r,edges:o,onBeforeDelete:c}),f=d.length>0,h=p.length>0;if(f){const e=d.map(Qt);s?.(d),l(e)}if(h){const e=p.map(Qt);i?.(p),a(e)}return(h||f)&&u?.({nodes:p,edges:d}),{deletedNodes:p,deletedEdges:d}},getIntersectingNodes:(e,n=!0,r)=>{const o=H(e),s=o?e:i(e),a=void 0!==r;return s?(r||t.getState().nodes).filter(r=>{const i=t.getState().nodeLookup.get(r.id);if(i&&!o&&(r.id===e.id||!i.internals.positionAbsolute))return!1;const l=j(a?r:i),u=B(l,s);return n&&u>0||u>=l.width*l.height||u>=s.width*s.height}):[]},isNodeIntersecting:(e,t,n=!0)=>{const r=H(e)?e:i(e);if(!r)return!1;const o=B(r,t);return n&&o>0||o>=t.width*t.height||o>=r.width*r.height},updateNode:s,updateNodeData:(e,t,n={replace:!1})=>{s(e,e=>{const r="function"==typeof t?t(e):t;return n.replace?{...e,data:r}:{...e,data:{...e.data,...r}}},n)},updateEdge:a,updateEdgeData:(e,t,n={replace:!1})=>{a(e,e=>{const r="function"==typeof t?t(e):t;return n.replace?{...e,data:r}:{...e,data:{...e.data,...r}}},n)},getNodesBounds:e=>{const{nodeLookup:n,nodeOrigin:r}=t.getState();return((e,t={nodeOrigin:[0,0]})=>{if(0===e.length)return{x:0,y:0,width:0,height:0};const n=e.reduce((e,n)=>{const r="string"==typeof n;let o=t.nodeLookup||r?void 0:n;t.nodeLookup&&(o=r?t.nodeLookup.get(n):S(n)?n:t.nodeLookup.get(n.id));const i=o?F(o,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return L(e,i)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return V(n)})(e,{nodeLookup:n,nodeOrigin:r})},getHandleConnections:({type:e,id:n,nodeId:r})=>Array.from(t.getState().connectionLookup.get(`${r}-${e}${n?`-${n}`:""}`)?.values()??[]),getNodeConnections:({type:e,handleId:n,nodeId:r})=>Array.from(t.getState().connectionLookup.get(`${r}${e?n?`-${e}-${n}`:`-${e}`:""}`)?.values()??[]),fitView:async e=>{const r=t.getState().fitViewResolver??function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}();return t.setState({fitViewQueued:!0,fitViewOptions:e,fitViewResolver:r}),n.nodeQueue.push(e=>[...e]),r.promise}}},[]);return(0,o.useMemo)(()=>({...i,...e,viewportInitialized:r}),[r])}const nn=e=>e.selected,rn="undefined"!=typeof window?window:void 0,on={position:"absolute",width:"100%",height:"100%",top:0,left:0},sn=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function an({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:i=!1,panOnScrollSpeed:s=.5,panOnScrollMode:d=g.Free,zoomOnDoubleClick:f=!0,panOnDrag:h=!0,defaultViewport:m,translateExtent:y,minZoom:v,maxZoom:b,zoomActivationKeyCode:w,preventScrolling:C=!0,children:_,noWheelClassName:x,noPanClassName:E,onViewportChange:S,isControlledViewport:P,paneClickDistance:O,selectionOnDrag:T}){const k=ht(),I=(0,o.useRef)(null),{userSelectionActive:R,lib:M,connectionInProgress:D}=ft(sn,ut.x),L=Ft(w),N=(0,o.useRef)();!function(e){const t=ht();(0,o.useEffect)(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??1))return!1;const n=oe(e.current);0!==n.height&&0!==n.width||t.getState().onError?.("004","The React Flow parent container needs a width and a height to render the graph."),t.setState({width:n.width||500,height:n.height||500})};if(e.current){n(),window.addEventListener("resize",n);const t=new ResizeObserver(()=>n());return t.observe(e.current),()=>{window.removeEventListener("resize",n),t&&e.current&&t.unobserve(e.current)}}},[])}(I);const V=(0,o.useCallback)(e=>{S?.({x:e[0],y:e[1],zoom:e[2]}),P||k.setState({transform:e})},[S,P]);return(0,o.useEffect)(()=>{if(I.current){N.current=function({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:o,onPanZoom:i,onPanZoomStart:s,onPanZoomEnd:d,onDraggingChange:f}){const h={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect(),y=(0,u.s_)().scaleExtent([t,n]).translateExtent(r),v=(0,a.A)(e).call(y);x({x:o.x,y:o.y,zoom:A(o.zoom,t,n)},[[0,0],[m.width,m.height]],r);const b=v.on("wheel.zoom"),w=v.on("dblclick.zoom");function C(e,t){return v?new Promise(n=>{y?.interpolate("linear"===t?.interpolate?c.A:p.A).transform(Ke(v,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function _(){y.on("zoom",null)}async function x(e,t,n){const r=Qe(e),o=y?.constrain()(r,t,n);return o&&await C(o),new Promise(e=>e(o))}return y.wheelDelta(Xe),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:o,panOnDrag:a,panOnScrollMode:u,panOnScrollSpeed:c,preventScrolling:p,zoomOnPinch:m,zoomOnScroll:C,zoomOnDoubleClick:x,zoomActivationKeyPressed:E,lib:S,onTransformChange:P,connectionInProgress:O,paneClickDistance:T,selectionOnDrag:k}){r&&!h.isZoomingOrPanning&&_();const A=o&&!E&&!r;y.clickDistance(k?1/0:!U(T)||T<0?0:T);const I=A?function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:u,onPanZoomEnd:c}){return p=>{if(Ge(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(p.ctrlKey&&s){const e=(0,l.A)(p),t=Xe(p),o=d*Math.pow(2,t);return void r.scaleTo(n,o,e,p)}const f=1===p.deltaMode?20:1;let h=o===g.Vertical?0:p.deltaX*f,m=o===g.Horizontal?0:p.deltaY*f;!Z()&&p.shiftKey&&o!==g.Vertical&&(h=p.deltaY*f,m=0),r.translateBy(n,-h/d*i,-m/d*i,{internal:!0});const y=$e(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(u?.(p,y),e.panScrollTimeout=setTimeout(()=>{c?.(p,y),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,a?.(p,y))}}({zoomPanValues:h,noWheelClassName:e,d3Selection:v,d3Zoom:y,panOnScrollMode:u,panOnScrollSpeed:c,zoomOnPinch:m,onPanZoomStart:s,onPanZoom:i,onPanZoomEnd:d}):function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){const i="wheel"===r.type,s=!t&&i&&!r.ctrlKey,a=Ge(r,e);if(r.ctrlKey&&i&&a&&r.preventDefault(),s||a)return null;r.preventDefault(),n.call(this,r,o)}}({noWheelClassName:e,preventScrolling:p,d3ZoomHandler:b});if(v.on("wheel.zoom",I,{passive:!1}),!r){const e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;const o=$e(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=o,"mousedown"===r.sourceEvent?.type&&t(!0),n&&n?.(r.sourceEvent,o)}}({zoomPanValues:h,onDraggingChange:f,onPanZoomStart:s});y.on("start",e);const t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{e.usedRightMouseButton=!(!n||!Ye(t,e.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!i.sourceEvent?.internal&&o?.(i.sourceEvent,$e(i.transform))}}({zoomPanValues:h,panOnDrag:a,onPaneContextMenu:!!n,onPanZoom:i,onTransformChange:P});y.on("zoom",t);const r=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&Ye(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),o)){const t=$e(s.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o?.(s.sourceEvent,t)},n?150:0)}}}({zoomPanValues:h,panOnDrag:a,panOnScroll:o,onPaneContextMenu:n,onPanZoomEnd:d,onDraggingChange:f});y.on("end",r)}const R=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:a,noPanClassName:l,lib:u,connectionInProgress:c}){return p=>{const d=e||t,f=n&&p.ctrlKey,h="wheel"===p.type;if(1===p.button&&"mousedown"===p.type&&(Ge(p,`${u}-flow__node`)||Ge(p,`${u}-flow__edge`)))return!0;if(!(r||d||o||i||n))return!1;if(s)return!1;if(c&&!h)return!1;if(Ge(p,a)&&h)return!1;if(Ge(p,l)&&(!h||o&&h&&!e))return!1;if(!n&&p.ctrlKey&&h)return!1;if(!n&&"touchstart"===p.type&&p.touches?.length>1)return p.preventDefault(),!1;if(!d&&!o&&!f&&h)return!1;if(!r&&("mousedown"===p.type||"touchstart"===p.type))return!1;if(Array.isArray(r)&&!r.includes(p.button)&&"mousedown"===p.type)return!1;const m=Array.isArray(r)&&r.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||h)&&m}}({zoomActivationKeyPressed:E,panOnDrag:a,zoomOnScroll:C,panOnScroll:o,zoomOnDoubleClick:x,zoomOnPinch:m,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:S,connectionInProgress:O});y.filter(R),x?v.on("dblclick.zoom",w):v.on("dblclick.zoom",null)},destroy:_,setViewport:async function(e,t){const n=Qe(e);return await C(n,t),new Promise(e=>e(n))},setViewportConstrained:x,getViewport:function(){const e=v?(0,u._V)(v.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return v?new Promise(n=>{y?.interpolate("linear"===t?.interpolate?c.A:p.A).scaleTo(Ke(v,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return v?new Promise(n=>{y?.interpolate("linear"===t?.interpolate?c.A:p.A).scaleBy(Ke(v,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){y?.scaleExtent(e)},setTranslateExtent:function(e){y?.translateExtent(e)},syncViewport:function(e){if(v){const t=Qe(e),n=v.property("__zoom");n.k===e.zoom&&n.x===e.x&&n.y===e.y||y?.transform(v,t,null,{sync:!0})}},setClickDistance:function(e){const t=!U(e)||e<0?0:e;y?.clickDistance(t)}}}({domNode:I.current,minZoom:v,maxZoom:b,translateExtent:y,viewport:m,onDraggingChange:e=>k.setState(t=>t.paneDragging===e?t:{paneDragging:e}),onPanZoomStart:(e,t)=>{const{onViewportChangeStart:n,onMoveStart:r}=k.getState();r?.(e,t),n?.(t)},onPanZoom:(e,t)=>{const{onViewportChange:n,onMove:r}=k.getState();r?.(e,t),n?.(t)},onPanZoomEnd:(e,t)=>{const{onViewportChangeEnd:n,onMoveEnd:r}=k.getState();r?.(e,t),n?.(t)}});const{x:e,y:t,zoom:n}=N.current.getViewport();return k.setState({panZoom:N.current,transform:[e,t,n],domNode:I.current.closest(".react-flow")}),()=>{N.current?.destroy()}}},[]),(0,o.useEffect)(()=>{N.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:i,panOnScrollSpeed:s,panOnScrollMode:d,zoomOnDoubleClick:f,panOnDrag:h,zoomActivationKeyPressed:L,preventScrolling:C,noPanClassName:E,userSelectionActive:R,noWheelClassName:x,lib:M,onTransformChange:V,connectionInProgress:D,selectionOnDrag:T,paneClickDistance:O})},[e,t,n,i,s,d,f,h,L,C,E,R,x,M,V,D,T,O]),(0,r.jsx)("div",{className:"react-flow__renderer",ref:I,style:on,children:_})}const ln=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function un(){const{userSelectionActive:e,userSelectionRect:t}=ft(ln,ut.x);return e&&t?(0,r.jsx)("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const cn=(e,t)=>n=>{n.target===t.current&&e?.(n)},pn=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function dn({isSelecting:e,selectionKeyPressed:t,selectionMode:n=y.Full,panOnDrag:s,paneClickDistance:a,selectionOnDrag:l,onSelectionStart:u,onSelectionEnd:c,onPaneClick:p,onPaneContextMenu:d,onPaneScroll:f,onPaneMouseEnter:h,onPaneMouseMove:m,onPaneMouseLeave:g,children:v}){const b=ht(),{userSelectionActive:w,elementsSelectable:C,dragging:_,connectionInProgress:x}=ft(pn,ut.x),E=C&&(e||w),S=(0,o.useRef)(null),P=(0,o.useRef)(),O=(0,o.useRef)(new Set),k=(0,o.useRef)(new Set),A=(0,o.useRef)(!1),I=e=>{A.current||x?A.current=!1:(p?.(e),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1}))},R=f?e=>f(e):void 0,M=!0===s||Array.isArray(s)&&s.includes(0);return(0,r.jsxs)("div",{className:(0,i.A)(["react-flow__pane",{draggable:M,dragging:_,selection:e}]),onClick:E?void 0:cn(I,S),onContextMenu:cn(e=>{Array.isArray(s)&&s?.includes(2)?e.preventDefault():d?.(e)},S),onWheel:cn(R,S),onPointerEnter:E?void 0:h,onPointerMove:E?e=>{const{userSelectionRect:r,transform:o,nodeLookup:i,edgeLookup:s,connectionLookup:l,triggerNodeChanges:c,triggerEdgeChanges:p,defaultEdgeOptions:d,resetSelectedElements:f}=b.getState();if(!P.current||!r)return;const{x:h,y:m}=ue(e.nativeEvent,P.current),{startX:g,startY:v}=r;if(!A.current){const n=t?0:a;if(Math.hypot(h-g,m-v)<=n)return;f(),u?.(e)}A.current=!0;const w={startX:g,startY:v,x:h<g?h:g,y:m<v?m:v,width:Math.abs(h-g),height:Math.abs(m-v)},C=O.current,_=k.current;O.current=new Set(T(i,w,o,n===y.Partial,!0).map(e=>e.id)),k.current=new Set;const x=d?.selectable??!0;for(const e of O.current){const t=l.get(e);if(t)for(const{edgeId:e}of t.values()){const t=s.get(e);t&&(t.selectable??x)&&k.current.add(e)}}te(C,O.current)||c(Wt(i,O.current,!0)),te(_,k.current)||p(Wt(s,k.current)),b.setState({userSelectionRect:w,userSelectionActive:!0,nodesSelectionActive:!1})}:m,onPointerUp:E?e=>{0===e.button&&(e.target?.releasePointerCapture?.(e.pointerId),!w&&e.target===S.current&&b.getState().userSelectionRect&&I?.(e),b.setState({userSelectionActive:!1,userSelectionRect:null}),A.current&&(c?.(e),b.setState({nodesSelectionActive:O.current.size>0})))}:void 0,onPointerDownCapture:E?n=>{const{domNode:r}=b.getState();if(P.current=r?.getBoundingClientRect(),!P.current)return;const o=n.target===S.current;if(!o&&n.target.closest(".nokey")||!e||!(l&&o||t)||0!==n.button||!n.isPrimary)return;n.target?.setPointerCapture?.(n.pointerId),A.current=!1;const{x:i,y:s}=ue(n.nativeEvent,P.current);b.setState({userSelectionRect:{width:0,height:0,startX:i,startY:s,x:i,y:s}}),o||(n.stopPropagation(),n.preventDefault())}:void 0,onClickCapture:E?e=>{A.current&&(e.stopPropagation(),A.current=!1)}:void 0,onPointerLeave:g,ref:S,style:on,children:[v,(0,r.jsx)(un,{})]})}function fn({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:a,onError:l}=t.getState(),u=a.get(e);u?(t.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):o([e])):l?.("012",(e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`)(e))}function hn({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:l,nodeClickDistance:u}){const c=ht(),[p,d]=(0,o.useState)(!1),f=(0,o.useRef)();return(0,o.useEffect)(()=>{f.current=function({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},l=0,u=new Map,c=!1,p={x:0,y:0},d=null,f=!1,h=null,m=!1,g=!1,y=null;return{update:function({noDragClassName:v,handleSelector:b,domNode:w,isSelectable:C,nodeId:_,nodeClickDistance:x=0}){function E({x:e,y:n}){const{nodeLookup:o,nodeExtent:s,snapGrid:a,snapToGrid:l,nodeOrigin:c,onNodeDrag:p,onSelectionDrag:d,onError:f,updateNodePositions:h}=t();i={x:e,y:n};let m=!1;const v=u.size>1,b=v&&s?N(O(u)):null,w=v&&l?function({dragItems:e,snapGrid:t,x:n,y:r}){const o=e.values().next().value;if(!o)return null;const i={x:n-o.distance.x,y:r-o.distance.y},s=W(i,t);return{x:s.x-i.x,y:s.y-i.y}}({dragItems:u,snapGrid:a,x:e,y:n}):null;for(const[t,r]of u){if(!o.has(t))continue;let i={x:e-r.distance.x,y:n-r.distance.y};l&&(i=w?{x:Math.round(i.x+w.x),y:Math.round(i.y+w.y)}:W(i,a));let u=null;if(v&&s&&!r.extent&&b){const{positionAbsolute:e}=r.internals,t=e.x-b.x+s[0][0],n=e.x+r.measured.width-b.x2+s[1][0];u=[[t,e.y-b.y+s[0][1]],[n,e.y+r.measured.height-b.y2+s[1][1]]]}const{position:p,positionAbsolute:d}=k({nodeId:t,nextPosition:i,nodeLookup:o,nodeExtent:u||s,nodeOrigin:c,onError:f});m=m||r.position.x!==p.x||r.position.y!==p.y,r.position=p,r.internals.positionAbsolute=d}if(g=g||m,m&&(h(u,!0),y&&(r||p||!_&&d))){const[e,t]=ze({nodeId:_,dragItems:u,nodeLookup:o});r?.(y,u,e,t),p?.(y,e,t),_||d?.(y,t)}}async function S(){if(!d)return;const{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:o}=t();if(!o)return c=!1,void cancelAnimationFrame(l);const[s,a]=D(p,d,r);0===s&&0===a||(i.x=(i.x??0)-s/e[2],i.y=(i.y??0)-a/e[2],await n({x:s,y:a})&&E(i)),l=requestAnimationFrame(S)}function P(r){const{nodeLookup:o,multiSelectionActive:s,nodesDraggable:a,transform:l,snapGrid:c,snapToGrid:p,selectNodesOnDrag:h,onNodeDragStart:m,onSelectionDragStart:g,unselectNodesAndEdges:y}=t();f=!0,h&&C||s||!_||o.get(_)?.selected||y(),C&&h&&_&&e?.(_);const v=re(r.sourceEvent,{transform:l,snapGrid:c,snapToGrid:p,containerBounds:d});if(i=v,u=function(e,t,n,r){const o=new Map;for(const[i,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!je(s,e))&&(s.draggable||t&&void 0===s.draggable)){const t=e.get(i);t&&o.set(i,{id:i,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return o}(o,a,v,_),u.size>0&&(n||m||!_&&g)){const[e,t]=ze({nodeId:_,dragItems:u,nodeLookup:o});n?.(r.sourceEvent,u,e,t),m?.(r.sourceEvent,e,t),_||g?.(r.sourceEvent,t)}}h=(0,a.A)(w);const T=(0,s.A)().clickDistance(x).on("start",e=>{const{domNode:n,nodeDragThreshold:r,transform:o,snapGrid:s,snapToGrid:a}=t();d=n?.getBoundingClientRect()||null,m=!1,g=!1,y=e.sourceEvent,0===r&&P(e);const l=re(e.sourceEvent,{transform:o,snapGrid:s,snapToGrid:a,containerBounds:d});i=l,p=ue(e.sourceEvent,d)}).on("drag",e=>{const{autoPanOnNodeDrag:n,transform:r,snapGrid:o,snapToGrid:s,nodeDragThreshold:a,nodeLookup:l}=t(),h=re(e.sourceEvent,{transform:r,snapGrid:o,snapToGrid:s,containerBounds:d});if(y=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||_&&!l.has(_))&&(m=!0),!m){if(!c&&n&&f&&(c=!0,S()),!f){const t=ue(e.sourceEvent,d),n=t.x-p.x,r=t.y-p.y;Math.sqrt(n*n+r*r)>a&&P(e)}(i.x!==h.xSnapped||i.y!==h.ySnapped)&&u&&f&&(p=ue(e.sourceEvent,d),E(h))}}).on("end",e=>{if(f&&!m&&(c=!1,f=!1,cancelAnimationFrame(l),u.size>0)){const{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:s}=t();if(g&&(r(u,!1),g=!1),o||i||!_&&s){const[t,r]=ze({nodeId:_,dragItems:u,nodeLookup:n,dragging:!1});o?.(e.sourceEvent,u,t,r),i?.(e.sourceEvent,t,r),_||s?.(e.sourceEvent,r)}}}).filter(e=>{const t=e.target;return!e.button&&(!v||!Fe(t,`.${v}`,w))&&(!b||Fe(t,b,w))});h.call(T)},destroy:function(){h?.on(".drag",null)}}}({getStoreItems:()=>c.getState(),onNodeMouseDown:t=>{fn({id:t,store:c,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),(0,o.useEffect)(()=>{if(!t&&e.current&&f.current)return f.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:l,nodeId:i,nodeClickDistance:u}),()=>{f.current?.destroy()}},[n,r,t,l,e,i,u]),p}function mn(){const e=ht();return(0,o.useCallback)(t=>{const{nodeExtent:n,snapToGrid:r,snapGrid:o,nodesDraggable:i,onError:s,updateNodePositions:a,nodeLookup:l,nodeOrigin:u}=e.getState(),c=new Map,p=(e=>t=>t.selected&&(t.draggable||e&&void 0===t.draggable))(i),d=r?o[0]:5,f=r?o[1]:5,h=t.direction.x*d*t.factor,m=t.direction.y*f*t.factor;for(const[,e]of l){if(!p(e))continue;let t={x:e.internals.positionAbsolute.x+h,y:e.internals.positionAbsolute.y+m};r&&(t=W(t,o));const{position:i,positionAbsolute:a}=k({nodeId:e.id,nextPosition:t,nodeLookup:l,nodeExtent:n,nodeOrigin:u,onError:s});e.position=i,e.internals.positionAbsolute=a,c.set(e.id,e)}a(c)},[])}const gn=(0,o.createContext)(null),yn=gn.Provider;gn.Consumer;const vn=()=>(0,o.useContext)(gn),bn=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),wn=(0,o.memo)(Yt(function({type:e="source",position:t=C.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:s=!0,isConnectableEnd:a=!0,id:l,onConnect:u,children:c,className:p,onMouseDown:d,onTouchStart:f,...h},g){const y=l||null,v="target"===e,b=ht(),w=vn(),{connectOnClick:_,noPanClassName:x,rfId:S}=ft(bn,ut.x),{connectingFrom:P,connectingTo:O,clickConnecting:T,isPossibleEndHandle:k,connectionInProcess:A,clickConnectionInProcess:I,valid:R}=ft(((e,t,n)=>r=>{const{connectionClickStartHandle:o,connectionMode:i,connection:s}=r,{fromHandle:a,toHandle:l,isValid:u}=s,c=l?.nodeId===e&&l?.id===t&&l?.type===n;return{connectingFrom:a?.nodeId===e&&a?.id===t&&a?.type===n,connectingTo:c,clickConnecting:o?.nodeId===e&&o?.id===t&&o?.type===n,isPossibleEndHandle:i===m.Strict?a?.type!==n:e!==a?.nodeId||t!==a?.id,connectionInProcess:!!a,clickConnectionInProcess:!!o,valid:c&&u}})(w,y,e),ut.x);w||b.getState().onError?.("010","Handle: No node id found. Make sure to only use a Handle inside a custom Node.");const M=e=>{const{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=b.getState(),o={...t,...e};if(r){const{edges:e,setEdges:t}=b.getState();t(((e,t,n={})=>{if(!e.source||!e.target)return t;const r=n.getEdgeId||ye;let o;return o=E(e)?{...e}:{...e,id:r(e)},((e,t)=>t.some(t=>!(t.source!==e.source||t.target!==e.target||t.sourceHandle!==e.sourceHandle&&(t.sourceHandle||e.sourceHandle)||t.targetHandle!==e.targetHandle&&(t.targetHandle||e.targetHandle))))(o,t)?t:(null===o.sourceHandle&&delete o.sourceHandle,null===o.targetHandle&&delete o.targetHandle,t.concat(o))})(o,e))}n?.(o),u?.(o)},D=e=>{if(!w)return;const t=le(e.nativeEvent);if(s&&(t&&0===e.button||!t)){const t=b.getState();We.onPointerDown(e.nativeEvent,{handleDomNode:e.currentTarget,autoPanOnConnect:t.autoPanOnConnect,connectionMode:t.connectionMode,connectionRadius:t.connectionRadius,domNode:t.domNode,nodeLookup:t.nodeLookup,lib:t.lib,isTarget:v,handleId:y,nodeId:w,flowId:t.rfId,panBy:t.panBy,cancelConnection:t.cancelConnection,onConnectStart:t.onConnectStart,onConnectEnd:(...e)=>b.getState().onConnectEnd?.(...e),updateConnection:t.updateConnection,onConnect:M,isValidConnection:n||((...e)=>b.getState().isValidConnection?.(...e)??!0),getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,autoPanSpeed:t.autoPanSpeed,dragThreshold:t.connectionDragThreshold})}t?d?.(e):f?.(e)};return(0,r.jsx)("div",{"data-handleid":y,"data-nodeid":w,"data-handlepos":t,"data-id":`${S}-${w}-${y}-${e}`,className:(0,i.A)(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",x,p,{source:!v,target:v,connectable:o,connectablestart:s,connectableend:a,clickconnecting:T,connectingfrom:P,connectingto:O,valid:R,connectionindicator:o&&(!A||k)&&(A||I?a:s)}]),onMouseDown:D,onTouchStart:D,onClick:_?t=>{const{onClickConnectStart:r,onClickConnectEnd:o,connectionClickStartHandle:i,connectionMode:a,isValidConnection:l,lib:u,rfId:c,nodeLookup:p,connection:d}=b.getState();if(!w||!i&&!s)return;if(!i)return r?.(t.nativeEvent,{nodeId:w,handleId:y,handleType:e}),void b.setState({connectionClickStartHandle:{nodeId:w,type:e,id:y}});const f=ie(t.target),h=n||l,{connection:m,isValid:g}=We.isValid(t.nativeEvent,{handle:{nodeId:w,id:y,type:e},connectionMode:a,fromNodeId:i.nodeId,fromHandleId:i.id||null,fromType:i.type,isValidConnection:h,flowId:c,doc:f,lib:u,nodeLookup:p});g&&m&&M(m);const v=structuredClone(d);delete v.inProgress,v.toPosition=v.toHandle?v.toHandle.position:null,o?.(t,v),b.setState({connectionClickStartHandle:null})}:void 0,ref:g,...h,children:c})})),Cn={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},_n={input:function({data:e,isConnectable:t,sourcePosition:n=C.Bottom}){return(0,r.jsxs)(r.Fragment,{children:[e?.label,(0,r.jsx)(wn,{type:"source",position:n,isConnectable:t})]})},default:function({data:e,isConnectable:t,targetPosition:n=C.Top,sourcePosition:o=C.Bottom}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(wn,{type:"target",position:n,isConnectable:t}),e?.label,(0,r.jsx)(wn,{type:"source",position:o,isConnectable:t})]})},output:function({data:e,isConnectable:t,targetPosition:n=C.Top}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(wn,{type:"target",position:n,isConnectable:t}),e?.label]})},group:function(){return null}},xn=e=>{const{width:t,height:n,x:r,y:o}=O(e.nodeLookup,{filter:e=>!!e.selected});return{width:U(t)?t:null,height:U(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${o}px)`}};function En({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const s=ht(),{width:a,height:l,transformString:u,userSelectionActive:c}=ft(xn,ut.x),p=mn(),d=(0,o.useRef)(null);(0,o.useEffect)(()=>{n||d.current?.focus({preventScroll:!0})},[n]);const f=!c&&null!==a&&null!==l;if(hn({nodeRef:d,disabled:!f}),!f)return null;const h=e?t=>{const n=s.getState().nodes.filter(e=>e.selected);e(t,n)}:void 0;return(0,r.jsx)("div",{className:(0,i.A)(["react-flow__nodesselection","react-flow__container",t]),style:{transform:u},children:(0,r.jsx)("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:h,tabIndex:n?void 0:-1,onKeyDown:n?void 0:e=>{Object.prototype.hasOwnProperty.call(Cn,e.key)&&(e.preventDefault(),p({direction:Cn[e.key],factor:e.shiftKey?4:1}))},style:{width:a,height:l}})})}const Sn="undefined"!=typeof window?window:void 0,Pn=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function On({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:s,onPaneContextMenu:a,onPaneScroll:l,paneClickDistance:u,deleteKeyCode:c,selectionKeyCode:p,selectionOnDrag:d,selectionMode:f,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:g,panActivationKeyCode:y,zoomActivationKeyCode:v,elementsSelectable:b,zoomOnScroll:w,zoomOnPinch:C,panOnScroll:_,panOnScrollSpeed:x,panOnScrollMode:E,zoomOnDoubleClick:S,panOnDrag:P,defaultViewport:O,translateExtent:T,minZoom:k,maxZoom:A,preventScrolling:I,onSelectionContextMenu:R,noWheelClassName:M,noPanClassName:D,disableKeyboardA11y:L,onViewportChange:N,isControlledViewport:V}){const{nodesSelectionActive:j,userSelectionActive:F}=ft(Pn,ut.x),z=Ft(p,{target:Sn}),B=Ft(y,{target:Sn}),H=B||P,U=B||_,q=d&&!0!==H,W=z||F||q;return function({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=ht(),{deleteElements:r}=tn(),i=Ft(e,{actInsideInputWithModifier:!1}),s=Ft(t,{target:rn});(0,o.useEffect)(()=>{if(i){const{edges:e,nodes:t}=n.getState();r({nodes:t.filter(nn),edges:e.filter(nn)}),n.setState({nodesSelectionActive:!1})}},[i]),(0,o.useEffect)(()=>{n.setState({multiSelectionActive:s})},[s])}({deleteKeyCode:c,multiSelectionKeyCode:g}),(0,r.jsx)(an,{onPaneContextMenu:a,elementsSelectable:b,zoomOnScroll:w,zoomOnPinch:C,panOnScroll:U,panOnScrollSpeed:x,panOnScrollMode:E,zoomOnDoubleClick:S,panOnDrag:!z&&H,defaultViewport:O,translateExtent:T,minZoom:k,maxZoom:A,zoomActivationKeyCode:v,preventScrolling:I,noWheelClassName:M,noPanClassName:D,onViewportChange:N,isControlledViewport:V,paneClickDistance:u,selectionOnDrag:q,children:(0,r.jsxs)(dn,{onSelectionStart:h,onSelectionEnd:m,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:s,onPaneContextMenu:a,onPaneScroll:l,panOnDrag:H,isSelecting:!!W,selectionMode:f,selectionKeyPressed:z,paneClickDistance:u,selectionOnDrag:q,children:[e,j&&(0,r.jsx)(En,{onSelectionContextMenu:R,noPanClassName:D,disableKeyboardA11y:L})]})})}On.displayName="FlowRenderer";const Tn=(0,o.memo)(On);const kn=e=>e.updateNodeInternals;var An=(0,o.memo)(function({id:e,onClick:t,onMouseEnter:n,onMouseMove:s,onMouseLeave:a,onContextMenu:l,onDoubleClick:u,nodesDraggable:c,elementsSelectable:p,nodesConnectable:d,nodesFocusable:h,resizeObserver:m,noDragClassName:g,noPanClassName:y,disableKeyboardA11y:v,rfId:b,nodeTypes:w,nodeClickDistance:C,onError:_}){const{node:x,internals:E,isParent:S}=ft(t=>{const n=t.nodeLookup.get(e),r=t.parentLookup.has(e);return{node:n,internals:n.internals,isParent:r}},ut.x);let P=x.type||"default",O=w?.[P]||_n[P];void 0===O&&(_?.("003",(e=>`Node type "${e}" not found. Using fallback type "default".`)(P)),P="default",O=w?.default||_n.default);const k=!!(x.draggable||c&&void 0===x.draggable),A=!!(x.selectable||p&&void 0===x.selectable),I=!!(x.connectable||d&&void 0===x.connectable),R=!!(x.focusable||h&&void 0===x.focusable),M=ht(),D=J(x),L=function({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const i=ht(),s=(0,o.useRef)(null),a=(0,o.useRef)(null),l=(0,o.useRef)(e.sourcePosition),u=(0,o.useRef)(e.targetPosition),c=(0,o.useRef)(t),p=n&&!!e.internals.handleBounds;return(0,o.useEffect)(()=>{!s.current||e.hidden||p&&a.current===s.current||(a.current&&r?.unobserve(a.current),r?.observe(s.current),a.current=s.current)},[p,e.hidden]),(0,o.useEffect)(()=>()=>{a.current&&(r?.unobserve(a.current),a.current=null)},[]),(0,o.useEffect)(()=>{if(s.current){const n=c.current!==t,r=l.current!==e.sourcePosition,o=u.current!==e.targetPosition;(n||r||o)&&(c.current=t,l.current=e.sourcePosition,u.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:s.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),s}({node:x,nodeType:P,hasDimensions:D,resizeObserver:m}),N=hn({nodeRef:L,disabled:x.hidden||!k,noDragClassName:g,handleSelector:x.dragHandle,nodeId:e,isSelectable:A,nodeClickDistance:C}),V=mn();if(x.hidden)return null;const j=X(x),F=function(e){return void 0===e.internals.handleBounds?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}(x),z=A||k||t||n||s||a,B=n?e=>n(e,{...E.userNode}):void 0,H=s?e=>s(e,{...E.userNode}):void 0,U=a?e=>a(e,{...E.userNode}):void 0,q=l?e=>l(e,{...E.userNode}):void 0,W=u?e=>u(e,{...E.userNode}):void 0;return(0,r.jsx)("div",{className:(0,i.A)(["react-flow__node",`react-flow__node-${P}`,{[y]:k},x.className,{selected:x.selected,selectable:A,parent:S,draggable:k,dragging:N}]),ref:L,style:{zIndex:E.z,transform:`translate(${E.positionAbsolute.x}px,${E.positionAbsolute.y}px)`,pointerEvents:z?"all":"none",visibility:D?"visible":"hidden",...x.style,...F},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:B,onMouseMove:H,onMouseLeave:U,onContextMenu:q,onClick:n=>{const{selectNodesOnDrag:r,nodeDragThreshold:o}=M.getState();A&&(!r||!k||o>0)&&fn({id:e,store:M,nodeRef:L}),t&&t(n,{...E.userNode})},onDoubleClick:W,onKeyDown:R?t=>{if(!ae(t.nativeEvent)&&!v)if(f.includes(t.key)&&A){const n="Escape"===t.key;fn({id:e,store:M,unselect:n,nodeRef:L})}else if(k&&x.selected&&Object.prototype.hasOwnProperty.call(Cn,t.key)){t.preventDefault();const{ariaLabelConfig:e}=M.getState();M.setState({ariaLiveMessage:e["node.a11yDescription.ariaLiveMessage"]({direction:t.key.replace("Arrow","").toLowerCase(),x:~~E.positionAbsolute.x,y:~~E.positionAbsolute.y})}),V({direction:Cn[t.key],factor:t.shiftKey?4:1})}}:void 0,tabIndex:R?0:void 0,onFocus:R?()=>{if(v||!L.current?.matches(":focus-visible"))return;const{transform:t,width:n,height:r,autoPanOnNodeFocus:o,setCenter:i}=M.getState();o&&(T(new Map([[e,x]]),{x:0,y:0,width:n,height:r},t,!0).length>0||i(x.position.x+j.width/2,x.position.y+j.height/2,{zoom:t[2]}))}:void 0,role:x.ariaRole??(R?"group":void 0),"aria-roledescription":"node","aria-describedby":v?void 0:`${yt}-${b}`,"aria-label":x.ariaLabel,...x.domAttributes,children:(0,r.jsx)(yn,{value:e,children:(0,r.jsx)(O,{id:e,data:x.data,type:P,positionAbsoluteX:E.positionAbsolute.x,positionAbsoluteY:E.positionAbsolute.y,selected:x.selected??!1,selectable:A,draggable:k,deletable:x.deletable??!0,isConnectable:I,sourcePosition:x.sourcePosition,targetPosition:x.targetPosition,dragging:N,dragHandle:x.dragHandle,zIndex:E.z,parentId:x.parentId,...j})})})});const In=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Rn(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:s,onError:a}=ft(In,ut.x),l=(c=e.onlyRenderVisibleElements,ft((0,o.useCallback)((e=>t=>e?T(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(e=>e.id):Array.from(t.nodeLookup.keys()))(c),[c]),ut.x)),u=function(){const e=ft(kn),[t]=(0,o.useState)(()=>"undefined"==typeof ResizeObserver?null:new ResizeObserver(t=>{const n=new Map;t.forEach(e=>{const t=e.target.getAttribute("data-id");n.set(t,{id:t,nodeElement:e.target,force:!0})}),e(n)}));return(0,o.useEffect)(()=>()=>{t?.disconnect()},[t]),t}();var c;return(0,r.jsx)("div",{className:"react-flow__nodes",style:on,children:l.map(o=>(0,r.jsx)(An,{id:o,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:u,nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:s,nodeClickDistance:e.nodeClickDistance,onError:a},o))})}Rn.displayName="NodeRenderer";const Mn=(0,o.memo)(Rn),Dn={[w.Arrow]:({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return(0,r.jsx)("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},[w.ArrowClosed]:({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return(0,r.jsx)("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})}},Ln=({id:e,type:t,color:n,width:i=12.5,height:s=12.5,markerUnits:a="strokeWidth",strokeWidth:l,orient:u="auto-start-reverse"})=>{const c=function(e){const t=ht();return(0,o.useMemo)(()=>Object.prototype.hasOwnProperty.call(Dn,e)?Dn[e]:(t.getState().onError?.("009",(e=>`Marker type "${e}" doesn't exist.`)(e)),null),[e])}(t);return c?(0,r.jsx)("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:u,refX:"0",refY:"0",children:(0,r.jsx)(c,{color:n,strokeWidth:l})}):null},Nn=({defaultColor:e,rfId:t})=>{const n=ft(e=>e.edges),i=ft(e=>e.defaultEdgeOptions),s=(0,o.useMemo)(()=>{const r=function(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){const i=new Set;return e.reduce((e,s)=>([s.markerStart||r,s.markerEnd||o].forEach(r=>{if(r&&"object"==typeof r){const o=Pe(r,t);i.has(o)||(e.push({id:o,color:r.color||n,...r}),i.add(o))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}(n,{id:t,defaultColor:e,defaultMarkerStart:i?.markerStart,defaultMarkerEnd:i?.markerEnd});return r},[n,i,t,e]);return s.length?(0,r.jsx)("svg",{className:"react-flow__marker","aria-hidden":"true",children:(0,r.jsx)("defs",{children:s.map(e=>(0,r.jsx)(Ln,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id))})}):null};Nn.displayName="MarkerDefinitions";var Vn=(0,o.memo)(Nn);function jn({x:e,y:t,label:n,labelStyle:s,labelShowBg:a=!0,labelBgStyle:l,labelBgPadding:u=[2,4],labelBgBorderRadius:c=2,children:p,className:d,...f}){const[h,m]=(0,o.useState)({x:1,y:0,width:0,height:0}),g=(0,i.A)(["react-flow__edge-textwrapper",d]),y=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(y.current){const e=y.current.getBBox();m({x:e.x,y:e.y,width:e.width,height:e.height})}},[n]),n?(0,r.jsxs)("g",{transform:`translate(${e-h.width/2} ${t-h.height/2})`,className:g,visibility:h.width?"visible":"hidden",...f,children:[a&&(0,r.jsx)("rect",{width:h.width+2*u[0],x:-u[0],y:-u[1],height:h.height+2*u[1],className:"react-flow__edge-textbg",style:l,rx:c,ry:c}),(0,r.jsx)("text",{className:"react-flow__edge-text",y:h.height/2,dy:"0.3em",ref:y,style:s,children:n}),p]}):null}jn.displayName="EdgeText";const Fn=(0,o.memo)(jn);function zn({path:e,labelX:t,labelY:n,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:c,interactionWidth:p=20,...d}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{...d,d:e,fill:"none",className:(0,i.A)(["react-flow__edge-path",d.className])}),p?(0,r.jsx)("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:p,className:"react-flow__edge-interaction"}):null,o&&U(t)&&U(n)?(0,r.jsx)(Fn,{x:t,y:n,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:c}):null]})}function Bn({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===C.Left||e===C.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function Hn({sourceX:e,sourceY:t,sourcePosition:n=C.Bottom,targetX:r,targetY:o,targetPosition:i=C.Top}){const[s,a]=Bn({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,u]=Bn({pos:i,x1:r,y1:o,x2:e,y2:t}),[c,p,d,f]=pe({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${a} ${l},${u} ${r},${o}`,c,p,d,f]}function Un(e){return(0,o.memo)(({id:t,sourceX:n,sourceY:o,targetX:i,targetY:s,sourcePosition:a,targetPosition:l,label:u,labelStyle:c,labelShowBg:p,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:m,markerEnd:g,markerStart:y,interactionWidth:v})=>{const[b,w,C]=Hn({sourceX:n,sourceY:o,sourcePosition:a,targetX:i,targetY:s,targetPosition:l}),_=e.isInternal?void 0:t;return(0,r.jsx)(zn,{id:_,path:b,labelX:w,labelY:C,label:u,labelStyle:c,labelShowBg:p,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:m,markerEnd:g,markerStart:y,interactionWidth:v})})}const qn=Un({isInternal:!1}),Wn=Un({isInternal:!0});function $n(e){return(0,o.memo)(({id:t,sourceX:n,sourceY:o,targetX:i,targetY:s,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:p,labelBgBorderRadius:d,style:f,sourcePosition:h=C.Bottom,targetPosition:m=C.Top,markerEnd:g,markerStart:y,pathOptions:v,interactionWidth:b})=>{const[w,_,x]=Ce({sourceX:n,sourceY:o,sourcePosition:h,targetX:i,targetY:s,targetPosition:m,borderRadius:v?.borderRadius,offset:v?.offset,stepPosition:v?.stepPosition}),E=e.isInternal?void 0:t;return(0,r.jsx)(zn,{id:E,path:w,labelX:_,labelY:x,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:p,labelBgBorderRadius:d,style:f,markerEnd:g,markerStart:y,interactionWidth:b})})}qn.displayName="SimpleBezierEdge",Wn.displayName="SimpleBezierEdgeInternal";const Qn=$n({isInternal:!1}),Gn=$n({isInternal:!0});function Yn(e){return(0,o.memo)(({id:t,...n})=>{const i=e.isInternal?void 0:t;return(0,r.jsx)(Qn,{...n,id:i,pathOptions:(0,o.useMemo)(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}Qn.displayName="SmoothStepEdge",Gn.displayName="SmoothStepEdgeInternal";const Zn=Yn({isInternal:!1}),Kn=Yn({isInternal:!0});function Xn(e){return(0,o.memo)(({id:t,sourceX:n,sourceY:o,targetX:i,targetY:s,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:p,labelBgBorderRadius:d,style:f,markerEnd:h,markerStart:m,interactionWidth:g})=>{const[y,v,b]=ve({sourceX:n,sourceY:o,targetX:i,targetY:s}),w=e.isInternal?void 0:t;return(0,r.jsx)(zn,{id:w,path:y,labelX:v,labelY:b,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:p,labelBgBorderRadius:d,style:f,markerEnd:h,markerStart:m,interactionWidth:g})})}Zn.displayName="StepEdge",Kn.displayName="StepEdgeInternal";const Jn=Xn({isInternal:!1}),er=Xn({isInternal:!0});function tr(e){return(0,o.memo)(({id:t,sourceX:n,sourceY:o,targetX:i,targetY:s,sourcePosition:a=C.Bottom,targetPosition:l=C.Top,label:u,labelStyle:c,labelShowBg:p,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:m,markerEnd:g,markerStart:y,pathOptions:v,interactionWidth:b})=>{const[w,_,x]=he({sourceX:n,sourceY:o,sourcePosition:a,targetX:i,targetY:s,targetPosition:l,curvature:v?.curvature}),E=e.isInternal?void 0:t;return(0,r.jsx)(zn,{id:E,path:w,labelX:_,labelY:x,label:u,labelStyle:c,labelShowBg:p,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:m,markerEnd:g,markerStart:y,interactionWidth:b})})}Jn.displayName="StraightEdge",er.displayName="StraightEdgeInternal";const nr=tr({isInternal:!1}),rr=tr({isInternal:!0});nr.displayName="BezierEdge",rr.displayName="BezierEdgeInternal";const or={default:rr,straight:er,step:Kn,smoothstep:Gn,simplebezier:Wn},ir={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},sr=(e,t,n)=>n===C.Left?e-t:n===C.Right?e+t:e,ar=(e,t,n)=>n===C.Top?e-t:n===C.Bottom?e+t:e,lr="react-flow__edgeupdater";function ur({position:e,centerX:t,centerY:n,radius:o=10,onMouseDown:s,onMouseEnter:a,onMouseOut:l,type:u}){return(0,r.jsx)("circle",{onMouseDown:s,onMouseEnter:a,onMouseOut:l,className:(0,i.A)([lr,`${lr}-${u}`]),cx:sr(t,o,e),cy:ar(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function cr({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:o,sourceY:i,targetX:s,targetY:a,sourcePosition:l,targetPosition:u,onReconnect:c,onReconnectStart:p,onReconnectEnd:d,setReconnecting:f,setUpdateHover:h}){const m=ht(),g=(e,t)=>{if(0!==e.button)return;const{autoPanOnConnect:r,domNode:o,connectionMode:i,connectionRadius:s,lib:a,onConnectStart:l,cancelConnection:u,nodeLookup:h,rfId:g,panBy:y,updateConnection:v}=m.getState(),b="target"===t.type;We.onPointerDown(e.nativeEvent,{autoPanOnConnect:r,connectionMode:i,connectionRadius:s,domNode:o,handleId:t.id,nodeId:t.nodeId,nodeLookup:h,isTarget:b,edgeUpdaterType:t.type,lib:a,flowId:g,cancelConnection:u,panBy:y,isValidConnection:(...e)=>m.getState().isValidConnection?.(...e)??!0,onConnect:e=>c?.(n,e),onConnectStart:(r,o)=>{f(!0),p?.(e,n,t.type),l?.(r,o)},onConnectEnd:(...e)=>m.getState().onConnectEnd?.(...e),onReconnectEnd:(e,r)=>{f(!1),d?.(e,n,t.type,r)},updateConnection:v,getTransform:()=>m.getState().transform,getFromHandle:()=>m.getState().connection.fromHandle,dragThreshold:m.getState().connectionDragThreshold,handleDomNode:e.currentTarget})},y=()=>h(!0),v=()=>h(!1);return(0,r.jsxs)(r.Fragment,{children:[(!0===e||"source"===e)&&(0,r.jsx)(ur,{position:l,centerX:o,centerY:i,radius:t,onMouseDown:e=>g(e,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),onMouseEnter:y,onMouseOut:v,type:"source"}),(!0===e||"target"===e)&&(0,r.jsx)(ur,{position:u,centerX:s,centerY:a,radius:t,onMouseDown:e=>g(e,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),onMouseEnter:y,onMouseOut:v,type:"target"})]})}var pr=(0,o.memo)(function({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:s,onClick:a,onDoubleClick:l,onContextMenu:u,onMouseEnter:c,onMouseMove:p,onMouseLeave:d,reconnectRadius:h,onReconnect:g,onReconnectStart:y,onReconnectEnd:v,rfId:b,edgeTypes:w,noPanClassName:_,onError:x,disableKeyboardA11y:E}){let S=ft(t=>t.edgeLookup.get(e));const P=ft(e=>e.defaultEdgeOptions);S=P?{...P,...S}:S;let O=S.type||"default",T=w?.[O]||or[O];void 0===T&&(x?.("011",(e=>`Edge type "${e}" not found. Using fallback type "default".`)(O)),O="default",T=w?.default||or.default);const k=!!(S.focusable||t&&void 0===S.focusable),A=void 0!==g&&(S.reconnectable||n&&void 0===S.reconnectable),I=!!(S.selectable||s&&void 0===S.selectable),R=(0,o.useRef)(null),[M,D]=(0,o.useState)(!1),[L,N]=(0,o.useState)(!1),V=ht(),{zIndex:j,sourceX:F,sourceY:z,targetX:B,targetY:H,sourcePosition:U,targetPosition:q}=ft((0,o.useCallback)(t=>{const n=t.nodeLookup.get(S.source),r=t.nodeLookup.get(S.target);if(!n||!r)return{zIndex:S.zIndex,...ir};const o=function(e){const{sourceNode:t,targetNode:n}=e;if(!_e(t)||!_e(n))return null;const r=t.internals.handleBounds||xe(t.handles),o=n.internals.handleBounds||xe(n.handles),i=Se(r?.source??[],e.sourceHandle),s=Se(e.connectionMode===m.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),e.targetHandle);if(!i||!s)return e.onError?.("008",((e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`)(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const a=i?.position||C.Bottom,l=s?.position||C.Top,u=Ee(t,i,a),c=Ee(n,s,l);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:a,targetPosition:l}}({id:e,sourceNode:n,targetNode:r,sourceHandle:S.sourceHandle||null,targetHandle:S.targetHandle||null,connectionMode:t.connectionMode,onError:x}),i=function({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:o=!1,zIndexMode:i="basic"}){return"manual"===i?r:(o&&n?r+1e3:r)+Math.max(e.parentId||o&&e.selected?e.internals.z:0,t.parentId||o&&t.selected?t.internals.z:0)}({selected:S.selected,zIndex:S.zIndex,sourceNode:n,targetNode:r,elevateOnSelect:t.elevateEdgesOnSelect,zIndexMode:t.zIndexMode});return{zIndex:i,...o||ir}},[S.source,S.target,S.sourceHandle,S.targetHandle,S.selected,S.zIndex]),ut.x),W=(0,o.useMemo)(()=>S.markerStart?`url('#${Pe(S.markerStart,b)}')`:void 0,[S.markerStart,b]),$=(0,o.useMemo)(()=>S.markerEnd?`url('#${Pe(S.markerEnd,b)}')`:void 0,[S.markerEnd,b]);if(S.hidden||null===F||null===z||null===B||null===H)return null;const Q=l?e=>{l(e,{...S})}:void 0,G=u?e=>{u(e,{...S})}:void 0,Y=c?e=>{c(e,{...S})}:void 0,Z=p?e=>{p(e,{...S})}:void 0,K=d?e=>{d(e,{...S})}:void 0;return(0,r.jsx)("svg",{style:{zIndex:j},children:(0,r.jsxs)("g",{className:(0,i.A)(["react-flow__edge",`react-flow__edge-${O}`,S.className,_,{selected:S.selected,animated:S.animated,inactive:!I&&!a,updating:M,selectable:I}]),onClick:t=>{const{addSelectedEdges:n,unselectNodesAndEdges:r,multiSelectionActive:o}=V.getState();I&&(V.setState({nodesSelectionActive:!1}),S.selected&&o?(r({nodes:[],edges:[S]}),R.current?.blur()):n([e])),a&&a(t,S)},onDoubleClick:Q,onContextMenu:G,onMouseEnter:Y,onMouseMove:Z,onMouseLeave:K,onKeyDown:k?t=>{if(!E&&f.includes(t.key)&&I){const{unselectNodesAndEdges:n,addSelectedEdges:r}=V.getState();"Escape"===t.key?(R.current?.blur(),n({edges:[S]})):r([e])}}:void 0,tabIndex:k?0:void 0,role:S.ariaRole??(k?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":null===S.ariaLabel?void 0:S.ariaLabel||`Edge from ${S.source} to ${S.target}`,"aria-describedby":k?`${vt}-${b}`:void 0,ref:R,...S.domAttributes,children:[!L&&(0,r.jsx)(T,{id:e,source:S.source,target:S.target,type:S.type,selected:S.selected,animated:S.animated,selectable:I,deletable:S.deletable??!0,label:S.label,labelStyle:S.labelStyle,labelShowBg:S.labelShowBg,labelBgStyle:S.labelBgStyle,labelBgPadding:S.labelBgPadding,labelBgBorderRadius:S.labelBgBorderRadius,sourceX:F,sourceY:z,targetX:B,targetY:H,sourcePosition:U,targetPosition:q,data:S.data,style:S.style,sourceHandleId:S.sourceHandle,targetHandleId:S.targetHandle,markerStart:W,markerEnd:$,pathOptions:"pathOptions"in S?S.pathOptions:void 0,interactionWidth:S.interactionWidth}),A&&(0,r.jsx)(cr,{edge:S,isReconnectable:A,reconnectRadius:h,onReconnect:g,onReconnectStart:y,onReconnectEnd:v,sourceX:F,sourceY:z,targetX:B,targetY:H,sourcePosition:U,targetPosition:q,setUpdateHover:D,setReconnecting:N})]})})});const dr=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function fr({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:i,noPanClassName:s,onReconnect:a,onEdgeContextMenu:l,onEdgeMouseEnter:u,onEdgeMouseMove:c,onEdgeMouseLeave:p,onEdgeClick:d,reconnectRadius:f,onEdgeDoubleClick:h,onReconnectStart:m,onReconnectEnd:g,disableKeyboardA11y:y}){const{edgesFocusable:v,edgesReconnectable:b,elementsSelectable:w,onError:C}=ft(dr,ut.x),_=(x=t,ft((0,o.useCallback)(e=>{if(!x)return e.edges.map(e=>e.id);const t=[];if(e.width&&e.height)for(const n of e.edges){const r=e.nodeLookup.get(n.source),o=e.nodeLookup.get(n.target);r&&o&&ge({sourceNode:r,targetNode:o,width:e.width,height:e.height,transform:e.transform})&&t.push(n.id)}return t},[x]),ut.x));var x;return(0,r.jsxs)("div",{className:"react-flow__edges",children:[(0,r.jsx)(Vn,{defaultColor:e,rfId:n}),_.map(e=>(0,r.jsx)(pr,{id:e,edgesFocusable:v,edgesReconnectable:b,elementsSelectable:w,noPanClassName:s,onReconnect:a,onContextMenu:l,onMouseEnter:u,onMouseMove:c,onMouseLeave:p,onClick:d,reconnectRadius:f,onDoubleClick:h,onReconnectStart:m,onReconnectEnd:g,rfId:n,onError:C,edgeTypes:i,disableKeyboardA11y:y},e))]})}fr.displayName="EdgeRenderer";const hr=(0,o.memo)(fr),mr=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function gr({children:e}){const t=ft(mr);return(0,r.jsx)("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}const yr=e=>e.panZoom?.syncViewport;function vr(e){return e.connection.inProgress?{...e.connection,to:$(e.connection.to,e.transform)}:{...e.connection}}const br=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function wr({containerStyle:e,style:t,type:n,component:o}){const{nodesConnectable:s,width:a,height:l,isValid:u,inProgress:c}=ft(br,ut.x);return a&&s&&c?(0,r.jsx)("svg",{style:e,width:a,height:l,className:"react-flow__connectionline react-flow__container",children:(0,r.jsx)("g",{className:(0,i.A)(["react-flow__connection",x(u)]),children:(0,r.jsx)(Cr,{style:t,type:n,CustomComponent:o,isValid:u})})}):null}const Cr=({style:e,type:t=b.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:i,from:s,fromNode:a,fromHandle:l,fromPosition:u,to:c,toNode:p,toHandle:d,toPosition:f,pointer:h}=ft(function(e){return e?t=>{const n=vr(t);return e(n)}:vr}(m),ut.x);var m;if(!i)return;if(n)return(0,r.jsx)(n,{connectionLineType:t,connectionLineStyle:e,fromNode:a,fromHandle:l,fromX:s.x,fromY:s.y,toX:c.x,toY:c.y,fromPosition:u,toPosition:f,connectionStatus:x(o),toNode:p,toHandle:d,pointer:h});let g="";const y={sourceX:s.x,sourceY:s.y,sourcePosition:u,targetX:c.x,targetY:c.y,targetPosition:f};switch(t){case b.Bezier:[g]=he(y);break;case b.SimpleBezier:[g]=Hn(y);break;case b.Step:[g]=Ce({...y,borderRadius:0});break;case b.SmoothStep:[g]=Ce(y);break;default:[g]=ve(y)}return(0,r.jsx)("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};Cr.displayName="ConnectionLine";const _r={};function xr(e=_r){(0,o.useRef)(e),ht(),(0,o.useEffect)(()=>{},[e])}function Er({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:i,onEdgeClick:s,onNodeDoubleClick:a,onEdgeDoubleClick:l,onNodeMouseEnter:u,onNodeMouseMove:c,onNodeMouseLeave:p,onNodeContextMenu:d,onSelectionContextMenu:f,onSelectionStart:h,onSelectionEnd:m,connectionLineType:g,connectionLineStyle:y,connectionLineComponent:v,connectionLineContainerStyle:b,selectionKeyCode:w,selectionOnDrag:C,selectionMode:_,multiSelectionKeyCode:x,panActivationKeyCode:E,zoomActivationKeyCode:S,deleteKeyCode:P,onlyRenderVisibleElements:O,elementsSelectable:T,defaultViewport:k,translateExtent:A,minZoom:I,maxZoom:R,preventScrolling:M,defaultMarkerColor:D,zoomOnScroll:L,zoomOnPinch:N,panOnScroll:V,panOnScrollSpeed:j,panOnScrollMode:F,zoomOnDoubleClick:z,panOnDrag:B,onPaneClick:H,onPaneMouseEnter:U,onPaneMouseMove:q,onPaneMouseLeave:W,onPaneScroll:$,onPaneContextMenu:Q,paneClickDistance:G,nodeClickDistance:Y,onEdgeContextMenu:Z,onEdgeMouseEnter:K,onEdgeMouseMove:X,onEdgeMouseLeave:J,reconnectRadius:ee,onReconnect:te,onReconnectStart:ne,onReconnectEnd:re,noDragClassName:oe,noWheelClassName:ie,noPanClassName:se,disableKeyboardA11y:ae,nodeExtent:le,rfId:ue,viewport:ce,onViewportChange:pe}){return xr(e),xr(t),ht(),(0,o.useRef)(!1),(0,o.useEffect)(()=>{},[]),function(e){const t=tn(),n=(0,o.useRef)(!1);(0,o.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}(n),function(e){const t=ft(yr),n=ht();(0,o.useEffect)(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t])}(ce),(0,r.jsx)(Tn,{onPaneClick:H,onPaneMouseEnter:U,onPaneMouseMove:q,onPaneMouseLeave:W,onPaneContextMenu:Q,onPaneScroll:$,paneClickDistance:G,deleteKeyCode:P,selectionKeyCode:w,selectionOnDrag:C,selectionMode:_,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:x,panActivationKeyCode:E,zoomActivationKeyCode:S,elementsSelectable:T,zoomOnScroll:L,zoomOnPinch:N,zoomOnDoubleClick:z,panOnScroll:V,panOnScrollSpeed:j,panOnScrollMode:F,panOnDrag:B,defaultViewport:k,translateExtent:A,minZoom:I,maxZoom:R,onSelectionContextMenu:f,preventScrolling:M,noDragClassName:oe,noWheelClassName:ie,noPanClassName:se,disableKeyboardA11y:ae,onViewportChange:pe,isControlledViewport:!!ce,children:(0,r.jsxs)(gr,{children:[(0,r.jsx)(hr,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:l,onReconnect:te,onReconnectStart:ne,onReconnectEnd:re,onlyRenderVisibleElements:O,onEdgeContextMenu:Z,onEdgeMouseEnter:K,onEdgeMouseMove:X,onEdgeMouseLeave:J,reconnectRadius:ee,defaultMarkerColor:D,noPanClassName:se,disableKeyboardA11y:ae,rfId:ue}),(0,r.jsx)(wr,{style:y,type:g,component:v,containerStyle:b}),(0,r.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,r.jsx)(Mn,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:a,onNodeMouseEnter:u,onNodeMouseMove:c,onNodeMouseLeave:p,onNodeContextMenu:d,nodeClickDistance:Y,onlyRenderVisibleElements:O,noPanClassName:se,noDragClassName:oe,disableKeyboardA11y:ae,nodeExtent:le,rfId:ue}),(0,r.jsx)("div",{className:"react-flow__viewport-portal"})]})})}Er.displayName="GraphView";const Sr=(0,o.memo)(Er),Pr=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,fitViewOptions:a,minZoom:l=.5,maxZoom:u=2,nodeOrigin:c,nodeExtent:p,zIndexMode:f="basic"}={})=>{const g=new Map,y=new Map,b=new Map,w=new Map,C=r??t??[],_=n??e??[],x=c??[0,0],E=p??d;Ve(b,w,C);const S=Re(_,g,y,{nodeOrigin:x,nodeExtent:E,zIndexMode:f});let P=[0,0,1];if(s&&o&&i){const e=O(g,{filter:e=>!(!e.width&&!e.initialWidth||!e.height&&!e.initialHeight)}),{x:t,y:n,zoom:r}=Y(e,o,i,l,u,a?.padding??.1);P=[t,n,r]}return{rfId:"1",width:o??0,height:i??0,transform:P,nodes:_,nodesInitialized:S,nodeLookup:g,parentLookup:y,edges:C,edgeLookup:w,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:void 0!==n,hasDefaultEdges:void 0!==r,panZoom:null,minZoom:l,maxZoom:u,translateExtent:d,nodeExtent:E,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:m.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:x,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:a,fitViewResolver:null,connection:{...v},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:q,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:h,zIndexMode:f,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Or=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:u,nodeOrigin:c,nodeExtent:p,zIndexMode:d})=>(0,lt.h)((f,h)=>{async function m(){const{nodeLookup:e,panZoom:t,fitViewOptions:n,fitViewResolver:r,width:o,height:i,minZoom:s,maxZoom:a}=h();t&&(await async function({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},s){if(0===e.size)return Promise.resolve(!0);const a=function(e,t){const n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{!e.measured.width||!e.measured.height||!t?.includeHiddenNodes&&e.hidden||r&&!r.has(e.id)||n.set(e.id,e)}),n}(e,s),l=O(a),u=Y(l,t,n,s?.minZoom??o,s?.maxZoom??i,s?.padding??.1);return await r.setViewport(u,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),Promise.resolve(!0)}({nodes:e,width:o,height:i,panZoom:t,minZoom:s,maxZoom:a},n),r?.resolve(!0),f({fitViewResolver:null}))}return{...Pr({nodes:e,edges:t,width:o,height:i,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:u,nodeOrigin:c,nodeExtent:p,defaultNodes:n,defaultEdges:r,zIndexMode:d}),setNodes:e=>{const{nodeLookup:t,parentLookup:n,nodeOrigin:r,elevateNodesOnSelect:o,fitViewQueued:i,zIndexMode:s}=h(),a=Re(e,t,n,{nodeOrigin:r,nodeExtent:p,elevateNodesOnSelect:o,checkEquality:!0,zIndexMode:s});i&&a?(m(),f({nodes:e,nodesInitialized:a,fitViewQueued:!1,fitViewOptions:void 0})):f({nodes:e,nodesInitialized:a})},setEdges:e=>{const{connectionLookup:t,edgeLookup:n}=h();Ve(t,n,e),f({edges:e})},setDefaultNodesAndEdges:(e,t)=>{if(e){const{setNodes:t}=h();t(e),f({hasDefaultNodes:!0})}if(t){const{setEdges:e}=h();e(t),f({hasDefaultEdges:!0})}},updateNodeInternals:e=>{const{triggerNodeChanges:t,nodeLookup:n,parentLookup:r,domNode:o,nodeOrigin:i,nodeExtent:s,debug:a,fitViewQueued:l,zIndexMode:u}=h(),{changes:c,updatedInternals:p}=function(e,t,n,r,o,i,s){const a=r?.querySelector(".xyflow__viewport");let l=!1;if(!a)return{changes:[],updatedInternals:l};const u=[],c=window.getComputedStyle(a),{m22:p}=new window.DOMMatrixReadOnly(c.transform),d=[];for(const r of e.values()){const e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),l=!0;continue}const a=oe(r.nodeElement),c=e.measured.width!==a.width||e.measured.height!==a.height;if(a.width&&a.height&&(c||!e.internals.handleBounds||r.force)){const f=r.nodeElement.getBoundingClientRect(),h=K(e.extent)?e.extent:i;let{positionAbsolute:m}=e.internals;e.parentId&&"parent"===e.extent?m=R(m,a,t.get(e.parentId)):h&&(m=I(m,h,a));const g={...e,measured:a,internals:{...e.internals,positionAbsolute:m,handleBounds:{source:ce("source",r.nodeElement,f,p,e.id),target:ce("target",r.nodeElement,f,p,e.id)}}};t.set(e.id,g),e.parentId&&Me(g,t,n,{nodeOrigin:o,zIndexMode:s}),l=!0,c&&(u.push({id:e.id,type:"dimensions",dimensions:a}),e.expandParent&&e.parentId&&d.push({id:e.id,parentId:e.parentId,rect:j(g,o)}))}}if(d.length>0){const e=Le(d,t,n,o);u.push(...e)}return{changes:u,updatedInternals:l}}(e,n,r,o,i,s,u);p&&(function(e,t,n){const r=ke(Oe,n);for(const n of e.values())if(n.parentId)Me(n,e,t,r);else{const e=P(n,r.nodeOrigin),t=K(n.extent)?n.extent:r.nodeExtent,o=I(e,t,X(n));n.internals.positionAbsolute=o}}(n,r,{nodeOrigin:i,nodeExtent:s,zIndexMode:u}),l?(m(),f({fitViewQueued:!1,fitViewOptions:void 0})):f({}),c?.length>0&&(a&&console.log("React Flow: trigger node changes",c),t?.(c)))},updateNodePositions:(e,t=!1)=>{const n=[];let r=[];const{nodeLookup:o,triggerNodeChanges:i,connection:s,updateConnection:a,onNodesChangeMiddlewareMap:l}=h();for(const[i,l]of e){const e=o.get(i),u=!!(e?.expandParent&&e?.parentId&&l?.position),c={id:i,type:"position",position:u?{x:Math.max(0,l.position.x),y:Math.max(0,l.position.y)}:l.position,dragging:t};if(e&&s.inProgress&&s.fromNode.id===e.id){const t=Ee(e,s.fromHandle,C.Left,!0);a({...s,from:t})}u&&e.parentId&&n.push({id:i,parentId:e.parentId,rect:{...l.internals.positionAbsolute,width:l.measured.width??0,height:l.measured.height??0}}),r.push(c)}if(n.length>0){const{parentLookup:e,nodeOrigin:t}=h(),i=Le(n,o,e,t);r.push(...i)}for(const e of l.values())r=e(r);i(r)},triggerNodeChanges:e=>{const{onNodesChange:t,setNodes:n,nodes:r,hasDefaultNodes:o,debug:i}=h();e?.length&&(o&&n(function(e,t){return Ht(e,t)}(e,r)),i&&console.log("React Flow: trigger node changes",e),t?.(e))},triggerEdgeChanges:e=>{const{onEdgesChange:t,setEdges:n,edges:r,hasDefaultEdges:o,debug:i}=h();e?.length&&(o&&n(function(e,t){return Ht(e,t)}(e,r)),i&&console.log("React Flow: trigger edge changes",e),t?.(e))},addSelectedNodes:e=>{const{multiSelectionActive:t,edgeLookup:n,nodeLookup:r,triggerNodeChanges:o,triggerEdgeChanges:i}=h();t?o(e.map(e=>qt(e,!0))):(o(Wt(r,new Set([...e]),!0)),i(Wt(n)))},addSelectedEdges:e=>{const{multiSelectionActive:t,edgeLookup:n,nodeLookup:r,triggerNodeChanges:o,triggerEdgeChanges:i}=h();t?i(e.map(e=>qt(e,!0))):(i(Wt(n,new Set([...e]))),o(Wt(r,new Set,!0)))},unselectNodesAndEdges:({nodes:e,edges:t}={})=>{const{edges:n,nodes:r,nodeLookup:o,triggerNodeChanges:i,triggerEdgeChanges:s}=h(),a=e||r,l=t||n,u=[];for(const e of a){if(!e.selected)continue;const t=o.get(e.id);t&&(t.selected=!1),u.push(qt(e.id,!1))}const c=[];for(const e of l)e.selected&&c.push(qt(e.id,!1));i(u),s(c)},setMinZoom:e=>{const{panZoom:t,maxZoom:n}=h();t?.setScaleExtent([e,n]),f({minZoom:e})},setMaxZoom:e=>{const{panZoom:t,minZoom:n}=h();t?.setScaleExtent([n,e]),f({maxZoom:e})},setTranslateExtent:e=>{h().panZoom?.setTranslateExtent(e),f({translateExtent:e})},resetSelectedElements:()=>{const{edges:e,nodes:t,triggerNodeChanges:n,triggerEdgeChanges:r,elementsSelectable:o}=h();if(!o)return;const i=t.reduce((e,t)=>t.selected?[...e,qt(t.id,!1)]:e,[]),s=e.reduce((e,t)=>t.selected?[...e,qt(t.id,!1)]:e,[]);n(i),r(s)},setNodeExtent:e=>{const{nodes:t,nodeLookup:n,parentLookup:r,nodeOrigin:o,elevateNodesOnSelect:i,nodeExtent:s,zIndexMode:a}=h();e[0][0]===s[0][0]&&e[0][1]===s[0][1]&&e[1][0]===s[1][0]&&e[1][1]===s[1][1]||(Re(t,n,r,{nodeOrigin:o,nodeExtent:e,elevateNodesOnSelect:i,checkEquality:!1,zIndexMode:a}),f({nodeExtent:e}))},panBy:e=>{const{transform:t,width:n,height:r,panZoom:o,translateExtent:i}=h();return async function({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r),a=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(a)}({delta:e,panZoom:o,transform:t,translateExtent:i,width:n,height:r})},setCenter:async(e,t,n)=>{const{width:r,height:o,maxZoom:i,panZoom:s}=h();if(!s)return Promise.resolve(!1);const a=void 0!==n?.zoom?n.zoom:i;return await s.setViewport({x:r/2-e*a,y:o/2-t*a,zoom:a},{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{f({connection:{...v}})},updateConnection:e=>{f({connection:e})},reset:()=>f({...Pr()})}},Object.is);function Tr({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:i,initialWidth:s,initialHeight:a,initialMinZoom:l,initialMaxZoom:u,initialFitViewOptions:c,fitView:p,nodeOrigin:d,nodeExtent:f,zIndexMode:h,children:m}){const[g]=(0,o.useState)(()=>Or({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:s,height:a,fitView:p,minZoom:l,maxZoom:u,fitViewOptions:c,nodeOrigin:d,nodeExtent:f,zIndexMode:h}));return(0,r.jsx)(pt,{value:g,children:(0,r.jsx)(Jt,{children:m})})}function kr({children:e,nodes:t,edges:n,defaultNodes:i,defaultEdges:s,width:a,height:l,fitView:u,fitViewOptions:c,minZoom:p,maxZoom:d,nodeOrigin:f,nodeExtent:h,zIndexMode:m}){return(0,o.useContext)(ct)?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)(Tr,{initialNodes:t,initialEdges:n,defaultNodes:i,defaultEdges:s,initialWidth:a,initialHeight:l,fitView:u,initialFitViewOptions:c,initialMinZoom:p,initialMaxZoom:d,nodeOrigin:f,nodeExtent:h,zIndexMode:m,children:e})}const Ar={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};var Ir,Rr=Yt(function({nodes:e,edges:t,defaultNodes:n,defaultEdges:s,className:a,nodeTypes:l,edgeTypes:u,onNodeClick:c,onEdgeClick:p,onInit:f,onMove:h,onMoveStart:m,onMoveEnd:v,onConnect:w,onConnectStart:C,onConnectEnd:_,onClickConnectStart:x,onClickConnectEnd:E,onNodeMouseEnter:S,onNodeMouseMove:P,onNodeMouseLeave:O,onNodeContextMenu:T,onNodeDoubleClick:k,onNodeDragStart:A,onNodeDrag:I,onNodeDragStop:R,onNodesDelete:M,onEdgesDelete:D,onDelete:L,onSelectionChange:N,onSelectionDragStart:V,onSelectionDrag:j,onSelectionDragStop:F,onSelectionContextMenu:z,onSelectionStart:B,onSelectionEnd:H,onBeforeDelete:U,connectionMode:q,connectionLineType:W=b.Bezier,connectionLineStyle:$,connectionLineComponent:Q,connectionLineContainerStyle:G,deleteKeyCode:Y="Backspace",selectionKeyCode:K="Shift",selectionOnDrag:X=!1,selectionMode:J=y.Full,panActivationKeyCode:ee="Space",multiSelectionKeyCode:te=(Z()?"Meta":"Control"),zoomActivationKeyCode:ne=(Z()?"Meta":"Control"),snapToGrid:re,snapGrid:oe,onlyRenderVisibleElements:ie=!1,selectNodesOnDrag:se,nodesDraggable:ae,autoPanOnNodeFocus:le,nodesConnectable:ue,nodesFocusable:ce,nodeOrigin:pe=It,edgesFocusable:de,edgesReconnectable:fe,elementsSelectable:he=!0,defaultViewport:me=Rt,minZoom:ge=.5,maxZoom:ye=2,translateExtent:ve=d,preventScrolling:be=!0,nodeExtent:we,defaultMarkerColor:Ce="#b1b1b7",zoomOnScroll:_e=!0,zoomOnPinch:xe=!0,panOnScroll:Ee=!1,panOnScrollSpeed:Se=.5,panOnScrollMode:Pe=g.Free,zoomOnDoubleClick:Oe=!0,panOnDrag:Te=!0,onPaneClick:ke,onPaneMouseEnter:Ae,onPaneMouseMove:Ie,onPaneMouseLeave:Re,onPaneScroll:Me,onPaneContextMenu:De,paneClickDistance:Le=1,nodeClickDistance:Ne=0,children:Ve,onReconnect:je,onReconnectStart:Fe,onReconnectEnd:ze,onEdgeContextMenu:Be,onEdgeDoubleClick:He,onEdgeMouseEnter:Ue,onEdgeMouseMove:qe,onEdgeMouseLeave:We,reconnectRadius:$e=10,onNodesChange:Qe,onEdgesChange:Ge,noDragClassName:Ye="nodrag",noWheelClassName:Ze="nowheel",noPanClassName:Ke="nopan",fitView:Xe,fitViewOptions:Je,connectOnClick:et,attributionPosition:tt,proOptions:nt,defaultEdgeOptions:rt,elevateNodesOnSelect:ot=!0,elevateEdgesOnSelect:it=!1,disableKeyboardA11y:st=!1,autoPanOnConnect:at,autoPanOnNodeDrag:lt,autoPanSpeed:ut,connectionRadius:ct,isValidConnection:pt,onError:dt,style:ft,id:ht,nodeDragThreshold:mt,connectionDragThreshold:gt,viewport:yt,onViewportChange:vt,width:bt,height:wt,colorMode:Ct="light",debug:xt,onScroll:St,ariaLabelConfig:Pt,zIndexMode:Ot="basic",...Tt},kt){const Mt=ht||"1",Dt=function(e){const[t,n]=(0,o.useState)("system"===e?null:e);return(0,o.useEffect)(()=>{if("system"!==e)return void n(e);const t=Vt(),r=()=>n(t?.matches?"dark":"light");return r(),t?.addEventListener("change",r),()=>{t?.removeEventListener("change",r)}},[e]),null!==t?t:Vt()?.matches?"dark":"light"}(Ct),Lt=(0,o.useCallback)(e=>{e.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),St?.(e)},[St]);return(0,r.jsx)("div",{"data-testid":"rf__wrapper",...Tt,onScroll:Lt,style:{...ft,...Ar},ref:kt,className:(0,i.A)(["react-flow",a,Dt]),id:ht,role:"application",children:(0,r.jsxs)(kr,{nodes:e,edges:t,width:bt,height:wt,fitView:Xe,fitViewOptions:Je,minZoom:ge,maxZoom:ye,nodeOrigin:pe,nodeExtent:we,zIndexMode:Ot,children:[(0,r.jsx)(Sr,{onInit:f,onNodeClick:c,onEdgeClick:p,onNodeMouseEnter:S,onNodeMouseMove:P,onNodeMouseLeave:O,onNodeContextMenu:T,onNodeDoubleClick:k,nodeTypes:l,edgeTypes:u,connectionLineType:W,connectionLineStyle:$,connectionLineComponent:Q,connectionLineContainerStyle:G,selectionKeyCode:K,selectionOnDrag:X,selectionMode:J,deleteKeyCode:Y,multiSelectionKeyCode:te,panActivationKeyCode:ee,zoomActivationKeyCode:ne,onlyRenderVisibleElements:ie,defaultViewport:me,translateExtent:ve,minZoom:ge,maxZoom:ye,preventScrolling:be,zoomOnScroll:_e,zoomOnPinch:xe,zoomOnDoubleClick:Oe,panOnScroll:Ee,panOnScrollSpeed:Se,panOnScrollMode:Pe,panOnDrag:Te,onPaneClick:ke,onPaneMouseEnter:Ae,onPaneMouseMove:Ie,onPaneMouseLeave:Re,onPaneScroll:Me,onPaneContextMenu:De,paneClickDistance:Le,nodeClickDistance:Ne,onSelectionContextMenu:z,onSelectionStart:B,onSelectionEnd:H,onReconnect:je,onReconnectStart:Fe,onReconnectEnd:ze,onEdgeContextMenu:Be,onEdgeDoubleClick:He,onEdgeMouseEnter:Ue,onEdgeMouseMove:qe,onEdgeMouseLeave:We,reconnectRadius:$e,defaultMarkerColor:Ce,noDragClassName:Ye,noWheelClassName:Ze,noPanClassName:Ke,rfId:Mt,disableKeyboardA11y:st,nodeExtent:we,viewport:yt,onViewportChange:vt}),(0,r.jsx)(Nt,{nodes:e,edges:t,defaultNodes:n,defaultEdges:s,onConnect:w,onConnectStart:C,onConnectEnd:_,onClickConnectStart:x,onClickConnectEnd:E,nodesDraggable:ae,autoPanOnNodeFocus:le,nodesConnectable:ue,nodesFocusable:ce,edgesFocusable:de,edgesReconnectable:fe,elementsSelectable:he,elevateNodesOnSelect:ot,elevateEdgesOnSelect:it,minZoom:ge,maxZoom:ye,nodeExtent:we,onNodesChange:Qe,onEdgesChange:Ge,snapToGrid:re,snapGrid:oe,connectionMode:q,translateExtent:ve,connectOnClick:et,defaultEdgeOptions:rt,fitView:Xe,fitViewOptions:Je,onNodesDelete:M,onEdgesDelete:D,onDelete:L,onNodeDragStart:A,onNodeDrag:I,onNodeDragStop:R,onSelectionDrag:j,onSelectionDragStart:V,onSelectionDragStop:F,onMove:h,onMoveStart:m,onMoveEnd:v,noPanClassName:Ke,nodeOrigin:pe,rfId:Mt,autoPanOnConnect:at,autoPanOnNodeDrag:lt,autoPanSpeed:ut,onError:dt,connectionRadius:ct,isValidConnection:pt,selectNodesOnDrag:se,nodeDragThreshold:mt,connectionDragThreshold:gt,onBeforeDelete:U,debug:xt,ariaLabelConfig:Pt,zIndexMode:Ot}),(0,r.jsx)(At,{onSelectionChange:N}),Ve,(0,r.jsx)(Et,{proOptions:nt,position:tt}),(0,r.jsx)(_t,{rfId:Mt,disableKeyboardA11y:st})]})})});function Mr({dimensions:e,lineWidth:t,variant:n,className:o}){return(0,r.jsx)("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:(0,i.A)(["react-flow__background-pattern",n,o])})}function Dr({radius:e,className:t}){return(0,r.jsx)("circle",{cx:e,cy:e,r:e,className:(0,i.A)(["react-flow__background-pattern","dots",t])})}!function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"}(Ir||(Ir={}));const Lr={[Ir.Dots]:1,[Ir.Lines]:1,[Ir.Cross]:6},Nr=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Vr({id:e,variant:t=Ir.Dots,gap:n=20,size:s,lineWidth:a=1,offset:l=0,color:u,bgColor:c,style:p,className:d,patternClassName:f}){const h=(0,o.useRef)(null),{transform:m,patternId:g}=ft(Nr,ut.x),y=s||Lr[t],v=t===Ir.Dots,b=t===Ir.Cross,w=Array.isArray(n)?n:[n,n],C=[w[0]*m[2]||1,w[1]*m[2]||1],_=y*m[2],x=Array.isArray(l)?l:[l,l],E=b?[_,_]:C,S=[x[0]*m[2]||1+E[0]/2,x[1]*m[2]||1+E[1]/2],P=`${g}${e||""}`;return(0,r.jsxs)("svg",{className:(0,i.A)(["react-flow__background",d]),style:{...p,...on,"--xy-background-color-props":c,"--xy-background-pattern-color-props":u},ref:h,"data-testid":"rf__background",children:[(0,r.jsx)("pattern",{id:P,x:m[0]%C[0],y:m[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${S[0]},-${S[1]})`,children:v?(0,r.jsx)(Dr,{radius:_/2,className:f}):(0,r.jsx)(Mr,{dimensions:E,lineWidth:a,variant:t,className:f})}),(0,r.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${P})`})]})}Vr.displayName="Background";const jr=(0,o.memo)(Vr);function Fr(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,r.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function zr(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,r.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function Br(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,r.jsx)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Hr(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,r.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Ur(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,r.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function qr({children:e,className:t,...n}){return(0,r.jsx)("button",{type:"button",className:(0,i.A)(["react-flow__controls-button",t]),...n,children:e})}const Wr=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function $r({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:s,onZoomIn:a,onZoomOut:l,onFitView:u,onInteractiveChange:c,className:p,children:d,position:f="bottom-left",orientation:h="vertical","aria-label":m}){const g=ht(),{isInteractive:y,minZoomReached:v,maxZoomReached:b,ariaLabelConfig:w}=ft(Wr,ut.x),{zoomIn:C,zoomOut:_,fitView:x}=tn(),E="horizontal"===h?"horizontal":"vertical";return(0,r.jsxs)(xt,{className:(0,i.A)(["react-flow__controls",E,p]),position:f,style:e,"data-testid":"rf__controls","aria-label":m??w["controls.ariaLabel"],children:[t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(qr,{onClick:()=>{C(),a?.()},className:"react-flow__controls-zoomin",title:w["controls.zoomIn.ariaLabel"],"aria-label":w["controls.zoomIn.ariaLabel"],disabled:b,children:(0,r.jsx)(Fr,{})}),(0,r.jsx)(qr,{onClick:()=>{_(),l?.()},className:"react-flow__controls-zoomout",title:w["controls.zoomOut.ariaLabel"],"aria-label":w["controls.zoomOut.ariaLabel"],disabled:v,children:(0,r.jsx)(zr,{})})]}),n&&(0,r.jsx)(qr,{className:"react-flow__controls-fitview",onClick:()=>{x(s),u?.()},title:w["controls.fitView.ariaLabel"],"aria-label":w["controls.fitView.ariaLabel"],children:(0,r.jsx)(Br,{})}),o&&(0,r.jsx)(qr,{className:"react-flow__controls-interactive",onClick:()=>{g.setState({nodesDraggable:!y,nodesConnectable:!y,elementsSelectable:!y}),c?.(!y)},title:w["controls.interactive.ariaLabel"],"aria-label":w["controls.interactive.ariaLabel"],children:y?(0,r.jsx)(Ur,{}):(0,r.jsx)(Hr,{})}),d]})}$r.displayName="Controls";const Qr=(0,o.memo)($r),Gr=(0,o.memo)(function({id:e,x:t,y:n,width:o,height:s,style:a,color:l,strokeColor:u,strokeWidth:c,className:p,borderRadius:d,shapeRendering:f,selected:h,onClick:m}){const{background:g,backgroundColor:y}=a||{},v=l||g||y;return(0,r.jsx)("rect",{className:(0,i.A)(["react-flow__minimap-node",{selected:h},p]),x:t,y:n,rx:d,ry:d,width:o,height:s,style:{fill:v,stroke:u,strokeWidth:c},shapeRendering:f,onClick:m?t=>m(t,e):void 0})}),Yr=e=>e.nodes.map(e=>e.id),Zr=e=>e instanceof Function?e:()=>e,Kr=(0,o.memo)(function({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:i,nodeStrokeWidth:s,shapeRendering:a,NodeComponent:l,onClick:u}){const{node:c,x:p,y:d,width:f,height:h}=ft(t=>{const n=t.nodeLookup.get(e);if(!n)return{node:void 0,x:0,y:0,width:0,height:0};const r=n.internals.userNode,{x:o,y:i}=n.internals.positionAbsolute,{width:s,height:a}=X(r);return{node:r,x:o,y:i,width:s,height:a}},ut.x);return c&&!c.hidden&&J(c)?(0,r.jsx)(l,{x:p,y:d,width:f,height:h,style:c.style,selected:!!c.selected,className:o(c),color:t(c),borderRadius:i,strokeColor:n(c),strokeWidth:s,shapeRendering:a,onClick:u,id:c.id}):null});var Xr=(0,o.memo)(function({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:i,nodeComponent:s=Gr,onClick:a}){const l=ft(Yr,ut.x),u=Zr(t),c=Zr(e),p=Zr(n),d="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return(0,r.jsx)(r.Fragment,{children:l.map(e=>(0,r.jsx)(Kr,{id:e,nodeColorFunc:u,nodeStrokeColorFunc:c,nodeClassNameFunc:p,nodeBorderRadius:o,nodeStrokeWidth:i,NodeComponent:s,onClick:a,shapeRendering:d},e))})});const Jr=e=>!e.hidden,eo=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?z(O(e.nodeLookup,{filter:Jr}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}};function to({style:e,className:t,nodeStrokeColor:n,nodeColor:s,nodeClassName:c="",nodeBorderRadius:p=5,nodeStrokeWidth:d,nodeComponent:f,bgColor:h,maskColor:m,maskStrokeColor:g,maskStrokeWidth:y,position:v="bottom-right",onClick:b,onNodeClick:w,pannable:C=!1,zoomable:_=!1,ariaLabel:x,inversePan:E,zoomStep:S=1,offsetScale:P=5}){const O=ht(),T=(0,o.useRef)(null),{boundingRect:k,viewBB:A,rfId:I,panZoom:R,translateExtent:M,flowWidth:D,flowHeight:L,ariaLabelConfig:N}=ft(eo,ut.x),V=e?.width??200,j=e?.height??150,F=k.width/V,z=k.height/j,B=Math.max(F,z),H=B*V,U=B*j,q=P*B,W=k.x-(H-k.width)/2-q,$=k.y-(U-k.height)/2-q,Q=H+2*q,G=U+2*q,Y=`react-flow__minimap-desc-${I}`,K=(0,o.useRef)(0),X=(0,o.useRef)();K.current=B,(0,o.useEffect)(()=>{if(T.current&&R)return X.current=function({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const o=(0,a.A)(e);return{update:function({translateExtent:e,width:i,height:s,zoomStep:a=1,pannable:l=!0,zoomable:c=!0,inversePan:p=!1}){let d=[0,0];const f=(0,u.s_)().on("start",e=>{"mousedown"!==e.sourceEvent.type&&"touchstart"!==e.sourceEvent.type||(d=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",l?o=>{const a=n();if("mousemove"!==o.sourceEvent.type&&"touchmove"!==o.sourceEvent.type||!t)return;const l=[o.sourceEvent.clientX??o.sourceEvent.touches[0].clientX,o.sourceEvent.clientY??o.sourceEvent.touches[0].clientY],u=[l[0]-d[0],l[1]-d[1]];d=l;const c=r()*Math.max(a[2],Math.log(a[2]))*(p?-1:1),f={x:a[0]-u[0]*c,y:a[1]-u[1]*c},h=[[0,0],[i,s]];t.setViewportConstrained({x:f.x,y:f.y,zoom:a[2]},h,e)}:null).on("zoom.wheel",c?e=>{if("wheel"!==e.sourceEvent.type||!t)return;const r=n(),o=e.sourceEvent.ctrlKey&&Z()?10:1,i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*a,s=r[2]*Math.pow(2,i*o);t.scaleTo(s)}:null);o.call(f,{})},destroy:function(){o.on("zoom",null)},pointer:l.A}}({domNode:T.current,panZoom:R,getTransform:()=>O.getState().transform,getViewScale:()=>K.current}),()=>{X.current?.destroy()}},[R]),(0,o.useEffect)(()=>{X.current?.update({translateExtent:M,width:D,height:L,inversePan:E,pannable:C,zoomStep:S,zoomable:_})},[C,_,E,S,M,D,L]);const J=b?e=>{const[t,n]=X.current?.pointer(e)||[0,0];b(e,{x:t,y:n})}:void 0,ee=w?(0,o.useCallback)((e,t)=>{const n=O.getState().nodeLookup.get(t).internals.userNode;w(e,n)},[]):void 0,te=x??N["minimap.ariaLabel"];return(0,r.jsx)(xt,{position:v,style:{...e,"--xy-minimap-background-color-props":"string"==typeof h?h:void 0,"--xy-minimap-mask-background-color-props":"string"==typeof m?m:void 0,"--xy-minimap-mask-stroke-color-props":"string"==typeof g?g:void 0,"--xy-minimap-mask-stroke-width-props":"number"==typeof y?y*B:void 0,"--xy-minimap-node-background-color-props":"string"==typeof s?s:void 0,"--xy-minimap-node-stroke-color-props":"string"==typeof n?n:void 0,"--xy-minimap-node-stroke-width-props":"number"==typeof d?d:void 0},className:(0,i.A)(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:(0,r.jsxs)("svg",{width:V,height:j,viewBox:`${W} ${$} ${Q} ${G}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":Y,ref:T,onClick:J,children:[te&&(0,r.jsx)("title",{id:Y,children:te}),(0,r.jsx)(Xr,{onClick:ee,nodeColor:s,nodeStrokeColor:n,nodeBorderRadius:p,nodeClassName:c,nodeStrokeWidth:d,nodeComponent:f}),(0,r.jsx)("path",{className:"react-flow__minimap-mask",d:`M${W-q},${$-q}h${Q+2*q}v${G+2*q}h${-Q-2*q}z\n        M${A.x},${A.y}h${A.width}v${A.height}h${-A.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}to.displayName="MiniMap",(0,o.memo)(to);const no={[Je.Line]:"right",[Je.Handle]:"bottom-right"};(0,o.memo)(function({nodeId:e,position:t,variant:n=Je.Handle,className:l,style:u,children:c,color:p,minWidth:d=10,minHeight:f=10,maxWidth:h=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:g=!1,resizeDirection:y,autoScale:v=!0,shouldResize:b,onResizeStart:w,onResize:C,onResizeEnd:_}){const x=vn(),E="string"==typeof e?e:x,S=ht(),P=(0,o.useRef)(null),O=n===Je.Handle,T=ft((0,o.useCallback)((k=O&&v,e=>k?`${Math.max(1/e.transform[2],1)}`:void 0),[O,v]),ut.x);var k;const A=(0,o.useRef)(null),I=t??no[n];(0,o.useEffect)(()=>{if(P.current&&E)return A.current||(A.current=function({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){const i=(0,a.A)(e);let l={controlDirection:et("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};return{update:function({controlPosition:e,boundaries:a,keepAspectRatio:u,resizeDirection:c,onResizeStart:p,onResize:d,onResizeEnd:f,shouldResize:h}){let m,g={...it},y={...st};l={boundaries:a,resizeDirection:c,keepAspectRatio:u,controlDirection:et(e)};let v,b,w,C=null,_=[],x=!1;const E=(0,s.A)().on("start",e=>{const{nodeLookup:r,transform:o,snapGrid:i,snapToGrid:s,nodeOrigin:a,paneDomNode:l}=n();if(m=r.get(t),!m)return;C=l?.getBoundingClientRect()??null;const{xSnapped:u,ySnapped:c}=re(e.sourceEvent,{transform:o,snapGrid:i,snapToGrid:s,containerBounds:C});g={width:m.measured.width??0,height:m.measured.height??0,x:m.position.x??0,y:m.position.y??0},y={...g,pointerX:u,pointerY:c,aspectRatio:g.width/g.height},v=void 0,m.parentId&&("parent"===m.extent||m.expandParent)&&(v=r.get(m.parentId),b=v&&"parent"===m.extent?function(e){return[[0,0],[e.measured.width,e.measured.height]]}(v):void 0),_=[],w=void 0;for(const[e,n]of r)if(n.parentId===t&&(_.push({id:e,position:{...n.position},extent:n.extent}),"parent"===n.extent||n.expandParent)){const e=at(n,m,n.origin??a);w=w?[[Math.min(e[0][0],w[0][0]),Math.min(e[0][1],w[0][1])],[Math.max(e[1][0],w[1][0]),Math.max(e[1][1],w[1][1])]]:e}p?.(e,{...g})}).on("drag",e=>{const{transform:t,snapGrid:o,snapToGrid:i,nodeOrigin:s}=n(),a=re(e.sourceEvent,{transform:t,snapGrid:o,snapToGrid:i,containerBounds:C}),u=[];if(!m)return;const{x:c,y:p,width:f,height:E}=g,S={},P=m.origin??s,{width:O,height:T,x:k,y:A}=function(e,t,n,r,o,i,s,a){let{affectsX:l,affectsY:u}=t;const{isHorizontal:c,isVertical:p}=t,d=c&&p,{xSnapped:f,ySnapped:h}=n,{minWidth:m,maxWidth:g,minHeight:y,maxHeight:v}=r,{x:b,y:w,width:C,height:_,aspectRatio:x}=e;let E=Math.floor(c?f-e.pointerX:0),S=Math.floor(p?h-e.pointerY:0);const P=C+(l?-E:E),O=_+(u?-S:S),T=-i[0]*C,k=-i[1]*_;let A=rt(P,m,g),I=rt(O,y,v);if(s){let e=0,t=0;l&&E<0?e=tt(b+E+T,s[0][0]):!l&&E>0&&(e=nt(b+P+T,s[1][0])),u&&S<0?t=tt(w+S+k,s[0][1]):!u&&S>0&&(t=nt(w+O+k,s[1][1])),A=Math.max(A,e),I=Math.max(I,t)}if(a){let e=0,t=0;l&&E>0?e=nt(b+E,a[0][0]):!l&&E<0&&(e=tt(b+P,a[1][0])),u&&S>0?t=nt(w+S,a[0][1]):!u&&S<0&&(t=tt(w+O,a[1][1])),A=Math.max(A,e),I=Math.max(I,t)}if(o){if(c){const e=rt(P/x,y,v)*x;if(A=Math.max(A,e),s){let e=0;e=!l&&!u||l&&!u&&d?nt(w+k+P/x,s[1][1])*x:tt(w+k+(l?E:-E)/x,s[0][1])*x,A=Math.max(A,e)}if(a){let e=0;e=!l&&!u||l&&!u&&d?tt(w+P/x,a[1][1])*x:nt(w+(l?E:-E)/x,a[0][1])*x,A=Math.max(A,e)}}if(p){const e=rt(O*x,m,g)/x;if(I=Math.max(I,e),s){let e=0;e=!l&&!u||u&&!l&&d?nt(b+O*x+T,s[1][0])/x:tt(b+(u?S:-S)*x+T,s[0][0])/x,I=Math.max(I,e)}if(a){let e=0;e=!l&&!u||u&&!l&&d?tt(b+O*x,a[1][0])/x:nt(b+(u?S:-S)*x,a[0][0])/x,I=Math.max(I,e)}}}S+=S<0?I:-I,E+=E<0?A:-A,o&&(d?P>O*x?S=(ot(l,u)?-E:E)/x:E=(ot(l,u)?-S:S)*x:c?(S=E/x,u=l):(E=S*x,l=u));const R=l?b+E:b,M=u?w+S:w;return{width:C+(l?-E:E),height:_+(u?-S:S),x:i[0]*E*(l?-1:1)+R,y:i[1]*S*(u?-1:1)+M}}(y,l.controlDirection,a,l.boundaries,l.keepAspectRatio,P,b,w),I=O!==f,R=T!==E,M=k!==c&&I,D=A!==p&&R;if(!(M||D||I||R))return;if((M||D||1===P[0]||1===P[1])&&(S.x=M?k:g.x,S.y=D?A:g.y,g.x=S.x,g.y=S.y,_.length>0)){const e=k-c,t=A-p;for(const n of _)n.position={x:n.position.x-e+P[0]*(O-f),y:n.position.y-t+P[1]*(T-E)},u.push(n)}if((I||R)&&(S.width=!I||l.resizeDirection&&"horizontal"!==l.resizeDirection?g.width:O,S.height=!R||l.resizeDirection&&"vertical"!==l.resizeDirection?g.height:T,g.width=S.width,g.height=S.height),v&&m.expandParent){const e=P[0]*(S.width??0);S.x&&S.x<e&&(g.x=e,y.x=y.x-(S.x-e));const t=P[1]*(S.height??0);S.y&&S.y<t&&(g.y=t,y.y=y.y-(S.y-t))}const L=function({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:o,affectsY:i}){const s=e-t,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&o&&(l[0]=-1*l[0]),a&&i&&(l[1]=-1*l[1]),l}({width:g.width,prevWidth:f,height:g.height,prevHeight:E,affectsX:l.controlDirection.affectsX,affectsY:l.controlDirection.affectsY}),N={...g,direction:L},V=h?.(e,N);!1!==V&&(x=!0,d?.(e,N),r(S,u))}).on("end",e=>{x&&(f?.(e,{...g}),o?.({...g}),x=!1)});i.call(E)},destroy:function(){i.on(".drag",null)}}}({domNode:P.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:r,nodeOrigin:o,domNode:i}=S.getState();return{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:r,nodeOrigin:o,paneDomNode:i}},onChange:(e,t)=>{const{triggerNodeChanges:n,nodeLookup:r,parentLookup:o,nodeOrigin:i}=S.getState(),s=[],a={x:e.x,y:e.y},l=r.get(E);if(l&&l.expandParent&&l.parentId){const t=l.origin??i,n=e.width??l.measured.width??0,u=e.height??l.measured.height??0,c=Le([{id:l.id,parentId:l.parentId,rect:{width:n,height:u,...ee({x:e.x??l.position.x,y:e.y??l.position.y},{width:n,height:u},l.parentId,r,t)}}],r,o,i);s.push(...c),a.x=e.x?Math.max(t[0]*n,e.x):void 0,a.y=e.y?Math.max(t[1]*u,e.y):void 0}if(void 0!==a.x&&void 0!==a.y){const e={id:E,type:"position",position:{...a}};s.push(e)}if(void 0!==e.width&&void 0!==e.height){const t={id:E,type:"dimensions",resizing:!0,setAttributes:!y||("horizontal"===y?"width":"height"),dimensions:{width:e.width,height:e.height}};s.push(t)}for(const e of t){const t={...e,type:"position"};s.push(t)}n(s)},onEnd:({width:e,height:t})=>{const n={id:E,type:"dimensions",resizing:!1,dimensions:{width:e,height:t}};S.getState().triggerNodeChanges([n])}})),A.current.update({controlPosition:I,boundaries:{minWidth:d,minHeight:f,maxWidth:h,maxHeight:m},keepAspectRatio:g,resizeDirection:y,onResizeStart:w,onResize:C,onResizeEnd:_,shouldResize:b}),()=>{A.current?.destroy()}},[I,d,f,h,m,g,w,C,_,b]);const R=I.split("-");return(0,r.jsx)("div",{className:(0,i.A)(["react-flow__resize-control","nodrag",...R,n,l]),ref:P,style:{...u,scale:T,...p&&{[O?"backgroundColor":"borderColor"]:p}},children:c})})},43692(){},61575(e,t,n){"use strict";n.r(t)},38957(e,t,n){"use strict";n.r(t)},74050(e,t,n){"use strict";n.r(t)},4778(e,t,n){"use strict";n.r(t)},63873(e,t,n){"use strict";n.r(t)},90663(e,t,n){"use strict";n.r(t)},71031(e,t,n){"use strict";n.r(t)},68605(e,t,n){"use strict";const r=n(75006),o=n(2858),i=n(99178),s=n(21702),a=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&c(n,e).includes(e.arrayFormatSeparator);n=i?c(n,e):n;const s=o||i?n.split(e.arrayFormatSeparator).map(t=>c(t,e)):null===n?n:c(n,e);r[t]=s};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?c(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>c(t,e));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:c(s,t),n(c(e,t),s,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=p(n):e[t]=n,e},Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",o,"]"].join("")]:[...n,[u(t,e),"[",u(o,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),":list="].join("")]:[...n,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[u(n,e),t,u(o,e)].join("")]:[[r,u(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{const o=e[n];return void 0===o?"":null===o?u(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":o.reduce(r(n),[]).join("&"):u(n,t)+"="+u(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[a]:!0},n);const r=d(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let l=t.stringify(s,n);l&&(l=`?${l}`);let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${n[a]?u(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[a]:!1},r);const{url:o,query:i,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:s(i,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},37037(e,t,n){var r=n(2013),o=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||function(e){var t=+new Date,n=Math.max(0,16-(t-i)),r=setTimeout(e,n);return i=t,r},i=+new Date,s=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(o=o.bind(r),s=s.bind(r)),(e.exports=o).cancel=s},82869(e,t,n){"use strict";var r=n(85409),o=65536,i=n(56608).Buffer,s=n.g.crypto||n.g.msCrypto;s&&s.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>o)for(var a=0;a<e;a+=o)s.getRandomValues(n.slice(a,a+o));else s.getRandomValues(n);return"function"==typeof t?r.nextTick(function(){t(null,n)}):n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},44925(e,t,n){"use strict";var r=n(85409);function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(56608),s=n(82869),a=i.Buffer,l=i.kMaxLength,u=n.g.crypto||n.g.msCrypto,c=Math.pow(2,32)-1;function p(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function d(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>l)throw new RangeError("buffer too small")}function f(e,t,n,o){if(r.browser){var i=e.buffer,a=new Uint8Array(i,t,n);return u.getRandomValues(a),o?void r.nextTick(function(){o(null,e)}):e}if(!o)return s(n).copy(e,t),e;s(n,function(n,r){if(n)return o(n);r.copy(e,t),o(null,e)})}u&&u.getRandomValues||!r.browser?(t.randomFill=function(e,t,r,o){if(!(a.isBuffer(e)||e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)o=t,t=0,r=e.length;else if("function"==typeof r)o=r,r=e.length-t;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return p(t,e.length),d(r,t,e.length),f(e,t,r,o)},t.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(a.isBuffer(e)||e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return p(t,e.length),void 0===r&&(r=e.length-t),d(r,t,e.length),f(e,t,r)}):(t.randomFill=o,t.randomFillSync=o)},82239(e,t,n){e.exports=function(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){var o,i=new Image;i.onload=function(){return n(i)},i.onerror=r,0==(null!==(o=e)&&!!o.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&t&&(i.crossOrigin=t),i.src=e})}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(e){var t=!1;return{promise:new Promise(function(n,r){e.then(function(e){return t?r({isCanceled:!0}):n(e)},function(e){return r(t?{isCanceled:!0}:e)})}),cancel:function(){t=!0}}},u=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||navigator.msMaxTouchPoints>0)),c="undefined"!=typeof File,p={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},d=u?p.touch:p.desktop,f="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,h={x:.5,y:.5},m=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=s(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),r.state={drag:!1,my:null,mx:null,image:h},r.handleImageReady=function(e){var t=r.getInitialSize(e.width,e.height);t.resource=e,t.x=.5,t.y=.5,r.setState({drag:!1,image:t},r.props.onImageReady),r.props.onLoadSuccess(t)},r.clearImage=function(){var e=r.canvas;e.getContext("2d").clearRect(0,0,e.width,e.height),r.setState({image:h})},r.handleMouseDown=function(e){(e=e||window.event).preventDefault(),r.setState({drag:!0,mx:null,my:null})},r.handleMouseUp=function(){r.state.drag&&(r.setState({drag:!1}),r.props.onMouseUp())},r.handleMouseMove=function(e){if(e=e||window.event,!1!==r.state.drag){e.preventDefault();var t=e.targetTouches?e.targetTouches[0].pageX:e.clientX,n=e.targetTouches?e.targetTouches[0].pageY:e.clientY,o={mx:t,my:n},s=r.props.rotate;if(s=(s%=360)<0?s+360:s,r.state.mx&&r.state.my){var a=r.state.mx-t,l=r.state.my-n,u=r.state.image.width*r.props.scale,c=r.state.image.height*r.props.scale,p=r.getCroppingRect(),d=p.x,f=p.y;d*=u,f*=c;var h=function(e){return e*(Math.PI/180)},m=Math.cos(h(s)),g=Math.sin(h(s)),y=f+-a*g+l*m,v={x:(d+a*m+l*g)/u+1/r.props.scale*r.getXScale()/2,y:y/c+1/r.props.scale*r.getYScale()/2};r.props.onPositionChange(v),o.image=i({},r.state.image,v)}r.setState(o),r.props.onMouseMove(e)}},r.setCanvas=function(e){r.canvas=e},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,t.Component),o(e,[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(f=1);var e=n.findDOMNode(this.canvas).getContext("2d");if(this.props.image&&this.loadImage(this.props.image),this.paint(e),document){var t=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()&&{passive:!1},r=d.native;document.addEventListener(r.move,this.handleMouseMove,t),document.addEventListener(r.up,this.handleMouseUp,t),u&&(document.addEventListener(r.mouseMove,this.handleMouseMove,t),document.addEventListener(r.mouseUp,this.handleMouseUp,t))}}},{key:"componentWillReceiveProps",value:function(e){e.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height?this.loadImage(e.image):e.image||this.clearImage()}},{key:"componentDidUpdate",value:function(e,t){var r=n.findDOMNode(this.canvas),o=r.getContext("2d");o.clearRect(0,0,r.width,r.height),this.paint(o),this.paintImage(o,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){if(document){var e=d.native;document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),u&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1))}}},{key:"isVertical",value:function(){return this.props.rotate%180!=0}},{key:"getBorders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.border;return Array.isArray(e)?e:[e,e]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,n=e.height,r=e.rotate,o=e.border,i={},s=this.getBorders(o),l=a(s,2),u=l[0],c=l[1],p=t,d=n;return this.isVertical()?(i.width=d,i.height=p):(i.width=p,i.height=d),i.width+=2*u,i.height+=2*c,{canvas:i,rotate:r,width:t,height:n,border:o}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var n=document.createElement("canvas");this.isVertical()?(n.width=e.height,n.height=e.width):(n.width=e.width,n.height=e.height);var r=n.getContext("2d");return r.translate(n.width/2,n.height/2),r.rotate(this.props.rotate*Math.PI/180),r.translate(-n.width/2,-n.height/2),this.isVertical()&&r.translate((n.width-n.height)/2,(n.height-n.width)/2),r.drawImage(t.resource,-e.x,-e.y),n}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,n=e.height,r=document.createElement("canvas");return this.isVertical()?(r.width=n,r.height=t):(r.width=t,r.height=n),this.paintImage(r.getContext("2d"),this.state.image,0,1),r}},{key:"getXScale",value:function(){var e=this.props.width/this.props.height,t=this.state.image.width/this.state.image.height;return Math.min(1,e/t)}},{key:"getYScale",value:function(){var e=this.props.height/this.props.width,t=this.state.image.height/this.state.image.width;return Math.min(1,e/t)}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),n=1/this.props.scale*this.getYScale(),r={x:e.x-t/2,y:e.y-n/2,width:t,height:n},o=0,s=1-r.width,a=0,l=1-r.height;return(this.props.disableBoundaryChecks||t>1||n>1)&&(o=-r.width,s=1,a=-r.height,l=1),i({},r,{x:Math.max(o,Math.min(r.x,s)),y:Math.max(a,Math.min(r.y,l))})}},{key:"loadImage",value:function(e){var t;c&&e instanceof File?this.loadingImage=l((t=e,new Promise(function(e,n){var o=new FileReader;o.onload=function(t){try{var o=r(t.target.result);e(o)}catch(t){n(t)}},o.readAsDataURL(t)}))).promise.then(this.handleImageReady).catch(this.props.onLoadFailure):"string"==typeof e&&(this.loadingImage=l(r(e,this.props.crossOrigin)).promise.then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(e,t){var n=void 0,r=void 0,o=this.getDimensions();return o.height/o.width>t/e?r=e*((n=this.getDimensions().height)/t):n=t*((r=this.getDimensions().width)/e),{height:n,width:r}}},{key:"paintImage",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f;if(t.resource){var o=this.calculatePosition(t,n);e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(r,r),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,o.x,o.y,o.width,o.height),e.restore()}}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var n=this.getBorders(t),r=a(n,2),o=r[0],i=r[1],s=this.getCroppingRect(),l=e.width*this.props.scale,u=e.height*this.props.scale,c=-s.x*l,p=-s.y*u;return this.isVertical()?(c+=i,p+=o):(c+=o,p+=i),{x:c,y:p,height:u,width:l}}},{key:"paint",value:function(e){e.save(),e.scale(f,f),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t=this.props.borderRadius,n=this.getDimensions(),r=this.getBorders(n.border),o=a(r,2),i=o[0],s=o[1],l=n.canvas.height,u=n.canvas.width;t=Math.max(t,0),t=Math.min(t,u/2-i,l/2-s),e.beginPath(),function(e,t,n,r,o,i){if(0===i)e.rect(t,n,r,o);else{var s=r-i,a=o-i;e.translate(t,n),e.arc(i,i,i,Math.PI,1.5*Math.PI),e.lineTo(s,0),e.arc(s,i,i,1.5*Math.PI,2*Math.PI),e.lineTo(r,a),e.arc(s,a,i,2*Math.PI,.5*Math.PI),e.lineTo(i,o),e.arc(i,a,i,.5*Math.PI,Math.PI),e.translate(-t,-n)}}(e,i,s,u-2*i,l-2*s,t),e.rect(u,0,-u,l),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.props,n=(e.scale,e.rotate,e.image,e.border,e.borderRadius,e.width,e.height,e.position,e.color,e.style),r=(e.crossOrigin,e.onLoadFailure,e.onLoadSuccess,e.onImageReady,e.onImageChange,e.onMouseUp,e.onMouseMove,e.onPositionChange,e.disableBoundaryChecks,e.disableHiDPIScaling,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["scale","rotate","image","border","borderRadius","width","height","position","color","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling"])),o=this.getDimensions(),s={width:o.canvas.width,height:o.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},a={width:o.canvas.width*f,height:o.canvas.height*f,style:i({},s,n)};return a[d.react.down]=this.handleMouseDown,u&&(a[d.react.mouseDown]=this.handleMouseDown),t.createElement("canvas",i({ref:this.setCanvas},a,r))}}]),e}();return m.propTypes={scale:e.number,rotate:e.number,image:e.oneOfType([e.string].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(c?[e.instanceOf(File)]:[]))),border:e.oneOfType([e.number,e.arrayOf(e.number)]),borderRadius:e.number,width:e.number,height:e.number,position:e.shape({x:e.number,y:e.number}),color:e.arrayOf(e.number),crossOrigin:e.oneOf(["","anonymous","use-credentials"]),onLoadFailure:e.func,onLoadSuccess:e.func,onImageReady:e.func,onImageChange:e.func,onMouseUp:e.func,onMouseMove:e.func,onPositionChange:e.func,disableBoundaryChecks:e.bool,disableHiDPIScaling:e.bool},m.defaultProps={scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1},m}(n(5821),n(22155),n(70316))},18006(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(22155);const o=n(12599).A;var i=r.createContext(new o);i.Provider,i.Consumer;const s=i;function a(e){var t=(0,r.useContext)(s);if(!t)throw new Error("Missing <CookiesProvider>");var n=t.getAll(),o=(0,r.useState)(n),i=o[0],a=o[1],l=(0,r.useRef)(i);return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,r.useLayoutEffect)(function(){function n(){var n=t.getAll();(function(e,t,n){if(!e)return!0;for(var r=0,o=e;r<o.length;r++){var i=o[r];if(t[i]!==n[i])return!0}return!1})(e||null,n,l.current)&&a(n),l.current=n}return t.addChangeListener(n),function(){t.removeChangeListener(n)}},[t]),[i,(0,r.useMemo)(function(){return t.set.bind(t)},[t]),(0,r.useMemo)(function(){return t.remove.bind(t)},[t])]}},36656(e,t,n){e.exports=n(68258)},82402(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(22155),i=l(o),s=l(n(56395)),a=n(83370);function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyUp=n.handleKeyUp.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return e.locale!==this.props.locale||e.classNames!==this.props.classNames||e.date.getMonth()!==this.props.date.getMonth()||e.date.getFullYear()!==this.props.date.getFullYear()}},{key:"handleKeyUp",value:function(e){e.keyCode===a.ENTER&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.date,r=e.months,o=e.locale,s=e.localeUtils,a=e.onClick;return i.default.createElement("div",{className:t.caption,role:"heading","aria-live":"polite"},i.default.createElement("div",{onClick:a,onKeyUp:this.handleKeyUp},r?r[n.getMonth()]+" "+n.getFullYear():s.formatMonthTitle(n,o)))}}]),t}(o.Component);u.defaultProps={localeUtils:s.default},t.default=u},76913(e,t){"use strict";function n(e){return new Date(e.getTime())}function r(e){return e instanceof Date&&!isNaN(e.valueOf())}function o(e,t){var r=n(e);return r.setMonth(e.getMonth()+t),r}function i(e,t){return!(!e||!t)&&e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function s(e,t){return!(!e||!t)&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function a(e,t){return n(e).setHours(0,0,0,0)<n(t).setHours(0,0,0,0)}function l(e,t){return n(e).setHours(0,0,0,0)>n(t).setHours(0,0,0,0)}function u(e){var t=new Date;return t.setHours(0,0,0,0),a(e,t)}function c(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function p(e,t,r){var o=n(e);return o.setHours(0,0,0,0),l(o,t)&&a(o,r)||l(o,r)&&a(o,t)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&i(n,r)&&i(e,n)?(n=null,r=null):r&&a(e,n)?n=e:r&&i(e,r)?(n=e,r=e):a(r=e,n)&&(r=n,n=e):n=e,{from:n,to:r}}function f(e,t){var n=t.from,r=t.to;return n&&i(e,n)||r&&i(e,r)||n&&r&&p(e,n,r)}function h(e){var t=n(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=n,t.isDate=r,t.addMonths=o,t.isSameDay=i,t.isSameMonth=s,t.isDayBefore=a,t.isDayAfter=l,t.isPastDay=u,t.isFutureDay=c,t.isDayBetween=p,t.addDayToRange=d,t.isDayInRange=f,t.getWeekNumber=h,t.default={addDayToRange:d,addMonths:o,clone:n,getWeekNumber:h,isDate:r,isDayAfter:l,isDayBefore:a,isDayBetween:p,isDayInRange:f,isFutureDay:c,isPastDay:u,isSameDay:i,isSameMonth:s}},48090(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(22155),s=c(i),a=n(76913),l=n(80857),u=c(n(95130));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){if(e)return function(r){r.persist(),e(t,n,r)}}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(this.props),r=Object.keys(e);return n.length!==r.length||n.some(function(n){if("modifiers"===n||"modifiersStyles"===n||"classNames"===n){var r=t.props[n],o=e[n],i=Object.keys(r),s=Object.keys(o);return i.length!==s.length||i.some(function(e){return!(0,l.hasOwnProp)(o,e)||r[e]!==o[e]})}return"day"===n?!(0,a.isSameDay)(t.props[n],e[n]):!(0,l.hasOwnProp)(e,n)||t.props[n]!==e[n]})}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.modifiersStyles,o=e.day,i=e.tabIndex,a=e.empty,l=e.modifiers,c=e.onMouseEnter,d=e.onMouseLeave,f=e.onMouseUp,h=e.onMouseDown,m=e.onClick,g=e.onKeyDown,y=e.onTouchStart,v=e.onTouchEnd,b=e.onFocus,w=e.ariaLabel,C=e.ariaDisabled,_=e.ariaSelected,x=e.children,E=t.day;t!==u.default?E+=" "+Object.keys(l).join(" "):E+=Object.keys(l).map(function(e){return" "+E+"--"+e}).join("");var S=void 0;return n&&Object.keys(l).filter(function(e){return!!n[e]}).forEach(function(e){S=r({},S,n[e])}),a?s.default.createElement("div",{"aria-disabled":!0,className:E,style:S}):s.default.createElement("div",{className:E,tabIndex:i,style:S,role:"gridcell","aria-label":w,"aria-disabled":C,"aria-selected":_,onClick:p(m,o,l),onKeyDown:p(g,o,l),onMouseEnter:p(c,o,l),onMouseLeave:p(d,o,l),onMouseUp:p(f,o,l),onMouseDown:p(h,o,l),onTouchEnd:p(v,o,l),onTouchStart:p(y,o,l),onFocus:p(b,o,l)},x)}}]),t}(i.Component);d.defaultProps={tabIndex:-1},d.defaultProps={modifiers:{},modifiersStyles:{},empty:!1},t.default=d},16736(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModifiersUtils=t.LocaleUtils=t.DateUtils=t.DayPicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(22155),s=v(i),a=v(n(82402)),l=v(n(29012)),u=v(n(56674)),c=v(n(74002)),p=y(n(80857)),d=y(n(76913)),f=y(n(56395)),h=y(n(41233)),m=v(n(95130)),g=n(83370);function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}var b=t.DayPicker=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.dayPicker=null,n.showNextMonth=function(e){if(n.allowNextMonth()){var t=n.props.pagedNavigation?n.props.numberOfMonths:1,r=d.addMonths(n.state.currentMonth,t);n.showMonth(r,e)}},n.showPreviousMonth=function(e){if(n.allowPreviousMonth()){var t=n.props.pagedNavigation?n.props.numberOfMonths:1,r=d.addMonths(n.state.currentMonth,-t);n.showMonth(r,e)}},n.handleKeyDown=function(e){switch(e.persist(),e.keyCode){case g.LEFT:"rtl"===n.props.dir?n.showNextMonth():n.showPreviousMonth(),p.cancelEvent(e);break;case g.RIGHT:"rtl"===n.props.dir?n.showPreviousMonth():n.showNextMonth(),p.cancelEvent(e);break;case g.UP:n.showPreviousYear(),p.cancelEvent(e);break;case g.DOWN:n.showNextYear(),p.cancelEvent(e)}n.props.onKeyDown&&n.props.onKeyDown(e)},n.handleDayKeyDown=function(e,t,r){switch(r.persist(),r.keyCode){case g.LEFT:p.cancelEvent(r),"rtl"===n.props.dir?n.focusNextDay(r.target):n.focusPreviousDay(r.target);break;case g.RIGHT:p.cancelEvent(r),"rtl"===n.props.dir?n.focusPreviousDay(r.target):n.focusNextDay(r.target);break;case g.UP:p.cancelEvent(r),n.focusPreviousWeek(r.target);break;case g.DOWN:p.cancelEvent(r),n.focusNextWeek(r.target);break;case g.ENTER:case g.SPACE:p.cancelEvent(r),n.props.onDayClick&&n.handleDayClick(e,t,r)}n.props.onDayKeyDown&&n.props.onDayKeyDown(e,t,r)},n.handleDayClick=function(e,t,r){r.persist(),t[n.props.classNames.outside]&&n.props.enableOutsideDaysClick&&n.handleOutsideDayClick(e),n.props.onDayClick&&n.props.onDayClick(e,t,r)},n.handleTodayButtonClick=function(e){var t=new Date,r=new Date(t.getFullYear(),t.getMonth());n.showMonth(r),e.target.blur(),n.props.onTodayButtonClick&&(e.persist(),n.props.onTodayButtonClick(new Date(t.getFullYear(),t.getMonth(),t.getDate()),h.getModifiersForDay(t,n.props.modifiers),e))};var r=n.getCurrentMonthFromProps(e);return n.state={currentMonth:r},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidUpdate",value:function(e){if(e.month!==this.props.month&&!d.isSameMonth(e.month,this.props.month)){var t=this.getCurrentMonthFromProps(this.props);this.setState({currentMonth:t})}}},{key:"getCurrentMonthFromProps",value:function(e){var t=p.startOfMonth(e.month||e.initialMonth||new Date);if(e.pagedNavigation&&e.numberOfMonths>1&&e.fromMonth){var n=p.startOfMonth(e.fromMonth),r=p.getMonthsDiff(n,t);t=d.addMonths(n,Math.floor(r/e.numberOfMonths)*e.numberOfMonths)}else e.toMonth&&e.numberOfMonths>1&&p.getMonthsDiff(t,e.toMonth)<=0&&(t=d.addMonths(p.startOfMonth(e.toMonth),1-this.props.numberOfMonths));return t}},{key:"getNextNavigableMonth",value:function(){return d.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return d.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=d.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=d.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,r=t.toMonth;return!(!t.canChangeMonth||n&&p.getMonthsDiff(n,e)<0||r&&p.getMonthsDiff(r,e)>0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:p.startOfMonth(e)},function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)})}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=d.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=d.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focus",value:function(){this.wrapper.focus()}},{key:"focusFirstDayOfMonth",value:function(){p.getDayNodes(this.dayPicker,this.props.classNames)[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=p.getDayNodes(this.dayPicker,this.props.classNames);e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=p.getDayNodes(this.dayPicker,this.props.classNames),r=p.nodeListToArray(n).indexOf(e);-1!==r&&(0===r?this.showPreviousMonth(function(){return t.focusLastDayOfMonth()}):n[r-1].focus())}},{key:"focusNextDay",value:function(e){var t=this,n=p.getDayNodes(this.dayPicker,this.props.classNames),r=p.nodeListToArray(n).indexOf(e);-1!==r&&(r===n.length-1?this.showNextMonth(function(){return t.focusFirstDayOfMonth()}):n[r+1].focus())}},{key:"focusNextWeek",value:function(e){var t=this,n=p.getDayNodes(this.dayPicker,this.props.classNames),r=p.nodeListToArray(n).indexOf(e);r>n.length-8?this.showNextMonth(function(){var e=7-(n.length-r);p.getDayNodes(t.dayPicker,t.props.classNames)[e].focus()}):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=p.getDayNodes(this.dayPicker,this.props.classNames),r=p.nodeListToArray(n).indexOf(e);r<=6?this.showPreviousMonth(function(){var e=p.getDayNodes(t.dayPicker,t.props.classNames);e[e.length-7+r].focus()}):n[r-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=p.getMonthsDiff(t,e);r>0&&r>=n?this.showNextMonth():r<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,o=e.canChangeMonth,i=e.navbarElement,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!o)return null;var l={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:a.dir,labels:t,locale:n,localeUtils:r};return s.default.isValidElement(i)?s.default.cloneElement(i,l):s.default.createElement(i,l)}},{key:"renderMonths",value:function(){for(var e=[],t=p.getFirstDayOfWeekFromProps(this.props),n=0;n<this.props.numberOfMonths;n+=1){var o=d.addMonths(this.state.currentMonth,n);e.push(s.default.createElement(u.default,r({key:n},this.props,{month:o,firstDayOfWeek:t,onDayKeyDown:this.handleDayKeyDown,onDayClick:this.handleDayClick})))}return this.props.reverseMonths&&e.reverse(),e}},{key:"renderFooter",value:function(){return this.props.todayButton?s.default.createElement("div",{className:this.props.classNames.footer},this.renderTodayButton()):null}},{key:"renderTodayButton",value:function(){return s.default.createElement("button",{type:"button",tabIndex:0,className:this.props.classNames.todayButton,"aria-label":this.props.todayButton,onClick:this.handleTodayButtonClick},this.props.todayButton)}},{key:"render",value:function(){var e=this,t=this.props.classNames.container;return this.props.onDayClick||(t=t+" "+this.props.classNames.interactionDisabled),this.props.className&&(t=t+" "+this.props.className),s.default.createElement("div",r({},this.props.containerProps,{className:t,ref:function(t){return e.dayPicker=t},lang:this.props.locale}),s.default.createElement("div",{className:this.props.classNames.wrapper,ref:function(t){return e.wrapper=t},tabIndex:this.props.canChangeMonth&&void 0!==this.props.tabIndex?this.props.tabIndex:-1,onKeyDown:this.handleKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur},this.renderNavbar(),s.default.createElement("div",{className:this.props.classNames.months},this.renderMonths()),this.renderFooter()))}}]),t}(i.Component);b.defaultProps={classNames:m.default,tabIndex:0,numberOfMonths:1,labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},locale:"en",localeUtils:f,showOutsideDays:!1,enableOutsideDaysClick:!0,fixedWeeks:!1,canChangeMonth:!0,reverseMonths:!1,pagedNavigation:!1,showWeekNumbers:!1,showWeekDays:!0,renderDay:function(e){return e.getDate()},renderWeek:function(e){return e},weekdayElement:s.default.createElement(c.default,null),navbarElement:s.default.createElement(l.default,{classNames:m.default}),captionElement:s.default.createElement(a.default,{classNames:m.default})},b.VERSION="7.4.10",b.DateUtils=d,b.LocaleUtils=f,b.ModifiersUtils=h,t.DateUtils=d,t.LocaleUtils=f,t.ModifiersUtils=h,t.default=b},68258(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HIDE_TIMEOUT=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.OverlayComponent=d,t.defaultFormat=f,t.defaultParse=h;var i=c(n(22155)),s=c(n(16736)),a=n(76913),l=n(41233),u=n(83370);function c(e){return e&&e.__esModule?e:{default:e}}var p=t.HIDE_TIMEOUT=100;function d(e){e.input,e.selectedDay,e.month;var t=e.children,n=e.classNames,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["input","selectedDay","month","children","classNames"]);return i.default.createElement("div",o({className:n.overlayWrapper},r),i.default.createElement("div",{className:n.overlay},t))}function f(e){return(0,a.isDate)(e)?e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate():""}function h(e){if("string"==typeof e){var t=e.split("-");if(3===t.length){var n=parseInt(t[0],10),r=parseInt(t[1],10)-1,o=parseInt(t[2],10);if(!(isNaN(n)||String(n).length>4||isNaN(r)||isNaN(o)||o<=0||o>31||r<0||r>=12))return new Date(n,r,o,12,0,0,0)}}}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.input=null,n.daypicker=null,n.clickTimeout=null,n.hideTimeout=null,n.inputBlurTimeout=null,n.inputFocusTimeout=null,n.state=n.getInitialStateFromProps(e),n.state.showOverlay=e.showOverlay,n.hideAfterDayClick=n.hideAfterDayClick.bind(n),n.handleInputClick=n.handleInputClick.bind(n),n.handleInputFocus=n.handleInputFocus.bind(n),n.handleInputBlur=n.handleInputBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.handleInputKeyUp=n.handleInputKeyUp.bind(n),n.handleDayClick=n.handleDayClick.bind(n),n.handleMonthChange=n.handleMonthChange.bind(n),n.handleOverlayFocus=n.handleOverlayFocus.bind(n),n.handleOverlayBlur=n.handleOverlayBlur.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e){var t={},n=this.props,r=n.value,o=n.formatDate,i=n.format,s=n.dayPickerProps;r===e.value&&s.locale===e.dayPickerProps.locale&&i===e.format||((0,a.isDate)(r)?t.value=o(r,i,s.locale):t.value=r);var l=e.dayPickerProps.month;s.month&&s.month!==l&&!(0,a.isSameMonth)(s.month,l)&&(t.month=s.month),e.dayPickerProps.selectedDays!==s.selectedDays&&(t.selectedDays=s.selectedDays),Object.keys(t).length>0&&this.setState(t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.clickTimeout),clearTimeout(this.hideTimeout),clearTimeout(this.inputFocusTimeout),clearTimeout(this.inputBlurTimeout),clearTimeout(this.overlayBlurTimeout)}},{key:"getInitialMonthFromProps",value:function(e){var t=e.dayPickerProps,n=e.format,r=void 0;return e.value&&(r=(0,a.isDate)(e.value)?e.value:e.parseDate(e.value,n,t.locale)),t.initialMonth||t.month||r||new Date}},{key:"getInitialStateFromProps",value:function(e){var t=e.dayPickerProps,n=e.formatDate,r=e.format,o=e.typedValue,i=e.value;return e.value&&(0,a.isDate)(e.value)&&(i=n(e.value,r,t.locale)),{value:i,typedValue:o,month:this.getInitialMonthFromProps(e),selectedDays:t.selectedDays}}},{key:"getInput",value:function(){return this.input}},{key:"getDayPicker",value:function(){return this.daypicker}},{key:"updateState",value:function(e,t,n){var r=this,i=this.props,s=i.dayPickerProps,a=i.onDayChange;this.setState({month:e,value:t,typedValue:""},function(){if(n&&n(),a){var t=o({disabled:s.disabledDays,selected:s.selectedDays},s.modifiers),i=(0,l.getModifiersForDay)(e,t).reduce(function(e,t){return o({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))},{});a(e,i,r)}})}},{key:"showDayPicker",value:function(){var e=this,t=this.props,n=t.parseDate,r=t.format,o=t.dayPickerProps,i=this.state,s=i.value;if(!i.showOverlay){var a=s?n(s,r,o.locale):this.getInitialMonthFromProps(this.props);this.setState(function(e){return{showOverlay:!0,month:a||e.month}},function(){e.props.onDayPickerShow&&e.props.onDayPickerShow()})}}},{key:"hideDayPicker",value:function(){var e=this;!1!==this.state.showOverlay&&this.setState({showOverlay:!1},function(){e.props.onDayPickerHide&&e.props.onDayPickerHide()})}},{key:"hideAfterDayClick",value:function(){var e=this;this.props.hideOnDayClick&&(this.hideTimeout=setTimeout(function(){e.overlayHasFocus=!1,e.hideDayPicker()},p))}},{key:"handleInputClick",value:function(e){this.showDayPicker(),this.props.inputProps.onClick&&(e.persist(),this.props.inputProps.onClick(e))}},{key:"handleInputFocus",value:function(e){var t=this;this.showDayPicker(),this.inputFocusTimeout=setTimeout(function(){t.overlayHasFocus=!1},2),this.props.inputProps.onFocus&&(e.persist(),this.props.inputProps.onFocus(e))}},{key:"handleInputBlur",value:function(e){var t=this;this.inputBlurTimeout=setTimeout(function(){t.overlayHasFocus||t.hideDayPicker()},1),this.props.inputProps.onBlur&&(e.persist(),this.props.inputProps.onBlur(e))}},{key:"handleOverlayFocus",value:function(e){e.preventDefault(),this.overlayHasFocus=!0,this.props.keepFocus&&this.input&&"function"==typeof this.input.focus&&this.input.focus()}},{key:"handleOverlayBlur",value:function(){var e=this;this.overlayBlurTimeout=setTimeout(function(){e.overlayHasFocus=!1},3)}},{key:"handleInputChange",value:function(e){var t=this.props,n=t.dayPickerProps,r=t.format,o=t.inputProps,i=t.onDayChange,s=t.parseDate;o.onChange&&(e.persist(),o.onChange(e));var a=e.target.value;if(""===a.trim())return this.setState({value:a,typedValue:""}),void(i&&i(void 0,{},this));var l=s(a,r,n.locale);if(!l)return this.setState({value:a,typedValue:a}),void(i&&i(void 0,{},this));this.updateState(l,a)}},{key:"handleInputKeyDown",value:function(e){e.keyCode===u.TAB?this.hideDayPicker():this.showDayPicker(),this.props.inputProps.onKeyDown&&(e.persist(),this.props.inputProps.onKeyDown(e))}},{key:"handleInputKeyUp",value:function(e){e.keyCode===u.ESC?this.hideDayPicker():this.showDayPicker(),this.props.inputProps.onKeyUp&&(e.persist(),this.props.inputProps.onKeyUp(e))}},{key:"handleMonthChange",value:function(e){var t=this;this.setState({month:e},function(){t.props.dayPickerProps&&t.props.dayPickerProps.onMonthChange&&t.props.dayPickerProps.onMonthChange(e)})}},{key:"handleDayClick",value:function(e,t,n){var r=this,o=this.props,i=o.clickUnselectsDay,s=o.dayPickerProps,a=o.onDayChange,l=o.formatDate,u=o.format;if(s.onDayClick&&s.onDayClick(e,t,n),!(t.disabled||s&&s.classNames&&t[s.classNames.disabled])){if(t.selected&&i){var c=this.state.selectedDays;if(Array.isArray(c)){var p=(c=c.slice(0)).indexOf(e);c.splice(p,1)}else c&&(c=null);return this.setState({value:"",typedValue:"",selectedDays:c},this.hideAfterDayClick),void(a&&a(void 0,t,this))}var d=l(e,u,s.locale);this.setState({value:d,typedValue:"",month:e},function(){a&&a(e,t,r),r.hideAfterDayClick()})}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.classNames,r=t.dayPickerProps,a=t.parseDate,l=t.formatDate,u=t.format,c=this.state,p=c.selectedDays,d=c.value,f=void 0;if(!p&&d){var h=a(d,u,r.locale);h&&(f=h)}else p&&(f=p);var m=void 0;r.todayButton&&(m=function(){return e.updateState(new Date,l(new Date,u,r.locale),e.hideAfterDayClick)});var g=this.props.overlayComponent;return i.default.createElement(g,{classNames:n,month:this.state.month,selectedDay:f,input:this.input,tabIndex:0,onFocus:this.handleOverlayFocus,onBlur:this.handleOverlayBlur},i.default.createElement(s.default,o({ref:function(t){return e.daypicker=t},onTodayButtonClick:m},r,{month:this.state.month,selectedDays:f,onDayClick:this.handleDayClick,onMonthChange:this.handleMonthChange})))}},{key:"render",value:function(){var e=this,t=this.props.component,n=this.props.inputProps;return i.default.createElement("div",{className:this.props.classNames.container,style:this.props.style},i.default.createElement(t,o({ref:function(t){return e.input=t},placeholder:this.props.placeholder},n,{value:this.state.value||this.state.typedValue,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onClick:n.disabled?void 0:this.handleInputClick})),this.state.showOverlay&&this.renderOverlay())}}]),t}(i.default.Component);m.defaultProps={dayPickerProps:{},value:"",typedValue:"",placeholder:"YYYY-M-D",format:"L",formatDate:f,parseDate:h,showOverlay:!1,hideOnDayClick:!0,clickUnselectsDay:!1,keepFocus:!0,component:"input",inputProps:{},overlayComponent:d,classNames:{container:"DayPickerInput",overlayWrapper:"DayPickerInput-OverlayWrapper",overlay:"DayPickerInput-Overlay"}},t.default=m},80857(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.cancelEvent=function(e){e.preventDefault(),e.stopPropagation()},t.getFirstDayOfMonth=l,t.getDaysInMonth=u,t.getModifiersFromProps=function(e){var t=r({},e.modifiers);return e.selectedDays&&(t[e.classNames.selected]=e.selectedDays),e.disabledDays&&(t[e.classNames.disabled]=e.disabledDays),t},t.getFirstDayOfWeekFromProps=function(e){var t=e.firstDayOfWeek,n=e.locale,r=void 0===n?"en":n,o=e.localeUtils,i=void 0===o?{}:o;return isNaN(t)?i.getFirstDayOfWeek?i.getFirstDayOfWeek(r):0:t},t.isRangeOfDates=function(e){return!!(e&&e.from&&e.to)},t.getMonthsDiff=function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},t.getWeekArray=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.getFirstDayOfWeek)(),n=arguments[2],r=u(e),o=[],a=[],l=[],c=1;c<=r;c+=1)o.push(new Date(e.getFullYear(),e.getMonth(),c,12));o.forEach(function(e){a.length>0&&e.getDay()===t&&(l.push(a),a=[]),a.push(e),o.indexOf(e)===o.length-1&&l.push(a)});for(var p=l[0],d=7-p.length;d>0;d-=1){var f=(0,i.clone)(p[0]);f.setDate(p[0].getDate()-1),p.unshift(f)}for(var h=l[l.length-1],m=h.length;m<7;m+=1){var g=(0,i.clone)(h[h.length-1]);g.setDate(h[h.length-1].getDate()+1),h.push(g)}if(n&&l.length<6)for(var y=void 0,v=l.length;v<6;v+=1){for(var b=(y=l[l.length-1])[y.length-1],w=[],C=0;C<7;C+=1){var _=(0,i.clone)(b);_.setDate(b.getDate()+C+1),w.push(_)}l.push(w)}return l},t.startOfMonth=function(e){var t=(0,i.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t},t.getDayNodes=function(e,t){var n=void 0;n=t===a.default?t.day+"--"+t.outside:""+t.outside;var r="."+t.day.replace(/ /g,".")+":not(."+n.replace(/ /g,".")+")";return e.querySelectorAll(r)},t.nodeListToArray=function(e){return Array.prototype.slice.call(e,0)},t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o,i=n(76913),s=n(56395),a=(o=n(95130))&&o.__esModule?o:{default:o};function l(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function u(e){var t=l(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}},56395(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDay=i,t.formatMonthTitle=s,t.formatWeekdayShort=a,t.formatWeekdayLong=l,t.getFirstDayOfWeek=u,t.getMonths=c;var n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["January","February","March","April","May","June","July","August","September","October","November","December"];function i(e){return e.toDateString()}function s(e){return o[e.getMonth()]+" "+e.getFullYear()}function a(e){return r[e]}function l(e){return n[e]}function u(){return 0}function c(){return o}t.default={formatDay:i,formatMonthTitle:s,formatWeekdayShort:a,formatWeekdayLong:l,getFirstDayOfWeek:u,getMonths:c}},41233(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dayMatchesModifier=i,t.getModifiersForDay=s;var r=n(76913),o=n(80857);function i(e,t){return!!t&&(Array.isArray(t)?t:[t]).some(function(t){return!!t&&(t instanceof Date?(0,r.isSameDay)(e,t):(0,o.isRangeOfDates)(t)?(0,r.isDayInRange)(e,t):t.after&&t.before&&(0,r.isDayAfter)(t.before,t.after)?(0,r.isDayAfter)(e,t.after)&&(0,r.isDayBefore)(e,t.before):t.after&&t.before&&((0,r.isDayAfter)(t.after,t.before)||(0,r.isSameDay)(t.after,t.before))?(0,r.isDayAfter)(e,t.after)||(0,r.isDayBefore)(e,t.before):t.after?(0,r.isDayAfter)(e,t.after):t.before?(0,r.isDayBefore)(e,t.before):t.daysOfWeek?t.daysOfWeek.some(function(t){return e.getDay()===t}):"function"==typeof t&&t(e))})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce(function(n,r){var o=t[r];return i(e,o)&&n.push(r),n},[])}t.default={dayMatchesModifier:i,getModifiersForDay:s}},56674(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(22155),i=f(o),s=f(n(8529)),a=f(n(48090)),l=n(83370),u=d(n(41233)),c=d(n(80857)),p=d(n(76913));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.renderDay=function(e){var t=r.props.month.getMonth(),n=c.getModifiersFromProps(r.props),o=u.getModifiersForDay(e,n);p.isSameDay(e,new Date)&&!Object.prototype.hasOwnProperty.call(n,r.props.classNames.today)&&o.push(r.props.classNames.today),e.getMonth()!==t&&o.push(r.props.classNames.outside);var s=e.getMonth()!==t,l=-1;r.props.onDayClick&&!s&&1===e.getDate()&&(l=r.props.tabIndex);var d=""+e.getFullYear()+e.getMonth()+e.getDate(),f={};return o.forEach(function(e){f[e]=!0}),i.default.createElement(a.default,{key:(s?"outside-":"")+d,classNames:r.props.classNames,day:e,modifiers:f,modifiersStyles:r.props.modifiersStyles,empty:s&&!r.props.showOutsideDays&&!r.props.fixedWeeks,tabIndex:l,ariaLabel:r.props.localeUtils.formatDay(e,r.props.locale),ariaDisabled:s||o.indexOf(r.props.classNames.disabled)>-1,ariaSelected:o.indexOf(r.props.classNames.selected)>-1,onClick:r.props.onDayClick,onFocus:r.props.onDayFocus,onKeyDown:r.props.onDayKeyDown,onMouseEnter:r.props.onDayMouseEnter,onMouseLeave:r.props.onDayMouseLeave,onMouseDown:r.props.onDayMouseDown,onMouseUp:r.props.onDayMouseUp,onTouchEnd:r.props.onDayTouchEnd,onTouchStart:r.props.onDayTouchStart},r.props.renderDay(e,f))},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.classNames,r=t.month,o=t.months,a=t.fixedWeeks,u=t.captionElement,d=t.weekdayElement,f=t.locale,h=t.localeUtils,m=t.weekdaysLong,g=t.weekdaysShort,y=t.firstDayOfWeek,v=t.onCaptionClick,b=t.showWeekNumbers,w=t.showWeekDays,C=t.onWeekClick,_={date:r,classNames:n,months:o,localeUtils:h,locale:f,onClick:v?function(e){return v(r,e)}:void 0},x=i.default.isValidElement(u)?i.default.cloneElement(u,_):i.default.createElement(u,_),E=c.getWeekArray(r,y,a);return i.default.createElement("div",{className:n.month,role:"grid"},x,w&&i.default.createElement(s.default,{classNames:n,weekdaysShort:g,weekdaysLong:m,firstDayOfWeek:y,showWeekNumbers:b,locale:f,localeUtils:h,weekdayElement:d}),i.default.createElement("div",{className:n.body,role:"rowgroup"},E.map(function(t){var o=void 0;return b&&(o=p.getWeekNumber(t[6])),i.default.createElement("div",{key:t[0].getTime(),className:n.week,role:"row"},b&&i.default.createElement("div",{className:n.weekNumber,tabIndex:C?0:-1,role:"gridcell",onClick:C?function(e){return C(o,t,e)}:void 0,onKeyUp:C?function(e){return e.keyCode===l.ENTER&&C(o,t,e)}:void 0},e.props.renderWeek(o,t,r)),t.map(e.renderDay))})))}}]),t}(o.Component);t.default=m},29012(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(22155),i=l(o),s=l(n(95130)),a=n(83370);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleNextClick=function(){r.props.onNextClick&&r.props.onNextClick()},r.handlePreviousClick=function(){r.props.onPreviousClick&&r.props.onPreviousClick()},r.handleNextKeyDown=function(e){e.keyCode!==a.ENTER&&e.keyCode!==a.SPACE||(e.preventDefault(),r.handleNextClick())},r.handlePreviousKeyDown=function(e){e.keyCode!==a.ENTER&&e.keyCode!==a.SPACE||(e.preventDefault(),r.handlePreviousClick())},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return e.labels!==this.props.labels||e.dir!==this.props.dir||this.props.showPreviousButton!==e.showPreviousButton||this.props.showNextButton!==e.showNextButton}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.className,r=e.showPreviousButton,o=e.showNextButton,s=e.labels,a=e.dir,l=void 0,u=void 0,c=void 0,p=void 0,d=void 0,f=void 0;"rtl"===a?(l=this.handleNextClick,u=this.handlePreviousClick,c=this.handleNextKeyDown,p=this.handlePreviousKeyDown,f=r,d=o):(l=this.handlePreviousClick,u=this.handleNextClick,c=this.handlePreviousKeyDown,p=this.handleNextKeyDown,f=o,d=r);var h=d?t.navButtonPrev:t.navButtonPrev+" "+t.navButtonInteractionDisabled,m=f?t.navButtonNext:t.navButtonNext+" "+t.navButtonInteractionDisabled,g=i.default.createElement("span",{tabIndex:"0",role:"button","aria-label":s.previousMonth,key:"previous",className:h,onKeyDown:d?c:void 0,onClick:d?l:void 0}),y=i.default.createElement("span",{tabIndex:"0",role:"button","aria-label":s.nextMonth,key:"right",className:m,onKeyDown:f?p:void 0,onClick:f?u:void 0});return i.default.createElement("div",{className:n||t.navBar},"rtl"===a?[y,g]:[g,y])}}]),t}(o.Component);c.defaultProps={classNames:s.default,dir:"ltr",labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},showPreviousButton:!0,showNextButton:!0},t.default=c},74002(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(22155),s=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){var e,t=this.props,n=t.weekday,r=t.className,o=t.weekdaysLong,i=t.weekdaysShort,a=t.localeUtils,l=t.locale;e=o?o[n]:a.formatWeekdayLong(n,l);var u;return u=i?i[n]:a.formatWeekdayShort(n,l),s.default.createElement("div",{className:r,role:"columnheader"},s.default.createElement("abbr",{title:e},u))}}]),t}(i.Component);t.default=a},8529(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(22155),s=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){for(var e=this.props,t=e.classNames,n=e.firstDayOfWeek,r=e.showWeekNumbers,o=e.weekdaysLong,i=e.weekdaysShort,a=e.locale,l=e.localeUtils,u=e.weekdayElement,c=[],p=0;p<7;p+=1){var d=(p+n)%7,f={key:p,className:t.weekday,weekday:d,weekdaysLong:o,weekdaysShort:i,localeUtils:l,locale:a},h=s.default.isValidElement(u)?s.default.cloneElement(u,f):s.default.createElement(u,f);c.push(h)}return s.default.createElement("div",{className:t.weekdays,role:"rowgroup"},s.default.createElement("div",{className:t.weekdaysRow,role:"row"},r&&s.default.createElement("div",{className:t.weekday}),c))}}]),t}(i.Component);t.default=a},12137(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDay=i,t.formatMonthTitle=s,t.formatWeekdayShort=a,t.formatWeekdayLong=l,t.getFirstDayOfWeek=u,t.getMonths=c,t.formatDate=p,t.parseDate=d;var r,o=(r=n(5866))&&r.__esModule?r:{default:r};function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return(0,o.default)(e).locale(t).format("ddd ll")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return(0,o.default)(e).locale(t).format("MMMM YYYY")}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return o.default.localeData(t).weekdaysMin()[e]}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return o.default.localeData(t).weekdays()[e]}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return o.default.localeData(e).firstDayOfWeek()}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return o.default.localeData(e).months()}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"L",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return(0,o.default)(e).locale(n).format(Array.isArray(t)?t[0]:t)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"L",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",r=(0,o.default)(e,t,n,!0);if(r.isValid())return r.toDate()}t.default={formatDay:i,formatMonthTitle:s,formatWeekdayShort:a,formatWeekdayLong:l,getFirstDayOfWeek:u,getMonths:c,formatDate:p,parseDate:d}},95130(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={container:"DayPicker",wrapper:"DayPicker-wrapper",interactionDisabled:"DayPicker--interactionDisabled",months:"DayPicker-Months",month:"DayPicker-Month",navBar:"DayPicker-NavBar",navButtonPrev:"DayPicker-NavButton DayPicker-NavButton--prev",navButtonNext:"DayPicker-NavButton DayPicker-NavButton--next",navButtonInteractionDisabled:"DayPicker-NavButton--interactionDisabled",caption:"DayPicker-Caption",weekdays:"DayPicker-Weekdays",weekdaysRow:"DayPicker-WeekdaysRow",weekday:"DayPicker-Weekday",body:"DayPicker-Body",week:"DayPicker-Week",weekNumber:"DayPicker-WeekNumber",day:"DayPicker-Day",footer:"DayPicker-Footer",todayButton:"DayPicker-TodayButton",today:"today",selected:"selected",disabled:"disabled",outside:"outside"}},83370(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEFT=37,t.UP=38,t.RIGHT=39,t.DOWN=40,t.ENTER=13,t.SPACE=32,t.ESC=27,t.TAB=9},86704(e,t,n){e.exports=n(12137)},68630(e,t,n){"use strict";var r=n(22155);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},l={};function u(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function c(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new c(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new c(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new c(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){p[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new c(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new c(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new c(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function f(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(d,f);p[t]=new c(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(d,f);p[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(d,f);p[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)});var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(h).forEach(function(e){m.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h[t]=h[e]})});var g=/["'&<>]/;function y(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var v=/([A-Z])/g,b=/^ms-/,w=Array.isArray;function C(e,t){return{insertionMode:e,selectedValue:t}}var _=new Map;function x(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(i.call(n,r)){var s=n[r];if(null!=s&&"boolean"!=typeof s&&""!==s){if(0===r.indexOf("--")){var a=y(r);s=y((""+s).trim())}else{a=r;var l=_.get(a);void 0!==l||(l=y(a.replace(v,"-$1").toLowerCase().replace(b,"-ms-")),_.set(a,l)),a=l,s="number"==typeof s?0===s||i.call(h,r)?""+s:s+"px":y((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function E(e,t,n,r){switch(n){case"style":return void x(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=p.hasOwnProperty(n)?p[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',y(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',y(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',y(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',y(r),'"')}}else if(u(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',y(r),'"')}}function S(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function P(e,t,n,r){e.push(k(n));var o,s=n=null;for(o in t)if(i.call(t,o)){var a=t[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:E(e,r,o,a)}}return e.push(">"),S(e,s,n),"string"==typeof n?(e.push(y(n)),null):n}var O=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,T=new Map;function k(e){var t=T.get(e);if(void 0===t){if(!O.test(e))throw Error(o(65,e));t="<"+e,T.set(e,t)}return t}function A(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var I=/[<\u2028\u2029]/g;function R(e){return JSON.stringify(e).replace(I,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function M(e,t,n,r){return n.generateStaticMarkup?(e.push(y(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(y(t)),e=!0),e)}var D=Object.assign,L=Symbol.for("react.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),B=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),Q=Symbol.for("react.scope"),G=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),Z=Symbol.for("react.default_value"),K=Symbol.iterator;function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case V:return"Fragment";case N:return"Portal";case F:return"Profiler";case j:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case H:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case W:return null!==(t=e.displayName||null)?t:X(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}var J={};function ee(e,t){if(!(e=e.contextTypes))return J;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ie(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ne(e,t):ie(e,t)}function se(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ne(e,n):se(e,n),t.context._currentValue2=t.value}function ae(e){var t=te;t!==e&&(null===t?oe(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ie(t,e):se(t,e),te=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue2:r,"function"==typeof(s=t.getDerivedStateFromProps)&&(o=null==(s=s(n,o))?o:D({},o,s),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"==typeof a?a.call(e,i,n,r):a)&&(o?(o=!1,i=D({},i,a)):D(i,a))}e.state=i}else i.queue=null}var ce={id:1,overflow:""};function pe(e,t,n){var r=e.id;e=e.overflow;var o=32-de(r)-1;r&=~(1<<o),n+=1;var i=32-de(t)+o;if(30<i){var s=o-o%5;return i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,{id:1<<32-de(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var de=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(fe(e)/he|0)|0},fe=Math.log,he=Math.LN2,me="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,ye=null,ve=null,be=null,we=!1,Ce=!1,_e=0,xe=null,Ee=0;function Se(){if(null===ge)throw Error(o(321));return ge}function Pe(){if(0<Ee)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Oe(){return null===be?null===ve?(we=!1,ve=be=Pe()):(we=!0,be=ve):null===be.next?(we=!1,be=be.next=Pe()):(we=!0,be=be.next),be}function Te(){ye=ge=null,Ce=!1,ve=null,Ee=0,be=xe=null}function ke(e,t){return"function"==typeof t?t(e):t}function Ae(e,t,n){if(ge=Se(),be=Oe(),we){var r=be.queue;if(t=r.dispatch,null!==xe&&void 0!==(n=xe.get(r))){xe.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===ke?"function"==typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Re.bind(null,ge,e),[be.memoizedState,e]}function Ie(e,t){if(ge=Se(),t=void 0===t?null:t,null!==(be=Oe())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!me(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Re(e,t,n){if(25<=Ee)throw Error(o(301));if(e===ge)if(Ce=!0,e={action:n,next:null},null===xe&&(xe=new Map),void 0===(n=xe.get(t)))xe.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Me(){throw Error(o(394))}function De(){}var Le={readContext:function(e){return e._currentValue2},useContext:function(e){return Se(),e._currentValue2},useMemo:Ie,useReducer:Ae,useRef:function(e){ge=Se();var t=(be=Oe()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Ae(ke,e)},useInsertionEffect:De,useLayoutEffect:function(){},useCallback:function(e,t){return Ie(function(){return e},t)},useImperativeHandle:De,useEffect:De,useDebugValue:De,useDeferredValue:function(e){return Se(),e},useTransition:function(){return Se(),[!1,Me]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-de(e)-1)).toString(32)+t;var n=Ne;if(null===n)throw Error(o(404));return t=_e++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Se(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Ne=null,Ve=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function je(e){return console.error(e),null}function Fe(){}function ze(e,t,n,r,o,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function Be(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function He(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ue(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function qe(e,t,n,r,o){for(ge={},ye=t,_e=0,e=n(r,o);Ce;)Ce=!1,_e=0,Ee+=1,be=null,e=n(r,o);return Te(),e}function We(e,t,n,r){var i=n.render(),s=r.childContextTypes;if(null!=s){var a=t.legacyContext;if("function"!=typeof n.getChildContext)r=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(o(108,X(r)||"Unknown",l));r=D({},a,n)}t.legacyContext=r,Ge(e,t,i),t.legacyContext=a}else Ge(e,t,i)}function $e(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Qe(e,t,n,s,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=ee(n,t.legacyContext);var l=n.contextType;ue(l=new n(s,"object"==typeof l&&null!==l?l._currentValue2:a),n,s,a),We(e,t,l,n)}else{a=qe(e,t,n,s,l=ee(n,t.legacyContext));var c=0!==_e;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)ue(a,n,s,l),We(e,t,a,n);else if(c){s=t.treeContext,t.treeContext=pe(s,1,0);try{Ge(e,t,a)}finally{t.treeContext=s}}else Ge(e,t,a)}else{if("string"!=typeof n){switch(n){case Y:case G:case j:case F:case V:case q:return void Ge(e,t,s.children);case Q:throw Error(o(343));case U:e:{n=t.blockedBoundary,a=t.blockedSegment,l=s.fallback,s=s.children;var p={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c=new Set,errorDigest:null},d=Be(0,a.chunks.length,p,a.formatContext,!1,!1);a.children.push(d),a.lastPushedText=!1;var f=Be(0,0,null,a.formatContext,!1,!1);f.parentFlushed=!0,t.blockedBoundary=p,t.blockedSegment=f;try{if(Ze(e,t,s),e.responseState.generateStaticMarkup||f.lastPushedText&&f.textEmbedded&&f.chunks.push("\x3c!-- --\x3e"),f.status=1,Je(p,f),0===p.pendingTasks)break e}catch(t){f.status=4,p.forceClientRender=!0,p.errorDigest=He(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=ze(e,l,n,d,c,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case H:if(s=qe(e,t,n.render,s,a),0!==_e){n=t.treeContext,t.treeContext=pe(n,1,0);try{Ge(e,t,s)}finally{t.treeContext=n}}else Ge(e,t,s);return;case W:return void Qe(e,t,n=n.type,s=$e(n,s),a);case z:if(a=s.children,n=n._context,s=s.value,l=n._currentValue2,n._currentValue2=s,te=s={parent:c=te,depth:null===c?0:c.depth+1,context:n,parentValue:l,value:s},t.context=s,Ge(e,t,a),null===(e=te))throw Error(o(403));return s=e.parentValue,e.context._currentValue2=s===Z?e.context._defaultValue:s,e=te=e.parent,void(t.context=e);case B:return void Ge(e,t,s=(s=s.children)(n._currentValue2));case $:return void Qe(e,t,n=(a=n._init)(n._payload),s=$e(n,s),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(l=function(e,t,n,s,a){switch(t){case"select":e.push(k("select"));var l=null,c=null;for(h in n)if(i.call(n,h)){var p=n[h];if(null!=p)switch(h){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"defaultValue":case"value":break;default:E(e,s,h,p)}}return e.push(">"),S(e,c,l),l;case"option":c=a.selectedValue,e.push(k("option"));var d=p=null,f=null,h=null;for(l in n)if(i.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":p=m;break;case"selected":f=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":d=m;default:E(e,s,l,m)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(p),w(c)){for(s=0;s<c.length;s++)if(""+c[s]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else f&&e.push(' selected=""');return e.push(">"),S(e,h,p),p;case"textarea":for(p in e.push(k("textarea")),h=c=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":h=d;break;case"value":l=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:E(e,s,p,d)}if(null===l&&null!==c&&(l=c),e.push(">"),null!=h){if(null!=l)throw Error(o(92));if(w(h)&&1<h.length)throw Error(o(93));l=""+h}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(y(""+l)),null;case"input":for(c in e.push(k("input")),d=h=p=l=null,n)if(i.call(n,c)&&null!=(f=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":d=f;break;case"defaultValue":p=f;break;case"checked":h=f;break;case"value":l=f;break;default:E(e,s,c,f)}return null!==h?E(e,s,"checked",h):null!==d&&E(e,s,"checked",d),null!==l?E(e,s,"value",l):null!==p&&E(e,s,"value",p),e.push("/>"),null;case"menuitem":for(var g in e.push(k("menuitem")),n)if(i.call(n,g)&&null!=(l=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:E(e,s,g,l)}return e.push(">"),null;case"title":for(m in e.push(k("title")),l=null,n)if(i.call(n,m)&&null!=(c=n[m]))switch(m){case"children":l=c;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:E(e,s,m,c)}return e.push(">"),l;case"listing":case"pre":for(d in e.push(k(t)),c=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;default:E(e,s,d,p)}if(e.push(">"),null!=c){if(null!=l)throw Error(o(60));if("object"!=typeof c||!("__html"in c))throw Error(o(61));null!=(n=c.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(k(t)),n)if(i.call(n,v)&&null!=(l=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:E(e,s,v,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return P(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),P(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return P(e,n,t,s);for(f in e.push(k(t)),c=l=null,n)if(i.call(n,f)&&null!=(p=n[f]))switch(f){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"style":x(e,s,p);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(f)&&"function"!=typeof p&&"symbol"!=typeof p&&e.push(" ",f,'="',y(p),'"')}return e.push(">"),S(e,c,l),l}}((a=t.blockedSegment).chunks,n,s,e.responseState,a.formatContext),a.lastPushedText=!1,c=a.formatContext,a.formatContext=function(e,t,n){switch(t){case"select":return C(1,null!=n.value?n.value:n.defaultValue);case"svg":return C(2,null);case"math":return C(3,null);case"foreignObject":return C(1,null);case"table":return C(4,null);case"thead":case"tbody":case"tfoot":return C(5,null);case"colgroup":return C(7,null);case"tr":return C(6,null)}return 4<=e.insertionMode||0===e.insertionMode?C(1,null):e}(c,n,s),Ze(e,t,l),a.formatContext=c,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push("</",n,">")}a.lastPushedText=!1}}function Ge(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case L:return void Qe(e,t,n.type,n.props,n.ref);case N:throw Error(o(257));case $:var r=n._init;return void Ge(e,t,n=r(n._payload))}if(w(n))return void Ye(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=K&&n[K]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);Ye(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=M(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=M(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ye(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=pe(i,r,o);try{Ze(e,t,n[o])}finally{t.treeContext=i}}}function Ze(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Ge(e,t,n)}catch(l){if(Te(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,ae(i),l;n=l;var s=t.blockedSegment,a=Be(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=ze(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,ae(i)}}function Ke(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Xe(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Xe(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Je(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Je(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Fe,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Je(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ke,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Je(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Ve.current;Ve.current=Le;var r=Ne;Ne=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(0===l.status){ae(s.context);try{Ge(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,et(a,s.blockedBoundary,l)}catch(e){if(Te(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var u=s.ping;e.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=e,d=He(a,p);null===c?Ue(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks&&(0,a.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&at(e,e.destination)}catch(t){He(e,t),Ue(e,t)}finally{Ne=r,Ve.current=n,n===Le&&ae(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;r=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(i=n[a];s<i.index;s++)t.push(r[s]);i=rt(e,t,i)}for(;s<r.length-1;s++)t.push(r[s]);return s<r.length&&(i=t.push(r[s])),i;default:throw Error(o(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=y(r),t.push(r),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),r=r.id=i,A(t,e.responseState,r),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),A(t,e.responseState,r.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function it(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)st(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function st(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function at(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var i,s=e.clientRenderedBoundaries;for(i=0;i<s.length;i++){var a=s[i];r=t;var l=e.responseState,u=a.id,c=a.errorDigest,p=a.errorMessage,d=a.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===u)throw Error(o(395));if(r.push(u),r.push('"'),c||p||d){r.push(",");var f=R(c||"");r.push(f)}if(p||d){r.push(",");var h=R(p||"");r.push(h)}if(d){r.push(",");var m=R(d);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var g=e.completedBoundaries;for(i=0;i<g.length;i++)if(!it(e,t,g[i]))return e.destination=null,i++,void g.splice(0,i);g.splice(0,i);var y=e.partialBoundaries;for(i=0;i<y.length;i++){var v=y[i];e:{s=e,a=t;var b=v.completedSegments;for(l=0;l<b.length;l++)if(!st(s,a,v,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,i++,void y.splice(0,i)}y.splice(0,i);var C=e.completedBoundaries;for(i=0;i<C.length;i++)if(!it(e,t,C[i]))return e.destination=null,i++,void C.splice(0,i);C.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Xe(n,e,t)}),n.clear(),null!==e.destination&&at(e,e.destination)}catch(t){He(e,t),Ue(e,t)}}function ut(){}function ct(e,t,n,r){var i=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){i=!0,s=e}},u=!1;if(e=function(e,t,n,r,o,i,s){var a=[],l=new Set;return(n=Be(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:a,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?je:o,onAllReady:Fe,onShellReady:void 0===s?Fe:s,onShellError:Fe,onFatalError:Fe},0,null,n,!1,!1)).parentFlushed=!0,e=ze(t,e,null,n,l,J,null,ce),a.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,0,function(){u=!0}),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{at(e,l)}catch(t){He(e,t),Ue(e,t)}}if(i)throw s;if(!u)throw Error(o(426));return a}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ct(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return ct(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},70374(e,t,n){"use strict";var r=n(22155);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=new Uint8Array(512),s=0),e.enqueue(t);else{var n=i.length-s;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),s),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),s=0),i.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function u(e){i&&0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=null,s=0)}var c=new TextEncoder;function p(e){return c.encode(e)}function d(e){return c.encode(e)}function f(e,t){"function"==typeof e.error?e.error(t):e.close()}var h=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},y={};function v(e){return!!h.call(y,e)||!h.call(g,e)&&(m.test(e)?y[e]=!0:(g[e]=!0,!1))}function b(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];w[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new b(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){w[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){w[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){w[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){w[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){w[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C,_);w[t]=new b(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C,_);w[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C,_);w[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});var x={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E=["Webkit","ms","Moz","O"];Object.keys(x).forEach(function(e){E.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),x[t]=x[e]})});var S=/["'&<>]/;function P(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=S.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var O=/([A-Z])/g,T=/^ms-/,k=Array.isArray,A=d("<script>"),I=d("<\/script>"),R=d('<script src="'),M=d('<script type="module" src="'),D=d('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function N(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function V(e,t){return{insertionMode:e,selectedValue:t}}var j=d("\x3c!-- --\x3e");function F(e,t,n,r){return""===t?r:(r&&e.push(j),e.push(p(P(t))),!0)}var z=new Map,B=d(' style="'),H=d(":"),U=d(";");function q(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(h.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var s=p(P(r));i=p(P((""+i).trim()))}else{s=r;var a=z.get(s);void 0!==a||(a=d(P(s.replace(O,"-$1").toLowerCase().replace(T,"-ms-"))),z.set(s,a)),s=a,i="number"==typeof i?0===i||h.call(x,r)?p(""+i):p(i+"px"):p(P((""+i).trim()))}t?(t=!1,e.push(B,s,H,i)):e.push(U,s,H,i)}}t||e.push(Q)}var W=d(" "),$=d('="'),Q=d('"'),G=d('=""');function Y(e,t,n,r){switch(n){case"style":return void q(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=p(t.attributeName),t.type){case 3:r&&e.push(W,n,G);break;case 4:!0===r?e.push(W,n,G):!1!==r&&e.push(W,n,$,p(P(r)),Q);break;case 5:isNaN(r)||e.push(W,n,$,p(P(r)),Q);break;case 6:!isNaN(r)&&1<=r&&e.push(W,n,$,p(P(r)),Q);break;default:t.sanitizeURL&&(r=""+r),e.push(W,n,$,p(P(r)),Q)}}else if(v(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(W,p(n),$,p(P(r)),Q)}}var Z=d(">"),K=d("/>");function X(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(p(""+t))}}var J=d(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,i=n=null;for(o in t)if(h.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:Y(e,r,o,s)}}return e.push(Z),X(e,i,n),"string"==typeof n?(e.push(p(P(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=d("<"+e),re.set(e,t)}return t}var ie=d("<!DOCTYPE html>");var se=d("</"),ae=d(">"),le=d('<template id="'),ue=d('"></template>'),ce=d("\x3c!--$--\x3e"),pe=d('\x3c!--$?--\x3e<template id="'),de=d('"></template>'),fe=d("\x3c!--$!--\x3e"),he=d("\x3c!--/$--\x3e"),me=d("<template"),ge=d('"'),ye=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var ve=d("></template>");function be(e,t,n){if(a(e,pe),null===n)throw Error(o(395));return a(e,n),l(e,de)}var we=d('<div hidden id="'),Ce=d('">'),_e=d("</div>"),xe=d('<svg aria-hidden="true" style="display:none" id="'),Ee=d('">'),Se=d("</svg>"),Pe=d('<math aria-hidden="true" style="display:none" id="'),Oe=d('">'),Te=d("</math>"),ke=d('<table hidden id="'),Ae=d('">'),Ie=d("</table>"),Re=d('<table hidden><tbody id="'),Me=d('">'),De=d("</tbody></table>"),Le=d('<table hidden><tr id="'),Ne=d('">'),Ve=d("</tr></table>"),je=d('<table hidden><colgroup id="'),Fe=d('">'),ze=d("</colgroup></table>"),Be=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),He=d('$RS("'),Ue=d('","'),qe=d('")<\/script>'),We=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),$e=d('$RC("'),Qe=d('","'),Ge=d('")<\/script>'),Ye=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ze=d('$RX("'),Ke=d('"'),Xe=d(")<\/script>"),Je=d(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var nt=Object.assign,rt=Symbol.for("react.element"),ot=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ut=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),gt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),vt=Symbol.for("react.default_value"),bt=Symbol.iterator;function wt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case it:return"Fragment";case ot:return"Portal";case at:return"Profiler";case st:return"StrictMode";case pt:return"Suspense";case dt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ct:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var Ct={};function _t(e,t){if(!(e=e.contextTypes))return Ct;var n,r={};for(n in e)r[n]=t[n];return r}var xt=null;function Et(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));Et(e,n)}t.context._currentValue=t.value}}function St(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&St(e)}function Pt(e){var t=e.parent;null!==t&&Pt(t),e.context._currentValue=e.value}function Ot(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Et(e,t):Ot(e,t)}function Tt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Et(e,n):Tt(e,n),t.context._currentValue=t.value}function kt(e){var t=xt;t!==e&&(null===t?Pt(e):null===e?St(t):t.depth===e.depth?Et(t,e):t.depth>e.depth?Ot(t,e):Tt(t,e),xt=e)}var At={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function It(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=At,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue:r,"function"==typeof(s=t.getDerivedStateFromProps)&&(o=null==(s=s(n,o))?o:nt({},o,s),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&At.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"==typeof a?a.call(e,i,n,r):a)&&(o?(o=!1,i=nt({},i,a)):nt(i,a))}e.state=i}else i.queue=null}var Rt={id:1,overflow:""};function Mt(e,t,n){var r=e.id;e=e.overflow;var o=32-Dt(r)-1;r&=~(1<<o),n+=1;var i=32-Dt(t)+o;if(30<i){var s=o-o%5;return i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,{id:1<<32-Dt(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var Dt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Lt(e)/Nt|0)|0},Lt=Math.log,Nt=Math.LN2,Vt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},jt=null,Ft=null,zt=null,Bt=null,Ht=!1,Ut=!1,qt=0,Wt=null,$t=0;function Qt(){if(null===jt)throw Error(o(321));return jt}function Gt(){if(0<$t)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Yt(){return null===Bt?null===zt?(Ht=!1,zt=Bt=Gt()):(Ht=!0,Bt=zt):null===Bt.next?(Ht=!1,Bt=Bt.next=Gt()):(Ht=!0,Bt=Bt.next),Bt}function Zt(){Ft=jt=null,Ut=!1,zt=null,$t=0,Bt=Wt=null}function Kt(e,t){return"function"==typeof t?t(e):t}function Xt(e,t,n){if(jt=Qt(),Bt=Yt(),Ht){var r=Bt.queue;if(t=r.dispatch,null!==Wt&&void 0!==(n=Wt.get(r))){Wt.delete(r),r=Bt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Bt.memoizedState=r,[r,t]}return[Bt.memoizedState,t]}return e=e===Kt?"function"==typeof t?t():t:void 0!==n?n(t):t,Bt.memoizedState=e,e=(e=Bt.queue={last:null,dispatch:null}).dispatch=en.bind(null,jt,e),[Bt.memoizedState,e]}function Jt(e,t){if(jt=Qt(),t=void 0===t?null:t,null!==(Bt=Yt())){var n=Bt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Vt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Bt.memoizedState=[e,t],e}function en(e,t,n){if(25<=$t)throw Error(o(301));if(e===jt)if(Ut=!0,e={action:n,next:null},null===Wt&&(Wt=new Map),void 0===(n=Wt.get(t)))Wt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(o(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Qt(),e._currentValue},useMemo:Jt,useReducer:Xt,useRef:function(e){jt=Qt();var t=(Bt=Yt()).memoizedState;return null===t?(e={current:e},Bt.memoizedState=e):t},useState:function(e){return Xt(Kt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Jt(function(){return e},t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Qt(),e},useTransition:function(){return Qt(),[!1,tn]},useId:function(){var e=Ft.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Dt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=qt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Qt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},on=null,sn=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function an(e){return console.error(e),null}function ln(){}function un(e,t,n,r,o,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&En(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function cn(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function pn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function dn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,f(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,r,o){for(jt={},Ft=t,qt=0,e=n(r,o);Ut;)Ut=!1,qt=0,$t+=1,Bt=null,e=n(r,o);return Zt(),e}function hn(e,t,n,r){var i=n.render(),s=r.childContextTypes;if(null!=s){var a=t.legacyContext;if("function"!=typeof n.getChildContext)r=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(o(108,wt(r)||"Unknown",l));r=nt({},a,n)}t.legacyContext=r,yn(e,t,i),t.legacyContext=a}else yn(e,t,i)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function gn(e,t,n,i,s){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=_t(n,t.legacyContext);var a=n.contextType;It(a=new n(i,"object"==typeof a&&null!==a?a._currentValue:s),n,i,s),hn(e,t,a,n)}else{s=fn(e,t,n,i,a=_t(n,t.legacyContext));var l=0!==qt;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)It(s,n,i,a),hn(e,t,s,n);else if(l){i=t.treeContext,t.treeContext=Mt(i,1,0);try{yn(e,t,s)}finally{t.treeContext=i}}else yn(e,t,s)}else{if("string"!=typeof n){switch(n){case yt:case gt:case st:case at:case it:case dt:return void yn(e,t,i.children);case mt:throw Error(o(343));case pt:e:{n=t.blockedBoundary,s=t.blockedSegment,a=i.fallback,i=i.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},c=cn(0,s.chunks.length,u,s.formatContext,!1,!1);s.children.push(c),s.lastPushedText=!1;var d=cn(0,0,null,s.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=d;try{if(bn(e,t,i),d.lastPushedText&&d.textEmbedded&&d.chunks.push(j),d.status=1,_n(u,d),0===u.pendingTasks)break e}catch(t){d.status=4,u.forceClientRender=!0,u.errorDigest=pn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=un(e,a,n,c,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ct:if(i=fn(e,t,n.render,i,s),0!==qt){n=t.treeContext,t.treeContext=Mt(n,1,0);try{yn(e,t,i)}finally{t.treeContext=n}}else yn(e,t,i);return;case ft:return void gn(e,t,n=n.type,i=mn(n,i),s);case lt:if(s=i.children,n=n._context,i=i.value,a=n._currentValue,n._currentValue=i,xt=i={parent:l=xt,depth:null===l?0:l.depth+1,context:n,parentValue:a,value:i},t.context=i,yn(e,t,s),null===(e=xt))throw Error(o(403));return i=e.parentValue,e.context._currentValue=i===vt?e.context._defaultValue:i,e=xt=e.parent,void(t.context=e);case ut:return void yn(e,t,i=(i=i.children)(n._currentValue));case ht:return void gn(e,t,n=(s=n._init)(n._payload),i=mn(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(a=function(e,t,n,i,s){switch(t){case"select":e.push(oe("select"));var a=null,l=null;for(f in n)if(h.call(n,f)){var u=n[f];if(null!=u)switch(f){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"defaultValue":case"value":break;default:Y(e,i,f,u)}}return e.push(Z),X(e,l,a),a;case"option":l=s.selectedValue,e.push(oe("option"));var c=u=null,d=null,f=null;for(a in n)if(h.call(n,a)){var m=n[a];if(null!=m)switch(a){case"children":u=m;break;case"selected":d=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":c=m;default:Y(e,i,a,m)}}if(null!=l)if(n=null!==c?""+c:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(u),k(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push(J);break}}else""+l===n&&e.push(J);else d&&e.push(J);return e.push(Z),X(e,f,u),u;case"textarea":for(u in e.push(oe("textarea")),f=l=a=null,n)if(h.call(n,u)&&null!=(c=n[u]))switch(u){case"children":f=c;break;case"value":a=c;break;case"defaultValue":l=c;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:Y(e,i,u,c)}if(null===a&&null!==l&&(a=l),e.push(Z),null!=f){if(null!=a)throw Error(o(92));if(k(f)&&1<f.length)throw Error(o(93));a=""+f}return"string"==typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(p(P(""+a))),null;case"input":for(l in e.push(oe("input")),c=f=u=a=null,n)if(h.call(n,l)&&null!=(d=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":u=d;break;case"checked":f=d;break;case"value":a=d;break;default:Y(e,i,l,d)}return null!==f?Y(e,i,"checked",f):null!==c&&Y(e,i,"checked",c),null!==a?Y(e,i,"value",a):null!==u&&Y(e,i,"value",u),e.push(K),null;case"menuitem":for(var g in e.push(oe("menuitem")),n)if(h.call(n,g)&&null!=(a=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:Y(e,i,g,a)}return e.push(Z),null;case"title":for(m in e.push(oe("title")),a=null,n)if(h.call(n,m)&&null!=(l=n[m]))switch(m){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:Y(e,i,m,l)}return e.push(Z),a;case"listing":case"pre":for(c in e.push(oe(t)),l=a=null,n)if(h.call(n,c)&&null!=(u=n[c]))switch(c){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;default:Y(e,i,c,u)}if(e.push(Z),null!=l){if(null!=a)throw Error(o(60));if("object"!=typeof l||!("__html"in l))throw Error(o(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,p(n)):e.push(p(""+n)))}return"string"==typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(oe(t)),n)if(h.call(n,y)&&null!=(a=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:Y(e,i,y,a)}return e.push(K),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,i);case"html":return 0===s.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,i);for(d in e.push(oe(t)),l=a=null,n)if(h.call(n,d)&&null!=(u=n[d]))switch(d){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"style":q(e,i,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(d)&&"function"!=typeof u&&"symbol"!=typeof u&&e.push(W,p(d),$,p(P(u)),Q)}return e.push(Z),X(e,l,a),a}}((s=t.blockedSegment).chunks,n,i,e.responseState,s.formatContext),s.lastPushedText=!1,l=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return V(1,null!=n.value?n.value:n.defaultValue);case"svg":return V(2,null);case"math":return V(3,null);case"foreignObject":return V(1,null);case"table":return V(4,null);case"thead":case"tbody":case"tfoot":return V(5,null);case"colgroup":return V(7,null);case"tr":return V(6,null)}return 4<=e.insertionMode||0===e.insertionMode?V(1,null):e}(l,n,i),bn(e,t,a),s.formatContext=l,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push(se,p(n),ae)}s.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void gn(e,t,n.type,n.props,n.ref);case ot:throw Error(o(257));case ht:var r=n._init;return void yn(e,t,n=r(n._payload))}if(k(n))return void vn(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=bt&&n[bt]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);vn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function vn(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=Mt(i,r,o);try{bn(e,t,n[o])}finally{t.treeContext=i}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return yn(e,t,n)}catch(l){if(Zt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,kt(i),l;n=l;var s=t.blockedSegment,a=cn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,kt(i)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,xn(this,t,e)}function Cn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Cn(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function _n(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&_n(e,n)}else e.completedSegments.push(t)}function xn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&_n(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(_n(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function En(e){if(2!==e.status){var t=xt,n=sn.current;sn.current=rn;var r=on;on=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(0===l.status){kt(s.context);try{yn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(j),s.abortSet.delete(s),l.status=1,xn(a,s.blockedBoundary,l)}catch(e){if(Zt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var u=s.ping;e.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=e,d=pn(a,p);null===c?dn(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks&&(0,a.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&An(e,e.destination)}catch(t){pn(e,t),dn(e,t)}finally{on=r,sn.current=n,n===rn&&kt(t)}}}function Sn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,le),a(t,e.placeholderPrefix),a(t,e=p(r.toString(16))),l(t,ue);case 1:n.status=2;var i=!0;r=n.chunks;var s=0;n=n.children;for(var u=0;u<n.length;u++){for(i=n[u];s<i.index;s++)a(t,r[s]);i=Pn(e,t,i)}for(;s<r.length-1;s++)a(t,r[s]);return s<r.length&&(i=l(t,r[s])),i;default:throw Error(o(390))}}function Pn(e,t,n){var r=n.boundary;if(null===r)return Sn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,fe),a(t,me),r&&(a(t,ye),a(t,p(P(r))),a(t,ge)),l(t,ve),Sn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,s=i.nextSuspenseID++;i=d(i.boundaryPrefix+s.toString(16)),r=r.id=i,be(t,e.responseState,r),Sn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),be(t,e.responseState,r.id),Sn(e,t,n);else{if(l(t,ce),1!==(n=r.completedSegments).length)throw Error(o(391));Pn(e,t,n[0])}return l(t,he)}function On(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return a(e,we),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Ce);case 2:return a(e,xe),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Ee);case 3:return a(e,Pe),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Oe);case 4:return a(e,ke),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Ae);case 5:return a(e,Re),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Me);case 6:return a(e,Le),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Ne);case 7:return a(e,je),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Fe);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Pn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,_e);case 2:return l(e,Se);case 3:return l(e,Te);case 4:return l(e,Ie);case 5:return l(e,De);case 6:return l(e,Ve);case 7:return l(e,ze);default:throw Error(o(397))}}(t,n.formatContext)}function Tn(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)kn(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,$e):(e.sentCompleteBoundaryFunction=!0,a(t,We)),null===r)throw Error(o(395));return n=p(n.toString(16)),a(t,r),a(t,Qe),a(t,e.segmentPrefix),a(t,n),l(t,Ge)}function kn(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return On(e,t,r)}return On(e,t,r),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,He):(e.sentCompleteSegmentFunction=!0,a(t,Be)),a(t,e.segmentPrefix),a(t,i=p(i.toString(16))),a(t,Ue),a(t,e.placeholderPrefix),a(t,i),l(t,qe)}function An(e,t){i=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Pn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)a(t,r[n]);n<r.length&&l(t,r[n])}var c,d=e.clientRenderedBoundaries;for(c=0;c<d.length;c++){var f=d[c];r=t;var h=e.responseState,m=f.id,g=f.errorDigest,y=f.errorMessage,v=f.errorComponentStack;if(a(r,h.startInlineScript),h.sentClientRenderFunction?a(r,Ze):(h.sentClientRenderFunction=!0,a(r,Ye)),null===m)throw Error(o(395));if(a(r,m),a(r,Ke),(g||y||v)&&(a(r,Je),a(r,p(tt(g||"")))),(y||v)&&(a(r,Je),a(r,p(tt(y||"")))),v&&(a(r,Je),a(r,p(tt(v)))),!l(r,Xe))return e.destination=null,c++,void d.splice(0,c)}d.splice(0,c);var b=e.completedBoundaries;for(c=0;c<b.length;c++)if(!Tn(e,t,b[c]))return e.destination=null,c++,void b.splice(0,c);b.splice(0,c),u(t),i=new Uint8Array(512),s=0;var w=e.partialBoundaries;for(c=0;c<w.length;c++){var C=w[c];e:{d=e,f=t;var _=C.completedSegments;for(h=0;h<_.length;h++)if(!kn(d,f,C,_[h])){h++,_.splice(0,h);var x=!1;break e}_.splice(0,h),x=!0}if(!x)return e.destination=null,c++,void w.splice(0,c)}w.splice(0,c);var E=e.completedBoundaries;for(c=0;c<E.length;c++)if(!Tn(e,t,E[c]))return e.destination=null,c++,void E.splice(0,c);E.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function In(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Cn(n,e,t)}),n.clear(),null!==e.destination&&An(e,e.destination)}catch(t){pn(e,t),dn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,i,s=new Promise(function(e,t){i=e,o=t}),a=function(e,t,n,r,o,i,s,a,l){var u=[],c=new Set;return(n=cn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?an:o,onAllReady:void 0===i?ln:i,onShellReady:void 0===s?ln:s,onShellError:void 0===a?ln:a,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,c,Ct,null,Rt),u.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?A:d('<script nonce="'+P(t)+'">');var i=[];if(void 0!==n&&i.push(t,p((""+n).replace(L,N)),I),void 0!==r)for(n=0;n<r.length;n++)i.push(R,p(P(r[n])),D);if(void 0!==o)for(r=0;r<o.length;r++)i.push(M,p(P(o[r])),D);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return V("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,f(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{An(a,e)}catch(e){pn(a,e),dn(a,e)}}},cancel:function(){In(a)}},{highWaterMark:0});e.allReady=s,n(e)},function(e){s.catch(function(){}),r(e)},o);if(t&&t.signal){var l=t.signal,u=function(){In(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}En(a)})},t.version="18.3.1"},3396(e,t,n){"use strict";var r=n(22155),o=n(9593);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(h,e)||!p.call(f,e)&&(d.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var N,V=Object.assign;function j(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function B(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case _:return"Portal";case S:return"Profiler";case E:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){K(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function ie(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ye=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,xe=null,Ee=null;function Se(e){if(e=wo(e)){if("function"!=typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),_e(e.stateNode,e.type,t))}}function Pe(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Oe(){if(xe){var e=xe,t=Ee;if(Ee=xe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Te(e,t){return e(t)}function ke(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Te(e,t,n)}finally{Ae=!1,(null!==xe||null!==Ee)&&(ke(),Oe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=_o(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Me=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Me=!1}function Le(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ne=!1,Ve=null,je=!1,Fe=null,ze={onError:function(e){Ne=!0,Ve=e}};function Be(e,t,n,r,o,i,s,a,l){Ne=!1,Ve=null,Le.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function qe(e){if(He(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return qe(o),e;if(s===r)return qe(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ze=o.unstable_requestPaint,Ke=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=pt(a):0!==(i&=s)&&(r=pt(i))}else 0!==(s=n&~o)?r=pt(s):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Ct,_t,xt,Et,St,Pt=!1,Ot=[],Tt=null,kt=null,At=null,It=new Map,Rt=new Map,Mt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&_t(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Vt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void St(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function zt(){Pt=!1,null!==Tt&&jt(Tt)&&(Tt=null),null!==kt&&jt(kt)&&(kt=null),null!==At&&jt(At)&&(At=null),It.forEach(Ft),Rt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<Ot.length){Bt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==kt&&Bt(kt,e),null!==At&&Bt(At,e),It.forEach(t),Rt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Vt(n),null===n.blockedOn&&Mt.shift()}var Ut=w.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var o=bt,i=Ut.transition;Ut.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=o,Ut.transition=i}}function $t(e,t,n,r){var o=bt,i=Ut.transition;Ut.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=o,Ut.transition=i}}function Qt(e,t,n,r){if(qt){var o=Yt(e,t,n,r);if(null===o)qr(e,t,r,Gt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Nt(Tt,e,t,n,r,o),!0;case"dragenter":return kt=Nt(kt,e,t,n,r,o),!0;case"mouseover":return At=Nt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Nt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Nt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Ct(i),null===(i=Yt(e,t,n,r))&&qr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=bo(e=Ce(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),pn=V({},un,{view:0,detail:0}),dn=on(pn),fn=V({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),hn=on(fn),mn=on(V({},fn,{dataTransfer:0})),gn=on(V({},pn,{relatedTarget:0})),yn=on(V({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=V({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),wn=on(V({},un,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return En}var Pn=V({},pn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Pn),Tn=on(V({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=on(V({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),An=on(V({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=V({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(In),Mn=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var Nn=c&&"TextEvent"in window&&!Ln,Vn=c&&(!Dn||Ln&&8<Ln&&11>=Ln),jn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Wn(e,t,n,r){Pe(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Qn=null;function Gn(e){jr(e,0)}function Yn(e){if(Q(Co(e)))return e}function Zn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Xn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Qn=$n=null)}function nr(e){if("value"===e.propertyName&&Yn(Qn)){var t=[];Wn(t,Qn,e,Ce(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Qn)}function ir(e,t){if("click"===e)return Yn(t)}function sr(e,t){if("input"===e||"change"===e)return Yn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var s=cr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||(r="selectionStart"in(r=gr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=$r(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionend:Cr("Transition","TransitionEnd")},xr={},Er={};function Sr(e){if(xr[e])return xr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return xr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Pr=Sr("animationend"),Or=Sr("animationiteration"),Tr=Sr("animationstart"),kr=Sr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Ar.set(e,t),l(t,[e])}for(var Mr=0;Mr<Ir.length;Mr++){var Dr=Ir[Mr];Rr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Rr(Pr,"onAnimationEnd"),Rr(Or,"onAnimationIteration"),Rr(Tr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(kr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Vr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,u){if(Be.apply(this,arguments),Ne){if(!Ne)throw Error(i(198));var c=Ve;Ne=!1,Ve=null,je||(je=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Vr(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Vr(o,a,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,s.forEach(function(t){"selectionchange"!==t&&(Nr.has(t)||zr(t,!1,e),zr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Zt(t)){case 1:var o=Wt;break;case 4:o=$t;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Ie(function(){var r=i,o=Ce(n),s=[];e:{var a=Ar.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=kn;break;case Pr:case Or:case Tr:l=yn;break;case kr:l=An;break;case"scroll":l=dn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=!!(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==d&&null!=(m=Re(h,d))&&c.push(Wr(h,m,f))),p)break;h=h.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(p=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),p=null==l?a:Co(l),f=null==u?a:Co(u),(a=new c(m,h+"leave",l,n,o)).target=p,a.relatedTarget=f,m=null,bo(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=f,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,h=0,f=c=l;f;f=Qr(f))h++;for(f=0,m=d;m;m=Qr(m))f++;for(;0<h-f;)c=Qr(c),h--;for(;0<f-h;)d=Qr(d),f--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Qr(c),d=Qr(d)}c=null}else c=null;null!==l&&Gr(s,a,l,c,!1),null!==u&&null!==p&&Gr(s,p,u,c,!0)}if("select"===(l=(a=r?Co(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Zn;else if(qn(a))if(Kn)g=sr;else{g=or;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ir);switch(g&&(g=g(e,r))?Wn(s,g,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?Co(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(s,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(s,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Vn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=en()):(Xt="value"in(Kt=o)?Kt.value:Kt.textContent,Hn=!0)),0<(y=$r(r,b)).length&&(b=new wn(b,e,null,n,o),s.push({event:b,listeners:y}),(v||null!==(v=Bn(n)))&&(b.data=v))),(v=Nn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Dn&&zn(e,t)?(e=en(),Jt=Xt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v)}jr(s,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Re(e,t))&&r.push(Wr(e,i,o))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=Re(n,i))&&s.unshift(Wr(n,l,a)):o||null!=(l=Re(n,i))&&s.push(Wr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Yr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Zr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[fo])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Co(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[ho]||null}var xo=[],Eo=-1;function So(e){return{current:e}}function Po(e){0>Eo||(e.current=xo[Eo],xo[Eo]=null,Eo--)}function Oo(e,t){Eo++,xo[Eo]=e.current,e.current=t}var To={},ko=So(To),Ao=So(!1),Io=To;function Ro(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=e.childContextTypes}function Do(){Po(Ao),Po(ko)}function Lo(e,t,n){if(ko.current!==To)throw Error(i(168));Oo(ko,t),Oo(Ao,n)}function No(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,U(e)||"Unknown",o));return V({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Io=ko.current,Oo(ko,e),Oo(Ao,Ao.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=No(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Po(Ao),Po(ko),Oo(ko,e)):Po(Ao),Oo(Ao,n)}var Fo=null,zo=!1,Bo=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Uo(){if(!Bo&&null!==Fo){Bo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,zo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Qe(Je,Uo),t}finally{bt=t,Bo=!1}}return null}var qo=[],Wo=0,$o=null,Qo=0,Go=[],Yo=0,Zo=null,Ko=1,Xo="";function Jo(e,t){qo[Wo++]=Qo,qo[Wo++]=$o,$o=e,Qo=t}function ei(e,t,n){Go[Yo++]=Ko,Go[Yo++]=Xo,Go[Yo++]=Zo,Zo=e;var r=Ko;e=Xo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ko=1<<32-st(t)+o|n<<o|r,Xo=i+e}else Ko=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=qo[--Wo],qo[Wo]=null,Qo=qo[--Wo],qo[Wo]=null;for(;e===Zo;)Zo=Go[--Yo],Go[Yo]=null,Xo=Go[--Yo],Go[Yo]=null,Ko=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Au(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Ko,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Au(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw fi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=w.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ru(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&bi(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Du(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case _:return(t=Vu(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Du(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===o?u(e,t,n,r):null;case _:return n.key===o?c(e,t,n,r):null;case R:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:p(e,t,n,r,null);vi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return p(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function m(o,i,a,l){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<a.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(o,p,a[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(o,p),i=s(y,i,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===a.length)return n(o,p),ii&&Jo(o,m),u;if(null===p){for(;m<a.length;m++)null!==(p=d(o,a[m],l))&&(i=s(p,i,m),null===c?u=p:c.sibling=p,c=p);return ii&&Jo(o,m),u}for(p=r(o,p);m<a.length;m++)null!==(g=h(p,o,m,a[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach(function(e){return t(o,e)}),ii&&Jo(o,m),u}function g(o,a,l,u){var c=L(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,m=a,g=a=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),a=s(b,a,g),null===p?c=b:p.sibling=b,p=b,m=y}if(v.done)return n(o,m),ii&&Jo(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,u))&&(a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return ii&&Jo(o,g),c}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach(function(e){return t(o,e)}),ii&&Jo(o,g),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===x&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case C:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&bi(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=yi(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===x?((i=Du(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Mu(s.type,s.key,s.props,null,r.mode,l)).ref=yi(r,i,s),l.return=r,r=l)}return a(r);case _:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Vu(s,r.mode,l)).return=r,r=i}return a(r);case R:return e(r,i,(c=s._init)(s._payload),l)}if(te(s))return m(r,i,s,l);if(L(s))return g(r,i,s,l);vi(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Nu(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var Ci=wi(!0),_i=wi(!1),xi=So(null),Ei=null,Si=null,Pi=null;function Oi(){Pi=Si=Ei=null}function Ti(e){var t=xi.current;Po(xi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ai(e,t){Ei=e,Pi=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ba=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Pi!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===Ei)throw Error(i(308));Si=e,Ei.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Ri=null;function Mi(e){null===Ri?Ri=[e]:Ri.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Li(e,r)}function Li(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ni=!1;function Vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ol){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Li(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Li(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;Ni=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,f=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(d=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){p=h.call(f,p,d);break e}p=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(f,p,d):h))break e;p=V({},p,d);break e;case 2:Ni=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else f={eventTime:f,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=f,l=p):c=c.next=f,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=p}}function qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Wi={},$i=So(Wi),Qi=So(Wi),Gi=So(Wi);function Yi(e){if(e===Wi)throw Error(i(174));return e}function Zi(e,t){switch(Oo(Gi,t),Oo(Qi,e),Oo($i,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Po($i),Oo($i,t)}function Ki(){Po($i),Po(Qi),Po(Gi)}function Xi(e){Yi(Gi.current);var t=Yi($i.current),n=le(t,e.type);t!==n&&(Oo(Qi,e),Oo($i,n))}function Ji(e){Qi.current===e&&(Po($i),Po(Qi))}var es=So(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ns=[];function rs(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var os=w.ReactCurrentDispatcher,is=w.ReactCurrentBatchConfig,ss=0,as=null,ls=null,us=null,cs=!1,ps=!1,ds=0,fs=0;function hs(){throw Error(i(321))}function ms(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function gs(e,t,n,r,o,s){if(ss=s,as=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Js:ea,e=n(r,o),ps){s=0;do{if(ps=!1,ds=0,25<=s)throw Error(i(301));s+=1,us=ls=null,t.updateQueue=null,os.current=ta,e=n(r,o)}while(ps)}if(os.current=Xs,t=null!==ls&&null!==ls.next,ss=0,us=ls=as=null,cs=!1,t)throw Error(i(300));return e}function ys(){var e=0!==ds;return ds=0,e}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?as.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=as.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?as.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?as.memoizedState=us=e:us=us.next=e}return us}function ws(e,t){return"function"==typeof t?t(e):t}function Cs(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ls,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((ss&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=r):u=u.next=d,as.lanes|=p,Ll|=p}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(ba=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,as.lanes|=s,Ll|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _s(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(ba=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function xs(){}function Es(e,t){var n=as,r=bs(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,ba=!0),r=r.queue,Ns(Os.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==us&&1&us.memoizedState.tag){if(n.flags|=2048,Is(9,Ps.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));30&ss||Ss(n,t,o)}return o}function Ss(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ps(e,t,n,r){t.value=n,t.getSnapshot=r,Ts(t)&&ks(e)}function Os(e,t,n){return n(function(){Ts(t)&&ks(e)})}function Ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function ks(e){var t=Li(e,1);null!==t&&tu(t,e,1,-1)}function As(e){var t=vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,as,e),[t.memoizedState,e]}function Is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Rs(){return bs().memoizedState}function Ms(e,t,n,r){var o=vs();as.flags|=e,o.memoizedState=Is(1|t,n,void 0,void 0===r?null:r)}function Ds(e,t,n,r){var o=bs();r=void 0===r?null:r;var i=void 0;if(null!==ls){var s=ls.memoizedState;if(i=s.destroy,null!==r&&ms(r,s.deps))return void(o.memoizedState=Is(t,n,i,r))}as.flags|=e,o.memoizedState=Is(1|t,n,i,r)}function Ls(e,t){return Ms(8390656,8,e,t)}function Ns(e,t){return Ds(2048,8,e,t)}function Vs(e,t){return Ds(4,2,e,t)}function js(e,t){return Ds(4,4,e,t)}function Fs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zs(e,t,n){return n=null!=n?n.concat([e]):null,Ds(4,4,Fs.bind(null,t,e),n)}function Bs(){}function Hs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Us(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qs(e,t,n){return 21&ss?(ar(n,t)||(n=mt(),as.lanes|=n,Ll|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n)}function Ws(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{bt=n,is.transition=r}}function $s(){return bs().memoizedState}function Qs(e,t,n){var r=eu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ys(e)?Zs(t,n):null!==(n=Di(e,t,n,r))&&(tu(n,e,r,Jl()),Ks(n,t,r))}function Gs(e,t,n){var r=eu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ys(e))Zs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(tu(n,e,r,o=Jl()),Ks(n,t,r))}}function Ys(e){var t=e.alternate;return e===as||null!==t&&t===as}function Zs(e,t){ps=cs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ks(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Xs={readContext:Ii,useCallback:hs,useContext:hs,useEffect:hs,useImperativeHandle:hs,useInsertionEffect:hs,useLayoutEffect:hs,useMemo:hs,useReducer:hs,useRef:hs,useState:hs,useDebugValue:hs,useDeferredValue:hs,useTransition:hs,useMutableSource:hs,useSyncExternalStore:hs,useId:hs,unstable_isNewReconciler:!1},Js={readContext:Ii,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Ls,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ms(4194308,4,Fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ms(4,2,e,t)},useMemo:function(e,t){var n=vs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qs.bind(null,as,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:As,useDebugValue:Bs,useDeferredValue:function(e){return vs().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Ws.bind(null,e[1]),vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=as,o=vs();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));30&ss||Ss(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ls(Os.bind(null,r,s,e),[e]),r.flags|=2048,Is(9,Ps.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vs(),t=Tl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Ko&~(1<<32-st(Ko)-1)).toString(32)+n),0<(n=ds++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ea={readContext:Ii,useCallback:Hs,useContext:Ii,useEffect:Ns,useImperativeHandle:zs,useInsertionEffect:Vs,useLayoutEffect:js,useMemo:Us,useReducer:Cs,useRef:Rs,useState:function(){return Cs(ws)},useDebugValue:Bs,useDeferredValue:function(e){return qs(bs(),ls.memoizedState,e)},useTransition:function(){return[Cs(ws)[0],bs().memoizedState]},useMutableSource:xs,useSyncExternalStore:Es,useId:$s,unstable_isNewReconciler:!1},ta={readContext:Ii,useCallback:Hs,useContext:Ii,useEffect:Ns,useImperativeHandle:zs,useInsertionEffect:Vs,useLayoutEffect:js,useMemo:Us,useReducer:_s,useRef:Rs,useState:function(){return _s(ws)},useDebugValue:Bs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:qs(t,ls.memoizedState,e)},useTransition:function(){return[_s(ws)[0],bs().memoizedState]},useMutableSource:xs,useSyncExternalStore:Es,useId:$s,unstable_isNewReconciler:!1};function na(e,t){if(e&&e.defaultProps){for(var n in t=V({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ra(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:V({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var oa={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jl(),o=eu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(tu(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jl(),o=eu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(tu(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jl(),r=eu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(tu(t,e,r,n),Bi(t,e,r))}};function ia(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function sa(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Mo(t)?Io:ko.current,i=(r=null!=(r=t.contextTypes))?Ro(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function aa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oa.enqueueReplaceState(t,t.state,null)}function la(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Vi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Mo(t)?Io:ko.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ra(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&oa.enqueueReplaceState(o,o.state,null),Ui(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ua(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ca(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pa(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var da="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,ql=r),pa(0,t)},n}function ha(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pa(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){pa(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new da;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function ga(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var va=w.ReactCurrentOwner,ba=!1;function wa(e,t,n,r){t.child=null===e?_i(t,null,n,r):Ci(t,e.child,n,r)}function Ca(e,t,n,r,o){n=n.render;var i=t.ref;return Ai(t,o),r=gs(e,t,n,r,i,o),n=ys(),null===e||ba?(ii&&n&&ti(t),t.flags|=1,wa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function _a(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Iu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xa(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=Ru(i,r)).ref=t.ref,e.return=t,t.child=e}function xa(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ba=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);131072&e.flags&&(ba=!0)}}return Pa(e,t,n,r,o)}function Ea(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Rl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Rl,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Rl,Il),Il|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Rl,Il),Il|=r;return wa(e,t,o,n),t.child}function Sa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pa(e,t,n,r,o){var i=Mo(n)?Io:ko.current;return i=Ro(t,i),Ai(t,o),n=gs(e,t,n,r,i,o),r=ys(),null===e||ba?(ii&&r&&ti(t),t.flags|=1,wa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Oa(e,t,n,r,o){if(Mo(n)){var i=!0;Vo(t)}else i=!1;if(Ai(t,o),null===t.stateNode)Ha(e,t),sa(t,n,r),la(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Ii(u):Ro(t,u=Mo(n)?Io:ko.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&aa(t,s,r,u),Ni=!1;var d=t.memoizedState;s.state=d,Ui(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ao.current||Ni?("function"==typeof c&&(ra(t,n,c,r),l=t.memoizedState),(a=Ni||ia(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:na(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Ii(l):Ro(t,l=Mo(n)?Io:ko.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&aa(t,s,r,l),Ni=!1,d=t.memoizedState,s.state=d,Ui(t,r,s,o);var h=t.memoizedState;a!==p||d!==h||Ao.current||Ni?("function"==typeof f&&(ra(t,n,f,r),h=t.memoizedState),(u=Ni||ia(t,n,u,r,d,h,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,h,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ta(e,t,n,r,i,o)}function Ta(e,t,n,r,o,i){Sa(e,t);var s=!!(128&t.flags);if(!r&&!s)return o&&jo(t,n,!1),Ua(e,t,i);r=t.stateNode,va.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Ci(t,e.child,null,i),t.child=Ci(t,null,a,i)):wa(e,t,a,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function ka(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),Zi(e,t.containerInfo)}function Aa(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wa(e,t,n,r),t.child}var Ia,Ra,Ma,Da={dehydrated:null,treeContext:null,retryLane:0};function La(e){return{baseLanes:e,cachePool:null,transitions:null}}function Na(e,t,n){var r,o=t.pendingProps,s=es.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Oo(es,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Lu(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Du(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=La(n),t.memoizedState=Da,e):Va(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,ja(e,t,a,r=ca(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Lu({mode:"visible",children:r.children},o,0,null),(s=Du(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,1&t.mode&&Ci(t,e.child,null,a),t.child.memoizedState=La(a),t.memoizedState=Da,s);if(!(1&t.mode))return ja(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,ja(e,t,a,r=ca(s=Error(i(419)),r,void 0))}if(l=0!==(a&e.childLanes),ba||l){if(null!==(r=Tl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Li(e,o),tu(r,e,o,-1))}return hu(),ja(e,t,a,r=ca(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&(Go[Yo++]=Ko,Go[Yo++]=Xo,Go[Yo++]=Zo,Ko=e.id,Xo=e.overflow,Zo=t),(t=Va(t,r.children)).flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===s?(o=Ru(s,u)).subtreeFlags=14680064&s.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?a=Ru(r,a):(a=Du(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?La(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Da,o}return e=(a=e.child).sibling,o=Ru(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Va(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ja(e,t,n,r){return null!==r&&mi(r),Ci(t,e.child,null,n),(e=Va(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function za(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ba(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wa(e,t,r.children,n),2&(r=es.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,n,t);else if(19===e.tag)Fa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(es,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ts(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),za(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}za(t,!0,n,null,i);break;case"together":za(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ha(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ru(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ru(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $a(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wa(t),null;case 1:case 17:return Mo(t.type)&&Do(),Wa(t),null;case 3:return r=t.stateNode,Ki(),Po(Ao),Po(ko),rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==si&&(iu(si),si=null))),Wa(t),null;case 5:Ji(t);var o=Yi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ra(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Wa(t),null}if(e=Yi($i.current),di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[fo]=t,r[ho]=s,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)Fr(Lr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Z(r,s),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",r);break;case"textarea":oe(r,s),Fr("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":$(r),J(r,s,!0);break;case"textarea":$(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fo]=t,e[ho]=r,Ia(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)Fr(Lr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Z(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=V({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(s in ve(n,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":$(e),J(e,r,!1);break;case"textarea":$(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wa(t),null;case 6:if(e&&null!=t.stateNode)Ma(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Gi.current),Yi($i.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Wa(t),null;case 13:if(Po(es),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))fi(),hi(),t.flags|=98560,s=!1;else if(s=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[fo]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wa(t),s=!1}else null!==si&&(iu(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&es.current?0===Ml&&(Ml=3):hu())),null!==t.updateQueue&&(t.flags|=4),Wa(t),null);case 4:return Ki(),null===e&&Hr(t.stateNode.containerInfo),Wa(t),null;case 10:return Ti(t.type._context),Wa(t),null;case 19:if(Po(es),null===(s=t.memoizedState))return Wa(t),null;if(r=!!(128&t.flags),null===(l=s.rendering))if(r)qa(s,!1);else{if(0!==Ml||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ts(e))){for(t.flags|=128,qa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(es,1&es.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>Bl&&(t.flags|=128,r=!0,qa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ts(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Wa(t),null}else 2*Ke()-s.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,qa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,n=es.current,Oo(es,r?1&n|2:1&n),t):(Wa(t),null);case 22:case 23:return cu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Il)&&(Wa(t),6&t.subtreeFlags&&(t.flags|=8192)):Wa(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Qa(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ki(),Po(Ao),Po(ko),rs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Po(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Po(es),null;case 4:return Ki(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return cu(),null;default:return null}}Ia=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ra=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi($i.current);var i,s=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),s=[];break;case"select":o=V({},o,{value:void 0}),r=V({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ve(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ma=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ga=!1,Ya=!1,Za="function"==typeof WeakSet?WeakSet:Set,Ka=null;function Xa(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xu(e,t,n)}else n.current=null}function Ja(e,t,n){try{n()}catch(n){xu(e,t,n)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Ja(t,n,i)}o=o.next}while(o!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var ul=null,cl=!1;function pl(e,t,n){for(n=n.child;null!==n;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ya||Xa(n,t);case 6:var r=ul,o=cl;ul=null,pl(e,t,n),cl=o,null!==(ul=r)&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=cl,ul=n.stateNode.containerInfo,cl=!0,pl(e,t,n),ul=r,cl=o;break;case 0:case 11:case 14:case 15:if(!Ya&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(2&i||4&i)&&Ja(n,t,s),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Ya&&(Xa(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xu(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ya=(r=Ya)||null!==n.memoizedState,pl(e,t,n),Ya=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach(function(t){var r=Ou.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,cl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,cl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));dl(s,a,o),ul=null,cl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){xu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hl(t,e),gl(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(t){xu(e,e.return,t)}try{tl(5,e,e.return)}catch(t){xu(e,e.return,t)}}break;case 1:hl(t,e),gl(e),512&r&&null!==n&&Xa(n,n.return);break;case 5:if(hl(t,e),gl(e),512&r&&null!==n&&Xa(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){xu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&K(o,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):b(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;null!=h?ne(o,!!s.multiple,h,!1):f!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[ho]=s}catch(t){xu(e,e.return,t)}}break;case 6:if(hl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){xu(e,e.return,t)}}break;case 3:if(hl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){xu(e,e.return,t)}break;case 4:default:hl(t,e),gl(e);break;case 13:hl(t,e),gl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ke())),4&r&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Ya=(c=Ya)||p,hl(t,e),Ya=c):hl(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&1&e.mode)for(Ka=e,p=e.child;null!==p;){for(d=Ka=p;null!==Ka;){switch(h=(f=Ka).child,f.tag){case 0:case 11:case 14:case 15:tl(4,f,f.return);break;case 1:Xa(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xu(r,n,e)}}break;case 5:Xa(f,f.return);break;case 22:if(null!==f.memoizedState){wl(d);continue}}null!==h?(h.return=f,Ka=h):wl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){xu(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){xu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hl(t,e),gl(e),4&r&&fl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ll(e,sl(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;al(e,sl(e),s);break;default:throw Error(i(161))}}catch(t){xu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Ka=e,vl(e,t,n)}function vl(e,t,n){for(var r=!!(1&e.mode);null!==Ka;){var o=Ka,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Ga;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Ya;a=Ga;var u=Ya;if(Ga=s,(Ya=l)&&!u)for(Ka=o;null!==Ka;)l=(s=Ka).child,22===s.tag&&null!==s.memoizedState?Cl(o):null!==l?(l.return=s,Ka=l):Cl(o);for(;null!==i;)Ka=i,vl(i,t,n),i=i.sibling;Ka=o,Ga=a,Ya=u}bl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Ka=i):bl(e)}}function bl(e){for(;null!==Ka;){var t=Ka;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ya||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ya)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:na(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&qi(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(i(163))}Ya||512&t.flags&&rl(t)}catch(e){xu(t,t.return,e)}}if(t===e){Ka=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ka=n;break}Ka=t.return}}function wl(e){for(;null!==Ka;){var t=Ka;if(t===e){Ka=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ka=n;break}Ka=t.return}}function Cl(e){for(;null!==Ka;){var t=Ka;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){xu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){xu(t,o,e)}}var i=t.return;try{rl(t)}catch(e){xu(t,i,e)}break;case 5:var s=t.return;try{rl(t)}catch(e){xu(t,s,e)}}}catch(e){xu(t,t.return,e)}if(t===e){Ka=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ka=a;break}Ka=t.return}}var _l,xl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,Pl=w.ReactCurrentBatchConfig,Ol=0,Tl=null,kl=null,Al=0,Il=0,Rl=So(0),Ml=0,Dl=null,Ll=0,Nl=0,Vl=0,jl=null,Fl=null,zl=0,Bl=1/0,Hl=null,Ul=!1,ql=null,Wl=null,$l=!1,Ql=null,Gl=0,Yl=0,Zl=null,Kl=-1,Xl=0;function Jl(){return 6&Ol?Ke():-1!==Kl?Kl:Kl=Ke()}function eu(e){return 1&e.mode?2&Ol&&0!==Al?Al&-Al:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type):1}function tu(e,t,n,r){if(50<Yl)throw Yl=0,Zl=null,Error(i(185));yt(e,n,r),2&Ol&&e===Tl||(e===Tl&&(!(2&Ol)&&(Nl|=n),4===Ml&&su(e,Al)),nu(e,r),1===n&&0===Ol&&!(1&t.mode)&&(Bl=Ke()+500,zo&&Uo()))}function nu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!==(a&n)&&0===(a&r)||(o[s]=ft(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=dt(e,e===Tl?Al:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){zo=!0,Ho(e)}(au.bind(null,e)):Ho(au.bind(null,e)),so(function(){!(6&Ol)&&Uo()}),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tu(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Kl=-1,Xl=0,6&Ol)throw Error(i(327));var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=dt(e,e===Tl?Al:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var o=Ol;Ol|=2;var s=fu();for(Tl===e&&Al===t||(Hl=null,Bl=Ke()+500,pu(e,t));;)try{yu();break}catch(t){du(e,t)}Oi(),El.current=s,Ol=o,null!==kl?t=0:(Tl=null,Al=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=ou(e,o)),1===t)throw n=Dl,pu(e,0),su(e,r),nu(e,Ke()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=mu(e,r),2===t&&(s=ht(e),0!==s&&(r=s,t=ou(e,s))),1!==t)))throw n=Dl,pu(e,0),su(e,r),nu(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wu(e,Fl,Hl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=zl+500-Ke())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Jl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wu.bind(null,e,Fl,Hl),t);break}wu(e,Fl,Hl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xl(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,Fl,Hl),r);break}wu(e,Fl,Hl);break;default:throw Error(i(329))}}}return nu(e,Ke()),e.callbackNode===n?ru.bind(null,e):null}function ou(e,t){var n=jl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Fl,Fl=n,null!==t&&iu(t)),e}function iu(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function su(e,t){for(t&=~Vl,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function au(e){if(6&Ol)throw Error(i(327));Cu();var t=dt(e,0);if(!(1&t))return nu(e,Ke()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Dl,pu(e,0),su(e,t),nu(e,Ke()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Fl,Hl),nu(e,Ke()),null}function lu(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Bl=Ke()+500,zo&&Uo())}}function uu(e){null!==Ql&&0===Ql.tag&&!(6&Ol)&&Cu();var t=Ol;Ol|=1;var n=Pl.transition,r=bt;try{if(Pl.transition=null,bt=1,e)return e()}finally{bt=r,Pl.transition=n,!(6&(Ol=t))&&Uo()}}function cu(){Il=Rl.current,Po(Rl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==kl)for(n=kl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Ki(),Po(Ao),Po(ko),rs();break;case 5:Ji(r);break;case 4:Ki();break;case 13:case 19:Po(es);break;case 10:Ti(r.type._context);break;case 22:case 23:cu()}n=n.return}if(Tl=e,kl=e=Ru(e.current,null),Al=Il=t,Ml=0,Dl=null,Vl=Nl=Ll=0,Fl=jl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Ri=null}return e}function du(e,t){for(;;){var n=kl;try{if(Oi(),os.current=Xs,cs){for(var r=as.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}cs=!1}if(ss=0,us=ls=as=null,ps=!1,ds=0,Sl.current=null,null===n||null===n.return){Ml=1,Dl=t,kl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Al,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(!(1&p.mode||0!==d&&11!==d&&15!==d)){var f=p.alternate;f?(p.updateQueue=f.updateQueue,p.memoizedState=f.memoizedState,p.lanes=f.lanes):(p.updateQueue=null,p.memoizedState=null)}var h=ga(a);if(null!==h){h.flags&=-257,ya(h,a,l,0,t),1&h.mode&&ma(s,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ma(s,c,t),hu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=ga(a);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ya(y,a,l,0,t),mi(ua(u,l));break e}}s=u=ua(u,l),4!==Ml&&(Ml=2),null===jl?jl=[s]:jl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,fa(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(!(128&s.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wl&&Wl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,ha(s,l,t));break e}}s=s.return}while(null!==s)}bu(n)}catch(e){t=e,kl===n&&null!==n&&(kl=n=n.return);continue}break}}function fu(){var e=El.current;return El.current=Xs,null===e?Xs:e}function hu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Tl||!(268435455&Ll)&&!(268435455&Nl)||su(Tl,Al)}function mu(e,t){var n=Ol;Ol|=2;var r=fu();for(Tl===e&&Al===t||(Hl=null,pu(e,t));;)try{gu();break}catch(t){du(e,t)}if(Oi(),Ol=n,El.current=r,null!==kl)throw Error(i(261));return Tl=null,Al=0,Ml}function gu(){for(;null!==kl;)vu(kl)}function yu(){for(;null!==kl&&!Ye();)vu(kl)}function vu(e){var t=_l(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?bu(e):kl=t,Sl.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qa(n,t)))return n.flags&=32767,void(kl=n);if(null===e)return Ml=6,void(kl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$a(n,t,Il)))return void(kl=n);if(null!==(t=t.sibling))return void(kl=t);kl=t=e}while(null!==t);0===Ml&&(Ml=5)}function wu(e,t,n){var r=bt,o=Pl.transition;try{Pl.transition=null,bt=1,function(e,t,n,r){do{Cu()}while(null!==Ql);if(6&Ol)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Tl&&(kl=Tl=null,Al=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Tu(tt,function(){return Cu(),null})),s=!!(15990&n.flags),15990&n.subtreeFlags||s){s=Pl.transition,Pl.transition=null;var a=bt;bt=1;var l=Ol;Ol|=4,Sl.current=null,function(e,t){if(eo=qt,fr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===o&&(l=a),f===s&&++p===r&&(u=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},qt=!1,Ka=t;null!==Ka;)if(e=(t=Ka).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ka=e;else for(;null!==Ka;){t=Ka;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:na(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){xu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ka=e;break}Ka=t.return}m=el,el=!1}(e,n),ml(n,e),hr(to),qt=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ze(),Ol=l,bt=a,Pl.transition=s}else e.current=n;if($l&&($l=!1,Ql=e,Gl=o),0===(s=e.pendingLanes)&&(Wl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nu(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=ql,ql=null,e;!!(1&Gl)&&0!==e.tag&&Cu(),1&(s=e.pendingLanes)?e===Zl?Yl++:(Yl=0,Zl=e):Yl=0,Uo()}(e,t,n,r)}finally{Pl.transition=o,bt=r}return null}function Cu(){if(null!==Ql){var e=wt(Gl),t=Pl.transition,n=bt;try{if(Pl.transition=null,bt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Gl=0,6&Ol)throw Error(i(331));var o=Ol;for(Ol|=4,Ka=e.current;null!==Ka;){var s=Ka,a=s.child;if(16&Ka.flags){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ka=c;null!==Ka;){var p=Ka;switch(p.tag){case 0:case 11:case 15:tl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Ka=d;else for(;null!==Ka;){var f=(p=Ka).sibling,h=p.return;if(ol(p),p===c){Ka=null;break}if(null!==f){f.return=h,Ka=f;break}Ka=h}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ka=s}}if(2064&s.subtreeFlags&&null!==a)a.return=s,Ka=a;else e:for(;null!==Ka;){if(2048&(s=Ka).flags)switch(s.tag){case 0:case 11:case 15:tl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Ka=v;break e}Ka=s.return}}var b=e.current;for(Ka=b;null!==Ka;){var w=(a=Ka).child;if(2064&a.subtreeFlags&&null!==w)w.return=a,Ka=w;else e:for(a=b;null!==Ka;){if(2048&(l=Ka).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){xu(l,l.return,e)}if(l===a){Ka=null;break e}var C=l.sibling;if(null!==C){C.return=l.return,Ka=C;break e}Ka=l.return}}if(Ol=o,Uo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Pl.transition=t}}return!1}function _u(e,t,n){e=zi(e,t=fa(0,t=ua(n,t),1),1),t=Jl(),null!==e&&(yt(e,1,t),nu(e,t))}function xu(e,t,n){if(3===e.tag)_u(e,e,n);else for(;null!==t;){if(3===t.tag){_u(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=zi(t,e=ha(t,e=ua(n,e),1),1),e=Jl(),null!==t&&(yt(t,1,e),nu(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Jl(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Al&n)===n&&(4===Ml||3===Ml&&(130023424&Al)===Al&&500>Ke()-zl?pu(e,0):Vl|=n),nu(e,t)}function Su(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Jl();null!==(e=Li(e,t))&&(yt(e,t,n),nu(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Su(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Su(e,n)}function Tu(e,t){return Qe(e,t)}function ku(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Au(e,t,n,r){return new ku(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Au(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mu(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)Iu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case x:return Du(n.children,o,s,t);case E:a=8,o|=8;break;case S:return(e=Au(12,n,t,2|o)).elementType=S,e.lanes=s,e;case k:return(e=Au(13,n,t,o)).elementType=k,e.lanes=s,e;case A:return(e=Au(19,n,t,o)).elementType=A,e.lanes=s,e;case M:return Lu(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:a=10;break e;case O:a=9;break e;case T:a=11;break e;case I:a=14;break e;case R:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Au(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Du(e,t,n,r){return(e=Au(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Au(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return(e=Au(6,e,null,t)).lanes=n,e}function Vu(e,t,n){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,o,i,s,a,l){return e=new ju(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Au(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vi(i),e}function zu(e){if(!e)return To;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return No(e,n,t)}return t}function Bu(e,t,n,r,o,i,s,a,l){return(e=Fu(n,r,!0,e,0,i,0,a,l)).context=zu(null),n=e.current,(i=Fi(r=Jl(),o=eu(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,yt(e,o,r),nu(e,r),e}function Hu(e,t,n,r){var o=t.current,i=Jl(),s=eu(o);return n=zu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,s))&&(tu(e,o,s,i),Bi(e,o,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)ba=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:ka(t),hi();break;case 5:Xi(t);break;case 1:Mo(t.type)&&Vo(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(es,1&es.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Na(e,t,n):(Oo(es,1&es.current),null!==(e=Ua(e,t,n))?e.sibling:null);Oo(es,1&es.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ba(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(es,es.current),r)break;return null;case 22:case 23:return t.lanes=0,Ea(e,t,n)}return Ua(e,t,n)}(e,t,n);ba=!!(131072&e.flags)}else ba=!1,ii&&1048576&t.flags&&ei(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var o=Ro(t,ko.current);Ai(t,n),o=gs(null,t,r,e,o,n);var s=ys();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(s=!0,Vo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Vi(t),o.updater=oa,t.stateNode=o,o._reactInternals=t,la(t,r,e,n),t=Ta(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),wa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(r),e=na(r,e),o){case 0:t=Pa(null,t,r,e,n);break e;case 1:t=Oa(null,t,r,e,n);break e;case 11:t=Ca(null,t,r,e,n);break e;case 14:t=_a(null,t,r,na(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Pa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 1:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 3:e:{if(ka(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),Ui(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Aa(e,t,r,n,o=ua(Error(i(423)),t));break e}if(r!==o){t=Aa(e,t,r,n,o=ua(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Ua(e,t,n);break e}wa(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Sa(e,t),wa(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Na(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ci(t,null,r,n):wa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ca(e,t,r,o=t.elementType===r?o:na(r,o),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Oo(xi,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!Ao.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=Fi(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),ki(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),ki(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}wa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ai(t,n),r=r(o=Ii(o)),t.flags|=1,wa(e,t,r,n),t.child;case 14:return o=na(r=t.type,t.pendingProps),_a(e,t,r,o=na(r.type,o),n);case 15:return xa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),Ha(e,t),t.tag=1,Mo(r)?(e=!0,Vo(t)):e=!1,Ai(t,n),sa(t,r,o),la(t,r,o,n),Ta(null,t,r,!0,e,n);case 19:return Ba(e,t,n);case 22:return Ea(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ku(){}function Xu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(s);a.call(e)}}Hu(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(s);i.call(e)}}var s=Bu(t,r,e,0,null,!1,0,"",Ku);return e._reactRootContainer=s,e[mo]=s.current,Hr(8===e.nodeType?e.parentNode:e),uu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Uu(l);a.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Ku);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),uu(function(){Hu(t,l,n,r)}),l}(n,t,e,o,r);return Uu(s)}Gu.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Gu.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uu(function(){Hu(null,e,null,null)}),t[mo]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Vt(e)}},Ct=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(vt(t,1|n),nu(t,Ke()),!(6&Ol)&&(Bl=Ke()+500,Uo()))}break;case 13:uu(function(){var t=Li(e,1);if(null!==t){var n=Jl();tu(t,e,1,n)}}),Wu(e,1)}},_t=function(e){if(13===e.tag){var t=Li(e,134217728);null!==t&&tu(t,e,134217728,Jl()),Wu(e,134217728)}},xt=function(e){if(13===e.tag){var t=eu(e),n=Li(e,t);null!==n&&tu(n,e,t,Jl()),Wu(e,t)}},Et=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_o(r);if(!o)throw Error(i(90));Q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=lu,ke=uu;var Ju={usingClientEntryPoint:!1,Events:[wo,Co,_o,Pe,Oe,lu]},ec={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{ot=nc.inject(tc),it=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ju,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uu(e)},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(i(200));return Xu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,o,0,s,a),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gu(t)},t.render=function(e,t,n){if(!Zu(t))throw Error(i(200));return Xu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(i(40));return!!e._reactRootContainer&&(uu(function(){Xu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=lu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},58997(e,t,n){"use strict";var r=n(70316);t.H=r.createRoot,r.hydrateRoot},70316(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(3396)},32431(e,t,n){"use strict";var r,o;r=n(68630),o=n(70374),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=o.renderToReadableStream},43076(e,t,n){window,e.exports=function(e,t,n){return i={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var s=o.apply(null,r);s&&e.push(s)}else if("object"==i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return s[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,s,a;window,e.exports=(o=n(3),i=n(5),a={},r.m=s=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);function i(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil(function(e,t){return t===r}).takeUntil(function(e,t){return t===o}).concat([[o,i.get(o)]])}function s(e){return i(e).toList()}function a(e){if(e)return s(e).get(0)}function l(e){if(e){var t=a(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach(function(e,n){e.get("key")===t.get("key")&&(r=n-1)}),-1<r)return n.get(r)}}function u(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function c(e){var t=s(e);if(!t.some(function(e){return e.type!==t.get(0).type}))return t.get(0).type}function p(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function d(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=s(e);if(0<i.size){if(n.getIsBackward()){var a=r;r=o,o=a}for(var l=0;l<i.size;l+=1){var u=0===l?r:0,c=l===i.size-1?o:i.get(l).getText().length;t+=i.get(l).getText().slice(u,c)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),i=o.getSelectionAfter(),s=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",s.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function h(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return p(r.EditorState.push(e,t,"split-block"))}function m(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function y(e){var t=new o.Map({}),n=s(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach(function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))}),0===t.size)return t=t.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return t}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function w(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function C(e,t,n){var o,s=e.getSelection();o=s.getIsBackward()?s.getFocusKey():s.getAnchorKey();var a=e.getCurrentContent(),l=a.getBlockForKey(o),u=l.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return e;var c=a.getBlockBefore(o);if(!c)return e;if(c.getType()!==u)return e;var p=l.getDepth();if(1===t&&p===n)return e;var d,f,h,m,g,y,v,b=Math.min(c.getDepth()+1,n),w=(f=t,h=b,m=(d=e).getSelection(),y=(g=d.getCurrentContent()).getBlockMap(),v=i(d).map(function(e){var t=e.getDepth()+f;return t=Math.max(0,Math.min(t,h)),e.set("depth",t)}),y=y.merge(v),g.merge({blockMap:y,selectionBefore:m,selectionAfter:m}));return r.EditorState.push(e,w,"adjust-depth")}function _(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):f(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!w(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return h(e);if(w(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return p(e);if(0<i)return C(e,-1,i)}}}(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){n[e]=0<=r.indexOf(e)}),n}var o=t.getStartOffset(),i=t.getEndOffset(),a=s(e);if(0<a.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<a.size;t+=1){var n=0===t?o:0,r=t===a.size-1?i:a.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var s=function(n){var r=a.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(t){e[t]=e[t]&&r.get(t)===t})},l=n;l<r;l+=1)s(l)}return{v:e}}();if("object"===S(l))return l.v}return{}}function O(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=a(e),s=r;s<o;s+=1){var l=i.getEntityAt(s);if(!l){t=void 0;break}if(s===r)t=l;else if(t!==l){t=void 0;break}}return t}function T(e,t){var n,r=a(e);return r.findEntityRanges(function(e){return e.get("entity")===t},function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}}),n}function k(e,t,n){I[e]["".concat(e.toLowerCase(),"-").concat(n)]=E({},"".concat(t),n)}function A(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},I.color,{},I.bgcolor,{},I.fontSize,{},I.fontFamily,{CODE:I.CODE,SUPERSCRIPT:I.SUPERSCRIPT,SUBSCRIPT:I.SUBSCRIPT})}var I={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function R(e,t,n){var o=e.getSelection(),i=Object.keys(I[t]).reduce(function(e,t){return r.Modifier.removeInlineStyle(e,o,t)},e.getCurrentContent()),s=r.EditorState.push(e,i,"changeinline-style"),a=e.getCurrentInlineStyle();if(o.isCollapsed()&&(s=a.reduce(function(e,t){return r.RichUtils.toggleInlineStyle(e,t)},s)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)a.has(n)||(s=r.RichUtils.toggleInlineStyle(s,n));else{var l="bgcolor"===t?"backgroundColor":t;a.has("".concat(l,"-").concat(n))||(s=r.RichUtils.toggleInlineStyle(s,"".concat(t.toLowerCase(),"-").concat(n)),k(t,l,n))}return s}function M(e){e&&e.getCurrentContent().getBlockMap().map(function(e){return e.get("characterList")}).toList().flatten().forEach(function(e){e&&0===e.indexOf("color-")?k("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?k("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?k("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&k("fontFamily","fontFamily",e.substr(11))})}function D(e,t,n){var r=e.getInlineStyleAt(n).toList().filter(function(e){return e.startsWith(t.toLowerCase())});if(r&&0<r.size)return r.get(0)}function L(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach(function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter(function(e){return e.startsWith(t.toLowerCase())});if(n&&0<n.size)return n.get(0)}(e,t)}),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),a=s(e);if(0<a.size){for(var l=function(e){var n=0===e?o:0,s=e===a.size-1?i:a.get(e).getText().length;n===s&&0===n?(n=1,s=2):n===s&&--n;for(var l=function(o){o===n?t.forEach(function(t){r[t]=D(a.get(e),t,o)}):t.forEach(function(t){r[t]&&r[t]!==D(a.get(e),t,o)&&(r[t]=void 0)})},u=n;u<s;u+=1)l(u)},u=0;u<a.size;u+=1)l(u);return{v:r}}}();if("object"===S(n))return n.v}return{}}function N(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach(function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)}),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",function(){return w}),n.d(t,"changeDepth",function(){return C}),n.d(t,"handleNewLine",function(){return _}),n.d(t,"getEntityRange",function(){return T}),n.d(t,"getCustomStyleMap",function(){return A}),n.d(t,"toggleCustomInlineStyle",function(){return R}),n.d(t,"getSelectionEntity",function(){return O}),n.d(t,"extractInlineStyle",function(){return M}),n.d(t,"removeAllInlineStyles",function(){return N}),n.d(t,"getSelectionInlineStyle",function(){return P}),n.d(t,"getSelectionCustomInlineStyle",function(){return L}),n.d(t,"getSelectedBlocksMap",function(){return i}),n.d(t,"getSelectedBlocksList",function(){return s}),n.d(t,"getSelectedBlock",function(){return a}),n.d(t,"getBlockBeforeSelectedBlock",function(){return l}),n.d(t,"getAllBlocks",function(){return u}),n.d(t,"getSelectedBlocksType",function(){return c}),n.d(t,"removeSelectedBlocksStyle",function(){return p}),n.d(t,"getSelectionText",function(){return d}),n.d(t,"addLineBreakRemovingSelection",function(){return f}),n.d(t,"insertNewUnstyledBlock",function(){return h}),n.d(t,"clearEditorContent",function(){return m}),n.d(t,"setBlockData",function(){return g}),n.d(t,"getSelectedBlocksMetadata",function(){return y}),n.d(t,"blockRenderMap",function(){return b})}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return s[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,s,a;window,e.exports=(o=n(5),i=n(3),a={},r.m=s=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},s=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},a=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},l=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},u=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},c=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),d={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function f(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",function(){return v});var m=" ",g=new RegExp("&nbsp;","g"),y=!0;function v(e,t){var n,v,b=(n=t,(v=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(g,m)))?(y=!0,{chunk:function e(t,n,o,m,g,v){var b=t.nodeName.toLowerCase();if(v){var w=v(b,t);if(w){var C=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:u(C)}}}if("#text"===b&&"\n"!==t.textContent)return i(t,n,g);if("br"===b)return{chunk:s()};if("img"===b&&t instanceof HTMLImageElement){var _={};_.src=t.getAttribute&&t.getAttribute("src")||t.src,_.alt=t.alt,_.height=t.style.height,_.width=t.style.width,t.style.float&&(_.alignment=t.style.float);var x=r.Entity.__create("IMAGE","MUTABLE",_);return{chunk:u(x)}}if("video"===b&&t instanceof HTMLVideoElement){var E={};E.src=t.getAttribute&&t.getAttribute("src")||t.src,E.alt=t.alt,E.height=t.style.height,E.width=t.style.width,t.style.float&&(E.alignment=t.style.float);var S=r.Entity.__create("VIDEO","MUTABLE",E);return{chunk:u(S)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var P={};P.src=t.getAttribute&&t.getAttribute("src")||t.src,P.height=t.height,P.width=t.width;var O=r.Entity.__create("EMBEDDED_LINK","MUTABLE",P);return{chunk:u(O)}}var T,k=function(e,t){var n=p.filter(function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)}).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,m);k&&("ul"===b||"ol"===b?(m=b,o+=1):("unordered-list-item"!==k&&"ordered-list-item"!==k&&(m="",o=-1),y?(T=a(k,f(t)),y=!1):T=l(k,o,f(t)))),T=T||{text:"",inlines:[],entities:[],blocks:[]},n=function(e,t,n){var r,o=d[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations(function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),s=i.style.fontWeight,a=i.style.textDecoration,l=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===s&&e.add(d.strong),"underline"===a&&e.add(d.ins),"italic"===l&&e.add(d.em)}).toOrderedSet()}return r}(b,t,n);for(var A=t.firstChild;A;){var I=e(A,n,o,m,h(A)||g,v).chunk;T=c(T,I),A=A.nextSibling}return{chunk:T}}(v,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,C=new o.OrderedMap({});w.entities&&w.entities.forEach(function(e){e&&(C=C.set(e,r.Entity.__get(e)))});var _=0;return{contentBlocks:w.text.split("\r").map(function(e,t){var n=_+e.length,i=w&&w.inlines.slice(_,n),s=w&&w.entities.slice(_,n),a=new o.List(i.map(function(e,t){var n={style:e,entity:null};return s[t]&&(n.entity=s[t]),r.CharacterMetadata.create(n)}));return _=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[t]&&w.blocks[t].type||"unstyled",depth:w&&w.blocks[t]&&w.blocks[t].depth,data:w&&w.blocks[t]&&w.blocks[t].data||new o.Map({}),text:e,characterList:a})}),entityMap:C}}return null}}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function c(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,s={validate:null,link:null};if(e.__compiled__[t]=s,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?s.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?s.validate=n.validate:u(t,n),void(i(n.normalize)?s.normalize=n.normalize:n.normalize?u(t,n):s.normalize=function(e,t){t.normalize(e)});"[object String]"!==o(n)?u(t,n):l.push(t)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c,p=Object.keys(e.__compiled__).filter(function(t){return 0<t.length&&e.__compiled__[t]}).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(c=e).__index__=-1,c.__text_cache__=""}function p(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||a.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,s,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),c(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){"use strict";var r=n(11);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",function(){return Cr});var r=n(1),o=n.n(r),i=n(0),s=n.n(i),a=n(3),l=n(4),u=n(2),c=n.n(u);function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach(function(t){t(e)})},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",function(){t.editorFlag=!0}),document&&(document.addEventListener("click",function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&t.closeAllModals()}))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter(function(t){return t!==e})},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}});function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h,m=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}),g=[],y={onKeyDown:function(e){g.forEach(function(t){t(e)})},registerCallBack:function(e){g.push(e)},deregisterCallBack:function(e){g=g.filter(function(t){return t!==e})}},v=function(){h=!0},b=function(){h=!1},w=function(){return h};function C(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function _(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function x(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function E(e){e.stopPropagation()}function S(e){return e[e.options[0]].icon}function P(e,t){if(e&&void 0===t)return e;var n={};return _(e,function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=P(r,t[e]):n[e]=void 0!==t[e]?t[e]:r}),n}var O=n(6),T=n.n(O),k=n(5);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var L=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=D(e);if(t){var o=D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,i=t.activeClassName,s=t.active,a=t.disabled,l=t.title;return o.a.createElement("div",{className:c()("rdw-option-wrapper",r,(I(e={},"rdw-option-active ".concat(i),s),I(e,"rdw-option-disabled",a),e)),onClick:this.onClick,"aria-selected":s,title:l},n)}}])&&R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}L.propTypes={onClick:s.a.func.isRequired,children:s.a.any,value:s.a.string,className:s.a.string,activeClassName:s.a.string,active:s.a.bool,disabled:s.a.bool,title:s.a.string},L.defaultProps={activeClassName:""},n(12);var z=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,i=t.className,s=t.optionWrapperClassName,a=t.ariaLabel,l=t.onExpandEvent,u=t.title,p=this.state.highlighted,d=r.slice(1,r.length);return o.a.createElement("div",{className:c()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":a||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:u},r[0],o.a.createElement("div",{className:c()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:c()("rdw-dropdown-optionwrapper",s),onClick:E},o.a.Children.map(d,function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:p===n,setHighlighted:e.setHighlighted,index:n})})):void 0)}}])&&V(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}z.propTypes={children:s.a.any,onChange:s.a.func,className:s.a.string,expanded:s.a.bool,doExpand:s.a.func,doCollapse:s.a.func,onExpandEvent:s.a.func,optionWrapperClassName:s.a.string,ariaLabel:s.a.string,title:s.a.string},n(13);var $=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,i=t.disabled,s=t.highlighted,a=t.className,l=t.activeClassName,u=t.disabledClassName,p=t.highlightedClassName,d=t.title;return o.a.createElement("li",{className:c()("rdw-dropdownoption-default",a,(H(e={},"rdw-dropdownoption-active ".concat(l),r),H(e,"rdw-dropdownoption-highlighted ".concat(p),s),H(e,"rdw-dropdownoption-disabled ".concat(u),i),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:d},n)}}])&&U(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}$.propTypes={children:s.a.any,value:s.a.any,onClick:s.a.func,onSelect:s.a.func,setHighlighted:s.a.func,index:s.a.number,disabled:s.a.bool,active:s.a.bool,highlighted:s.a.bool,className:s.a.string,activeClassName:s.a.string,disabledClassName:s.a.string,highlightedClassName:s.a.string,title:s.a.string},$.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var K=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,i=e.translations;return o.a.createElement("div",{className:c()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map(function(e,s){return o.a.createElement(L,{key:s,value:e,onClick:r,className:c()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||i["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))}))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,s=e.doCollapse,a=e.currentState,l=e.onChange,u=e.translations,p=t.className,d=t.dropdownClassName,f=t.title;return o.a.createElement(z,{className:c()("rdw-inline-dropdown",p),optionWrapperClassName:c()(d),onChange:l,expanded:n,doExpand:r,doCollapse:s,onExpandEvent:i,"aria-label":"rdw-inline-control",title:f},o.a.createElement("img",{src:S(t),alt:""}),t.options.map(function(e,n){return o.a.createElement($,{key:n,value:e,className:c()("rdw-inline-dropdownoption",t[e].className),active:!0===a[e]||"MONOSPACE"===e&&a.CODE,title:t[e].title||u["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&G(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}K.propTypes={expanded:s.a.bool,doExpand:s.a.func,doCollapse:s.a.func,onExpandEvent:s.a.func,config:s.a.object,onChange:s.a.func,currentState:s.a.object,translations:s.a.object};var ne=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,i=r.onChange,s=a.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",u=a.Modifier.removeInlineStyle(s.getCurrentContent(),s.getSelection(),l);s=a.EditorState.push(s,u,"change-inline-style")}s&&i(s)},t.changeKeys=function(e){if(e){var t={};return _(e,function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n}),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,s=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(l.getSelectionInlineStyle)(o)):{}},s.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,s=r.currentStyles,a=t.component||K;return o.a.createElement(a,{config:t,translations:n,currentState:s,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&J(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ne.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object},n(15);var ae=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,i=t.currentState.blockType;return o.a.createElement("div",{className:c()("rdw-inline-wrapper",n)},e.map(function(e,t){return o.a.createElement(L,{key:t,value:e.label,active:i===e.label,onClick:r},e.displayName)}))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,s=n.title,a=t.currentState.blockType,l=t.expanded,u=t.doExpand,p=t.onExpandEvent,d=t.doCollapse,f=t.onChange,h=t.translations,m=this.state.blockTypes.filter(function(e){return e.label===a}),g=m&&m[0]&&m[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(z,{className:c()("rdw-block-dropdown",r),optionWrapperClassName:c()(i),onChange:f,expanded:l,doExpand:u,doCollapse:d,onExpandEvent:p,title:s||h["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||h["components.controls.blocktype.blocktype"]),e.map(function(e,t){return o.a.createElement($,{active:a===e.label,value:e.label,key:t},e.displayName)})))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter(function(t){var n=t.label;return-1<e.options.indexOf(n)});return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();ae.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,doExpand:s.a.func,doCollapse:s.a.func,onChange:s.a.func,config:s.a.object,currentState:s.a.object,translations:s.a.object};var le=ae;function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find(function(t){return t.label===e}).style,r=t.props,o=r.editorState,i=r.onChange,s=a.RichUtils.toggleBlockType(o,n);s&&i(s)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(l.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,s=r.currentBlockType,a=t.component||le,l=this.blocksTypes.find(function(e){return e.style===s});return o.a.createElement(a,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();fe.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object,modalHandler:s.a.object,config:s.a.object,translations:s.a.object};var he=fe;function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.dropdownClassName,s=t.options,a=t.title,l=e.onChange,u=e.expanded,p=e.doCollapse,d=e.onExpandEvent,f=e.doExpand,h=e.translations,m=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),m=m||s&&0<=s.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(z,{className:c()("rdw-fontsize-dropdown",r),optionWrapperClassName:c()(i),onChange:l,expanded:u,doExpand:f,doCollapse:p,onExpandEvent:d,title:a||h["components.controls.fontsize.fontsize"]},m?o.a.createElement("span",null,m):o.a.createElement("img",{src:n,alt:""}),s.map(function(e,t){return o.a.createElement($,{className:"rdw-fontsize-option",active:m===e,value:e,key:t},e)})))}}])&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _e(e,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}be.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,doExpand:s.a.func,doCollapse:s.a.func,onChange:s.a.func,config:s.a.object,currentState:s.a.object,translations:s.a.object};var Ee=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,s=r.currentFontSize,a=t.component||be,l=s&&Number(s.substring(9));return o.a.createElement(a,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ee.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object,modalHandler:s.a.object,config:s.a.object,translations:s.a.object},n(17);var ke=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oe(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,s=n.options,a=n.title,l=t.translations,u=t.onChange,p=t.expanded,d=t.doCollapse,f=t.onExpandEvent,h=t.doExpand,m=this.props.currentState.fontFamily;return m=m||s&&e&&s.some(function(t){return t.toLowerCase()===e.toLowerCase()})&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(z,{className:c()("rdw-fontfamily-dropdown",r),optionWrapperClassName:c()("rdw-fontfamily-optionwrapper",i),onChange:u,expanded:p,doExpand:h,doCollapse:d,onExpandEvent:f,title:a||l["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},m||l["components.controls.fontfamily.fontfamily"]),s.map(function(e,t){return o.a.createElement($,{active:m===e,value:e,key:t},e)})))}}])&&Pe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();ke.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,doExpand:s.a.func,doCollapse:s.a.func,onChange:s.a.func,config:s.a.object,currentState:s.a.object,translations:s.a.object};var Ae=ke;function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return(Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,s=r.currentFontFamily,a=t.component||Ae,l=s&&s.substring(11);return o.a.createElement(a,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object,modalHandler:s.a.object,config:s.a.object,translations:s.a.object},n(18);var ze=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Fe(e);if(t){var o=Fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,i=e.indentDisabled,s=e.outdentDisabled,a=t.options,l=t.unordered,u=t.ordered,p=t.indent,d=t.outdent,f=t.className;return o.a.createElement("div",{className:c()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=a.indexOf("unordered")&&o.a.createElement(L,{value:"unordered",onClick:this.toggleBlockType,className:c()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=a.indexOf("ordered")&&o.a.createElement(L,{value:"ordered",onClick:this.toggleBlockType,className:c()(u.className),active:"ordered"===n,title:u.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=a.indexOf("indent")&&o.a.createElement(L,{onClick:this.indent,disabled:i,className:c()(p.className),title:p.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=a.indexOf("outdent")&&o.a.createElement(L,{onClick:this.outdent,disabled:s,className:c()(d.className),title:d.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:d.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,i=t.doCollapse,s=t.doExpand,a=t.onExpandEvent,l=t.onChange,u=t.currentState.listType,p=t.translations,d=n.options,f=n.className,h=n.dropdownClassName,m=n.title;return o.a.createElement(z,{className:c()("rdw-list-dropdown",f),optionWrapperClassName:c()(h),onChange:l,expanded:r,doExpand:s,doCollapse:i,onExpandEvent:a,"aria-label":"rdw-list-control",title:m||p["components.controls.list.list"]},o.a.createElement("img",{src:S(n),alt:""}),this.options.filter(function(e){return 0<=d.indexOf(e)}).map(function(t,r){return o.a.createElement($,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:c()("rdw-list-dropdownOption",n[t].className),active:u===t,title:n[t].title||p["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ue(e,t){return(Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ze.propTypes={expanded:s.a.bool,doExpand:s.a.func,doCollapse:s.a.func,onExpandEvent:s.a.func,config:s.a.object,onChange:s.a.func,currentState:s.a.object,translations:s.a.object,indentDisabled:s.a.bool,outdentDisabled:s.a.bool};var We=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ue(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=a.RichUtils.toggleBlockType(o,e);i&&r(i)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=Object(l.changeDepth)(o,e,4);i&&r(i)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,s=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(l.getSelectedBlock)(o):void 0},s.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,i=this.state,s=i.expanded,a=i.currentBlock,l=n.component||ze;"unordered-list-item"===a.get("type")?e="unordered":"ordered-list-item"===a.get("type")&&(e="ordered");var u=this.isIndentDisabled(),c=this.isOutdentDisabled();return o.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:u,outdentDisabled:c})}}])&&He(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t){return(Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}We.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object},n(19);var Ze=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Ye(e);if(t){var o=Ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,i=t.center,s=t.right,a=t.justify,l=t.className,u=e.onChange,p=e.currentState.textAlignment,d=e.translations;return o.a.createElement("div",{className:c()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(L,{value:"left",className:c()(r.className),active:"left"===p,onClick:u,title:r.title||d["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(L,{value:"center",className:c()(i.className),active:"center"===p,onClick:u,title:i.title||d["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(L,{value:"right",className:c()(s.className),active:"right"===p,onClick:u,title:s.title||d["components.controls.textalign.right"]},o.a.createElement("img",{src:s.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(L,{value:"justify",className:c()(a.className),active:"justify"===p,onClick:u,title:a.title||d["components.controls.textalign.justify"]},o.a.createElement("img",{src:a.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,s=e.doCollapse,a=e.currentState.textAlignment,l=e.onChange,u=e.translations,p=t.options,d=t.left,f=t.center,h=t.right,m=t.justify,g=t.className,y=t.dropdownClassName,v=t.title;return o.a.createElement(z,{className:c()("rdw-text-align-dropdown",g),optionWrapperClassName:c()(y),onChange:l,expanded:n,doExpand:r,doCollapse:s,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:v||u["components.controls.textalign.textalign"]},o.a.createElement("img",{src:a&&t[a]&&t[a].icon||S(t),alt:""}),0<=p.indexOf("left")&&o.a.createElement($,{value:"left",active:"left"===a,className:c()("rdw-text-align-dropdownOption",d.className),title:d.title||u["components.controls.textalign.left"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("center")&&o.a.createElement($,{value:"center",active:"center"===a,className:c()("rdw-text-align-dropdownOption",f.className),title:f.title||u["components.controls.textalign.center"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("right")&&o.a.createElement($,{value:"right",active:"right"===a,className:c()("rdw-text-align-dropdownOption",h.className),title:h.title||u["components.controls.textalign.right"]},o.a.createElement("img",{src:h.icon,alt:""})),0<=p.indexOf("justify")&&o.a.createElement($,{value:"justify",active:"justify"===a,className:c()("rdw-text-align-dropdownOption",m.className),title:m.title||u["components.controls.textalign.justify"]},o.a.createElement("img",{src:m.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ze.propTypes={expanded:s.a.bool,doExpand:s.a.func,doCollapse:s.a.func,onExpandEvent:s.a.func,config:s.a.object,onChange:s.a.func,currentState:s.a.object,translations:s.a.object};var tt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,s=r.currentTextAlignment,a=t.component||Ze;return o.a.createElement(a,{config:t,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:s},onChange:this.addBlockAlignmentData})}}])&&Xe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tt.propTypes={editorState:s.a.object.isRequired,onChange:s.a.func.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object},n(20);var st=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,i=n.colors,s=t.currentState,a=s.color,l=s.bgColor,u=t.translations,p=e.state.currentStyle,d="color"===p?a:l;return o.a.createElement("div",{className:c()("rdw-colorpicker-modal",r),onClick:E},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:c()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===p}),onClick:e.setCurrentStyleColor},u["components.controls.colorpicker.text"]),o.a.createElement("span",{className:c()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===p}),onClick:e.setCurrentStyleBgcolor},u["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map(function(t,n){return o.a.createElement(L,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:d===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))})))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,s=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":s,"aria-label":"rdw-color-picker",title:i||l["components.controls.colorpicker.colorpicker"]},o.a.createElement(L,{onClick:a,className:c()(r)},o.a.createElement("img",{src:n,alt:""})),s?this.renderModal():void 0)}}])&&rt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();st.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,onChange:s.a.func,config:s.a.object,currentState:s.a.object,translations:s.a.object};var at=st;function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,o=r.editorState,i=r.onChange,s=Object(l.toggleCustomInlineStyle)(o,e,n);s&&i(s),t.doCollapse()};var r=e.editorState,o=e.modalHandler,s={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(s.currentColor=Object(l.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,s.currentBgColor=Object(l.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=s,o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.currentColor,s=r.currentBgColor,a=r.expanded,l=t.component||at,u=i&&i.substring(6),c=s&&s.substring(8);return o.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:u,bgColor:c}})}}])&&ut(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();dt.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object};var ft=dt,ht=n(7),mt=n.n(ht);function gt(e){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var wt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=bt(e);if(t){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,s=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||s,linkTitle:o&&o.title||i})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,s=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||s,linkTitle:o&&o.title||i})},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,i=this.state,s=i.linkTitle,a=i.linkTarget,l=i.linkTargetOption;return o.a.createElement("div",{className:c()("rdw-link-modal",t),onClick:E},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:s}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:a}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!a||!s},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,i=t.unlink,s=t.className,a=e.currentState,l=e.expanded,u=e.translations,p=this.state.showModal;return o.a.createElement("div",{className:c()("rdw-link-wrapper",s),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(L,{value:"unordered-list-item",className:c()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:r.title||u["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(L,{disabled:!a.link,value:"ordered-list-item",className:c()(i.className),onClick:this.removeLink,title:i.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),l&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,i=e.doExpand,s=e.onChange,a=e.config,l=e.currentState,u=e.translations,p=a.options,d=a.link,f=a.unlink,h=a.className,m=a.dropdownClassName,g=a.title,y=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(z,{className:c()("rdw-link-dropdown",h),optionWrapperClassName:c()(m),onChange:s,expanded:t&&!y,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:S(a),alt:""}),0<=p.indexOf("link")&&o.a.createElement($,{onClick:this.forceExpandAndShowModal,className:c()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.link"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("unlink")&&o.a.createElement($,{onClick:this.removeLink,disabled:!l.link,className:c()("rdw-link-dropdownoption",f.className),title:f.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:f.icon,alt:""}))),t&&y?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&yt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wt.propTypes={expanded:s.a.bool,doExpand:s.a.func,doCollapse:s.a.func,onExpandEvent:s.a.func,config:s.a.object,onChange:s.a.func,currentState:s.a.object,translations:s.a.object};var Ct=wt;function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Et(e,t){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach(function(t){Tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e){var t=At.match(e.target);return Ot(Ot({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var At=mt()(),It=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var i=t.props.config.linkCallback;if("link"===e){var s=(i||kt)({title:n,target:r,targetOption:o});t.addLink(s.title,s.target,s.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(l.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(l.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,i=n.getSelection();if(o){var s=Object(l.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:s.end,focusOffset:s.start}):i.merge({anchorOffset:s.start,focusOffset:s.end}),r(a.RichUtils.toggleLink(n,i,null))}},t.addLink=function(e,n,r){var o=t.props,i=o.editorState,s=o.onChange,u=t.state.currentEntity,c=i.getSelection();if(u){var p=Object(l.getEntityRange)(i,u);c=c.getIsBackward()?c.merge({anchorOffset:p.end,focusOffset:p.start}):c.merge({anchorOffset:p.start,focusOffset:p.end})}var d=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),f=a.Modifier.replaceText(i.getCurrentContent(),c,"".concat(e),i.getCurrentInlineStyle(),d),h=a.EditorState.push(i,f,"insert-characters");c=h.getSelection().merge({anchorOffset:c.get("anchorOffset")+e.length,focusOffset:c.get("anchorOffset")+e.length}),h=a.EditorState.acceptSelection(h,c),f=a.Modifier.insertText(h.getCurrentContent(),c," ",h.getCurrentInlineStyle(),void 0),s(a.EditorState.push(h,f,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,s=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(l.getSelectionEntity)(o):void 0},s.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=this.getCurrentValues(),s=i.link,a=i.selectionText,l=t.component||Ct;return o.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:s,selectionText:a},onChange:this.onChange})}}])&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();It.propTypes={editorState:s.a.object.isRequired,onChange:s.a.func.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object};var Rt=It;function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t){return(Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var Vt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Nt(e);if(t){var o=Nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,i=o.height,s=o.width;this.setState({embeddedLink:"",height:i,width:s})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,i=this.props,s=i.config.popupClassName,a=i.doCollapse,l=i.translations;return o.a.createElement("div",{className:c()("rdw-embedded-modal",s),onClick:E},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:a},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,s=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":s,"aria-label":"rdw-embedded-control"},o.a.createElement(L,{className:c()(r),value:"unordered-list-item",onClick:a,title:i||l["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),s?this.rendeEmbeddedLinkModal():void 0)}}])&&Dt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Vt.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,onChange:s.a.func,config:s.a.object,translations:s.a.object,doCollapse:s.a.func};var jt=Vt;function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return(Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var o=e.props,i=o.editorState,s=o.onChange,l=o.config.embedCallback,u=l?l(t):t,c=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:u,height:n,width:r}).getLastCreatedEntityKey();s(a.AtomicBlockUtils.insertAtomicBlock(i,c," ")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||jt;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Ut.propTypes={editorState:s.a.object.isRequired,onChange:s.a.func.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object};var qt=Ut;function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e,t){return(Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var Yt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=i,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:c()("rdw-emoji-modal",n),onClick:E},r.map(function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)}))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,s=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":s,title:i||l["components.controls.emoji.emoji"]},o.a.createElement(L,{className:c()(r),value:"unordered-list-item",onClick:a},o.a.createElement("img",{src:n,alt:""})),s?this.renderEmojiModal():void 0)}}])&&$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Yt.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,onChange:s.a.func,config:s.a.object,translations:s.a.object};var Zt=Yt;function Kt(e){return(Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jt(e,t){return(Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Kt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=a.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(a.EditorState.push(r,i,"insert-characters")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Zt;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sn(e,t){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function an(e){return(an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tn.propTypes={editorState:s.a.object.isRequired,onChange:s.a.func.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object},n(29),n(30);var ln=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=an(e);if(t){var o=an(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];e.uploadImage(i)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,i=o.height,s=o.width,a=e.props.onChange;isNaN(i)||(i+="px"),isNaN(s)||(s+="px"),a(n,i,s,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then(function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1}).catch(function(){e.setState({showImageLoading:!1,dragEnter:!1})})},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,i=e.dragEnter,s=e.height,a=e.width,l=e.alt,u=this.props,p=u.config,d=p.popupClassName,f=p.uploadCallback,h=p.uploadEnabled,m=p.urlEnabled,g=p.previewImage,y=p.inputAccept,v=p.alt,b=u.doCollapse,w=u.translations;return o.a.createElement("div",{className:c()("rdw-image-modal",d),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},h&&f&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},w["components.controls.image.fileUpload"],o.a.createElement("span",{className:c()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),m&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},w["components.controls.image.byURL"],o.a.createElement("span",{className:c()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:c()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||w["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:y,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:w["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!s||!a||v.mandatory&&!l},w["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},w["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(nn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,s=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":s,"aria-label":"rdw-image-control"},o.a.createElement(L,{className:c()(r),value:"unordered-list-item",onClick:a,title:i||l["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),s?this.renderAddImageModal():void 0)}}])&&on(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();ln.propTypes={expanded:s.a.bool,onExpandEvent:s.a.func,doCollapse:s.a.func,onChange:s.a.func,config:s.a.object,translations:s.a.object};var un=ln;function cn(e){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t){return(dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fn(e){return(fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=fn(e);if(t){var o=fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var i=t.props,s=i.editorState,l=i.onChange,u={src:e,height:n,width:r};i.config.alt.present&&(u.alt=o);var c=s.getCurrentContent().createEntity("IMAGE","MUTABLE",u).getLastCreatedEntityKey();l(a.AtomicBlockUtils.insertAtomicBlock(s,c," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||un;return o.a.createElement(i,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&pn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mn(e){var t=e.config,n=e.onChange,r=e.translations,i=t.icon,s=t.className,a=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(L,{className:c()(s),onClick:n,title:a||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}hn.propTypes={editorState:s.a.object.isRequired,onChange:s.a.func.isRequired,modalHandler:s.a.object,config:s.a.object,translations:s.a.object};var gn=hn;n(31),mn.propTypes={onChange:s.a.func,config:s.a.object,translations:s.a.object};var yn=mn;function vn(e){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wn(e,t){return(wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(n){t=a.Modifier.removeInlineStyle(t,e.getSelection(),n)}),_(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(n,r){r&&(t=a.Modifier.removeInlineStyle(t,e.getSelection(),r))}),a.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||yn;return o.a.createElement(i,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&bn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sn(e,t){return(Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_n.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object.isRequired,config:s.a.object,translations:s.a.object,modalHandler:s.a.object},n(32);var On=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Pn(e);if(t){var o=Pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=i,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,s=e.doCollapse,a=e.currentState,l=a.undoDisabled,u=a.redoDisabled,p=e.translations,d=t.options,f=t.undo,h=t.redo,m=t.className,g=t.dropdownClassName,y=t.title;return o.a.createElement(z,{className:c()("rdw-history-dropdown",m),optionWrapperClassName:c()(g),expanded:n,doExpand:r,doCollapse:s,onExpandEvent:i,"aria-label":"rdw-history-control",title:y||p["components.controls.history.history"]},o.a.createElement("img",{src:S(t),alt:""}),0<=d.indexOf("undo")&&o.a.createElement($,{value:"undo",onClick:this.onChange,disabled:l,className:c()("rdw-history-dropdownoption",f.className),title:f.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("redo")&&o.a.createElement($,{value:"redo",onClick:this.onChange,disabled:u,className:c()("rdw-history-dropdownoption",h.className),title:h.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,i=t.redo,s=t.className,a=e.currentState,l=a.undoDisabled,u=a.redoDisabled,p=e.translations;return o.a.createElement("div",{className:c()("rdw-history-wrapper",s),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(L,{value:"undo",onClick:this.onChange,className:c()(r.className),disabled:l,title:r.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(L,{value:"redo",onClick:this.onChange,className:c()(i.className),disabled:u,title:i.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&En(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return(An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}On.propTypes={expanded:s.a.bool,doExpand:s.a.func,doCollapse:s.a.func,onExpandEvent:s.a.func,config:s.a.object,onChange:s.a.func,currentState:s.a.object,translations:s.a.object};var Rn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=In(e);if(t){var o=In(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=a.EditorState[e](r);i&&o(i)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,s=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,s.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.undoDisabled,s=r.redoDisabled,a=r.expanded,l=t.component||On;return o.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:i,redoDisabled:s},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&kn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Rn.propTypes={onChange:s.a.func.isRequired,editorState:s.a.object,modalHandler:s.a.object,config:s.a.object,translations:s.a.object};var Mn={inline:ne,blockType:he,fontSize:Ee,fontFamily:Le,list:We,textAlign:tt,colorPicker:ft,link:Rt,embedded:qt,emoji:tn,image:gn,remove:_n,history:Rn},Dn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ln=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Nn(e){return String(e).replace(Dn,"").match(Ln)?e:"#"}function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(e,t){return(Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zn(e){return(zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()},t)}function Hn(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fn(e,t)}(s,r.Component);var e,t,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=zn(e);if(t){var o=zn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(Nn(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=s,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,i=e.contentState.getEntity(r).getData(),s=i.url,a=i.targetOption,l=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:Nn(s),target:a},t),l&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),s}()).propTypes={entityKey:s.a.string.isRequired,children:s.a.array,contentState:s.a.object},t}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(33),n(34);var qn=function(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,i=e.contentState.getEntity(n).getData(),s=i.url,a=i.value;return o.a.createElement("a",{href:s||a,className:c()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:s.a.number,children:s.a.array,contentState:s.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t});qn.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()},t)};var Wn=qn;function $n(e){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){return(Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gn(e){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zn(e,t,n){return t&&Yn(e.prototype,t),n&&Yn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Xn=Zn(function e(t){var n=this;Kn(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,s=r.getSuggestions,a=(0,r.getEditorState)().getSelection();if(a.get("anchorKey")===e.get("key")&&a.get("anchorKey")===a.get("focusKey")){var l=e.getText(),u=(l=l.substr(0,a.get("focusOffset")===l.length-1?l.length:a.get("focusOffset")+1)).lastIndexOf(o+i),c=o+i;if((void 0===u||u<0)&&l[0]===i&&(u=0,c=i),0<=u){var p=l.substr(u+c.length,l.length);s().some(function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(p):0<=e.value.toLowerCase().indexOf(p&&p.toLowerCase()))})&&t(0===u?0:u+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qn(e,t)}(n,r.Component);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Gn(e);if(t){var o=Gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(n);function n(){var r;Kn(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(r=e.call.apply(e,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,b()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter(function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))})},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,i=t.separator,s=t.trigger,u=r.filteredSuggestions[e];u&&function(e,t,n,r,o){var i=o.value,s=o.url,u=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:s}).getLastCreatedEntityKey(),c=Object(l.getSelectedBlock)(e).getText(),p=e.getSelection().focusOffset,d=(c.lastIndexOf(n+r,p)||0)+1,f=!1;c.length===d+1&&(p=c.length)," "===c[p]&&(f=!0);var h=e.getSelection().merge({anchorOffset:d,focusOffset:p}),m=a.EditorState.acceptSelection(e,h),g=a.Modifier.replaceText(m.getCurrentContent(),h,"".concat(r).concat(i),m.getCurrentInlineStyle(),u);m=a.EditorState.push(m,g,"insert-characters"),f||(h=m.getSelection().merge({anchorOffset:d+i.length+r.length,focusOffset:d+i.length+r.length}),m=a.EditorState.acceptSelection(m,h),g=a.Modifier.insertText(m.getCurrentContent(),h," ",m.getCurrentInlineStyle(),void 0)),t(a.EditorState.push(m,g,"insert-characters"))}(n,o,i,s,u)},r}return Zn(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),s=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+s.width?n=15:e=15,o.bottom<s.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),v(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),b(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,i=r.activeOption,s=r.showSuggestions,a=t.dropdownClassName,l=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),s&&o.a.createElement("span",{className:c()("rdw-suggestion-dropdown",a),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map(function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:c()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===i})},t.text)})))}}]),n}()).propTypes={children:s.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=t.separator,u=t.trigger,p=t.getSuggestions,d=t.onChange,f=t.getEditorState,h=t.getWrapperRef,m=t.caseSensitive,g=t.dropdownClassName,w=t.optionClassName,C=t.modalHandler;this.config={separator:i,trigger:u,getSuggestions:p,onChange:d,getEditorState:f,getWrapperRef:h,caseSensitive:m,dropdownClassName:g,optionClassName:w,modalHandler:C}});function Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function er(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,i=n.height,s=n.width;return o.a.createElement("iframe",{height:i,width:s,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var tr=function(e,t,n){return t&&Jn(e.prototype,t),n&&Jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:c()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:s.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var s=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,a=r.substr(0,s);a&&0<a.length&&(t(i,i+a.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "});er.propTypes={block:s.a.object,contentState:s.a.object};var nr=er;function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var ar=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(s,r.Component);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=sr(e);if(t){var o=sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(s);function s(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,i=r.contentState,s=o.getEntityAt(0);i.mergeEntityData(s,{alignment:n}),e.onChange(a.EditorState.push(e.getEditorState(),i,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=s,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:c()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(L,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(L,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(L,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,i=this.state.hovered,s=e.isReadOnly,a=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),u=l.src,p=l.alignment,d=l.height,f=l.width,h=l.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:c()("rdw-image-alignment",{"rdw-image-left":"left"===p,"rdw-image-right":"right"===p,"rdw-image-center":!p||"none"===p})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:u,alt:h,style:{height:d,width:f}}),!s()&&i&&a()?this.renderAlignmentOptions(p):void 0))}}])&&or(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}()).propTypes={block:s.a.object,contentState:s.a.object},t},lr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},ur={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pr(){return(pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach(function(t){hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var wr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(a.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),x(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(mr(t.props.customDecorators),[{strategy:Bn,component:Hn({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,mr(function(e){return[new Wn(e.mentionClassName).getMentionDecorator(),new Xn(e).getSuggestionDecorator()]}(fr(fr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(function(e){return new tr(e).getHashtagDecorator()}(t.props.hashtag)),new a.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout(function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(a.convertToRaw)(e.getCurrentContent())),o&&o(Object(a.convertToRaw)(e.getCurrentContent()))})},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(x(t.props,"editorState"))t.props.editorState&&(n=a.EditorState.set(t.props.editorState,{decorator:e}));else if(x(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=a.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(x(t.props,"contentState")){if(t.props.contentState){var r=Object(a.convertFromRaw)(t.props.contentState);n=a.EditorState.createWithContent(r,e),n=a.EditorState.moveSelectionToEnd(n)}}else if(x(t.props,"defaultContentState")||x(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(a.convertFromRaw)(o),n=a.EditorState.createWithContent(o,e),n=a.EditorState.moveSelectionToEnd(n))}return n||a.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter(function(e){return n.indexOf(e)<0}),o={},r&&0<r.length&&r.forEach(function(e){o[e]=t[e]}),o;var t,n,r,o},t.getStyleMap=function(e){return fr(fr({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(a.convertFromRaw)(e),r=t.state.editorState;return r=a.EditorState.push(r,n,"insert-characters"),a.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout(function(){t.editor.focus()})},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var i=a.RichUtils.handleKeyCommand(r,e);if(i)return t.onChange(i),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,i=o.handlePastedText,s=o.stripPastedStyles;return i?i(e,n,r,t.onChange):!s&&function(e,t,n,r){var o=Object(l.getSelectedBlock)(n);if(o&&"code"===o.type){var i=a.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(a.EditorState.push(n,i,"insert-characters")),!0}if(t){var s=T()(t),u=n.getCurrentContent();return s.entityMap.forEach(function(e,t){u=u.mergeEntityData(t,e)}),u=a.Modifier.replaceWithFragment(u,n.getSelection(),new k.List(s.contentBlocks)),r(a.EditorState.push(n,u,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=P(lr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new d,t.focusHandler=new m,t.blockRendererFn=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:ar(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:nr,editable:!1}}}}({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var s=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(s),t.state={editorState:s,editorFocused:!1,toolbar:r},t}return e=i,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=P(lr,i);t.toolbar=i}if(x(this.props,"editorState")&&r!==e.editorState)t.editorState=r?a.EditorState.set(r,{decorator:this.compositeDecorator}):a.EditorState.createEmpty(this.compositeDecorator);else if(x(this.props,"contentState")&&o!==e.contentState)if(o){var s=this.changeEditorState(o);s&&(t.editorState=s)}else t.editorState=a.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,i=this.props,s=i.locale,u=i.localization,p=u.locale,d=u.translations,f=i.toolbarCustomButtons,h=i.toolbarOnFocus,m=i.toolbarClassName,g=i.toolbarHidden,v=i.editorClassName,b=i.wrapperClassName,w=i.toolbarStyle,_=i.editorStyle,x=i.wrapperStyle,E=i.uploadCallback,S=i.ariaLabel,P={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:fr(fr({},ur[s||p]),d)},O=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:c()(b,"rdw-editor-wrapper"),style:x,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:c()("rdw-editor-toolbar",m),style:fr({visibility:O?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map(function(e,t){var n=Mn[e],i=r[e];return"image"===e&&E&&(i.uploadCallback=E),o.a.createElement(n,pr({key:t},P,{config:i}))}),f&&f.map(function(e,t){return o.a.cloneElement(e,fr({key:t},P))})),o.a.createElement("div",{ref:this.setWrapperReference,className:c()(v,"rdw-editor-main"),style:_,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:y.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(a.Editor,pr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:C,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:S||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&yr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wr.propTypes={onChange:s.a.func,onEditorStateChange:s.a.func,onContentStateChange:s.a.func,initialContentState:s.a.object,defaultContentState:s.a.object,contentState:s.a.object,editorState:s.a.object,defaultEditorState:s.a.object,toolbarOnFocus:s.a.bool,spellCheck:s.a.bool,stripPastedStyles:s.a.bool,toolbar:s.a.object,toolbarCustomButtons:s.a.array,toolbarClassName:s.a.string,toolbarHidden:s.a.bool,locale:s.a.string,localization:s.a.object,editorClassName:s.a.string,wrapperClassName:s.a.string,toolbarStyle:s.a.object,editorStyle:s.a.object,wrapperStyle:s.a.object,uploadCallback:s.a.func,onFocus:s.a.func,onBlur:s.a.func,onTab:s.a.func,mention:s.a.object,hashtag:s.a.object,textAlignment:s.a.string,readOnly:s.a.bool,tabIndex:s.a.number,placeholder:s.a.string,ariaLabel:s.a.string,ariaOwneeID:s.a.string,ariaActiveDescendantID:s.a.string,ariaAutoComplete:s.a.string,ariaDescribedBy:s.a.string,ariaExpanded:s.a.string,ariaHasPopup:s.a.string,customBlockRenderFunc:s.a.func,wrapperId:s.a.number,customDecorators:s.a.array,editorRef:s.a.func,handlePastedText:s.a.func},wr.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var Cr=wr}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}(n(22155),n(53506),n(58560))},97201(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(n(22155)),o=d(n(5821)),i=d(n(70316)),s=n(89901),a=n(43107),l=n(75616),u=n(82822),c=d(n(67074)),p=d(n(16502));function d(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",(e,t)=>{if((0,p.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-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(e,n))return!1;this.setState(r)}),h(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,p.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.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.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:u,defaultClassNameDragged:p,position:d,positionOffset:h,scale:m,...g}=this.props;let y={},v=null;const b=!Boolean(d)||this.state.dragging,w=d||o,C={x:(0,l.canDragX)(this)&&b?this.state.x:w.x,y:(0,l.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?v=(0,a.createSVGTransform)(C,h):y=(0,a.createCSSTransform)(C,h);const _=(0,s.clsx)(n.props.className||"",i,{[u]:this.state.dragging,[p]:this.state.dragged});return r.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:_,style:{...n.props.style,...y},transform:v}))}}t.default=m,h(m,"displayName","Draggable"),h(m,"propTypes",{...c.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),h(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})},67074(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(n(22155)),o=c(n(5821)),i=c(n(70316)),s=n(43107),a=n(75616),l=n(82822),u=c(n(16502));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=f;class m extends r.Component{constructor(){super(...arguments),p(this,"dragging",!1),p(this,"lastX",NaN),p(this,"lastY",NaN),p(this,"touchIdentifier",null),p(this,"mounted",!1),p(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,s.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,s.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,s.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,a.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:l}=o,c=(0,a.createCoreData)(this,i,l);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart),!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,s.addEvent)(n,h.move,this.handleDrag),(0,s.addEvent)(n,h.stop,this.handleDragStop))}),p(this,"handleDrag",e=>{const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,a.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,a.createCoreData)(this,n,r);if((0,u.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),p(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,a.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,a.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,s.scheduleRemoveUserSelectStyles)(i.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,u.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(i.ownerDocument,h.move,this.handleDrag),(0,s.removeEvent)(i.ownerDocument,h.stop,this.handleDragStop))}),p(this,"onMouseDown",e=>(h=f,this.handleDragStart(e))),p(this,"onMouseUp",e=>(h=f,this.handleDragStop(e))),p(this,"onTouchStart",e=>(h=d,this.handleDragStart(e))),p(this,"onTouchEnd",e=>(h=d,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,s.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,s.removeEvent)(t,f.move,this.handleDrag),(0,s.removeEvent)(t,d.move,this.handleDrag),(0,s.removeEvent)(t,f.stop,this.handleDragStop),(0,s.removeEvent)(t,d.stop,this.handleDragStop),(0,s.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,p(m,"displayName","DraggableCore"),p(m,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),p(m,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},8668(e,t,n){"use strict";const{default:r,DraggableCore:o}=n(97201);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},43107(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=u,t.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&u(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=a(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return a(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=a,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=s,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(s(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=c,t.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(e)}):l(e)};var r=n(82822),o=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(n(14284));let i="";function s(e,t){return i||(i=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[i])&&e[i](t)}function a(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;return t&&(i=`translate(${"string"==typeof t.x?t.x:t.x+n}, ${"string"==typeof t.y?t.y:t.y+n})`+i),i}function l(e){if(e)try{if(e.body&&c(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}},14284(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const t=window.document?.documentElement?.style;if(!t)return"";if(e in t)return"";for(let r=0;r<n.length;r++)if(o(e,n[r])in t)return n[r];return""}function o(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}t.default=r()},16502(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},75616(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const o=!(0,r.isNum)(e.lastX),s=i(e);return o?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:s}=e.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=i(e);if("string"==typeof s){const{ownerDocument:e}=a,t=e.defaultView;let n;if(n="parent"===s?a.parentNode:a.getRootNode().querySelector(s),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=n,l=t.getComputedStyle(a),u=t.getComputedStyle(i);s={left:-a.offsetLeft+(0,r.int)(u.paddingLeft)+(0,r.int)(l.marginLeft),top:-a.offsetTop+(0,r.int)(u.paddingTop)+(0,r.int)(l.marginTop),right:(0,o.innerWidth)(i)-(0,o.outerWidth)(a)-a.offsetLeft+(0,r.int)(u.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,o.innerHeight)(i)-(0,o.outerHeight)(a)-a.offsetTop+(0,r.int)(u.paddingBottom)-(0,r.int)(l.marginBottom)}}return(0,r.isNum)(s.right)&&(t=Math.min(t,s.right)),(0,r.isNum)(s.bottom)&&(n=Math.min(n,s.bottom)),(0,r.isNum)(s.left)&&(t=Math.max(t,s.left)),(0,r.isNum)(s.top)&&(n=Math.max(n,s.top)),[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const s=i(n),a=n.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,a,n.props.scale)},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var r=n(82822),o=n(43107);function i(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},82822(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},38694(e,t,n){"use strict";n.r(t),n.d(t,{ErrorCode:()=>y,default:()=>q,useDropzone:()=>$});var r=n(22155),o=n(5821),i=n.n(o),s=n(45792),a=n(28213);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f="file-invalid-type",h="file-too-large",m="file-too-small",g="too-many-files",y={FileInvalidType:f,FileTooLarge:h,FileTooSmall:m,TooManyFiles:g},v=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:f,message:"File type must be ".concat(t)}},b=function(e){return{code:h,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},w=function(e){return{code:m,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},C={code:g,message:"Too many files"};function _(e,t){var n="application/x-moz-file"===e.type||(0,a.A)(e,t);return[n,n?null:v(t)]}function x(e,t,n){if(E(e.size))if(E(t)&&E(n)){if(e.size>n)return[!1,b(n)];if(e.size<t)return[!1,w(t)]}else{if(E(t)&&e.size<t)return[!1,w(t)];if(E(n)&&e.size>n)return[!1,b(n)]}return[!0,null]}function E(e){return null!=e}function S(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function P(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function O(e){e.preventDefault()}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!S(e)&&t&&t.apply(void 0,[e].concat(r)),S(e)})}}function k(){return"showOpenFilePicker"in window}function A(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}).reduce(function(e,t){return u(u({},e),{},c({},t,[]))},{}):{}}]}var I=["children"],R=["open"],M=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],D=["refKey","onChange","onClick"];function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var H=(0,r.forwardRef)(function(e,t){var n=e.children,o=$(B(e,I)),i=o.open,s=B(o,R);return(0,r.useImperativeHandle)(t,function(){return{open:i}},[i]),r.createElement(r.Fragment,null,n(F(F({},s),{},{open:i})))});H.displayName="Dropzone";var U={disabled:!1,getFilesFromEvent:s.R,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};H.defaultProps=U,H.propTypes={children:i().func,accept:i().oneOfType([i().string,i().arrayOf(i().string)]),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,validator:i().func};const q=H;var W={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=F(F({},U),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,m=t.onDropAccepted,g=t.onDropRejected,y=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,w=t.preventDropOnDocument,E=t.noClick,I=t.noKeyboard,R=t.noDrag,j=t.noDragEventsBubbling,H=t.validator,q=(0,r.useMemo)(function(){return"function"==typeof v?v:G},[v]),$=(0,r.useMemo)(function(){return"function"==typeof y?y:G},[y]),Y=(0,r.useRef)(null),Z=(0,r.useRef)(null),K=L((0,r.useReducer)(Q,W),2),X=K[0],J=K[1],ee=X.isFocused,te=X.isFileDialogActive,ne=X.draggedFiles,re=function(){te&&setTimeout(function(){Z.current&&(Z.current.files.length||(J({type:"closeDialog"}),$()))},300)};(0,r.useEffect)(function(){return b&&k()?function(){}:(window.addEventListener("focus",re,!1),function(){window.removeEventListener("focus",re,!1)})},[Z,te,$,b]);var oe=(0,r.useRef)([]),ie=function(e){Y.current&&Y.current.contains(e.target)||(e.preventDefault(),oe.current=[])};(0,r.useEffect)(function(){return w&&(document.addEventListener("dragover",O,!1),document.addEventListener("drop",ie,!1)),function(){w&&(document.removeEventListener("dragover",O),document.removeEventListener("drop",ie))}},[Y,w]);var se=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),be(e),oe.current=[].concat(function(e){if(Array.isArray(e))return V(e)}(t=oe.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||N(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.")}(),[e.target]),P(e)&&Promise.resolve(i(e)).then(function(t){S(e)&&!j||(J({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e))})},[i,c,j]),ae=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),be(e);var t=P(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,j]),le=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),be(e);var t=oe.current.filter(function(e){return Y.current&&Y.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),oe.current=t,t.length>0||(J({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),P(e)&&d&&d(e))},[Y,d,j]),ue=(0,r.useCallback)(function(e,t){var r=[],o=[];e.forEach(function(e){var t=L(_(e,n),2),i=t[0],l=t[1],u=L(x(e,a,s),2),c=u[0],p=u[1],d=H?H(e):null;if(i&&c&&!d)r.push(e);else{var f=[l,p];d&&(f=f.concat(d)),o.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&r.length>1||l&&u>=1&&r.length>u)&&(r.forEach(function(e){o.push({file:e,errors:[C]})}),r.splice(0)),J({acceptedFiles:r,fileRejections:o,type:"setFiles"}),h&&h(r,o,t),o.length>0&&g&&g(o,t),r.length>0&&m&&m(r,t)},[J,l,n,a,s,u,h,m,g,H]),ce=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),be(e),oe.current=[],P(e)&&Promise.resolve(i(e)).then(function(t){S(e)&&!j||ue(t,e)}),J({type:"reset"})},[i,ue,j]),pe=(0,r.useCallback)(function(){if(b&&k()){J({type:"openDialog"}),q();var e={multiple:l,types:A(n)};window.showOpenFilePicker(e).then(function(e){return i(e)}).then(function(e){return ue(e,null)}).catch(function(e){return $(e)}).finally(function(){return J({type:"closeDialog"})})}else Z.current&&(J({type:"openDialog"}),q(),Z.current.value=null,Z.current.click())},[J,q,$,b,ue,n,l]),de=(0,r.useCallback)(function(e){Y.current&&Y.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),pe()))},[Y,Z,pe]),fe=(0,r.useCallback)(function(){J({type:"focus"})},[]),he=(0,r.useCallback)(function(){J({type:"blur"})},[]),me=(0,r.useCallback)(function(){E||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(pe,0):pe())},[Z,E,pe]),ge=function(e){return o?null:e},ye=function(e){return I?null:ge(e)},ve=function(e){return R?null:ge(e)},be=function(e){j&&e.stopPropagation()},we=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,s=e.onFocus,a=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,p=e.onDragLeave,d=e.onDrop,f=B(e,M);return F(F(z({onKeyDown:ye(T(i,de)),onFocus:ye(T(s,fe)),onBlur:ye(T(a,he)),onClick:ge(T(l,me)),onDragEnter:ve(T(u,se)),onDragOver:ve(T(c,ae)),onDragLeave:ve(T(p,le)),onDrop:ve(T(d,ce)),role:"string"==typeof r&&""!==r?r:"button"},n,Y),o||I?{}:{tabIndex:0}),f)}},[Y,de,fe,he,me,se,ae,le,ce,I,R,o]),Ce=(0,r.useCallback)(function(e){e.stopPropagation()},[]),_e=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,i=e.onClick,s=B(e,D);return F(F({},z({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:ge(T(o,ce)),onClick:ge(T(i,Ce)),autoComplete:"off",tabIndex:-1},r,Z)),s)}},[Z,n,l,ce,o]),xe=ne.length,Ee=xe>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!(!i&&t.length>1||i&&s>=1&&t.length>s)&&t.every(function(e){var t=p(_(e,n),1)[0],i=p(x(e,r,o),1)[0];return t&&i})}({files:ne,accept:n,minSize:a,maxSize:s,multiple:l,maxFiles:u}),Se=xe>0&&!Ee;return F(F({},X),{},{isDragAccept:Ee,isDragReject:Se,isFocused:ee&&!o,getRootProps:we,getInputProps:_e,rootRef:Y,inputRef:Z,open:ge(pe)})}function Q(e,t){switch(t.type){case"focus":return F(F({},e),{},{isFocused:!0});case"blur":return F(F({},e),{},{isFocused:!1});case"openDialog":return F(F({},W),{},{isFileDialogActive:!0});case"closeDialog":return F(F({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return F(F({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return F(F({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return F({},W);default:return e}}function G(){}},76916(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t),i=r(n);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const m=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 g(e,t,n){const r=function(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const n=t.split(".").pop().toLowerCase(),r=m.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:o}=e,i="string"==typeof t?t:"string"==typeof o&&o.length>0?o:`./${e.name}`;return"string"!=typeof r.path&&y(r,"path",i),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),y(r,"relativePath",i),r}function y(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const v=[".DS_Store","Thumbs.db"];function b(e){return"object"==typeof e&&null!==e}function w(e){return e.filter(e=>-1===v.indexOf(e.name))}function C(e){if(null===e)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function _(e){if("function"!=typeof e.webkitGetAsEntry)return E(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?P(t):E(e,t)}function x(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?x(t):[t]],[])}function E(e,t){var n;if("function"==typeof e.getAsFileSystemHandle)return e.getAsFileSystemHandle().then(e=>h(this,void 0,void 0,function*(){const t=yield e.getFile();return t.handle=e,g(t)}));const r=e.getAsFile();if(!r)return Promise.reject(`${e} is not a File`);const o=g(r,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0);return Promise.resolve(o)}function S(e){return h(this,void 0,void 0,function*(){return e.isDirectory?P(e):function(e){return h(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(n=>{const r=g(n,e.fullPath);t(r)},e=>{n(e)})})})}(e)})}function P(e){const t=e.createReader();return new Promise((e,n)=>{const r=[];!function o(){t.readEntries(t=>h(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(S));r.push(e),o()}else try{const t=yield Promise.all(r);e(t)}catch(e){n(e)}}),e=>{n(e)})}()})}var O=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0},T="file-invalid-type",k="file-too-large",A="file-too-small",I="too-many-files",R={FileInvalidType:T,FileTooLarge:k,FileTooSmall:A,TooManyFiles:I},M=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:T,message:"File type must be ".concat(t)}},D=function(e){return{code:k,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},L=function(e){return{code:A,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},N={code:I,message:"Too many files"};function V(e,t){var n="application/x-moz-file"===e.type||O(e,t)||function(e){return""===e.type&&"function"==typeof e.getAsFile}(e);return[n,n?null:M(t)]}function j(e,t,n){if(F(e.size))if(F(t)&&F(n)){if(e.size>n)return[!1,D(n)];if(e.size<t)return[!1,L(t)]}else{if(F(t)&&e.size<t)return[!1,L(t)];if(F(n)&&e.size>n)return[!1,D(n)]}return[!0,null]}function F(e){return null!=e}function z(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function B(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function H(e){e.preventDefault()}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!z(e)&&t&&t.apply(void 0,[e].concat(r)),z(e)})}}function W(e){return F(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=c(e,2),n=t[0],r=t[1],o=!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.')),o=!1),Array.isArray(r)&&r.every(G)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var n=c(t,2),r=n[0],o=n[1];return a(a({},e),{},l({},r,o))},{})}]:e}function $(e){if(F(e))return Object.entries(e).reduce(function(e,t){var n=c(t,2),r=n[0],o=n[1];return[].concat(p(e),[r],p(o))},[]).filter(function(e){return Q(e)||G(e)}).join(",")}function Q(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function G(e){return/^.*\.[\w]+$/.test(e)}var Y=["children"],Z=["open"],K=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],X=["refKey","onChange","onClick"],J=t.forwardRef(function(e,n){var r=e.children,i=ne(u(e,Y)),s=i.open,l=u(i,Z);return t.useImperativeHandle(n,function(){return{open:s}},[s]),o.default.createElement(t.Fragment,null,r(a(a({},l),{},{open:s})))});J.displayName="Dropzone";var ee={disabled:!1,getFilesFromEvent:function(e){return h(this,void 0,void 0,function*(){return b(e)&&b(e.dataTransfer)?function(e,t){return h(this,void 0,void 0,function*(){if(e.items){const n=C(e.items).filter(e=>"file"===e.kind);return"drop"!==t?n:w(x(yield Promise.all(n.map(_))))}return w(C(e.files).map(e=>g(e)))})}(e.dataTransfer,e.type):function(e){return b(e)&&b(e.target)}(e)?function(e){return C(e.target.files).map(e=>g(e))}(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return h(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>g(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};J.defaultProps=ee,J.propTypes={children:i.default.func,accept:i.default.objectOf(i.default.arrayOf(i.default.string)),multiple:i.default.bool,preventDropOnDocument:i.default.bool,noClick:i.default.bool,noKeyboard:i.default.bool,noDrag:i.default.bool,noDragEventsBubbling:i.default.bool,minSize:i.default.number,maxSize:i.default.number,maxFiles:i.default.number,disabled:i.default.bool,getFilesFromEvent:i.default.func,onFileDialogCancel:i.default.func,onFileDialogOpen:i.default.func,useFsAccessApi:i.default.bool,autoFocus:i.default.bool,onDragEnter:i.default.func,onDragLeave:i.default.func,onDragOver:i.default.func,onDrop:i.default.func,onDropAccepted:i.default.func,onDropRejected:i.default.func,onError:i.default.func,validator:i.default.func};var te={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a(a({},ee),e),r=n.accept,o=n.disabled,i=n.getFilesFromEvent,s=n.maxSize,d=n.minSize,f=n.multiple,h=n.maxFiles,m=n.onDragEnter,g=n.onDragLeave,y=n.onDragOver,v=n.onDrop,b=n.onDropAccepted,w=n.onDropRejected,C=n.onFileDialogCancel,_=n.onFileDialogOpen,x=n.useFsAccessApi,E=n.autoFocus,S=n.preventDropOnDocument,P=n.noClick,O=n.noKeyboard,T=n.noDrag,k=n.noDragEventsBubbling,A=n.onError,I=n.validator,R=t.useMemo(function(){return $(r)},[r]),M=t.useMemo(function(){return W(r)},[r]),D=t.useMemo(function(){return"function"==typeof _?_:oe},[_]),L=t.useMemo(function(){return"function"==typeof C?C:oe},[C]),F=t.useRef(null),Q=t.useRef(null),G=c(t.useReducer(re,te),2),Y=G[0],Z=G[1],J=Y.isFocused,ne=Y.isFileDialogActive,ie=t.useRef("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),se=function(){!ie.current&&ne&&setTimeout(function(){Q.current&&(Q.current.files.length||(Z({type:"closeDialog"}),L()))},300)};t.useEffect(function(){return window.addEventListener("focus",se,!1),function(){window.removeEventListener("focus",se,!1)}},[Q,ne,L,ie]);var ae=t.useRef([]),le=t.useRef([]),ue=function(e){F.current&&F.current.contains(e.target)||(e.preventDefault(),ae.current=[])};t.useEffect(function(){return S&&(document.addEventListener("dragover",H,!1),document.addEventListener("drop",ue,!1)),function(){S&&(document.removeEventListener("dragover",H),document.removeEventListener("drop",ue))}},[F,S]),t.useEffect(function(){var e=function(e){le.current=[].concat(p(le.current),[e.target]),B(e)&&Z({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){le.current=le.current.filter(function(t){return t!==e.target&&null!==t}),le.current.length>0||Z({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){le.current=[],Z({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){le.current=[],Z({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",r,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",n),document.removeEventListener("drop",r)}},[F]),t.useEffect(function(){return!o&&E&&F.current&&F.current.focus(),function(){}},[F,E,o]);var ce=t.useCallback(function(e){A?A(e):console.error(e)},[A]),pe=t.useCallback(function(e){e.preventDefault(),e.persist(),Ee(e),ae.current=[].concat(p(ae.current),[e.target]),B(e)&&Promise.resolve(i(e)).then(function(t){if(!z(e)||k){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,a=e.validator;return!(!i&&t.length>1||i&&s>=1&&t.length>s)&&t.every(function(e){var t=c(V(e,n),1)[0],i=c(j(e,r,o),1)[0],s=a?a(e):null;return t&&i&&!s})}({files:t,accept:R,minSize:d,maxSize:s,multiple:f,maxFiles:h,validator:I});Z({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),m&&m(e)}}).catch(function(e){return ce(e)})},[i,m,ce,k,R,d,s,f,h,I]),de=t.useCallback(function(e){e.preventDefault(),e.persist(),Ee(e);var t=B(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&y&&y(e),!1},[y,k]),fe=t.useCallback(function(e){e.preventDefault(),e.persist(),Ee(e);var t=ae.current.filter(function(e){return F.current&&F.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ae.current=t,t.length>0||(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),B(e)&&g&&g(e))},[F,g,k]),he=t.useCallback(function(e,t){var n=[],r=[];e.forEach(function(e){var t=c(V(e,R),2),o=t[0],i=t[1],a=c(j(e,d,s),2),l=a[0],u=a[1],p=I?I(e):null;if(o&&l&&!p)n.push(e);else{var f=[i,u];p&&(f=f.concat(p)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!f&&n.length>1||f&&h>=1&&n.length>h)&&(n.forEach(function(e){r.push({file:e,errors:[N]})}),n.splice(0)),Z({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),v&&v(n,r,t),r.length>0&&w&&w(r,t),n.length>0&&b&&b(n,t)},[Z,f,R,d,s,h,v,b,w,I]),me=t.useCallback(function(e){e.preventDefault(),e.persist(),Ee(e),ae.current=[],B(e)&&Promise.resolve(i(e)).then(function(t){z(e)&&!k||he(t,e)}).catch(function(e){return ce(e)}),Z({type:"reset"})},[i,he,ce,k]),ge=t.useCallback(function(){if(ie.current){Z({type:"openDialog"}),D();var e={multiple:f,types:M};window.showOpenFilePicker(e).then(function(e){return i(e)}).then(function(e){he(e,null),Z({type:"closeDialog"})}).catch(function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(ie.current=!1,Q.current?(Q.current.value=null,Q.current.click()):ce(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."))):ce(e):(L(e),Z({type:"closeDialog"}))})}else Q.current&&(Z({type:"openDialog"}),D(),Q.current.value=null,Q.current.click())},[Z,D,L,x,he,ce,M,f]),ye=t.useCallback(function(e){F.current&&F.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),ge()))},[F,ge]),ve=t.useCallback(function(){Z({type:"focus"})},[]),be=t.useCallback(function(){Z({type:"blur"})},[]),we=t.useCallback(function(){P||(U()?setTimeout(ge,0):ge())},[P,ge]),Ce=function(e){return o?null:e},_e=function(e){return O?null:Ce(e)},xe=function(e){return T?null:Ce(e)},Ee=function(e){k&&e.stopPropagation()},Se=t.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,s=e.onFocus,c=e.onBlur,p=e.onClick,d=e.onDragEnter,f=e.onDragOver,h=e.onDragLeave,m=e.onDrop,g=u(e,K);return a(a(l({onKeyDown:_e(q(i,ye)),onFocus:_e(q(s,ve)),onBlur:_e(q(c,be)),onClick:Ce(q(p,we)),onDragEnter:xe(q(d,pe)),onDragOver:xe(q(f,de)),onDragLeave:xe(q(h,fe)),onDrop:xe(q(m,me)),role:"string"==typeof r&&""!==r?r:"presentation"},n,F),o||O?{}:{tabIndex:0}),g)}},[F,ye,ve,be,we,pe,de,fe,me,O,T,o]),Pe=t.useCallback(function(e){e.stopPropagation()},[]),Oe=t.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=u(e,X);return a(a({},l({accept:R,multiple:f,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:Ce(q(r,me)),onClick:Ce(q(o,Pe)),tabIndex:-1},n,Q)),i)}},[Q,r,f,me,o]);return a(a({},Y),{},{isFocused:J&&!o,getRootProps:Se,getInputProps:Oe,rootRef:F,inputRef:Q,open:Ce(ge)})}function re(e,t){switch(t.type){case"focus":return a(a({},e),{},{isFocused:!0});case"blur":return a(a({},e),{},{isFocused:!1});case"openDialog":return a(a({},te),{},{isFileDialogActive:!0});case"closeDialog":return a(a({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return a(a({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return a(a({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"setDragGlobal":return a(a({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return a({},te);default:return e}}function oe(){}e.ErrorCode=R,e.default=J,e.useDropzone=ne,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(22155),n(5821))},92467(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65959),o=n(22155),i=n(62876);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var l=a(o),u=s(i);function c(e,t,n,r,o){void 0===o&&(o=0);var i=b(t.width,t.height,o),s=i.width,a=i.height;return{x:p(e.x,s,n.width,r),y:p(e.y,a,n.height,r)}}function p(e,t,n,r){var o=t*r/2-n/2;return w(e,-o,o)}function d(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function f(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function h(e,t){return Math.min(e,Math.max(0,t))}function m(e,t){return t}function g(e,t,n,r,o,i){var s=b(t.width,t.height,n),a=w(r.width/s.width*(100/e.width),o,i);return{crop:{x:a*s.width/2-r.width/2-s.width*a*(e.x/100),y:a*s.height/2-r.height/2-s.height*a*(e.y/100)},zoom:a}}function y(e,t,n,r,o,i){void 0===n&&(n=0);var s=b(t.naturalWidth,t.naturalHeight,n),a=w(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),o,i),l=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*l,y:((s.height-e.height)/2-e.y)*l},zoom:a}}function v(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function b(e,t,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function w(e,t,n){return Math.min(Math.max(e,t),n)}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var _=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.cropperRef=l.createRef(),n.imageRef=l.createRef(),n.videoRef=l.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.previousCropSize=null,n.isInitialized=!1,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturechange",n.onGestureChange),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.previousCropSize=e,n.emitCropData(),n.setInitialCrop(e),n.isInitialized=!0),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=g(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,o=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}else if(n.props.initialCroppedAreaPixels){var i=y(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);r=i.crop,o=i.zoom,n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}},n.computeSizes=function(){var e,t,o,i,s,a,l=n.imageRef.current||n.videoRef.current;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var u=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,p=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(i=n.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,d=c/p,f=void 0;if(l.offsetWidth<c||l.offsetHeight<p)switch(n.state.mediaObjectFit){default:case"contain":f=u>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":f={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":f={width:n.containerRect.height*d,height:n.containerRect.height}}else f={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=r.__assign(r.__assign({},f),{naturalWidth:c,naturalHeight:p}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,r,o,i){void 0===i&&(i=0);var s=b(e,t,i),a=s.width,l=s.height,u=Math.min(a,n),c=Math.min(l,r);return u>c*o?{width:c*o,height:c}:{width:u,height:u/o}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(s=n.state.cropSize)||void 0===s?void 0:s.height)===h.height&&(null===(a=n.state.cropSize)||void 0===a?void 0:a.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureChange),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureChange=function(e){if(e.preventDefault(),!n.isTouching){var r=t.getMousePoint(e),o=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,i=e.x,s=e.y;n.dragStartPosition={x:i,y:s},n.dragStartCrop=r.__assign({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,o=r-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+o},s=n.props.restrictPosition?c(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(s)}}))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),o=u.default(e).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},n.getPointOnContainer=function(e,t){var r=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(r-t.x),y:n.containerRect.height/2-(o-t.y)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,o=n.props,i=o.crop,s=o.zoom;return{x:(t+i.x)/s,y:(r+i.y)/s}},n.setNewZoom=function(e,t,r){var o=(void 0===r?{}:r).shouldUpdatePosition,i=void 0===o||o;if(n.state.cropSize&&n.props.onZoomChange){var s=w(e,n.props.minZoom,n.props.maxZoom);if(i){var a=n.getPointOnContainer(t,n.containerPosition),l=n.getPointOnMedia(a),u={x:l.x*s-a.x,y:l.y*s-a.y},p=n.props.restrictPosition?c(u,n.mediaSize,n.state.cropSize,s,n.props.rotation):u;n.props.onCropChange(p)}n.props.onZoomChange(s)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,i,s,a){void 0===s&&(s=0),void 0===a&&(a=!0);var l=a?h:m,u=b(t.width,t.height,s),c=b(t.naturalWidth,t.naturalHeight,s),p={x:l(100,((u.width-n.width/i)/2-e.x/i)/u.width*100),y:l(100,((u.height-n.height/i)/2-e.y/i)/u.height*100),width:l(100,n.width/u.width*100/i),height:l(100,n.height/u.height*100/i)},d=Math.round(l(c.width,p.width*c.width/100)),f=Math.round(l(c.height,p.height*c.height/100)),g=c.width>=c.height*o?{width:Math.round(f*o),height:f}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:p,croppedAreaPixels:r.__assign(r.__assign({},g),{x:Math.round(l(c.width-g.width,p.x*c.width/100)),y:Math.round(l(c.height-g.height,p.y*c.height/100))})}}(n.props.restrictPosition?c(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){var e,t;if(n.state.cropSize){var r=n.props.crop;if(n.isInitialized&&(null===(e=n.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=n.previousCropSize)||void 0===t?void 0:t.height)&&(Math.abs(n.previousCropSize.width-n.state.cropSize.width)>1e-6||Math.abs(n.previousCropSize.height-n.state.cropSize.height)>1e-6)){var o=n.state.cropSize.width/n.previousCropSize.width,i=n.state.cropSize.height/n.previousCropSize.height;r={x:n.props.crop.x*o,y:n.props.crop.y*i}}var s=n.props.restrictPosition?c(r,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):r;n.previousCropSize=n.state.cropSize,n.props.onCropChange(s),n.emitCropData()}},n.onKeyDown=function(e){var t,o,i=n.props,s=i.crop,a=i.onCropChange,l=i.keyboardStep,u=i.zoom,p=i.rotation,d=l;if(n.state.cropSize){e.shiftKey&&(d*=.2);var f=r.__assign({},s);switch(e.key){case"ArrowUp":f.y-=d,e.preventDefault();break;case"ArrowDown":f.y+=d,e.preventDefault();break;case"ArrowLeft":f.x-=d,e.preventDefault();break;case"ArrowRight":f.x+=d,e.preventDefault();break;default:return}n.props.restrictPosition&&(f=c(f,n.mediaSize,n.state.cropSize,u,p)),e.repeat||null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t),a(f)}},n.onKeyUp=function(e){var t,r;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}n.emitCropData(),null===(r=(t=n.props).onInteractionEnd)||void 0===r||r.call(t)},n}return r.__extends(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,r,o,i,s,a,l,u;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(i=e.crop)||void 0===i?void 0:i.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&&(null===(a=e.crop)||void 0===a?void 0:a.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(u=this.videoRef.current)||void 0===u||u.load());var c=this.getObjectFit();c!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:c},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var o=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<o?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=d(n,r),this.lastPinchRotation=f(n,r),this.onDragStart(v(n,r))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),i=v(r,o);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=d(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var s=f(r,o),a=n.props.rotation+(s-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(a),n.lastPinchRotation=s})}},t.prototype.render=function(){var e,t=this,n=this.props,o=n.image,i=n.video,s=n.mediaProps,a=n.cropperProps,u=n.transform,c=n.crop,p=c.x,d=c.y,f=n.rotation,h=n.zoom,m=n.cropShape,g=n.showGrid,y=n.roundCropAreaPixels,v=n.style,b=v.containerStyle,w=v.cropAreaStyle,_=v.mediaStyle,x=n.classes,E=x.containerClassName,S=x.cropAreaClassName,P=x.mediaClassName,O=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return l.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:b,className:C("reactEasyCrop_Container",E)},o?l.createElement("img",r.__assign({alt:"",className:C("reactEasyCrop_Image","contain"===O&&"reactEasyCrop_Contain","horizontal-cover"===O&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===O&&"reactEasyCrop_Cover_Vertical",P)},s,{src:o,ref:this.imageRef,style:r.__assign(r.__assign({},_),{transform:u||"translate(".concat(p,"px, ").concat(d,"px) rotate(").concat(f,"deg) scale(").concat(h,")")}),onLoad:this.onMediaLoad})):i&&l.createElement("video",r.__assign({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:C("reactEasyCrop_Video","contain"===O&&"reactEasyCrop_Contain","horizontal-cover"===O&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===O&&"reactEasyCrop_Cover_Vertical",P)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:r.__assign(r.__assign({},_),{transform:u||"translate(".concat(p,"px, ").concat(d,"px) rotate(").concat(f,"deg) scale(").concat(h,")")}),controls:!1}),(Array.isArray(i)?i:[{src:i}]).map(function(e){return l.createElement("source",r.__assign({key:e.src},e))})),this.state.cropSize&&l.createElement("div",r.__assign({ref:this.cropperRef,style:r.__assign(r.__assign({},w),{width:y?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:y?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:C("reactEasyCrop_CropArea","round"===m&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",S)},a)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(l.Component);t.default=_,t.getInitialCropFromCroppedAreaPercentages=g,t.getInitialCropFromCroppedAreaPixels=y},59263(e,t,n){"use strict";n.d(t,{Ay:()=>oe});var r={};n.r(r),n.d(r,{addTrackers:()=>z,default:()=>J,event:()=>G,exception:()=>Y,ga:()=>H,initialize:()=>B,modalview:()=>$,outboundLink:()=>K,pageview:()=>W,plugin:()=>Z,send:()=>q,set:()=>U,testModeAPI:()=>X,timing:()=>Q});var o=n(22155),i=n(5821),s=n.n(i);function a(e){console.warn("[react-ga]",e)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var u=["to","target"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y="_blank",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,e);var t,n,r,i,s=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(i){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"handleClick",function(t){var n=e.props,r=n.target,o=n.eventLabel,i=n.to,s=n.onClick,l=n.trackerNames,u={label:o},c=r!==y,p=!(t.ctrlKey||t.shiftKey||t.metaKey||1===t.button);c&&p?(t.preventDefault(),a.trackLink(u,function(){window.location.href=i},l)):a.trackLink(u,function(){},l),s&&s(t)}),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.to,n=e.target,r=p(p({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)),{},{target:n,href:t,onClick:this.handleClick});return n===y&&(r.rel="".concat(r.rel?r.rel:""," noopener noreferrer").trim()),delete r.eventLabel,delete r.trackerNames,o.createElement("a",r)}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Component);function b(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}g(v,"trackLink",function(){a("ga tracking not enabled")}),v.propTypes={eventLabel:s().string.isRequired,target:s().string,to:s().string,onClick:s().func,trackerNames:s().arrayOf(s().string)},v.defaultProps={target:null,to:null,onClick:null,trackerNames:null};var w=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;var C=!1;function _(e){console.info("[react-ga]",e)}var x=[];const E={calls:x,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.push([].concat(t))},resetCalls:function(){x.length=0}};var S=["category","action","label","value","nonInteraction","transport"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var A="undefined"==typeof window||"undefined"==typeof document,I=!1,R=!0,M=!1,D=!0,L=!0,N=function(){var e;return M?E.ga.apply(E,arguments):!A&&(window.ga?(e=window).ga.apply(e,arguments):a("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function V(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(n=b(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(w)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),t&&(n=function(e){return"string"==typeof(t=e)&&-1!==t.indexOf("@")?(a("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}(n)),n}(e,R,L)}function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0];"string"==typeof o?(!D&&Array.isArray(e)||N.apply(void 0,n),Array.isArray(e)&&e.forEach(function(e){var t;N.apply(void 0,function(e){if(Array.isArray(e))return k(e)}(t=["".concat(e,".").concat(o)].concat(n.slice(1)))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):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.")}())})):a("ga command must be a string")}function F(e,t){e?t&&(t.debug&&!0===t.debug&&(I=!0),!1===t.titleCase&&(R=!1),!1===t.redactEmail&&(L=!1),t.useExistingGa)||(t&&t.gaOptions?N("create",e,t.gaOptions):N("create",e,"auto")):a("gaTrackingID is required in initialize()")}function z(e,t){return Array.isArray(e)?e.forEach(function(e){"object"===T(e)?F(e.trackingId,e):a("All configs must be an object")}):F(e,t),!0}function B(e,t){if(t&&!0===t.testMode)M=!0;else{if(A)return;t&&!0===t.standardImplementation||function(e){if(!C){C=!0;var t="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?t=e.gaAddress:e&&e.debug&&(t="https://www.google-analytics.com/analytics_debug.js");var n,r,o,i,s,a,l,u=e&&e.onerror;n=window,r=document,o="script",i=t,s="ga",n.GoogleAnalyticsObject=s,n[s]=n[s]||function(){(n[s].q=n[s].q||[]).push(arguments)},n[s].l=1*new Date,a=r.createElement(o),l=r.getElementsByTagName(o)[0],a.async=1,a.src=i,a.onerror=u,l.parentNode.insertBefore(a,l)}}(t)}D=!t||"boolean"!=typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,z(e,t)}function H(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(N.apply(void 0,t),I&&(_("called ga('arguments');"),_("with arguments: ".concat(JSON.stringify(t))))),window.ga}function U(e,t){e?"object"===T(e)?(0===Object.keys(e).length&&a("empty `fieldsObject` given to .set()"),j(t,"set",e),I&&(_("called ga('set', fieldsObject);"),_("with fieldsObject: ".concat(JSON.stringify(e))))):a("Expected `fieldsObject` arg to be an Object"):a("`fieldsObject` is required in .set()")}function q(e,t){j(t,"send",e),I&&(_("called ga('send', fieldObject);"),_("with fieldObject: ".concat(JSON.stringify(e))),_("with trackers: ".concat(JSON.stringify(t))))}function W(e,t,n){if(e){var r=b(e);if(""!==r){var o={};if(n&&(o.title=n),j(t,"send",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({hitType:"pageview",page:r},o)),I){_("called ga('send', 'pageview', path);");var i="";n&&(i=" and title: ".concat(n)),_("with path: ".concat(r).concat(i))}}else a("path cannot be an empty string in .pageview()")}else a("path is required in .pageview()")}function $(e,t){if(e){var n,r="/"===(n=b(e)).substring(0,1)?n.substring(1):n;if(""!==r){var o="/modal/".concat(r);j(t,"send","pageview",o),I&&(_("called ga('send', 'pageview', path);"),_("with path: ".concat(o)))}else a("modalName cannot be an empty string or a single / in .modalview()")}else a("modalName is required in .modalview(modalName)")}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,o=e.label,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n&&"number"==typeof r){var s={hitType:"timing",timingCategory:V(t),timingVar:V(n),timingValue:r};o&&(s.timingLabel=V(o)),q(s,i)}else a("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,o=e.value,i=e.nonInteraction,s=e.transport,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,S),u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n){var c={hitType:"event",eventCategory:V(t),eventAction:V(n)};r&&(c.eventLabel=V(r)),void 0!==o&&("number"!=typeof o?a("Expected `args.value` arg to be a Number."):c.eventValue=o),void 0!==i&&("boolean"!=typeof i?a("`args.nonInteraction` must be a boolean."):c.nonInteraction=i),void 0!==s&&("string"!=typeof s?a("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(s)&&a("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),c.transport=s)),Object.keys(l).filter(function(e){return"dimension"===e.substr(0,9)}).forEach(function(e){c[e]=l[e]}),Object.keys(l).filter(function(e){return"metric"===e.substr(0,6)}).forEach(function(e){c[e]=l[e]}),q(c,u)}else a("args.category AND args.action are required in event()")}function Y(e,t){var n=e.description,r=e.fatal,o={hitType:"exception"};n&&(o.exDescription=V(n)),void 0!==r&&("boolean"!=typeof r?a("`args.fatal` must be a boolean."):o.exFatal=r),q(o,t)}var Z={require:function(e,t,n){if(e){var r=b(e);if(""!==r){var o=n?"".concat(n,".require"):"require";if(t){if("object"!==T(t))return void a("Expected `options` arg to be an Object");0===Object.keys(t).length&&a("Empty `options` given to .require()"),H(o,r,t),I&&_("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else H(o,r),I&&_("called ga('require', '".concat(r,"');"))}else a("`name` cannot be an empty string in .require()")}else a("`name` is required in .require()")},execute:function(e,t){for(var n,r,o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(1===i.length?n=i[0]:(r=i[0],n=i[1]),"string"!=typeof e)a("Expected `pluginName` arg to be a String.");else if("string"!=typeof t)a("Expected `action` arg to be a String.");else{var l="".concat(e,":").concat(t);n=n||null,r&&n?(H(l,r,n),I&&(_("called ga('".concat(l,"');")),_('actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n))))):n?(H(l,n),I&&(_("called ga('".concat(l,"');")),_("with payload: ".concat(JSON.stringify(n))))):(H(l),I&&_("called ga('".concat(l,"');")))}}};function K(e,t,n){if("function"==typeof t)if(e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:V(e.label)},o=!1,i=setTimeout(function(){o=!0,t()},250);r.hitCallback=function(){clearTimeout(i),o||t()},q(r,n)}else a("args.label is required in outboundLink()");else a("hitCallback function is required")}var X=E;const J={initialize:B,ga:H,set:U,send:q,pageview:W,modalview:$,timing:Q,event:G,exception:Y,plugin:Z,outboundLink:K,testModeAPI:E};function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach(function(t){ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}v.origTrackLink=v.trackLink,v.trackLink=K;var re=v;const oe=te(te({},r),{},{OutboundLink:re})},29053(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(22206))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},84667(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={activeTrack:"input-range__track input-range__track--active",disabledInputRange:"input-range input-range--disabled",inputRange:"input-range",labelContainer:"input-range__label-container",maxLabel:"input-range__label input-range__label--max",minLabel:"input-range__label input-range__label--min",slider:"input-range__slider",sliderContainer:"input-range__slider-container",track:"input-range__track input-range__track--background",valueLabel:"input-range__label input-range__label--value"},e.exports=t.default},22206(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=y(n(22155)),s=y(n(5821)),a=y(n(6184)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(62769)),u=y(n(84667)),c=y(n(45948)),p=y(n(78738)),d=y(n(61754)),f=y(n(53681)),h=y(n(99201)),m=n(56799),g=n(54866);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var b=(r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.startValue=null,n.node=null,n.trackNode=null,n.isSliderDragging=!1,n.lastKeyMoved=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"propTypes",get:function(){return{allowSameValues:s.default.bool,ariaLabelledby:s.default.string,ariaControls:s.default.string,classNames:s.default.objectOf(s.default.string),disabled:s.default.bool,draggableTrack:s.default.bool,formatLabel:s.default.func,maxValue:p.default,minValue:p.default,name:s.default.string,onChangeStart:s.default.func,onChange:s.default.func.isRequired,onChangeComplete:s.default.func,step:s.default.number,value:d.default}}},{key:"defaultProps",get:function(){return{allowSameValues:!1,classNames:u.default,disabled:!1,maxValue:10,minValue:0,step:1}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener()}},{key:"getComponentClassName",value:function(){return this.props.disabled?this.props.classNames.disabledInputRange:this.props.classNames.inputRange}},{key:"getTrackClientRect",value:function(){return this.trackNode.getClientRect()}},{key:"getKeyByPosition",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue()),n=l.getPositionsFromValues(t,this.props.minValue,this.props.maxValue,this.getTrackClientRect());return this.isMultiValue()&&(0,m.distanceTo)(e,n.min)<(0,m.distanceTo)(e,n.max)?"min":"max"}},{key:"getKeys",value:function(){return this.isMultiValue()?["min","max"]:["max"]}},{key:"hasStepDifference",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue());return(0,m.length)(e.min,t.min)>=this.props.step||(0,m.length)(e.max,t.max)>=this.props.step}},{key:"isMultiValue",value:function(){return(0,m.isObject)(this.props.value)}},{key:"isWithinRange",value:function(e){return this.isMultiValue()?e.min>=this.props.minValue&&e.max<=this.props.maxValue&&this.props.allowSameValues?e.min<=e.max:e.min<e.max:e.max>=this.props.minValue&&e.max<=this.props.maxValue}},{key:"shouldUpdate",value:function(e){return this.isWithinRange(e)&&this.hasStepDifference(e)}},{key:"updatePosition",value:function(e,t){var n=l.getValueFromProps(this.props,this.isMultiValue()),r=l.getPositionsFromValues(n,this.props.minValue,this.props.maxValue,this.getTrackClientRect());r[e]=t,this.lastKeyMoved=e,this.updatePositions(r)}},{key:"updatePositions",value:function(e){var t={min:l.getValueFromPosition(e.min,this.props.minValue,this.props.maxValue,this.getTrackClientRect()),max:l.getValueFromPosition(e.max,this.props.minValue,this.props.maxValue,this.getTrackClientRect())},n={min:l.getStepValueFromValue(t.min,this.props.step),max:l.getStepValueFromValue(t.max,this.props.step)};this.updateValues(n)}},{key:"updateValue",value:function(e,t){var n=l.getValueFromProps(this.props,this.isMultiValue());n[e]=t,this.updateValues(n)}},{key:"updateValues",value:function(e){this.shouldUpdate(e)&&this.props.onChange(this.isMultiValue()?e:e.max)}},{key:"incrementValue",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue())[e]+this.props.step;this.updateValue(e,t)}},{key:"decrementValue",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue())[e]-this.props.step;this.updateValue(e,t)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleSliderDrag",value:function(e,t){var n=this;if(!this.props.disabled){var r=l.getPositionFromEvent(e,this.getTrackClientRect());this.isSliderDragging=!0,requestAnimationFrame(function(){return n.updatePosition(t,r)})}}},{key:"handleTrackDrag",value:function(e,t){if(!this.props.disabled&&this.props.draggableTrack&&!this.isSliderDragging){var n=this.props,r=n.maxValue,o=n.minValue,i=n.value,s=i.max,a=i.min,u=l.getPositionFromEvent(e,this.getTrackClientRect()),c=l.getValueFromPosition(u,o,r,this.getTrackClientRect()),p=l.getStepValueFromValue(c,this.props.step),d=l.getPositionFromEvent(t,this.getTrackClientRect()),f=l.getValueFromPosition(d,o,r,this.getTrackClientRect()),h=l.getStepValueFromValue(f,this.props.step)-p,m={min:a-h,max:s-h};this.updateValues(m)}}},{key:"handleSliderKeyDown",value:function(e,t){if(!this.props.disabled)switch(e.keyCode){case g.LEFT_ARROW:case g.DOWN_ARROW:e.preventDefault(),this.decrementValue(t);break;case g.RIGHT_ARROW:case g.UP_ARROW:e.preventDefault(),this.incrementValue(t)}}},{key:"handleTrackMouseDown",value:function(e,t){if(!this.props.disabled){var n=this.props,r=n.maxValue,o=n.minValue,i=n.value,s=i.max,a=i.min;e.preventDefault();var u=l.getValueFromPosition(t,o,r,this.getTrackClientRect()),c=l.getStepValueFromValue(u,this.props.step);(!this.props.draggableTrack||c>s||c<a)&&this.updatePosition(this.getKeyByPosition(t),t)}}},{key:"handleInteractionStart",value:function(){this.props.onChangeStart&&this.props.onChangeStart(this.props.value),this.props.onChangeComplete&&!(0,m.isDefined)(this.startValue)&&(this.startValue=this.props.value)}},{key:"handleInteractionEnd",value:function(){this.isSliderDragging&&(this.isSliderDragging=!1),this.props.onChangeComplete&&(0,m.isDefined)(this.startValue)&&(this.startValue!==this.props.value&&this.props.onChangeComplete(this.props.value),this.startValue=null)}},{key:"handleKeyDown",value:function(e){this.handleInteractionStart(e)}},{key:"handleKeyUp",value:function(e){this.handleInteractionEnd(e)}},{key:"handleMouseDown",value:function(e){this.handleInteractionStart(e),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(e){this.handleInteractionEnd(e),this.removeDocumentMouseUpListener()}},{key:"handleTouchStart",value:function(e){this.handleInteractionStart(e),this.addDocumentTouchEndListener()}},{key:"handleTouchEnd",value:function(e){this.handleInteractionEnd(e),this.removeDocumentTouchEndListener()}},{key:"renderSliders",value:function(){var e=this,t=l.getValueFromProps(this.props,this.isMultiValue()),n=l.getPercentagesFromValues(t,this.props.minValue,this.props.maxValue);return(this.props.allowSameValues&&"min"===this.lastKeyMoved?this.getKeys().reverse():this.getKeys()).map(function(r){var o=t[r],s=n[r],a=e.props,l=a.maxValue,u=a.minValue;return"min"===r?l=t.max:u=t.min,i.default.createElement(f.default,{ariaLabelledby:e.props.ariaLabelledby,ariaControls:e.props.ariaControls,classNames:e.props.classNames,formatLabel:e.props.formatLabel,key:r,maxValue:l,minValue:u,onSliderDrag:e.handleSliderDrag,onSliderKeyDown:e.handleSliderKeyDown,percentage:s,type:r,value:o})})}},{key:"renderHiddenInputs",value:function(){var e=this;if(!this.props.name)return[];var t=this.isMultiValue(),n=l.getValueFromProps(this.props,t);return this.getKeys().map(function(r){var o=n[r],s=t?""+e.props.name+(0,m.captialize)(r):e.props.name;return i.default.createElement("input",{key:r,type:"hidden",name:s,value:o})})}},{key:"render",value:function(){var e=this,t=this.getComponentClassName(),n=l.getValueFromProps(this.props,this.isMultiValue()),r=l.getPercentagesFromValues(n,this.props.minValue,this.props.maxValue);return i.default.createElement("div",{"aria-disabled":this.props.disabled,ref:function(t){e.node=t},className:t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart},i.default.createElement(c.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"min"},this.props.minValue),i.default.createElement(h.default,{classNames:this.props.classNames,draggableTrack:this.props.draggableTrack,ref:function(t){e.trackNode=t},percentages:r,onTrackDrag:this.handleTrackDrag,onTrackMouseDown:this.handleTrackMouseDown},this.renderSliders()),i.default.createElement(c.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"max"},this.props.maxValue),this.renderHiddenInputs())}}]),t}(i.default.Component),v(r.prototype,"handleSliderDrag",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderDrag"),r.prototype),v(r.prototype,"handleTrackDrag",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackDrag"),r.prototype),v(r.prototype,"handleSliderKeyDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderKeyDown"),r.prototype),v(r.prototype,"handleTrackMouseDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackMouseDown"),r.prototype),v(r.prototype,"handleInteractionStart",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionStart"),r.prototype),v(r.prototype,"handleInteractionEnd",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionEnd"),r.prototype),v(r.prototype,"handleKeyDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),v(r.prototype,"handleKeyUp",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyUp"),r.prototype),v(r.prototype,"handleMouseDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),v(r.prototype,"handleMouseUp",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),v(r.prototype,"handleTouchStart",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),v(r.prototype,"handleTouchEnd",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),r);t.default=b,e.exports=t.default},54866(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOWN_ARROW=40,t.LEFT_ARROW=37,t.RIGHT_ARROW=39,t.UP_ARROW=38},45948(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(n(22155)),o=i(n(5821));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.formatLabel?e.formatLabel(e.children,e.type):e.children;return r.default.createElement("span",{className:e.classNames[e.type+"Label"]},r.default.createElement("span",{className:e.classNames.labelContainer},t))}s.propTypes={children:o.default.node.isRequired,classNames:o.default.objectOf(o.default.string).isRequired,formatLabel:o.default.func,type:o.default.string.isRequired},e.exports=t.default},78738(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.maxValue,n=e.minValue;return(0,r.isNumber)(n)&&(0,r.isNumber)(t)?n>=t?new Error('"minValue" must be smaller than "maxValue"'):void 0:new Error('"minValue" and "maxValue" must be a number')};var r=n(56799);e.exports=t.default},53681(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(22155)),s=u(n(5821)),a=u(n(6184)),l=u(n(45948));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var p=(r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"propTypes",get:function(){return{ariaLabelledby:s.default.string,ariaControls:s.default.string,classNames:s.default.objectOf(s.default.string).isRequired,formatLabel:s.default.func,maxValue:s.default.number,minValue:s.default.number,onSliderDrag:s.default.func.isRequired,onSliderKeyDown:s.default.func.isRequired,percentage:s.default.number.isRequired,type:s.default.string.isRequired,value:s.default.number.isRequired}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener(),this.removeDocumentTouchMoveListener()}},{key:"getStyle",value:function(){return{position:"absolute",left:100*(this.props.percentage||0)+"%"}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchMoveListener",value:function(){this.removeDocumentTouchMoveListener(),this.node.ownerDocument.addEventListener("touchmove",this.handleTouchMove)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchMoveListener",value:function(){this.node.ownerDocument.removeEventListener("touchmove",this.handleTouchMove)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleMouseDown",value:function(){this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener()}},{key:"handleMouseMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchStart",value:function(){this.addDocumentTouchEndListener(),this.addDocumentTouchMoveListener()}},{key:"handleTouchMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchEnd",value:function(){this.removeDocumentTouchMoveListener(),this.removeDocumentTouchEndListener()}},{key:"handleKeyDown",value:function(e){this.props.onSliderKeyDown(e,this.props.type)}},{key:"render",value:function(){var e=this,t=this.getStyle();return i.default.createElement("span",{className:this.props.classNames.sliderContainer,ref:function(t){e.node=t},style:t},i.default.createElement(l.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"value"},this.props.value),i.default.createElement("div",{"aria-labelledby":this.props.ariaLabelledby,"aria-controls":this.props.ariaControls,"aria-valuemax":this.props.maxValue,"aria-valuemin":this.props.minValue,"aria-valuenow":this.props.value,className:this.props.classNames.slider,draggable:"false",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,role:"slider",tabIndex:"0"}))}}]),t}(i.default.Component),c(r.prototype,"handleMouseDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),c(r.prototype,"handleMouseUp",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),c(r.prototype,"handleMouseMove",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),c(r.prototype,"handleTouchStart",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),c(r.prototype,"handleTouchMove",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchMove"),r.prototype),c(r.prototype,"handleTouchEnd",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),c(r.prototype,"handleKeyDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),r);t.default=p,e.exports=t.default},99201(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(22155)),s=l(n(5821)),a=l(n(6184));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var c=(r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n.trackDragEvent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"propTypes",get:function(){return{children:s.default.node.isRequired,classNames:s.default.objectOf(s.default.string).isRequired,draggableTrack:s.default.bool,onTrackDrag:s.default.func,onTrackMouseDown:s.default.func.isRequired,percentages:s.default.objectOf(s.default.number).isRequired}}}]),o(t,[{key:"getClientRect",value:function(){return this.node.getBoundingClientRect()}},{key:"getActiveTrackStyle",value:function(){var e=100*(this.props.percentages.max-this.props.percentages.min)+"%";return{left:100*this.props.percentages.min+"%",width:e}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseMove",value:function(e){this.props.draggableTrack&&(null!==this.trackDragEvent&&this.props.onTrackDrag(e,this.trackDragEvent),this.trackDragEvent=e)}},{key:"handleMouseUp",value:function(){this.props.draggableTrack&&(this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.trackDragEvent=null)}},{key:"handleMouseDown",value:function(e){var t={x:(e.touches?e.touches[0].clientX:e.clientX)-this.getClientRect().left,y:0};this.props.onTrackMouseDown(e,t),this.props.draggableTrack&&(this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener())}},{key:"handleTouchStart",value:function(e){e.preventDefault(),this.handleMouseDown(e)}},{key:"render",value:function(){var e=this,t=this.getActiveTrackStyle();return i.default.createElement("div",{className:this.props.classNames.track,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,ref:function(t){e.node=t}},i.default.createElement("div",{style:t,className:this.props.classNames.activeTrack}),this.props.children)}}]),t}(i.default.Component),u(r.prototype,"handleMouseMove",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),u(r.prototype,"handleMouseUp",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),u(r.prototype,"handleMouseDown",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),u(r.prototype,"handleTouchStart",[a.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),r);t.default=c,e.exports=t.default},61754(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.maxValue,o=e.minValue,i=e[t];return(0,r.isNumber)(i)||(0,r.isObject)(i)&&(0,r.isNumber)(i.min)&&(0,r.isNumber)(i.max)?(0,r.isNumber)(i)&&(i<o||i>n)||(0,r.isObject)(i)&&(i.min<o||i.min>n||i.max<o||i.max>n)?new Error('"'+t+'" must be in between "minValue" and "maxValue"'):void 0:new Error('"'+t+'" must be a number or a range object')};var r=n(56799);e.exports=t.default},62769(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getPercentageFromPosition=i,t.getValueFromPosition=function(e,t,n,r){return t+(n-t)*i(e,r)},t.getValueFromProps=function(e,t){return t?r({},e.value):{min:e.minValue,max:e.value}},t.getPercentageFromValue=s,t.getPercentagesFromValues=function(e,t,n){return{min:s(e.min,t,n),max:s(e.max,t,n)}},t.getPositionFromValue=a,t.getPositionsFromValues=function(e,t,n,r){return{min:a(e.min,t,n,r),max:a(e.max,t,n,r)}},t.getPositionFromEvent=function(e,t){var n=t.width,r=(e.touches?e.touches[0]:e).clientX;return{x:(0,o.clamp)(r-t.left,0,n),y:0}},t.getStepValueFromValue=function(e,t){return Math.round(e/t)*t};var o=n(56799);function i(e,t){var n=t.width;return e.x/n||0}function s(e,t,n){return((0,o.clamp)(e,t,n)-t)/(n-t)||0}function a(e,t,n,r){var o=r.width;return{x:s(e,t,n)*o,y:0}}},83591(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default},46120(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return Math.min(Math.max(e,t),n)},e.exports=t.default},9424(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=Math.pow(t.x-e.x,2),r=Math.pow(t.y-e.y,2);return Math.sqrt(n+r)},e.exports=t.default},56799(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83591);Object.defineProperty(t,"captialize",{enumerable:!0,get:function(){return c(r).default}});var o=n(46120);Object.defineProperty(t,"clamp",{enumerable:!0,get:function(){return c(o).default}});var i=n(9424);Object.defineProperty(t,"distanceTo",{enumerable:!0,get:function(){return c(i).default}});var s=n(76131);Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return c(s).default}});var a=n(15749);Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return c(a).default}});var l=n(76383);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return c(l).default}});var u=n(6431);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"length",{enumerable:!0,get:function(){return c(u).default}})},76131(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e},e.exports=t.default},15749(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"number"==typeof e},e.exports=t.default},76383(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){return null!==e&&"object"===(void 0===e?"undefined":n(e))},e.exports=t.default},6431(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.abs(e-t)},e.exports=t.default},81995(e,t,n){"use strict";n.d(t,{Ay:()=>d,Kq:()=>c,ob:()=>p});var r=n(65959),o=n(22155),i=n(4674),s=n.n(i),a=n(13577),l=o.createContext(null),u=l.Consumer,c=l.Provider,p=l;function d(e,t){var n,i=t||{},l=i.intlPropName,c=void 0===l?"intl":l,p=i.forwardRef,d=void 0!==p&&p,f=i.enforceContext,h=void 0===f||f,m=function(t){return o.createElement(u,null,function(n){var i;h&&(0,a.HM)(n);var s=((i={})[c]=n,i);return o.createElement(e,(0,r.__assign)({},t,s,{ref:d?t.forwardedRef:null}))})};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,d?s()(o.forwardRef(function(e,t){return o.createElement(m,(0,r.__assign)({},e,{forwardedRef:t}))}),e):s()(m,e)}},34322(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(65959),o=n(22155),i=n(77161),s=n(13577);function a(e){var t=(0,i.A)(),n=t.formatMessage,r=t.textComponent,s=void 0===r?o.Fragment:r,a=e.id,l=e.description,u=e.defaultMessage,c=e.values,p=e.children,d=e.tagName,f=void 0===d?s:d,h=n({id:a,description:l,defaultMessage:u},c,{ignoreTag:e.ignoreTag});return"function"==typeof p?p(Array.isArray(h)?h:[h]):f?o.createElement(f,null,o.Children.toArray(h)):o.createElement(o.Fragment,null,h)}a.displayName="FormattedMessage";var l=o.memo(a,function(e,t){var n=e.values,o=(0,r.__rest)(e,["values"]),i=t.values,a=(0,r.__rest)(t,["values"]);return(0,s.bN)(i,n)&&(0,s.bN)(o,a)});l.displayName="MemoizedFormattedMessage";const u=l},98724(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(65959),o=n(22155),i=n(81995),s=n(13577),a=n(14716),l=n(62954),u=n(82607),c=n(23231);function p(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function d(e){return e?Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=(0,c.RK)(r)?(0,s.yU)(r):r,t},{}):e}var f=function(e,t,n,i){for(var s=[],a=4;a<arguments.length;a++)s[a-4]=arguments[a];var u=d(i),c=l.h.apply(void 0,(0,r.__spreadArray)([e,t,n,u],s,!1));return Array.isArray(c)?o.Children.toArray(c):c},h=function(e,t){var n=e.defaultRichTextElements,o=(0,r.__rest)(e,["defaultRichTextElements"]),i=d(n),a=(0,u.E)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},s.JF),o),{defaultRichTextElements:i}),t);return(0,r.__assign)((0,r.__assign)({},a),{formatMessage:f.bind(null,{locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i},a.formatters)})},m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,a.MT)(),t.state={cache:t.cache,intl:h(p(t.props),t.cache),prevConfig:p(t.props)},t}return(0,r.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=p(e);return(0,s.bN)(n,o)?null:{intl:h(o,r),prevConfig:o}},t.prototype.render=function(){return(0,s.HM)(this.state.intl),o.createElement(i.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=s.JF,t}(o.PureComponent);const g=m},77161(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(22155),o=n(81995),i=n(13577);function s(){var e=r.useContext(o.ob);return(0,i.HM)(e),e}},13577(e,t,n){"use strict";n.d(t,{HM:()=>a,JF:()=>l,bN:()=>c,yU:()=>u});var r=n(65959),o=n(22155),i=n(3704),s=n(14716);function a(e){(0,i.V1)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var l=(0,r.__assign)((0,r.__assign)({},s.JF),{textComponent:o.Fragment});function u(e){return function(t){return e(o.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}},35360(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case i:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return C(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||C(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return C(e)===u},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===o},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=C},17020(e,t,n){"use strict";e.exports=n(35360)},85748(e,t){"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},77880(e,t,n){"use strict";n(85748)},49968(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case c:case p:case h:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case d:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=o,t.Lazy=f,t.Memo=d,t.Portal=r,t.Profiler=s,t.StrictMode=i,t.Suspense=c,t.SuspenseList=p,t.isContextConsumer=function(e){return g(e)===a},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===u},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===f},t.isMemo=function(e){return g(e)===d},t.isPortal=function(e){return g(e)===r},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===i},t.isSuspense=function(e){return g(e)===c},t.isSuspenseList=function(e){return g(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||void 0!==e.getModuleId)},t.typeOf=g},65382(e,t,n){"use strict";e.exports=n(49968)},61570(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Fe});var r=n(70316),o=n(52083),i=n.n(o),s=n(8829),a=n(79701),l=n.n(a),u=n(6392),c=n.n(u),p=n(34030),d=n.n(p),f=n(66538),h=n(22155),m=n(5821),g=n.n(m),y=n(90357),v=n.n(y),b=n(12475),w=n.n(b);function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){return"number"==typeof e})}const _=function(e,t){return{changed:function(n){var r=w().get(e,n),o=w().get(t,n);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){return Array.isArray(e)})}(r,o)||function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){if(!e)return!1;var t=Object.getPrototypeOf(e);return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&(null===t||t===Object.getPrototypeOf({}))})}(r,o)?!!v().diff(r,o):r!==o},changedFrom:function(n,r,o){var i=void 0!==r&&void 0!==o,s=w().get(e,n),a=w().get(t,n),l=Array.isArray(r)?r.includes(s):s===r,u=Array.isArray(o)?o.includes(a):a===o;return l&&(i?u:!i)},changedTo:function(n,r){var o=w().get(e,n),i=w().get(t,n),s=Array.isArray(r)?!r.includes(o):o!==r,a=Array.isArray(r)?r.includes(i):i===r;return s&&a},increased:function(n){return C(w().get(e,n),w().get(t,n))&&w().get(e,n)<w().get(t,n)},decreased:function(n){return C(w().get(e,n),w().get(t,n))&&w().get(e,n)>w().get(t,n)}}};var x=n(59062),E=n(39350),S={flip:{padding:20},preventOverflow:{padding:10}},P={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},O=i().canUseDOM,T=void 0!==r.createPortal;function k(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function A(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,a=void 0!==i&&i,l=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: "+t,"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(e){s.A.plainObject(e)&&e.key?l.apply(console,[e.key,e.value]):l.apply(console,[e])}):l.apply(console,[n]),console.groupEnd())}function I(){}var R=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){function t(e){R(this,t);var n=N(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return O?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):N(n)}return L(t,e),M(t,[{key:"componentDidMount",value:function(){O&&(T||this.renderPortal())}},{key:"componentDidUpdate",value:function(){O&&(T||this.renderPortal())}},{key:"componentWillUnmount",value:function(){O&&this.node&&(T||r.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!O)return null;var e=this.props,t=e.children,n=e.setRef;return T?r.createPortal(t,this.node):(n(r.unstable_renderSubtreeIntoContainer(this,t.length>1?h.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return T?this.renderReact16():null}}]),t}(h.Component);V.propTypes={children:g().oneOfType([g().element,g().array]),hasChildren:g().bool,id:g().oneOfType([g().string,g().number]),placement:g().string,setRef:g().func.isRequired,target:g().oneOfType([g().object,g().string])};var j=function(e){function t(){return R(this,t),N(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return L(t,e),M(t,[{key:"render",value:function(){var e=this.props,t=e.placement,n=e.setArrowRef,r=e.styles.arrow,o=r.color,i=r.display,s=r.length,a=r.position,l=r.spread,u={display:i,position:a},c=void 0,p=l,d=s;return t.startsWith("top")?(c="0,0 "+p/2+","+d+" "+p+",0",u.bottom=0):t.startsWith("bottom")?(c=p+","+d+" "+p/2+",0 0,"+d,u.top=0):t.startsWith("left")?(c="0,0 "+(p=s)+","+(d=l)/2+" 0,"+d,u.right=0):t.startsWith("right")&&(c=(p=s)+","+(d=l)+" "+p+",0 0,"+d/2,u.left=0),h.createElement("div",{className:"__floater__arrow",style:this.parentStyle},h.createElement("span",{ref:n,style:u},h.createElement("svg",{width:p,height:d,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h.createElement("polygon",{points:c,fill:o}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={position:"absolute"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}}]),t}(h.Component);j.propTypes={placement:g().string.isRequired,setArrowRef:g().func.isRequired,styles:g().object.isRequired};var F=function(e){var t=e.handleClick,n=e.styles,r=n.color,o=n.height,i=n.width,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["color","height","width"]);return h.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},h.createElement("svg",{width:i+"px",height:o+"px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},h.createElement("g",null,h.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))};F.propTypes={handleClick:g().func.isRequired,styles:g().object.isRequired};var z=function(e){var t=e.content,n=e.footer,r=e.handleClick,o=e.open,i=e.positionWrapper,a=e.showCloseButton,l=e.title,u=e.styles,c={content:h.isValidElement(t)?t:h.createElement("div",{className:"__floater__content",style:u.content},t)};return l&&(c.title=h.isValidElement(l)?l:h.createElement("div",{className:"__floater__title",style:u.title},l)),n&&(c.footer=h.isValidElement(n)?n:h.createElement("div",{className:"__floater__footer",style:u.footer},n)),!a&&!i||s.A.boolean(o)||(c.close=h.createElement(F,{styles:u.close,handleClick:r})),h.createElement("div",{className:"__floater__container",style:u.container},c.close,c.title,c.content,c.footer)};z.propTypes={content:g().node.isRequired,footer:g().node,handleClick:g().func.isRequired,open:g().bool,positionWrapper:g().bool.isRequired,showCloseButton:g().bool.isRequired,styles:g().object.isRequired,title:g().node};var B=function(e){function t(){return R(this,t),N(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return L(t,e),M(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,r=e.hideArrow,o=e.setFloaterRef,i=e.status,s={},a=["__floater"];return t?h.isValidElement(t)?s.content=h.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=h.createElement(z,this.props),i===P.OPEN&&a.push("__floater__open"),r||(s.arrow=h.createElement(j,this.props)),h.createElement("div",{ref:o,className:a.join(" "),style:this.floaterStyle},h.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"floaterStyle",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.isPositioned,s=e.status,a=e.styles,l=a.arrow.length,u=a.floater,c=a.floaterCentered,p=a.floaterClosing,d=a.floaterOpening,f=a.floaterWithAnimation,h=a.floaterWithComponent,m={};return o||(r.startsWith("top")?m.padding="0 0 "+l+"px":r.startsWith("bottom")?m.padding=l+"px 0 0":r.startsWith("left")?m.padding="0 "+l+"px 0 0":r.startsWith("right")&&(m.padding="0 0 0 "+l+"px")),-1!==[P.OPENING,P.OPEN].indexOf(s)&&(m=D({},m,d)),s===P.CLOSING&&(m=D({},m,p)),s!==P.OPEN||t||i||(m=D({},m,f)),"center"===r&&(m=D({},m,c)),n&&(m=D({},m,h)),D({},u,m)}}]),t}(h.Component);B.propTypes={component:g().oneOfType([g().func,g().element]),content:g().node,disableAnimation:g().bool.isRequired,footer:g().node,handleClick:g().func.isRequired,hideArrow:g().bool.isRequired,isPositioned:g().bool,open:g().bool,placement:g().string.isRequired,positionWrapper:g().bool.isRequired,setArrowRef:g().func.isRequired,setFloaterRef:g().func.isRequired,showCloseButton:g().bool,status:g().string.isRequired,styles:g().object.isRequired,title:g().node};var H=function(e){function t(){return R(this,t),N(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return L(t,e),M(t,[{key:"render",value:function(){var e,t,n,r=this.props,o=r.children,i=r.handleClick,a=r.handleMouseEnter,l=r.handleMouseLeave,u=r.setChildRef,c=r.setWrapperRef,p=r.style,d=r.styles,f=void 0;if(o)if(1===h.Children.count(o))if(h.isValidElement(o)){var m=s.A.function(o.type)?"innerRef":"ref";f=h.cloneElement(h.Children.only(o),(n=u,(t=m)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))}else f=h.createElement("span",null,o);else f=o;return f?h.createElement("span",{ref:c,style:D({},d,p),onClick:i,onMouseEnter:a,onMouseLeave:l},f):null}}]),t}(h.Component);H.propTypes={children:g().node,handleClick:g().func.isRequired,handleMouseEnter:g().func.isRequired,handleMouseLeave:g().func.isRequired,setChildRef:g().func.isRequired,setWrapperRef:g().func.isRequired,style:g().object,styles:g().object.isRequired};var U={wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:100},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:100},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative"},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,position:"absolute",spread:32}},q=["position","top","right","bottom","left"],W=function(e){function t(e){R(this,t);var n=N(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return $.call(n),n.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:P.INIT,statusWrapper:P.INIT},n}return L(t,e),M(t,[{key:"componentDidMount",value:function(){if(O){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;A({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:s.A.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&o&&s.A.boolean(r)}}},{key:"componentWillReceiveProps",value:function(e){if(O){var t=this.props,n=t.open,r=t.target,o=t.wrapperOptions;n!==e.open&&this.toggle(),o.position===e.wrapperOptions.position&&r===e.target||this.changeWrapperPosition(e)}}},{key:"componentDidUpdate",value:function(e,t){if(O){var n,r,o=this.props,i=o.autoOpen,s=o.open,a=(n=t,r=this.state,{changedFrom:function(e,t,o){return n[e]===t&&r[e]===o},changedTo:function(e,t){return n[e]!==t&&r[e]===t},changed:function(e){return n[e]!==r[e]}}),l=a.changedFrom,u=a.changedTo;(u("status",P.IDLE)&&s||l("status",P.INIT,P.IDLE)&&i)&&this.toggle(P.OPEN),this.floaterRef&&(u("status",P.OPENING)||u("status",P.CLOSING))&&function(e,t,n){var r=void 0;r=function(o){n(o),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}(e,t,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){O&&(this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,a=r.hideArrow,l=r.offset,u=r.placement,c=r.wrapperOptions,p="top"===u||"bottom"===u?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===u?this.setState({status:P.IDLE}):t&&this.floaterRef&&new E.A(t,this.floaterRef,{placement:u,modifiers:{arrow:D({enabled:!a,element:this.arrowRef},this.options.arrow),computeStyle:this.options.computeStyle,flip:D({enabled:!o,behavior:p},this.options.flip),keepTogether:this.options.keepTogether,hide:this.options.hide,inner:this.options.inner,offset:D({offset:"0, "+l+"px"},this.options.offset),preventOverflow:this.options.preventOverflow,shift:this.options.shift},onCreate:function(t){e.popper=t,i(t,"floater"),e.setState({currentPlacement:t.placement,status:P.IDLE}),u!==t.placement&&setTimeout(function(){t.instance.update()},1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;t.placement!==n&&e.setState({currentPlacement:t.placement})}}),n){var d=s.A.undefined(c.offset)?0:c.offset;new E.A(this.target,this.wrapperRef,{placement:c.placement||u,modifiers:{arrow:{enabled:!1},offset:{offset:"0, "+d+"px"},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e.setState({statusWrapper:P.IDLE}),i(t,"wrapper"),u!==t.placement&&setTimeout(function(){t.instance.update()},1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===P.OPEN?P.CLOSING:P.OPENING;s.A.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,r=e.status,o=this.props,i=o.children,s=o.component,a=o.content,l=o.disableAnimation,u=o.footer,c=o.hideArrow,p=o.isPositioned,d=o.open,f=o.showCloseButton,m=o.style,g=o.title,y=h.createElement(H,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},i),v={};return n?v.wrapperInPortal=y:v.wrapperAsChildren=y,h.createElement("span",null,h.createElement(V,D({},this.props,{hasChildren:!!i,placement:t,setRef:this.setFloaterRef,status:r}),h.createElement(B,{component:s,content:a,disableAnimation:l,footer:u,handleClick:this.handleClick,hideArrow:c||"center"===t,isPositioned:p,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:f,status:r,styles:this.styles,title:g}),v.wrapperInPortal),v.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!n.g.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&k()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return(0,f.A)(S,e||{})}},{key:"styles",get:function(){var e=this,t=this.state,n=t.status,r=t.positionWrapper,o=t.statusWrapper,i=this.props.styles,s=(0,f.A)(U,i);if(r){var a;a=-1===[P.IDLE].indexOf(n)||-1===[P.IDLE].indexOf(o)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=D({},s.wrapper,a)}if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=D({},s.wrapper,this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||(q.forEach(function(t){e.wrapperStyles[t]=l[t]}),s.wrapper=D({},s.wrapper,this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){var e=this.props.target;return e?s.A.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),t}(h.Component);W.propTypes={autoOpen:g().bool,callback:g().func,children:g().node,component:(0,x.A)(g().oneOfType([g().func,g().element]),function(e){return!e.content}),content:(0,x.A)(g().node,function(e){return!e.component}),debug:g().bool,disableAnimation:g().bool,disableFlip:g().bool,disableHoverToClick:g().bool,event:g().oneOf(["hover","click"]),eventDelay:g().number,footer:g().node,getPopper:g().func,hideArrow:g().bool,id:g().oneOfType([g().string,g().number]),isPositioned:g().bool,offset:g().number,open:g().bool,options:g().object,placement:g().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:g().bool,style:g().object,styles:g().object,target:g().oneOfType([g().object,g().string]),title:g().node,wrapperOptions:g().shape({offset:g().number,placement:g().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:g().bool})},W.defaultProps={autoOpen:!1,callback:I,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:I,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}};var $=function(){var e=this;this.setArrowRef=function(t){e.arrowRef=t},this.setChildRef=function(t){e.childRef=t},this.setFloaterRef=function(t){e.floaterRef||(e.floaterRef=t)},this.setWrapperRef=function(t){e.wrapperRef=t},this.handleTransitionEnd=function(){var t=e.state.status,n=e.props.callback;e.wrapperPopper&&e.wrapperPopper.instance.update(),e.setState({status:t===P.OPENING?P.OPEN:P.IDLE},function(){var t=e.state.status;n(t===P.OPEN?"open":"close",e.props)})},this.handleClick=function(){var t=e.props,n=t.event,r=t.open;if(!s.A.boolean(r)){var o=e.state,i=o.positionWrapper,a=o.status;("click"===e.event||"hover"===e.event&&i)&&(A({title:"click",data:[{event:n,status:a===P.OPEN?"closing":"opening"}],debug:e.debug}),e.toggle())}},this.handleMouseEnter=function(){var t=e.props,n=t.event,r=t.open;if(!s.A.boolean(r)&&!k()){var o=e.state.status;"hover"===e.event&&o===P.IDLE&&(A({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:e.debug}),clearTimeout(e.eventDelayTimeout),e.toggle())}},this.handleMouseLeave=function(){var t=e.props,n=t.event,r=t.eventDelay,o=t.open;if(!s.A.boolean(o)&&!k()){var i=e.state,a=i.status,l=i.positionWrapper;"hover"===e.event&&(A({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:e.debug}),r?-1===[P.OPENING,P.OPEN].indexOf(a)||l||e.eventDelayTimeout||(e.eventDelayTimeout=setTimeout(function(){delete e.eventDelayTimeout,e.toggle()},1e3*r)):e.toggle(P.IDLE))}}};const Q=W;var G={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},Y={INIT:"init",START:"start",STOP:"stop",RESET:"reset",RESTART:"restart",PREV:"prev",NEXT:"next",GO:"go",INDEX:"index",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Z={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},J=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},ne=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},re=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},oe=i().canUseDOM,ie=void 0!==r.createPortal;function se(){return"undefined"==typeof window?"node":document.documentMode?"ie":/Edge/.test(navigator.userAgent)?"edge":Boolean(window.opera)||navigator.userAgent.indexOf(" OPR/")>=0?"opera":void 0!==window.InstallTrigger?"firefox":window.chrome?"chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(navigator.userAgent)?"safari":navigator.userAgent}function ae(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(se()))}function le(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,a=void 0!==i&&i,l=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-joyride: "+t,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(e){s.A.plainObject(e)&&e.key?l.apply(console,[e.key,e.value]):l.apply(console,[e])}):l.apply(console,[n]),console.groupEnd())}function ue(e,t){var n=void 0,r=void 0;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(void 0===t[n])return!1;if(t[n]&&!e[n])return!1;if("object"===(r=K(e[n]))&&!ue(e[n],t[n]))return!1;if("function"===r&&(void 0===t[n]||e[n].toString()!==t[n].toString()))return!1;if(e[n]!==t[n])return!1}for(n in t)if(void 0===e[n])return!1;return!0}var ce={action:"",controlled:!1,index:0,lifecycle:Z.INIT,size:0,status:G.IDLE},pe=["action","index","lifecycle","status"];function de(e){var t=new Map,n=new Map,r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.continuous,r=void 0!==n&&n,i=t.stepIndex,a=t.steps,l=void 0===a?[]:a;X(this,e),o.call(this),this.setState({action:Y.INIT,controlled:s.A.number(i),continuous:r,index:s.A.number(i)?i:0,lifecycle:Z.INIT,status:l.length?G.READY:G.IDLE},!0),this.setSteps(l)}return J(e,[{key:"addListener",value:function(e){this.listener=e}},{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getState(),o=ee({},r,e),i=o.action,s=o.index,a=o.lifecycle,l=o.status;t.set("action",i),t.set("index",s),t.set("lifecycle",a),t.set("status",l),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}},{key:"getState",value:function(){if(!t.size)return ee({},ce);var e=parseInt(t.get("index"),10),n=this.getSteps().length;return{action:t.get("action"),controlled:t.get("controlled"),index:e,lifecycle:t.get("lifecycle"),size:n,status:t.get("status")}}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),r=n.action,o=n.controlled,i=n.index,a=n.size,l=n.status,u=s.A.number(e.index)?e.index:i,c=o&&!t?i:Math.min(Math.max(u,0),a);return{action:e.action||r,index:c,lifecycle:e.lifecycle||Z.INIT,status:c===a?G.FINISHED:e.status||l}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{start:this.start,stop:this.stop,restart:this.restart,reset:this.reset,prev:this.prev,next:this.next,go:this.go,index:this.index,close:this.close,skip:this.skip,info:this.info}}}]),e}(),o=function(){var e=this;this.setSteps=function(t){var r=e.getState(),o=r.size,i=r.status;n.set("steps",t),i===G.WAITING&&!o&&t.length&&e.setState({status:G.RUNNING})},this.update=function(t){if(!function(e,t){if(!s.A.plainObject(e)||!s.A.array(t))return!1;var n=t;return s.A.string(t)&&(n=[t]),Object.keys(e).every(function(e){return-1!==n.indexOf(e)})}(t,pe))throw new Error("state is not valid");e.setState(ee({},e.getNextState(ee({},e.getState(),t,{action:t.action||Y.UPDATE}),!0)))},this.steps=function(t){s.A.array(t)&&e.setSteps(t)},this.start=function(t){var n=e.getState(),r=n.index,o=n.size;e.setState(ee({},e.getNextState({action:Y.START,index:s.A.number(t)?t:r},!0),{status:o?G.RUNNING:G.WAITING}))},this.stop=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getState(),r=n.index,o=n.status;-1===[G.FINISHED,G.SKIPPED].indexOf(o)&&e.setState(ee({},e.getNextState({action:Y.STOP,index:r+(t?1:0)}),{status:G.PAUSED}))},this.restart=function(){e.getState().controlled||e.setState(ee({},e.getNextState({action:Y.RESTART,index:0}),{status:G.RUNNING}))},this.reset=function(){e.getState().controlled||e.setState(ee({},e.getNextState({action:Y.RESET,index:0}),{status:G.READY}))},this.prev=function(){var t=e.getState(),n=t.index;t.status===G.RUNNING&&e.setState(ee({},e.getNextState({action:Y.PREV,index:n-1})))},this.next=function(){var t=e.getState(),n=t.index;t.status===G.RUNNING&&e.setState(e.getNextState({action:Y.NEXT,index:n+1}))},this.go=function(t){var n=e.getState(),r=n.index;n.status===G.RUNNING&&e.setState(ee({},e.getNextState({action:Y.GO,index:r+t})))},this.index=function(t){var n=e.getState().status;if(n===G.RUNNING){var r=e.getSteps()[t];e.setState(ee({},e.getNextState({action:Y.INDEX,index:t}),{status:r?n:G.FINISHED}))}},this.close=function(){var t=e.getState(),n=t.index;t.status===G.RUNNING&&e.setState(ee({},e.getNextState({action:Y.CLOSE,index:n+1})))},this.skip=function(){e.getState().status===G.RUNNING&&e.setState({action:Y.SKIP,lifecycle:Z.INIT,status:G.SKIPPED})},this.info=function(){return e.getState()}};return new r(e)}function fe(e){return e?e.getBoundingClientRect():{}}function he(e){return!!e&&d()(e)!==c()()}function me(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===function(e){return e&&1===e.nodeType?getComputedStyle(e):{}}(e).position||me(e.parentNode))}function ge(e){return"string"!=typeof e?e:e?document.querySelector(e):null}var ye={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ve={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",lineHeight:1,padding:8,WebkitAppearance:"none"},be={borderRadius:4,position:"absolute"},we={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.A.plainObject(e)?!!e.target||(le({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(le({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.A.array(e)?e.every(function(e){return Ce(e,t)}):(le({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}function xe(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter(function(e){return-1!==t.indexOf(e)}).reduce(function(t,n){return t[n]=e[n],t},{})}function Ee(e,t){if(e){var n=f.A.all([xe(t),we.step,e]),r=function(e){var t=(0,f.A)(ye,e.options||{}),n=290;window.innerWidth>480?n=380:window.innerWidth>768&&(n=490),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var r,o,i,s={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},a={beacon:ee({},ve,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba("+(r=t.primaryColor,o=r.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r}),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o),i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:null).join(",")+", 0.2)",border:"2px solid "+t.primaryColor,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:"0 0 10px 0"},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"space-between",marginTop:15},buttonNext:ee({},ve,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:ee({},ve,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:ee({},ve,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:ee({},ve,{color:t.textColor,fontSize:14}),overlay:ee({},s,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:ee({},s),spotlight:ee({},be,{backgroundColor:"gray"}),spotlightLegacy:ee({},be,{boxShadow:"0 0 0 9999px "+t.overlayColor+", "+t.spotlightShadow}),floaterStyles:{arrow:{color:t.arrowColor},floater:{zIndex:t.zIndex}},options:t};return(0,f.A)(a,e||{})}((0,f.A)(t.styles||{},e.styles||{})),o=he(ge(e.target)),i=f.A.all([t.floaterProps||{},we.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=(0,f.A)(i.styles||{},r.floaterStyles||{}),delete r.floaterStyles,n.floaterProps&&n.floaterProps.offset&&(i.offset=n.floaterProps.offset),n.disableScrolling||(i.offset+=t.spotlightPadding||e.spotlightPadding||0),e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),o&&(i.options.preventOverflow.boundariesElement="window"),ee({},n,{locale:f.A.all([we.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:r})}}var Se=/input|select|textarea|button|object/,Pe=null;function Oe(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"===n.getPropertyValue("display")}function Te(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(Se.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(Oe(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}function ke(e){Pe&&9===e.keyCode&&function(e,t){var n,r=(n=e,[].slice.call(n.querySelectorAll("*"),0).filter(Te)),o=t.shiftKey;if(r.length){var i=r.indexOf(document.activeElement);-1===i||!o&&i+1===r.length?i=0:i+=o?-1:1,t.preventDefault(),r[i].focus()}else t.preventDefault()}(Pe,e)}var Ae=function(e){function t(e){X(this,t);var n=re(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(!e.beaconComponent){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.id="joyride-beacon-animation",o.appendChild(document.createTextNode("\n@keyframes joyride-beacon-inner {\n  20% {\n    opacity: 0.9;\n  }\n\n  90% {\n    opacity: 0.7;\n  }\n}\n\n@keyframes joyride-beacon-outer {\n  0% {\n    transform: scale(1);\n  }\n\n  45% {\n    opacity: 0.7;\n    transform: scale(0.75);\n  }\n\n  100% {\n    opacity: 0.9;\n    transform: scale(1);\n  }\n}\n      ")),r.appendChild(o)}return n}return te(t,e),J(t,[{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e=this.props,t=e.beaconComponent,n=e.locale,r=e.onClickOrHover,o=e.styles,i={"aria-label":n.open,onClick:r,onMouseEnter:r,title:n.open};return t?h.isValidElement(t)?h.cloneElement(t,i):t(i):h.createElement("button",ee({key:"JoyrideBeacon",className:"joyride-beacon",style:o.beacon,type:"button"},i),h.createElement("span",{style:o.beaconInner}),h.createElement("span",{style:o.beaconOuter}))}}]),t}(h.Component);Ae.propTypes={beaconComponent:g().oneOfType([g().func,g().element]),locale:g().object.isRequired,onClickOrHover:g().func.isRequired,styles:g().object.isRequired};var Ie=function(e){var t=e.styles;return h.createElement("div",{key:"JoyrideSpotlight",className:"joyride-spotlight",style:t})};Ie.propTypes={styles:g().object.isRequired};var Re=function(e){function t(e){X(this,t);var n=re(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseMove=function(e){var t=n.state.mouseOverSpotlight,r=n.stylesSpotlight,o=r.height,i=r.left,s=r.position,a=r.top,l=r.width,u="fixed"===s?e.clientY:e.pageY,c="fixed"===s?e.clientX:e.pageX,p=c>=i&&c<=i+l&&u>=a&&u<=a+o;p!==t&&n.setState({mouseOverSpotlight:p})},n.handleScroll=function(){n.state.isScrolling||n.setState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout(function(){clearTimeout(n.scrollTimeout),n.setState({isScrolling:!1,showSpotlight:!0}),n.scrollParent.removeEventListener("scroll",n.handleScroll)},50)},n.handleResize=function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout(function(){clearTimeout(n.resizeTimeout),n.forceUpdate()},100)},n.state={mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:e.disableScrolling},n}return te(t,e),J(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.disableScrolling,n=e.target;if(!t){var r=ge(n);this.scrollParent=he(r)?d()(r):document}window.addEventListener("resize",this.handleResize)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.disableScrolling,r=e.lifecycle,o=e.spotlightClicks,i=_(this.props,e),s=i.changed,a=i.changedTo;n||a("lifecycle",Z.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(function(){t.state.isScrolling||(t.setState({showSpotlight:!0}),t.scrollParent.removeEventListener("scroll",t.handleScroll))},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(o&&r===Z.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Z.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){var e=this.props.disableScrolling;window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),e||(clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll))}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,r=this.props,o=r.disableOverlay,i=r.lifecycle,s=r.onClickOverlay,a=r.placement,l=r.styles;if(o||i!==Z.TOOLTIP)return null;var u,c,p,d=ee({cursor:o?"default":"pointer",height:(u=document,c=u.body,p=u.documentElement,c&&p?Math.max(c.scrollHeight,c.offsetHeight,p.clientHeight,p.scrollHeight,p.offsetHeight):0),pointerEvents:t?"none":"auto"},ae()?l.overlayLegacy:l.overlay),f="center"!==a&&n&&h.createElement(Ie,{styles:this.stylesSpotlight});if("safari"===se()){d.mixBlendMode,d.zIndex;var m=ne(d,["mixBlendMode","zIndex"]);f=h.createElement("div",{style:ee({},m)},f),delete d.backgroundColor}return h.createElement("div",{className:"joyride-overlay",style:d,onClick:s},f)}},{key:"stylesSpotlight",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.spotlightClicks,r=t.spotlightPadding,o=t.styles,i=ge(t.target),s=fe(i),a=me(i),l=function(e,t){var n=fe(e),r=d()(e),o=he(e),i=n.top+(o||me(e)?0:r.scrollTop);return Math.floor(i-t)}(i,r);return ee({},ae()?o.spotlightLegacy:o.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:n?"none":"auto",position:a?"fixed":"absolute",top:l,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(h.Component);Re.propTypes={disableOverlay:g().bool.isRequired,disableScrolling:g().bool.isRequired,lifecycle:g().string.isRequired,onClickOverlay:g().func.isRequired,placement:g().string.isRequired,spotlightClicks:g().bool.isRequired,spotlightPadding:g().number,styles:g().object.isRequired,target:g().oneOfType([g().object,g().string]).isRequired};var Me=function(e){var t=e.styles,n=ne(e,["styles"]),r=t.color,o=t.height,i=t.width,s=ne(t,["color","height","width"]);return h.createElement("button",ee({style:s,type:"button"},n),h.createElement("svg",{width:"number"==typeof i?i+"px":i,height:"number"==typeof o?o+"px":o,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},h.createElement("g",null,h.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))};Me.propTypes={styles:g().object.isRequired};var De=function(e){var t=e.continuous,n=e.backProps,r=e.closeProps,o=e.primaryProps,i=e.skipProps,s=e.index,a=e.isLastStep,l=e.setTooltipRef,u=e.size,c=e.step,p=c.content,d=c.hideBackButton,f=c.locale,m=c.showProgress,g=c.showSkipButton,y=c.title,v=c.styles,b=f.back,w=f.close,C=f.last,_=f.next,x=f.skip,E={primary:w};return t&&(E.primary=a?C:_,m&&(E.primary+=" ("+(s+1)+"/"+u+")")),g&&!a&&(E.skip=h.createElement("button",ee({style:v.buttonSkip,type:"button"},i),x)),!d&&s>0&&(E.back=h.createElement("button",ee({style:v.buttonBack,type:"button"},n),b)),E.close=h.createElement(Me,ee({},r,{styles:v.buttonClose})),h.createElement("div",{key:"JoyrideTooltip",ref:l,style:v.tooltip},h.createElement("div",{style:v.tooltipContainer},E.close,y&&h.createElement("h4",{style:v.tooltipTitle},y),!!p&&h.createElement("div",{style:v.tooltipContent},p)),h.createElement("div",{style:v.tooltipFooter},E.skip,E.back,h.createElement("button",ee({style:v.buttonNext,type:"button"},o),E.primary)))};De.propTypes={backProps:g().object.isRequired,closeProps:g().object.isRequired,continuous:g().bool.isRequired,index:g().number.isRequired,isLastStep:g().bool.isRequired,primaryProps:g().object.isRequired,setTooltipRef:g().func.isRequired,size:g().number.isRequired,skipProps:g().object.isRequired,step:g().object.isRequired};var Le=function(e){function t(){var e,n,r;X(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=re(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleClickBack=function(e){e.preventDefault(),r.props.helpers.prev()},r.handleClickClose=function(e){e.preventDefault(),r.props.helpers.close()},r.handleClickPrimary=function(e){e.preventDefault();var t=r.props,n=t.continuous,o=t.helpers;n?o.next():o.close()},r.handleClickSkip=function(e){e.preventDefault(),r.props.helpers.skip()},re(r,n)}return te(t,e),J(t,[{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.index,r=e.isLastStep,o=e.setTooltipRef,i=e.size,s=e.step,a=s.content,l=s.locale,u=s.title,c=s.tooltipComponent,p=l.back,d=l.close,f=l.last,m=l.next,g=l.skip,y=t?m:d;r&&(y=f);var v=void 0,b={backProps:{"aria-label":p,onClick:this.handleClickBack,role:"button",title:p},closeProps:{"aria-label":d,onClick:this.handleClickClose,role:"button",title:d},primaryProps:{"aria-label":y,onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":g,onClick:this.handleClickSkip,role:"button",title:g}};if(c){var w=ee({},b,{content:a,continuous:t,index:n,isLastStep:r,locale:l,setTooltipRef:o,size:i,title:u});v=h.isValidElement(c)?h.cloneElement(c,w):c(w)}else v=h.createElement(De,ee({continuous:t,index:n,isLastStep:r,setTooltipRef:o,size:i,step:s},b));return v}}]),t}(h.Component);Le.propTypes={continuous:g().bool.isRequired,helpers:g().object.isRequired,index:g().number.isRequired,isLastStep:g().bool.isRequired,setTooltipRef:g().func.isRequired,size:g().number.isRequired,step:g().object.isRequired};var Ne=function(e){function t(e){X(this,t);var n=re(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return oe?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):re(n)}return te(t,e),J(t,[{key:"componentDidMount",value:function(){oe&&(ie||this.renderReact15())}},{key:"componentDidUpdate",value:function(){oe&&(ie||this.renderReact15())}},{key:"componentWillUnmount",value:function(){oe&&this.node&&(ie||r.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!oe)return null;var e=this.props.children;return r.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!oe||!ie)return null;var e=this.props.children;return r.createPortal(e,this.node)}},{key:"render",value:function(){return ie?this.renderReact16():null}}]),t}(h.Component);Ne.propTypes={children:g().element,id:g().oneOfType([g().string,g().number])};var Ve=function(e){function t(){var e,n,r;X(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=re(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleClickHoverBeacon=function(e){var t=r.props,n=t.step,o=t.update;"mouseenter"===e.type&&"hover"!==n.event||o({lifecycle:Z.TOOLTIP})},r.handleClickOverlay=function(){var e=r.props,t=e.helpers;e.step.disableOverlayClose||t.close()},r.setTooltipRef=function(e){r.tooltip=e},r.setPopper=function(e,t){var n=r.props,o=n.action,i=n.getPopper,s=n.update;"wrapper"===t?r.beaconPopper=e:r.tooltipPopper=e,i(e,t),r.beaconPopper&&r.tooltipPopper&&s({action:o===Y.CLOSE?Y.CLOSE:o,lifecycle:Z.READY})},re(r,n)}return te(t,e),J(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug;le({title:"step:"+e.lifecycle,data:[{key:"props",value:this.props}],debug:t})}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.action,r=t.continuous,o=t.debug,i=t.index,s=t.lifecycle,a=t.step,l=t.update,u=_(this.props,e),c=u.changed,p=u.changedFrom,d=r&&n!==Y.CLOSE&&(i>0||n===Y.PREV);p("lifecycle",Z.INIT,Z.READY)&&l({lifecycle:a.disableBeacon||d?Z.TOOLTIP:Z.BEACON}),c("index")&&le({title:"step:"+s,data:[{key:"props",value:this.props}],debug:o})}},{key:"componentDidUpdate",value:function(e){var t,n=this.props,r=n.action,o=n.callback,i=n.controlled,s=n.index,a=n.lifecycle,l=n.size,u=n.status,c=n.step,p=n.update,d=_(e,this.props),f=d.changed,h=d.changedTo,m=d.changedFrom,g={action:r,controlled:i,index:s,lifecycle:a,size:l,status:u},y=-1!==[Y.NEXT,Y.PREV,Y.SKIP,Y.CLOSE].indexOf(r)&&f("action"),v=f("index")&&m("lifecycle",Z.TOOLTIP,Z.INIT);if(!f("status")&&(v||i&&y)&&o(ee({},g,{index:e.index,lifecycle:Z.COMPLETE,step:e.step,type:"step:after"})),c){var b=!!ge(c.target);b&&(m("status",G.READY,G.RUNNING)||f("index"))&&o(ee({},g,{step:c,type:"step:before"})),b||(console.warn("Target not mounted",c),o(ee({},g,{type:"error:target_not_found",step:c})),i||p({index:s+(-1!==[Y.PREV].indexOf(r)?-1:1)}))}h("lifecycle",Z.BEACON)&&o(ee({},g,{step:c,type:"beacon"})),h("lifecycle",Z.TOOLTIP)&&(o(ee({},g,{step:c,type:"tooltip"})),t=this.tooltip,Pe=t,window.addEventListener("keydown",ke,!1)),m("lifecycle",Z.TOOLTIP,Z.INIT)&&(Pe=null,window.removeEventListener("keydown",ke)),h("lifecycle",Z.INIT)&&(delete this.beaconPopper,delete this.tooltipPopper)}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.controlled,r=e.debug,o=e.helpers,i=e.index,a=e.lifecycle,l=e.size,u=e.step,c=ge(u.target);return Ce(u)&&s.A.domElement(c)?h.createElement("div",{key:"JoyrideStep-"+i,className:"joyride-step"},h.createElement(Ne,null,h.createElement(Re,ee({},u,{lifecycle:a,onClickOverlay:this.handleClickOverlay}))),h.createElement(Q,ee({component:h.createElement(Le,{continuous:t,controlled:n,helpers:o,index:i,setTooltipRef:this.setTooltipRef,size:l,isLastStep:i+1===l,step:u}),debug:r,getPopper:this.setPopper,id:"react-joyride:"+i,isPositioned:u.isFixed||me(c),open:this.open,placement:u.placement,target:u.target},u.floaterProps),h.createElement(Ae,{beaconComponent:u.beaconComponent,locale:u.locale,onClickOrHover:this.handleClickHoverBeacon,styles:u.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!t.disableBeacon&&n!==Z.TOOLTIP)}}]),t}(h.Component);Ve.propTypes={action:g().string.isRequired,callback:g().func.isRequired,continuous:g().bool.isRequired,controlled:g().bool.isRequired,debug:g().bool.isRequired,getPopper:g().func.isRequired,helpers:g().object.isRequired,index:g().number.isRequired,lifecycle:g().string.isRequired,size:g().number.isRequired,status:g().string.isRequired,step:g().shape({beaconComponent:g().oneOfType([g().func,g().element]),content:(0,x.A)(g().node,function(e){return!e.tooltipComponent&&!e.title}),disableBeacon:g().bool,disableOverlay:g().bool,disableOverlayClose:g().bool,event:g().string,floaterProps:g().shape({offset:g().number}),hideBackButton:g().bool,isFixed:g().bool,locale:g().object,offset:g().number.isRequired,placement:g().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),spotlightClicks:g().bool,spotlightPadding:g().number,styles:g().object,target:g().oneOfType([g().object,g().string]).isRequired,title:g().node,tooltipComponent:(0,x.A)(g().oneOfType([g().func,g().element]),function(e){return!e.content&&!e.title})}).isRequired,update:g().func.isRequired};var je=function(e){function t(e){X(this,t);var n=re(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.callback=function(e){var t=n.props.callback;s.A.function(t)&&t(e)},n.handleKeyboard=function(e){var t=n.state,r=t.index,o=t.lifecycle,i=n.props.steps[r],s=window.Event?e.which:e.keyCode;o===Z.TOOLTIP&&27===s&&i&&!i.disableCloseOnEsc&&n.store.close()},n.syncState=function(e){n.setState(e)},n.getPopper=function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e},n.store=new de(ee({},e,{controlled:e.run&&s.A.number(e.stepIndex)})),n.state=n.store.getState(),n.helpers=n.store.getHelpers(),n}return te(t,e),J(t,[{key:"componentDidMount",value:function(){if(oe){var e=this.props,t=e.debug,n=e.disableCloseOnEsc,r=e.run,o=e.steps,i=this.store.start;le({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),this.store.addListener(this.syncState),_e(o,t)&&r&&i(),n||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentWillReceiveProps",value:function(e){if(oe){var t=this.state,n=t.action,r=t.status,o=this.props,i=o.steps,a=o.stepIndex,l=e.debug,u=e.run,c=e.steps,p=e.stepIndex,d=this.store,f=d.setSteps,h=d.start,m=d.stop,g=d.update,y=!ue(this.props,e),v=_(this.props,e).changed;if(y){le({title:"props",data:[{key:"nextProps",value:e},{key:"props",value:this.props}],debug:l});var b=!ue(c,i),w=s.A.number(p)&&v("stepIndex");if(v("run")&&(u?h(p):m()),b&&(_e(c,l)?f(c):console.warn("Steps are not valid",c)),w){var C=a<p?Y.NEXT:Y.PREV;n===Y.STOP&&(C=Y.START),-1===[G.FINISHED,G.SKIPPED].indexOf(r)&&g({action:n===Y.CLOSE?Y.CLOSE:C,index:p,lifecycle:Z.INIT})}}}}},{key:"componentDidUpdate",value:function(e,t){if(oe){var n=this.state,r=n.index,o=n.lifecycle,i=n.status,s=this.props,a=s.debug,l=s.steps,u=_(t,this.state),c=u.changed,p=u.changedFrom,d=u.changedTo,f=!ue(t,this.state),h=Ee(l[r],this.props);if(f){le({title:"state",data:[{key:"state",value:this.state},{key:"changed",value:f},{key:"step",value:h}],debug:a});var m=r;if(c("status")){var g="tour:status";d("status",G.FINISHED)||d("status",G.SKIPPED)?(g="tour:end",h=Ee(l[t.index],this.props),m=t.index):p("status",G.READY,G.RUNNING)&&(g="tour:start"),this.callback(ee({},this.state,{index:m,step:h,type:g}))}h&&(this.scrollToStep(t),"center"===h.placement&&i===G.RUNNING&&o===Z.INIT&&this.store.update({lifecycle:Z.READY})),d("lifecycle",Z.INIT)&&(delete this.beaconPopper,delete this.tooltipPopper)}}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,r=t.lifecycle,o=t.status,i=this.props,s=i.debug,a=i.disableScrolling,u=i.scrollToFirstStep,p=i.scrollOffset,f=Ee(i.steps[n],this.props);if(f){var h=ge(f.target),m=f&&!a&&(!f.isFixed||!me(h))&&e.lifecycle!==r&&-1!==[Z.BEACON,Z.TOOLTIP].indexOf(r)&&(u||e.index!==n);if(o===G.RUNNING&&m){var g=he(h),y=d()(h),v=Math.floor(function(e,t){if(!e)return 0;var n=d()(e),r=e.offsetTop;return he(e)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=n.offsetTop),Math.floor(r-t)}(h,p));if(le({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:r},{key:"status",value:o}],debug:s}),r===Z.BEACON&&this.beaconPopper){var b=this.beaconPopper,w=b.placement,C=b.popper;-1!==["bottom"].indexOf(w)||g||(v=Math.floor(C.top-p))}else if(r===Z.TOOLTIP&&this.tooltipPopper){var _=this.tooltipPopper,x=_.flipped,E=_.placement,S=_.popper;-1===["top","right"].indexOf(E)||x||g?v-=f.spotlightPadding:v=Math.floor(S.top-p)}o===G.RUNNING&&m&&v>=0&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c()();new Promise(function(n,r){var o=t.scrollTop,i=e>o?e-o:o-e;l().top(t,e,{duration:i<100?50:300},function(e){return e&&"Element already at target scroll position"!==e.message?r(e):n()})})}(v,y)}}}},{key:"render",value:function(){if(!oe)return null;var e=this.state,t=e.index,n=e.status,r=this.props,o=r.continuous,i=r.debug,s=r.disableScrolling,a=Ee(r.steps[t],this.props),l=void 0;return n===G.RUNNING&&a&&(l=h.createElement(Ve,ee({},this.state,{callback:this.callback,continuous:o,debug:i,disableScrolling:s,getPopper:this.getPopper,helpers:this.helpers,step:a,update:this.store.update}))),h.createElement("div",{className:"joyride"},l)}}]),t}(h.Component);je.propTypes={beaconComponent:g().oneOfType([g().func,g().element]),callback:g().func,continuous:g().bool,debug:g().bool,disableCloseOnEsc:g().bool,disableOverlay:g().bool,disableOverlayClose:g().bool,disableScrolling:g().bool,floaterProps:g().shape({offset:g().number}),hideBackButton:g().bool,locale:g().object,run:g().bool,scrollOffset:g().number,scrollToFirstStep:g().bool,showProgress:g().bool,showSkipButton:g().bool,spotlightClicks:g().bool,spotlightPadding:g().number,stepIndex:g().number,steps:g().array,styles:g().object,tooltipComponent:g().oneOfType([g().func,g().element])},je.defaultProps={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,hideBackButton:!1,run:!0,scrollOffset:20,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]};const Fe=je},19316(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(84011)),o=d(n(38841)),i=d(n(17380)),s=d(n(31354)),a=d(n(77857)),l=d(n(87724)),u=d(n(22155)),c=d(n(5821)),p=d(n(7369));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var e,n,r,s;(0,i.default)(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=r=(0,a.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(u))),r.handleClickToPause=function(){r.anim.isPaused?r.anim.play():r.anim.pause()},s=n,(0,a.default)(r,s)}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.eventListeners,o=t.loop,i=t.autoplay,s=t.animationData,a=t.rendererSettings,l=t.segments;this.options={container:this.el,renderer:"svg",loop:!1!==o,autoplay:!1!==i,segments:!1!==l,animationData:s,rendererSettings:a},this.options=(0,r.default)({},this.options,t),this.anim=p.default.loadAnimation(this.options),this.registerEvents(n),this.setSpeed()}},{key:"componentWillUpdate",value:function(e){this.options.animationData!==e.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,r.default)({},this.options,e.options),this.anim=p.default.loadAnimation(this.options),this.registerEvents(e.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(e){var t=this;e.forEach(function(e){t.anim.addEventListener(e.eventName,e.callback)})}},{key:"deRegisterEvents",value:function(e){var t=this;e.forEach(function(e){t.anim.removeEventListener(e.eventName,e.callback)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,o=t.height,i=t.ariaRole,s=t.ariaLabel,a=t.isClickToPauseDisabled,l=t.title,c=function(e){return"number"==typeof e?e+"px":e||"100%"},p=(0,r.default)({width:c(n),height:c(o),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),d=a?function(){return null}:this.handleClickToPause;return u.default.createElement("div",{ref:function(t){e.el=t},style:p,onClick:d,title:l,role:i,"aria-label":s,tabIndex:"0"})}}]),t}(u.default.Component);t.default=f,f.propTypes={eventListeners:c.default.arrayOf(c.default.object),options:c.default.object.isRequired,height:c.default.oneOfType([c.default.string,c.default.number]),width:c.default.oneOfType([c.default.string,c.default.number]),isStopped:c.default.bool,isPaused:c.default.bool,speed:c.default.number,segments:c.default.arrayOf(c.default.number),direction:c.default.number,ariaRole:c.default.string,ariaLabel:c.default.string,isClickToPauseDisabled:c.default.bool,title:c.default.string,style:c.default.object},f.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""}},78013(e,t,n){"use strict";var r=n(22155),o=n(45918),i=n(17020),s={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function a(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}e.exports=function e(t,n){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=n.renderers[t.type];void 0===t.position&&(t.position=l.node&&l.node.position||s);var p=t.position.start,d=[t.type,p.line,p.column,u].join("-");if(!i.isValidElementType(c))throw new Error("Renderer for type `".concat(t.type,"` not defined or is not renderable"));var f=function(t,n,i,s,l,u){var c={key:n},p="string"==typeof s;i.sourcePos&&t.position&&(c["data-sourcepos"]=function(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}(t.position)),i.rawSourcePos&&!p&&(c.sourcePosition=t.position),i.includeNodeIndex&&l.node&&l.node.children&&!p&&(c.index=l.node.children.indexOf(t),c.parentChildCount=l.node.children.length);var d=null!==t.identifier&&void 0!==t.identifier?i.definitions[t.identifier]||{}:null;switch(t.type){case"root":a(c,{className:i.className});break;case"text":c.nodeKey=n,c.children=t.value;break;case"heading":c.level=t.depth;break;case"list":c.start=t.start,c.ordered=t.ordered,c.tight=!t.loose,c.depth=t.depth;break;case"listItem":c.checked=t.checked,c.tight=!t.loose,c.ordered=t.ordered,c.index=t.index,c.children=function(e,t){return e.loose||t.node&&e.index>0&&t.node.children[e.index-1].loose?e.children:function(e){return e.children.reduce(function(e,t){return e.concat("paragraph"===t.type?t.children||[]:[t])},[])}(e)}(t,l).map(function(n,r){return e(n,i,{node:t,props:c},r)});break;case"definition":a(c,{identifier:t.identifier,title:t.title,url:t.url});break;case"code":a(c,{language:t.lang&&t.lang.split(/\s/,1)[0]});break;case"inlineCode":c.children=t.value,c.inline=!0;break;case"link":a(c,{title:t.title||void 0,target:"function"==typeof i.linkTarget?i.linkTarget(t.url,t.children,t.title):i.linkTarget,href:i.transformLinkUri?i.transformLinkUri(t.url,t.children,t.title):t.url});break;case"image":a(c,{alt:t.alt||void 0,title:t.title||void 0,src:i.transformImageUri?i.transformImageUri(t.url,t.children,t.title,t.alt):t.url});break;case"linkReference":a(c,o(d,{href:i.transformLinkUri?i.transformLinkUri(d.href):d.href}));break;case"imageReference":a(c,{src:i.transformImageUri&&d.href?i.transformImageUri(d.href,t.children,d.title,t.alt):d.href,title:d.title||void 0,alt:t.alt||void 0});break;case"table":case"tableHead":case"tableBody":c.columnAlignment=t.align;break;case"tableRow":c.isHeader="tableHead"===l.node.type,c.columnAlignment=l.props.columnAlignment;break;case"tableCell":a(c,{isHeader:l.props.isHeader,align:l.props.columnAlignment[u]});break;case"virtualHtml":c.tag=t.tag;break;case"html":c.isBlock=t.position.start.line!==t.position.end.line,c.escapeHtml=i.escapeHtml,c.skipHtml=i.skipHtml;break;case"parsedHtml":var f;t.children&&(f=t.children.map(function(n,r){return e(n,i,{node:t,props:c},r)})),c.escapeHtml=i.escapeHtml,c.skipHtml=i.skipHtml,c.element=function(e,t){var n=e.element;if(Array.isArray(n)){var o=r.Fragment||"div";return r.createElement(o,null,n)}if(n.props.children||t){var i=r.Children.toArray(n.props.children).concat(t);return r.cloneElement(n,null,i)}return r.cloneElement(n,null)}(t,f);break;default:a(c,o(t,{type:void 0,position:void 0,children:void 0}))}return!p&&t.value&&(c.value=t.value),c}(t,d,n,c,l,u);return r.createElement(c,f,f.children||t.children&&t.children.map(function(r,o){return e(r,n,{node:t,props:f},o)})||void 0)}},94238(e){"use strict";e.exports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t.children||[]).reduce(function(t,n){return"definition"===n.type&&(t[n.identifier]={href:n.url,title:n.title}),e(n,t)},n)}},86482(e,t,n){"use strict";var r=n(45114);function o(e,t,n,r){if("remove"===r)n.children.splice(t,1);else if("unwrap"===r){var o=[t,1];e.children&&(o=o.concat(e.children)),Array.prototype.splice.apply(n.children,o)}}t.ofType=function(e,t){return function(t){return e.forEach(function(e){return r(t,e,n,!0)}),t};function n(e,n,r){r&&o(e,n,r,t)}},t.ifNotMatch=function(e,t){return function(e){return r(e,n,!0),e};function n(n,r,i){i&&!e(n,r,i)&&o(n,r,i,t)}}},31718(e,t,n){"use strict";var r=n(45114),o="virtualHtml",i=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,s=/^<(\/?)([a-z]+)\s*>$/;e.exports=function(e){var t,n;return r(e,"html",function(e,r,a){n!==a&&(t=[],n=a);var l=function(e){var t=e.value.match(i);return!!t&&t[1]}(e);if(l)return a.children.splice(r,1,{type:o,tag:l,position:e.position}),!0;var u=function(e){var t=e.value.match(s);return!!t&&{tag:t[2],opening:!t[1],node:e}}(e);if(!u)return!0;var c=function(e,t){for(var n=e.length;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,u.tag);return c?a.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),i=n.children.indexOf(t.node),s=n.children.splice(r,i-r+1).slice(1,-1);return{type:o,children:s,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(u,c,a)):u.opening||t.push(u),!0},!0),e}},46762(e,t,n){"use strict";var r=n(45918),o=n(7302),i=n(91385),s=n(5821),a=n(74970),l=n(31718),u=n(86482),c=n(78013),p=n(52060),d=n(94238),f=n(45921),h=n(2241),m=n(82296),g=Object.keys(h),y=function(e){var t=e.source||e.children||"",n=e.parserOptions;if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var s=r(h,e.renderers),f=[[i,n]].concat(e.plugins||[]).reduce(v,o()),y=f.parse(t),b=r(e,{renderers:s,definitions:d(y)}),w=function(e){var t=[p,a()],n=e.disallowedTypes;e.allowedTypes&&(n=g.filter(function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)}));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(u.ofType(n,r)),e.allowNode&&t.push(u.ifNotMatch(e.allowNode,r));var o=!e.escapeHtml&&!e.skipHtml,i=(e.astPlugins||[]).some(function(e){return(Array.isArray(e)?e[0]:e).identity===m.HtmlParser});return o&&!i&&t.push(l),e.astPlugins?t.concat(e.astPlugins):t}(e),C=f.runSync(y),_=w.reduce(function(e,t){return t(e,b)},C);return c(_,b)};function v(e,t){return Array.isArray(t)?e.use.apply(e,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(n=t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()):e.use(t);var n}y.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:f,astPlugins:[],plugins:[],parserOptions:{}},y.propTypes={className:s.string,source:s.string,children:s.string,sourcePos:s.bool,rawSourcePos:s.bool,escapeHtml:s.bool,skipHtml:s.bool,allowNode:s.func,allowedTypes:s.arrayOf(s.oneOf(g)),disallowedTypes:s.arrayOf(s.oneOf(g)),transformLinkUri:s.oneOfType([s.func,s.bool]),linkTarget:s.oneOfType([s.func,s.string]),transformImageUri:s.func,astPlugins:s.arrayOf(s.func),unwrapDisallowed:s.bool,renderers:s.object,plugins:s.array,parserOptions:s.object},y.types=g,y.renderers=h,y.uriTransformer=f,e.exports=y},2241(e,t,n){"use strict";var r=n(45918),o=n(22155),i=parseInt((o.version||"16").slice(0,2),10)>=16,s=o.createElement;function a(e,t){return s(e,l(t),t.children)}function l(e){return e["data-sourcepos"]?{"data-sourcepos":e["data-sourcepos"]}:{}}e.exports={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:a.bind(null,"table"),tableHead:a.bind(null,"thead"),tableBody:a.bind(null,"tbody"),tableRow:a.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=l(e);return s(e.isHeader?"th":"td",t?r({style:t},n):n,e.children)},root:function(e){var t=!e.className,n=t&&o.Fragment||"div";return s(n,t?null:e,e.children)},text:function(e){return i?e.children:s("span",null,e.children)},list:function(e){var t=l(e);return null!==e.start&&1!==e.start&&void 0!==e.start&&(t.start=e.start.toString()),s(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!==e.checked&&void 0!==e.checked){var n=e.checked;t=s("input",{type:"checkbox",checked:n,readOnly:!0})}return s("li",l(e),t,e.children)},definition:function(){return null},heading:function(e){return s("h".concat(e.level),l(e),e.children)},inlineCode:function(e){return s("code",l(e),e.children)},code:function(e){var t=e.language&&"language-".concat(e.language),n=s("code",t?{className:t}:null,e.value);return s("pre",l(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.isBlock?"div":"span";if(e.escapeHtml){var n=o.Fragment||t;return s(n,null,e.value)}var r={dangerouslySetInnerHTML:{__html:e.value}};return s(t,r)},virtualHtml:function(e){return s(e.tag,l(e),e.children)},parsedHtml:function(e){return e["data-sourcepos"]?o.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}}},82296(e,t){"use strict";var n="__RMD_HTML_PARSER__";t.HtmlParser="undefined"==typeof Symbol?n:Symbol(n)},45921(e){"use strict";var t=["http","https","mailto","tel"];e.exports=function(e){var n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;var o=n.indexOf(":");if(-1===o)return n;for(var i=t.length,s=-1;++s<i;){var a=t[s];if(o===a.length&&n.slice(0,a.length).toLowerCase()===a)return n}return-1!==(s=n.indexOf("?"))&&o>s||-1!==(s=n.indexOf("#"))&&o>s?n:"javascript:void(0)"}},52060(e,t,n){"use strict";var r=n(45114);function o(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}e.exports=function(e){return r(e,"table",o),e}},59062(e,t){"use strict";t.A=function(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(t&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(r,o,i){for(var s=arguments.length,a=Array(3<s?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];return function(e,t,n,r){return"boolean"==typeof e?e:"function"==typeof e?e(t,n,r):!(1!=!!e||!e)}(t,r,o,i)?function(e,t){return Object.hasOwnProperty.call(e,t)}(r,o)?e.apply(void 0,[r,o,i].concat(a)):function(e,t,n,r){return r?new Error(r):new Error("Required "+e[t]+" `"+t+"` was not specified in `"+n+"`.")}(r,o,i,n):e.apply(void 0,[r,o,i].concat(a))}}},97322(e,t,n){"use strict";var r,o;n.r(t),n.d(t,{AbortedDeferredError:()=>l.tH,Await:()=>a.jD,BrowserRouter:()=>L,Form:()=>H,HashRouter:()=>N,Link:()=>z,MemoryRouter:()=>a.fS,NavLink:()=>B,Navigate:()=>a.C5,NavigationType:()=>l.rc,Outlet:()=>a.sv,Route:()=>a.qh,Router:()=>a.Ix,RouterProvider:()=>R,Routes:()=>a.BV,ScrollRestoration:()=>U,UNSAFE_DataRouterContext:()=>a.sp,UNSAFE_DataRouterStateContext:()=>a.Rq,UNSAFE_ErrorResponseImpl:()=>l.VV,UNSAFE_FetchersContext:()=>P,UNSAFE_LocationContext:()=>a.yN,UNSAFE_NavigationContext:()=>a.jb,UNSAFE_RouteContext:()=>a.UX,UNSAFE_ViewTransitionContext:()=>S,UNSAFE_useRouteId:()=>a.$3,UNSAFE_useScrollRestoration:()=>oe,createBrowserRouter:()=>C,createHashRouter:()=>_,createMemoryRouter:()=>a.bg,createPath:()=>l.AO,createRoutesFromChildren:()=>a.AV,createRoutesFromElements:()=>a.Eu,createSearchParams:()=>h,defer:()=>l.v6,generatePath:()=>l.tW,isRouteErrorResponse:()=>l.pX,json:()=>l.Pq,matchPath:()=>l.B6,matchRoutes:()=>l.ue,parsePath:()=>l.Rr,redirect:()=>l.V2,redirectDocument:()=>l.Sk,renderMatches:()=>a.KT,replace:()=>l.HC,resolvePath:()=>l.o1,unstable_HistoryRouter:()=>V,unstable_usePrompt:()=>se,useActionData:()=>a.mP,useAsyncError:()=>a.oI,useAsyncValue:()=>a.J8,useBeforeUnload:()=>ie,useBlocker:()=>a.KP,useFetcher:()=>ee,useFetchers:()=>te,useFormAction:()=>J,useHref:()=>a.$P,useInRouterContext:()=>a.Ri,useLinkClickHandler:()=>G,useLoaderData:()=>a.LG,useLocation:()=>a.zy,useMatch:()=>a.RQ,useMatches:()=>a.FE,useNavigate:()=>a.Zp,useNavigation:()=>a.cq,useNavigationType:()=>a.wQ,useOutlet:()=>a.P1,useOutletContext:()=>a.KC,useParams:()=>a.g,useResolvedPath:()=>a.x$,useRevalidator:()=>a.vL,useRouteError:()=>a.r5,useRouteLoaderData:()=>a.Ew,useRoutes:()=>a.Ye,useSearchParams:()=>Y,useSubmit:()=>X,useViewTransitionState:()=>ae});var i=n(22155),s=n(70316),a=n(41346),l=n(38126);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const p="get",d="application/x-www-form-urlencoded";function f(e){return null!=e&&"string"==typeof e.tagName}function h(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}let m=null;const g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function y(e){return null==e||g.has(e)?e:null}const v=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],b=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],w=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function C(e,t){return(0,l.aE)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:a.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function _(e,t){return(0,l.aE)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:a.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function x(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=u({},t,{errors:E(t.errors)})),t}function E(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new l.VV(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const S=i.createContext({isTransitioning:!1}),P=i.createContext(new Map),O=(r||(r=n.t(i,2))).startTransition,T=(o||(o=n.t(s,2))).flushSync,k=(r||(r=n.t(i,2))).useId;function A(e){T?T(e):e()}class I{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function R(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=i.useState(n.state),[l,u]=i.useState(),[c,p]=i.useState({isTransitioning:!1}),[d,f]=i.useState(),[h,m]=i.useState(),[g,y]=i.useState(),v=i.useRef(new Map),{v7_startTransition:b}=r||{},w=i.useCallback(e=>{b?function(e){O?O(e):e()}(e):e()},[b]),C=i.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:o,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&v.current.set(t,e.data)}),r.forEach(e=>v.current.delete(e));let a=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!a){if(o){A(()=>{h&&(d&&d.resolve(),h.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=n.window.document.startViewTransition(()=>{A(()=>s(e))});return t.finished.finally(()=>{A(()=>{f(void 0),m(void 0),u(void 0),p({isTransitioning:!1})})}),void A(()=>m(t))}h?(d&&d.resolve(),h.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(u(e),p({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?A(()=>s(e)):w(()=>s(e))},[n.window,h,d,v,w]);i.useLayoutEffect(()=>n.subscribe(C),[n,C]),i.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new I)},[c]),i.useEffect(()=>{if(d&&l&&n.window){let e=l,t=d.promise,r=n.window.document.startViewTransition(async()=>{w(()=>s(e)),await t});r.finished.finally(()=>{f(void 0),m(void 0),u(void 0),p({isTransitioning:!1})}),m(r)}},[w,l,d,n.window]),i.useEffect(()=>{d&&l&&o.location.key===l.location.key&&d.resolve()},[d,h,o.location,l]),i.useEffect(()=>{!c.isTransitioning&&g&&(u(g.state),p({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[c.isTransitioning,g]),i.useEffect(()=>{},[]);let _=i.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),x=n.basename||"/",E=i.useMemo(()=>({router:n,navigator:_,static:!1,basename:x}),[n,_,x]),T=i.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return i.useEffect(()=>(0,a.V8)(r,n.future),[r,n.future]),i.createElement(i.Fragment,null,i.createElement(a.sp.Provider,{value:E},i.createElement(a.Rq.Provider,{value:o},i.createElement(P.Provider,{value:v.current},i.createElement(S.Provider,{value:c},i.createElement(a.Ix,{basename:x,location:o.location,navigationType:o.historyAction,navigator:_,future:T},o.initialized||n.future.v7_partialHydration?i.createElement(M,{routes:n.routes,future:n.future,state:o}):t))))),null)}const M=i.memo(D);function D(e){let{routes:t,future:n,state:r}=e;return(0,a.ph)(t,void 0,r,n)}function L(e){let{basename:t,children:n,future:r,window:o}=e,s=i.useRef();null==s.current&&(s.current=(0,l.zR)({window:o,v5Compat:!0}));let u=s.current,[c,p]=i.useState({action:u.action,location:u.location}),{v7_startTransition:d}=r||{},f=i.useCallback(e=>{d&&O?O(()=>p(e)):p(e)},[p,d]);return i.useLayoutEffect(()=>u.listen(f),[u,f]),i.useEffect(()=>(0,a.V8)(r),[r]),i.createElement(a.Ix,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:r})}function N(e){let{basename:t,children:n,future:r,window:o}=e,s=i.useRef();null==s.current&&(s.current=(0,l.TM)({window:o,v5Compat:!0}));let u=s.current,[c,p]=i.useState({action:u.action,location:u.location}),{v7_startTransition:d}=r||{},f=i.useCallback(e=>{d&&O?O(()=>p(e)):p(e)},[p,d]);return i.useLayoutEffect(()=>u.listen(f),[u,f]),i.useEffect(()=>(0,a.V8)(r),[r]),i.createElement(a.Ix,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:r})}function V(e){let{basename:t,children:n,future:r,history:o}=e,[s,l]=i.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=i.useCallback(e=>{u&&O?O(()=>l(e)):l(e)},[l,u]);return i.useLayoutEffect(()=>o.listen(c),[o,c]),i.useEffect(()=>(0,a.V8)(r),[r]),i.createElement(a.Ix,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z=i.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:s,replace:p,state:d,target:f,to:h,preventScrollReset:m,viewTransition:g}=e,y=c(e,v),{basename:b}=i.useContext(a.jb),w=!1;if("string"==typeof h&&F.test(h)&&(n=h,j))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),n=(0,l.pb)(t.pathname,b);t.origin===e.origin&&null!=n?h=n+t.search+t.hash:w=!0}catch(e){}let C=(0,a.$P)(h,{relative:o}),_=G(h,{replace:p,state:d,target:f,preventScrollReset:m,relative:o,viewTransition:g});return i.createElement("a",u({},y,{href:n||C,onClick:w||s?r:function(e){r&&r(e),e.defaultPrevented||_(e)},ref:t,target:f}))}),B=i.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:s=!1,style:p,to:d,viewTransition:f,children:h}=e,m=c(e,b),g=(0,a.x$)(d,{relative:m.relative}),y=(0,a.zy)(),v=i.useContext(a.Rq),{navigator:w,basename:C}=i.useContext(a.jb),_=null!=v&&ae(g)&&!0===f,x=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,E=y.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(E=E.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&C&&(S=(0,l.pb)(S,C)||S);const P="/"!==x&&x.endsWith("/")?x.length-1:x.length;let O,T=E===x||!s&&E.startsWith(x)&&"/"===E.charAt(P),k=null!=S&&(S===x||!s&&S.startsWith(x)&&"/"===S.charAt(x.length)),A={isActive:T,isPending:k,isTransitioning:_},I=T?n:void 0;O="function"==typeof o?o(A):[o,T?"active":null,k?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof p?p(A):p;return i.createElement(z,u({},m,{"aria-current":I,className:O,ref:t,style:R,to:d,viewTransition:f}),"function"==typeof h?h(A):h)}),H=i.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:s,state:a,method:l=p,action:d,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:g}=e,y=c(e,w),v=X(),b=J(d,{relative:h}),C="get"===l.toLowerCase()?"get":"post";return i.createElement("form",u({ref:t,method:C,action:b,onSubmit:o?f:e=>{if(f&&f(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,o=(null==t?void 0:t.getAttribute("formmethod"))||l;v(t||e.currentTarget,{fetcherKey:n,method:o,navigate:r,replace:s,state:a,relative:h,preventScrollReset:m,viewTransition:g})}},y))});function U(e){let{getKey:t,storageKey:n}=e;return oe({getKey:t,storageKey:n}),null}var q,W;function $(e){let t=i.useContext(a.sp);return t||(0,l.Oi)(!1),t}function Q(e){let t=i.useContext(a.Rq);return t||(0,l.Oi)(!1),t}function G(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:u,viewTransition:c}=void 0===t?{}:t,p=(0,a.Zp)(),d=(0,a.zy)(),f=(0,a.x$)(e,{relative:u});return i.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,l.AO)(d)===(0,l.AO)(f);p(e,{replace:n,state:o,preventScrollReset:s,relative:u,viewTransition:c})}},[d,p,f,r,o,n,e,s,u,c])}function Y(e){let t=i.useRef(h(e)),n=i.useRef(!1),r=(0,a.zy)(),o=i.useMemo(()=>function(e,t){let n=h(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),s=(0,a.Zp)(),l=i.useCallback((e,t)=>{const r=h("function"==typeof e?e(o):e);n.current=!0,s("?"+r,t)},[s,o]);return[o,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(q||(q={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(W||(W={}));let Z=0,K=()=>"__"+String(++Z)+"__";function X(){let{router:e}=$(q.UseSubmit),{basename:t}=i.useContext(a.jb),n=(0,a.$3)();return i.useCallback(function(r,o){void 0===o&&(o={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:i,method:s,encType:a,formData:u,body:c}=function(e,t){let n,r,o,i,s;if(f(a=e)&&"form"===a.tagName.toLowerCase()){let s=e.getAttribute("action");r=s?(0,l.pb)(s,t):null,n=e.getAttribute("method")||p,o=y(e.getAttribute("enctype"))||d,i=new FormData(e)}else if(function(e){return f(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return f(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?(0,l.pb)(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||p,o=y(e.getAttribute("formenctype"))||y(s.getAttribute("enctype"))||d,i=new FormData(s,e),!function(){if(null===m)try{new FormData(document.createElement("form"),0),m=!1}catch(e){m=!0}return m}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";i.append(e+"x","0"),i.append(e+"y","0")}else t&&i.append(t,r)}}else{if(f(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=p,r=null,o=d,s=e}var a;return i&&"text/plain"===o&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}(r,t);if(!1===o.navigate){let t=o.fetcherKey||K();e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||a,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||a,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function J(e,t){let{relative:n}=void 0===t?{}:t,{basename:r}=i.useContext(a.jb),o=i.useContext(a.UX);o||(0,l.Oi)(!1);let[s]=o.matches.slice(-1),c=u({},(0,a.x$)(e||".",{relative:n})),p=(0,a.zy)();if(null==e){c.search=p.search;let e=new URLSearchParams(c.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();c.search=n?"?"+n:""}}return e&&"."!==e||!s.route.index||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(c.pathname="/"===c.pathname?r:(0,l.HS)([r,c.pathname])),(0,l.AO)(c)}function ee(e){var t;let{key:n}=void 0===e?{}:e,{router:r}=$(q.UseFetcher),o=Q(W.UseFetcher),s=i.useContext(P),c=i.useContext(a.UX),p=null==(t=c.matches[c.matches.length-1])?void 0:t.route.id;s||(0,l.Oi)(!1),c||(0,l.Oi)(!1),null==p&&(0,l.Oi)(!1);let d=k?k():"",[f,h]=i.useState(n||d);n&&n!==f?h(n):f||h(K()),i.useEffect(()=>(r.getFetcher(f),()=>{r.deleteFetcher(f)}),[r,f]);let m=i.useCallback((e,t)=>{p||(0,l.Oi)(!1),r.fetch(f,p,e,t)},[f,p,r]),g=X(),y=i.useCallback((e,t)=>{g(e,u({},t,{navigate:!1,fetcherKey:f}))},[f,g]),v=i.useMemo(()=>i.forwardRef((e,t)=>i.createElement(H,u({},e,{navigate:!1,fetcherKey:f,ref:t}))),[f]),b=o.fetchers.get(f)||l.HW,w=s.get(f);return i.useMemo(()=>u({Form:v,submit:y,load:m},b,{data:w}),[v,y,m,b,w])}function te(){let e=Q(W.UseFetchers);return Array.from(e.fetchers.entries()).map(e=>{let[t,n]=e;return u({},n,{key:t})})}const ne="react-router-scroll-positions";let re={};function oe(e){let{getKey:t,storageKey:n}=void 0===e?{}:e,{router:r}=$(q.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:s}=Q(W.UseScrollRestoration),{basename:c}=i.useContext(a.jb),p=(0,a.zy)(),d=(0,a.FE)(),f=(0,a.cq)();i.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};i.useEffect(()=>{let n=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,t])}(i.useCallback(()=>{if("idle"===f.state){let e=(t?t(p,d):null)||p.key;re[e]=window.scrollY}try{sessionStorage.setItem(n||ne,JSON.stringify(re))}catch(e){}window.history.scrollRestoration="auto"},[n,t,f.state,p,d])),"undefined"!=typeof document&&(i.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(n||ne);e&&(re=JSON.parse(e))}catch(e){}},[n]),i.useLayoutEffect(()=>{let e=t&&"/"!==c?(e,n)=>t(u({},e,{pathname:(0,l.pb)(e.pathname,c)||e.pathname}),n):t,n=null==r?void 0:r.enableScrollRestoration(re,()=>window.scrollY,e);return()=>n&&n()},[r,c,t]),i.useLayoutEffect(()=>{if(!1!==o)if("number"!=typeof o){if(p.hash){let e=document.getElementById(decodeURIComponent(p.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}else window.scrollTo(0,o)},[p,o,s]))}function ie(e,t){let{capture:n}=t||{};i.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}function se(e){let{when:t,message:n}=e,r=(0,a.KP)(t);i.useEffect(()=>{"blocked"===r.state&&(window.confirm(n)?setTimeout(r.proceed,0):r.reset())},[r,n]),i.useEffect(()=>{"blocked"!==r.state||t||r.reset()},[r,t])}function ae(e,t){void 0===t&&(t={});let n=i.useContext(S);null==n&&(0,l.Oi)(!1);let{basename:r}=$(q.useViewTransitionState),o=(0,a.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=(0,l.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=(0,l.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,l.B6)(o.pathname,u)||null!=(0,l.B6)(o.pathname,s)}},71790(e,t,n){"use strict";n.d(t,{Vq:()=>h});var r=n(22155),o=n(97322),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s="",a=null,l=null,u=null;function c(){s="",null!==a&&a.disconnect(),null!==l&&(window.clearTimeout(l),l=null)}function p(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)&&!e.hasAttribute("disabled")||["A","AREA"].includes(e.tagName)&&e.hasAttribute("href")}function d(){var e=null;if("#"===s)e=document.body;else{var t=s.replace("#","");null===(e=document.getElementById(t))&&"#top"===s&&(e=document.body)}if(null!==e){u(e);var n=e.getAttribute("tabindex");return null!==n||p(e)||e.setAttribute("tabindex",-1),e.focus({preventScroll:!0}),null!==n||p(e)||(e.blur(),e.removeAttribute("tabindex")),c(),!0}return!1}function f(e){return r.forwardRef(function(t,n){var p="";"string"==typeof t.to&&t.to.includes("#")?p="#"+t.to.split("#").slice(1).join("#"):"object"==typeof t.to&&"string"==typeof t.to.hash&&(p=t.to.hash);var f={};e===o.NavLink&&(f.isActive=function(e,t){return e&&e.isExact&&t.hash===p});var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["scroll","smooth","timeout","elementId"]);return r.createElement(e,i({},f,h,{onClick:function(e){var n;c(),s=t.elementId?"#"+t.elementId:p,t.onClick&&t.onClick(e),""===s||e.defaultPrevented||0!==e.button||t.target&&"_self"!==t.target||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||(u=t.scroll||function(e){return t.smooth?e.scrollIntoView({behavior:"smooth"}):e.scrollIntoView()},n=t.timeout,window.setTimeout(function(){!1===d()&&(null===a&&(a=new MutationObserver(d)),a.observe(document,{attributes:!0,childList:!0,subtree:!0}),l=window.setTimeout(function(){c()},n||1e4))},0))},ref:n}),t.children)})}var h=f(o.Link);f(o.NavLink)},41346(e,t,n){"use strict";var r;n.d(t,{$3:()=>j,$P:()=>h,AV:()=>ce,BV:()=>oe,C5:()=>ee,Eu:()=>ce,Ew:()=>U,FE:()=>B,Ix:()=>re,J8:()=>$,KC:()=>_,KP:()=>Y,KT:()=>pe,LG:()=>H,P1:()=>x,RQ:()=>v,Ri:()=>m,Rq:()=>l,UX:()=>d,V8:()=>K,Ye:()=>P,Zp:()=>w,bg:()=>fe,cq:()=>F,fS:()=>J,g:()=>E,jD:()=>ie,jb:()=>c,mP:()=>q,oI:()=>Q,ph:()=>O,qh:()=>ne,r5:()=>W,sp:()=>a,sv:()=>te,vL:()=>z,wE:()=>de,wQ:()=>y,x$:()=>S,yN:()=>p,zy:()=>g});var o=n(22155),i=n(38126);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const a=o.createContext(null),l=o.createContext(null),u=o.createContext(null),c=o.createContext(null),p=o.createContext(null),d=o.createContext({outlet:null,matches:[],isDataRoute:!1}),f=o.createContext(null);function h(e,t){let{relative:n}=void 0===t?{}:t;m()||(0,i.Oi)(!1);let{basename:r,navigator:s}=o.useContext(c),{hash:a,pathname:l,search:u}=S(e,{relative:n}),p=l;return"/"!==r&&(p="/"===l?r:(0,i.HS)([r,l])),s.createHref({pathname:p,search:u,hash:a})}function m(){return null!=o.useContext(p)}function g(){return m()||(0,i.Oi)(!1),o.useContext(p).location}function y(){return o.useContext(p).navigationType}function v(e){m()||(0,i.Oi)(!1);let{pathname:t}=g();return o.useMemo(()=>(0,i.B6)(e,(0,i.RO)(t)),[t,e])}function b(e){o.useContext(c).static||o.useLayoutEffect(e)}function w(){let{isDataRoute:e}=o.useContext(d);return e?function(){let{router:e}=L(M.UseNavigateStable),t=V(D.UseNavigateStable),n=o.useRef(!1);return b(()=>{n.current=!0}),o.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,s({fromRouteId:t},o)))},[e,t])}():function(){m()||(0,i.Oi)(!1);let e=o.useContext(a),{basename:t,future:n,navigator:r}=o.useContext(c),{matches:s}=o.useContext(d),{pathname:l}=g(),u=JSON.stringify((0,i.yD)(s,n.v7_relativeSplatPath)),p=o.useRef(!1);return b(()=>{p.current=!0}),o.useCallback(function(n,o){if(void 0===o&&(o={}),!p.current)return;if("number"==typeof n)return void r.go(n);let s=(0,i.Gh)(n,JSON.parse(u),l,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,i.HS)([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)},[t,r,u,l,e])}()}const C=o.createContext(null);function _(){return o.useContext(C)}function x(e){let t=o.useContext(d).outlet;return t?o.createElement(C.Provider,{value:e},t):t}function E(){let{matches:e}=o.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=o.useContext(c),{matches:s}=o.useContext(d),{pathname:a}=g(),l=JSON.stringify((0,i.yD)(s,r.v7_relativeSplatPath));return o.useMemo(()=>(0,i.Gh)(e,JSON.parse(l),a,"path"===n),[e,l,a,n])}function P(e,t){return O(e,t)}function O(e,t,n,r){m()||(0,i.Oi)(!1);let{navigator:a}=o.useContext(c),{matches:l}=o.useContext(d),u=l[l.length-1],f=u?u.params:{},h=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let y,v=g();if(t){var b;let e="string"==typeof t?(0,i.Rr)(t):t;"/"===h||(null==(b=e.pathname)?void 0:b.startsWith(h))||(0,i.Oi)(!1),y=e}else y=v;let w=y.pathname||"/",C=w;if("/"!==h){let e=h.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=(0,i.ue)(e,{pathname:C}),x=R(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,i.HS)([h,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:(0,i.HS)([h,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n,r);return t&&x?o.createElement(p.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:i.rc.Pop}},x):x}function T(){let e=W(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:r},n):null,null)}const k=o.createElement(T,null);class A extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(d.Provider,{value:this.props.routeContext},o.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function I(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(a);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(d.Provider,{value:t},r)}function R(e,t,n,r){var s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,u=null==(s=n)?void 0:s.errors;if(null!=u){let e=l.findIndex(e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id]));e>=0||(0,i.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(p=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,l=p>=0?l.slice(0,p+1):[l[0]];break}}}return l.reduceRight((e,r,i)=>{let s,a=!1,d=null,f=null;var h;n&&(s=u&&r.route.id?u[r.route.id]:void 0,d=r.route.errorElement||k,c&&(p<0&&0===i?(Z[h="route-fallback"]||(Z[h]=!0),a=!0,f=null):p===i&&(a=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=s?d:a?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(I,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(A,{location:n.location,revalidation:n.revalidation,component:d,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var M=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(M||{}),D=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(D||{});function L(e){let t=o.useContext(a);return t||(0,i.Oi)(!1),t}function N(e){let t=o.useContext(l);return t||(0,i.Oi)(!1),t}function V(e){let t=function(){let e=o.useContext(d);return e||(0,i.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}function j(){return V(D.UseRouteId)}function F(){return N(D.UseNavigation).navigation}function z(){let e=L(M.UseRevalidator),t=N(D.UseRevalidator);return o.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function B(){let{matches:e,loaderData:t}=N(D.UseMatches);return o.useMemo(()=>e.map(e=>(0,i.ro)(e,t)),[e,t])}function H(){let e=N(D.UseLoaderData),t=V(D.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function U(e){return N(D.UseRouteLoaderData).loaderData[e]}function q(){let e=N(D.UseActionData),t=V(D.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function W(){var e;let t=o.useContext(f),n=N(D.UseRouteError),r=V(D.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}function $(){let e=o.useContext(u);return null==e?void 0:e._data}function Q(){let e=o.useContext(u);return null==e?void 0:e._error}let G=0;function Y(e){let{router:t,basename:n}=L(M.UseBlocker),r=N(D.UseBlocker),[a,l]=o.useState(""),u=o.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:s({},r,{pathname:(0,i.pb)(r.pathname,n)||r.pathname}),nextLocation:s({},o,{pathname:(0,i.pb)(o.pathname,n)||o.pathname}),historyAction:a})},[n,e]);return o.useEffect(()=>{let e=String(++G);return l(e),()=>t.deleteBlocker(e)},[t]),o.useEffect(()=>{""!==a&&t.getBlocker(a,u)},[t,a,u]),a&&r.blockers.has(a)?r.blockers.get(a):i.G3}const Z={};function K(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const X=(r||(r=n.t(o,2))).startTransition;function J(e){let{basename:t,children:n,initialEntries:r,initialIndex:s,future:a}=e,l=o.useRef();null==l.current&&(l.current=(0,i.sC)({initialEntries:r,initialIndex:s,v5Compat:!0}));let u=l.current,[c,p]=o.useState({action:u.action,location:u.location}),{v7_startTransition:d}=a||{},f=o.useCallback(e=>{d&&X?X(()=>p(e)):p(e)},[p,d]);return o.useLayoutEffect(()=>u.listen(f),[u,f]),o.useEffect(()=>K(a),[a]),o.createElement(re,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:a})}function ee(e){let{to:t,replace:n,state:r,relative:s}=e;m()||(0,i.Oi)(!1);let{future:a,static:l}=o.useContext(c),{matches:u}=o.useContext(d),{pathname:p}=g(),f=w(),h=(0,i.Gh)(t,(0,i.yD)(u,a.v7_relativeSplatPath),p,"path"===s),y=JSON.stringify(h);return o.useEffect(()=>f(JSON.parse(y),{replace:n,state:r,relative:s}),[f,y,s,n,r]),null}function te(e){return x(e.context)}function ne(e){(0,i.Oi)(!1)}function re(e){let{basename:t="/",children:n=null,location:r,navigationType:a=i.rc.Pop,navigator:l,static:u=!1,future:d}=e;m()&&(0,i.Oi)(!1);let f=t.replace(/^\/*/,"/"),h=o.useMemo(()=>({basename:f,navigator:l,static:u,future:s({v7_relativeSplatPath:!1},d)}),[f,d,l,u]);"string"==typeof r&&(r=(0,i.Rr)(r));let{pathname:g="/",search:y="",hash:v="",state:b=null,key:w="default"}=r,C=o.useMemo(()=>{let e=(0,i.pb)(g,f);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:w},navigationType:a}},[f,g,y,v,b,w,a]);return null==C?null:o.createElement(c.Provider,{value:h},o.createElement(p.Provider,{children:n,value:C}))}function oe(e){let{children:t,location:n}=e;return P(ce(t),n)}function ie(e){let{children:t,errorElement:n,resolve:r}=e;return o.createElement(le,{resolve:r,errorElement:n},o.createElement(ue,null,t))}var se=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(se||{});const ae=new Promise(()=>{});class le extends o.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,s=se.pending;if(n instanceof Promise)if(this.state.error){s=se.error;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(r=n,s="_error"in r?se.error:"_data"in r?se.success:se.pending):(s=se.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e})));else s=se.success,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(s===se.error&&r._error instanceof i.tH)throw ae;if(s===se.error&&!t)throw r._error;if(s===se.error)return o.createElement(u.Provider,{value:r,children:t});if(s===se.success)return o.createElement(u.Provider,{value:r,children:e});throw r}}function ue(e){let{children:t}=e,n=$(),r="function"==typeof t?t(n):t;return o.createElement(o.Fragment,null,r)}function ce(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,(e,r)=>{if(!o.isValidElement(e))return;let s=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,ce(e.props.children,s));e.type!==ne&&(0,i.Oi)(!1),e.props.index&&e.props.children&&(0,i.Oi)(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ce(e.props.children,s)),n.push(a)}),n}function pe(e){return R(e)}function de(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:o.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function fe(e,t){return(0,i.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,i.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:de,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}},97759(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h,useAsync:()=>f});var r=n(67311),o=n(22155),i=n(65961),s=n(34898),a=n(55106),l=n(7092),u=n(42761),c=n(54818),p=n(92322),d=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function f(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,s=e.loadOptions;e.options;var f=e.isLoading,h=void 0!==f&&f,m=e.onInputChange,g=e.filterOption,y=void 0===g?null:g,v=(0,c.A)(e,d),b=v.inputValue,w=(0,o.useRef)(void 0),C=(0,o.useRef)(!1),_=(0,o.useState)(Array.isArray(n)?n:void 0),x=(0,u.A)(_,2),E=x[0],S=x[1],P=(0,o.useState)(void 0!==b?b:""),O=(0,u.A)(P,2),T=O[0],k=O[1],A=(0,o.useState)(!0===n),I=(0,u.A)(A,2),R=I[0],M=I[1],D=(0,o.useState)(void 0),L=(0,u.A)(D,2),N=L[0],V=L[1],j=(0,o.useState)([]),F=(0,u.A)(j,2),z=F[0],B=F[1],H=(0,o.useState)(!1),U=(0,u.A)(H,2),q=U[0],W=U[1],$=(0,o.useState)({}),Q=(0,u.A)($,2),G=Q[0],Y=Q[1],Z=(0,o.useState)(void 0),K=(0,u.A)(Z,2),X=K[0],J=K[1],ee=(0,o.useState)(void 0),te=(0,u.A)(ee,2),ne=te[0],re=te[1];i!==ne&&(Y({}),re(i)),n!==X&&(S(Array.isArray(n)?n:void 0),J(n)),(0,o.useEffect)(function(){return C.current=!0,function(){C.current=!1}},[]);var oe=(0,o.useCallback)(function(e,t){if(!s)return t();var n=s(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[s]);(0,o.useEffect)(function(){!0===n&&oe(T,function(e){C.current&&(S(e||[]),M(!!w.current))})},[]);var ie=(0,o.useCallback)(function(e,t){var n=(0,p.L)(e,t,m);if(!n)return w.current=void 0,k(""),V(""),B([]),M(!1),void W(!1);if(i&&G[n])k(n),V(n),B(G[n]),M(!1),W(!1);else{var r=w.current={};k(n),M(!0),W(!N),oe(n,function(e){C&&r===w.current&&(w.current=void 0,M(!1),V(n),B(e||[]),W(!1),Y(e?(0,l.A)((0,l.A)({},G),{},(0,a.A)({},n,e)):G))})}},[i,oe,N,G,m]),se=q?[]:T&&N?z:E||[];return(0,l.A)((0,l.A)({},v),{},{options:se,isLoading:R||h,onInputChange:ie,filterOption:y})}n(70316),n(93077);var h=(0,o.forwardRef)(function(e,t){var n=f(e),a=(0,s.u)(n);return o.createElement(i.S,(0,r.A)({ref:t},a))})},65961(e,t,n){"use strict";n.d(t,{S:()=>pe,c:()=>k,d:()=>Z,m:()=>Y});for(var r=n(67311),o=n(7092),i=n(40248),s=n(134),a=n(85416),l=n(99427),u=n(58337),c=n(22155),p=n(92322),d=n(95349),f=n(28975),h=n(54818),m={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},g=function(e){return(0,d.jsx)("span",(0,r.A)({css:m},e))},y={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(c(s,n),".");if("menu"===t&&u){var p=a?" disabled":"",d="".concat(l?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},v=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,u=e.id,p=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,m=l.inputValue,v=l.isMulti,b=l.isOptionDisabled,w=l.isSearchable,C=l.menuIsOpen,_=l.options,x=l.screenReaderStatus,E=l.tabSelectsValue,S=l.isLoading,P=l["aria-label"],O=l["aria-live"],T=(0,c.useMemo)(function(){return(0,o.A)((0,o.A)({},y),f||{})},[f]),k=(0,c.useMemo)(function(){var e,n="";if(t&&T.onChange){var r=t.option,i=t.options,s=t.removedValue,l=t.removedValues,u=t.value,c=s||r||(e=u,Array.isArray(e)?null:e),p=c?h(c):"",d=i||l||void 0,f=d?d.map(h):[],m=(0,o.A)({isDisabled:c&&b(c,a),label:p,labels:f},t);n=T.onChange(m)}return n},[t,T,b,a,h]),A=(0,c.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&T.onFocus){var s={focused:t,label:h(t),isDisabled:b(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:p};e=T.onFocus(s)}return e},[n,r,h,b,T,i,a,p]),I=(0,c.useMemo)(function(){var e="";if(C&&_.length&&!S&&T.onFilter){var t=x({count:i.length});e=T.onFilter({inputValue:m,resultsMessage:t})}return e},[i,m,C,T,_,x,S]),R="initial-input-focus"===(null==t?void 0:t.action),M=(0,c.useMemo)(function(){var e="";if(T.guidance){var t=r?"value":C?"menu":"input";e=T.guidance({"aria-label":P,context:t,isDisabled:n&&b(n,a),isMulti:v,isSearchable:w,tabSelectsValue:E,isInitialFocus:R})}return e},[P,n,r,v,b,w,C,T,a,E,R]),D=(0,d.jsx)(c.Fragment,null,(0,d.jsx)("span",{id:"aria-selection"},k),(0,d.jsx)("span",{id:"aria-focused"},A),(0,d.jsx)("span",{id:"aria-results"},I),(0,d.jsx)("span",{id:"aria-guidance"},M));return(0,d.jsx)(c.Fragment,null,(0,d.jsx)(g,{id:u},R&&D),(0,d.jsx)(g,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&D))},b=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],w=new RegExp("["+b.map(function(e){return e.letters}).join("")+"]","g"),C={},_=0;_<b.length;_++)for(var x=b[_],E=0;E<x.letters.length;E++)C[x.letters[E]]=x.base;var S=function(e){return e.replace(w,function(e){return C[e]})},P=(0,f.A)(S),O=function(e){return e.replace(/^\s+|\s+$/g,"")},T=function(e){return"".concat(e.label," ").concat(e.value)},k=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:T,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,s=r.ignoreAccents,a=r.stringify,l=r.trim,u=r.matchFrom,c=l?O(n):n,p=l?O(a(t)):a(t);return i&&(c=c.toLowerCase(),p=p.toLowerCase()),s&&(c=P(c),p=S(p)),"start"===u?p.substr(0,c.length)===c:p.indexOf(c)>-1}},A=["innerRef"];function I(e){var t=e.innerRef,n=(0,h.A)(e,A),o=(0,p.r)(n,"onExited","in","enter","exit","appear");return(0,d.jsx)("input",(0,r.A)({ref:t},o,{css:(0,d.css)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var R=["boxSizing","height","overflow","paddingRight","position"],M={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function D(e){e.cancelable&&e.preventDefault()}function L(e){e.stopPropagation()}function N(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function V(){return"ontouchstart"in window||navigator.maxTouchPoints}var j=!("undefined"==typeof window||!window.document||!window.document.createElement),F=0,z={capture:!1,passive:!1},B=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},H={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function U(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=(0,c.useRef)(!1),a=(0,c.useRef)(!1),l=(0,c.useRef)(0),u=(0,c.useRef)(null),d=(0,c.useCallback)(function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,f=u.current,h=t>0,m=p-d-c,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&a.current&&(i&&i(e),a.current=!1),h&&t>m?(n&&!s.current&&n(e),f.scrollTop=p,g=!0,s.current=!0):!h&&-t>c&&(o&&!a.current&&o(e),f.scrollTop=0,g=!0,a.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),f=(0,c.useCallback)(function(e){d(e,e.deltaY)},[d]),h=(0,c.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,c.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=(0,c.useCallback)(function(e){if(e){var t=!!p.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}},[m,h,f]),y=(0,c.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))},[m,h,f]);return(0,c.useEffect)(function(){if(t){var e=u.current;return g(e),function(){y(e)}}},[t,g,y]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,c.useRef)({}),i=(0,c.useRef)(null),s=(0,c.useCallback)(function(e){if(j){var t=document.body,n=t&&t.style;if(r&&R.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&F<1){var i=parseInt(o.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+i||0;Object.keys(M).forEach(function(e){var t=M[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&V()&&(t.addEventListener("touchmove",D,z),e&&(e.addEventListener("touchstart",N,z),e.addEventListener("touchmove",L,z))),F+=1}},[r]),a=(0,c.useCallback)(function(e){if(j){var t=document.body,n=t&&t.style;F=Math.max(F-1,0),r&&F<1&&R.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&V()&&(t.removeEventListener("touchmove",D,z),e&&(e.removeEventListener("touchstart",N,z),e.removeEventListener("touchmove",L,z)))}},[r]);return(0,c.useEffect)(function(){if(t){var e=i.current;return s(e),function(){a(e)}}},[t,s,a]),function(e){i.current=e}}({isEnabled:n});return(0,d.jsx)(c.Fragment,null,n&&(0,d.jsx)("div",{onClick:B,css:H}),t(function(e){o(e),i(e)}))}var q={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},W=function(e){var t=e.name,n=e.onFocus;return(0,d.jsx)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:q,value:"",onChange:function(){}})};function $(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Q(){return $(/^Mac/i)}var G={clearIndicator:p.a,container:p.b,control:p.d,dropdownIndicator:p.e,group:p.g,groupHeading:p.f,indicatorsContainer:p.i,indicatorSeparator:p.h,input:p.j,loadingIndicator:p.l,loadingMessage:p.k,menu:p.m,menuList:p.n,menuPortal:p.o,multiValue:p.p,multiValueLabel:p.q,multiValueRemove:p.t,noOptionsMessage:p.u,option:p.v,placeholder:p.w,singleValue:p.x,valueContainer:p.y};function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.A)({},e);return Object.keys(t).forEach(function(r){var o=r;e[o]?n[o]=function(n,r){return t[o](e[o](n,r),r)}:n[o]=t[o]}),n}var Z={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},K={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,p.z)(),captureMenuScroll:!(0,p.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:k(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,p.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function X(e,t,n,r){return{type:"option",data:t,isDisabled:se(e,t,n),isSelected:ae(e,t,n),label:oe(e,t),value:ie(e,t),index:r}}function J(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return X(e,n,t,r)}).filter(function(t){return ne(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=X(e,n,t,r);return ne(e,i)?i:void 0}).filter(p.K)}function ee(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,u.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function te(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,u.A)(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function ne(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!ue(e)||!i)&&le(e,{label:s,value:a,data:o},r)}var re=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},oe=function(e,t){return e.getOptionLabel(t)},ie=function(e,t){return e.getOptionValue(t)};function se(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ae(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ie(e,t);return n.some(function(t){return ie(e,t)===r})}function le(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ue=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ce=1,pe=function(e){(0,a.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,i.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var c=r.getOptionValue(e);r.setValue((0,p.B)(s.filter(function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,p.C)(e),{action:"select-option",option:e,name:i});o?r.setValue((0,p.B)([].concat((0,u.A)(s),[e])),"select-option",e):r.setValue((0,p.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),s=(0,p.D)(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,p.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=(0,p.D)(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return re(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return te(J(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return oe(r.props,e)},r.getOptionValue=function(e){return ie(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=G[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,p.F)(r.props)},r.buildCategorizedOptions=function(){return J(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ee(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,o.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,p.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return ue(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!h||d&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++ce),r.state.selectValue=(0,p.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),l=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=a[l],r.state.focusedOptionId=re(s,a[l])}return r}return(0,s.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,p.I)(this.menuListRef,this.focusedOptionRef),(Q()||$(/^iPhone/i)||$(/^iPad/i)||Q()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,p.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Z):(0,o.A)((0,o.A)({},Z),this.props.theme):Z}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return se(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ae(this.props,e,t)}},{key:"filterOption",value:function(e,t){return le(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,s=e.inputValue,a=e.tabIndex,l=e.form,u=e.menuIsOpen,d=e.required,f=this.getComponents().Input,h=this.state,m=h.inputIsHidden,g=h.ariaSelection,y=this.commonProps,v=i||this.getElementId("input"),b=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(f,(0,r.A)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:s},b)):c.createElement(I,(0,r.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:p.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,u=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,m=p.inputValue,g=p.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,w=y.isFocused;if(!this.hasValue()||!d)return m?null:c.createElement(l,(0,r.A)({},u,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map(function(t,a){var l=t===b,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,(0,r.A)({},u,{components:{Container:o,Label:i,Remove:s},isFocused:l,isDisabled:f,key:p,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var C=v[0];return c.createElement(a,(0,r.A)({},u,{data:C,isDisabled:f}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,s=this.state.isFocused;return e&&i?c.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return c.createElement(n,(0,r.A)({},o,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,s=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,d=t.Option,f=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,C=m.maxMenuHeight,_=m.menuIsOpen,x=m.menuPlacement,E=m.menuPosition,S=m.menuPortalTarget,P=m.menuShouldBlockScroll,O=m.menuShouldScrollIntoView,T=m.noOptionsMessage,k=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!_)return null;var I,R=function(t,n){var o=t.type,i=t.data,s=t.isDisabled,a=t.isSelected,l=t.label,u=t.value,p=h===i,m=s?void 0:function(){return e.onOptionHover(i)},g=s?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return c.createElement(d,(0,r.A)({},f,{innerProps:v,data:i,isDisabled:s,isSelected:a,key:y,label:l,type:o,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,s=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),u="".concat(l,"-heading");return c.createElement(n,(0,r.A)({},f,{key:l,data:i,options:s,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return R(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return R(t,"".concat(t.index))});else if(v){var M=b({inputValue:y});if(null===M)return null;I=c.createElement(l,f,M)}else{var D=T({inputValue:y});if(null===D)return null;I=c.createElement(u,f,D)}var L={minMenuHeight:w,maxMenuHeight:C,menuPlacement:x,menuPosition:E,menuShouldScrollIntoView:O},N=c.createElement(p.M,(0,r.A)({},f,L),function(t){var n=t.ref,o=t.placerProps,a=o.placement,l=o.maxHeight;return c.createElement(i,(0,r.A)({},f,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:a}),c.createElement(U,{captureEnabled:g,onTopArrive:k,onBottomArrive:A,lockEnabled:P},function(t){return c.createElement(s,(0,r.A)({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:h}),I)}))});return S||"fixed"===E?c.createElement(a,(0,r.A)({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:x,menuPosition:E}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,s=t.required,a=this.state.selectValue;if(s&&!this.hasValue()&&!r)return c.createElement(W,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=a.map(function(t){return e.getOptionValue(t)}).join(n);return c.createElement("input",{name:i,type:"hidden",value:l})}var u=a.length>0?a.map(function(t,n){return c.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):c.createElement("input",{name:i,type:"hidden",value:""});return c.createElement("div",null,u)}var p=a[0]?this.getOptionValue(a[0]):"";return c.createElement("input",{name:i,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,s=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return c.createElement(v,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:s,selectValue:a,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,s=this.props,a=s.className,l=s.id,u=s.isDisabled,p=s.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return c.createElement(o,(0,r.A)({},f,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),c.createElement(t,(0,r.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:p}),c.createElement(i,(0,r.A)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,(0,r.A)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,s=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,u=t.instancePrefix,c=e.options,d=e.value,f=e.menuIsOpen,h=e.inputValue,m=e.isMulti,g=(0,p.H)(d),y={};if(n&&(d!==n.value||c!==n.options||f!==n.menuIsOpen||h!==n.inputValue)){var v=f?function(e,t){return ee(J(e,t))}(e,g):[],b=f?te(J(e,g),"".concat(u,"-option")):[],w=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,C=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);y={selectValue:g,focusedOption:C,focusedOptionId:re(b,C),focusableOptionsWithIds:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var _=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=s,E=a&&l;return a&&!E&&(x={value:(0,p.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},E=!l),"initial-input-focus"===(null==s?void 0:s.action)&&(x=null),(0,o.A)((0,o.A)((0,o.A)({},y),_),{},{prevProps:e,ariaSelection:x,prevWasFocused:E})}}]),n}(c.Component);pe.defaultProps=K},92322(e,t,n){"use strict";n.d(t,{A:()=>k,B:()=>V,C:()=>N,D:()=>L,E:()=>v,F:()=>Ae,G:()=>x,H:()=>b,I:()=>O,J:()=>g,K:()=>D,L:()=>_,M:()=>W,a:()=>le,b:()=>K,c:()=>ke,d:()=>fe,e:()=>ae,f:()=>ge,g:()=>me,h:()=>ue,i:()=>J,j:()=>ve,k:()=>Y,l:()=>pe,m:()=>U,n:()=>$,o:()=>Z,p:()=>_e,q:()=>xe,r:()=>j,s:()=>M,t:()=>Ee,u:()=>G,v:()=>Pe,w:()=>Oe,x:()=>Te,y:()=>X,z:()=>T});var r=n(7092),o=n(67311),i=n(95349),s=n(42761),a=n(54818),l=n(35681),u=n(43519),c=n(55106),p=n(22155),d=n(70316),f=n(97767),h=n(93077),m=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],g=function(){};function y(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function v(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(y(e,s)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var b=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},w=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,a.A)(e,m);return(0,r.A)({},t)},C=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function _(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function x(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function E(e){return x(e)?window.pageYOffset:e.scrollTop}function S(e,t){x(e)?window.scrollTo(0,t):e.scrollTop=t}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g,o=E(e),i=t-o,s=0;!function t(){var a,l=i*((a=(a=s+=10)/n-1)*a*a+1)+o;S(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function O(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?S(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&S(e,Math.max(t.offsetTop-o,0))}function T(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function k(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var A=!1,I={get passive(){return A=!0}},R="undefined"!=typeof window?window:{};R.addEventListener&&R.removeEventListener&&(R.addEventListener("p",g,I),R.removeEventListener("p",g,!1));var M=A;function D(e){return null!=e}function L(e,t,n){return e?t:n}function N(e){return e}function V(e){return e}var j=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=(0,s.A)(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=(0,s.A)(t,2),r=n[0],o=n[1];return e[r]=o,e},{})},F=["children","innerProps"],z=["children","innerProps"];var B,H=function(e){return"auto"===e?"bottom":e},U=function(e,t){var n,o=e.placement,i=e.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return(0,r.A)((n={label:"menu"},(0,c.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,c.A)(n,"position","absolute"),(0,c.A)(n,"width","100%"),(0,c.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},q=(0,p.createContext)(null),W=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,c=((0,p.useContext)(q)||{}).setPortalPlacement,d=(0,p.useRef)(null),f=(0,p.useState)(o),m=(0,s.A)(f,2),g=m[0],y=m[1],v=(0,p.useState)(null),b=(0,s.A)(v,2),w=b[0],C=b[1],_=u.spacing.controlHeight;return(0,h.A)(function(){var e=d.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,p=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,g=n.offsetParent.getBoundingClientRect().top,y=s||x(c=l)?window.innerHeight:c.clientHeight,v=E(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),C=g-w,_=y-m,O=C+v,T=p-v-m,k=f-y+v+b,A=v+m-w,I=160;switch(o){case"auto":case"bottom":if(_>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!s)return i&&P(l,k,I),{placement:"bottom",maxHeight:t};if(!s&&T>=r||s&&_>=r)return i&&P(l,k,I),{placement:"bottom",maxHeight:s?_-b:T-b};if("auto"===o||s){var R=t,M=s?C:O;return M>=r&&(R=Math.min(M-b-a,t)),{placement:"top",maxHeight:R}}if("bottom"===o)return i&&S(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(C>=h)return{placement:"top",maxHeight:t};if(O>=h&&!s)return i&&P(l,A,I),{placement:"top",maxHeight:t};if(!s&&O>=r||s&&C>=r){var D=t;return(!s&&O>=r||s&&C>=r)&&(D=s?C-w:O-w),i&&P(l,A,I),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:_});y(r.maxHeight),C(r.placement),null==c||c(r.placement)}},[o,i,a,l,n,c,_]),t({ref:d,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:w||H(i),maxHeight:g})})},$=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},Q=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},G=Q,Y=Q,Z=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},K=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},X=function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,s=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:o&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},J=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ee=["size"],te=["innerProps","isRtl","size"],ne={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},re=function(e){var t=e.size,n=(0,a.A)(e,ee);return(0,i.jsx)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ne},n))},oe=function(e){return(0,i.jsx)(re,(0,o.A)({size:20},e),(0,i.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ie=function(e){return(0,i.jsx)(re,(0,o.A)({size:20},e),(0,i.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,s=o.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?s.neutral60:s.neutral20,padding:2*i,":hover":{color:n?s.neutral80:s.neutral40}})},ae=se,le=se,ue=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,s=o.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?s.neutral10:s.neutral20,marginBottom:2*i,marginTop:2*i})},ce=(0,i.keyframes)(B||(B=(0,u.A)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),pe=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,s=i.colors,a=i.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?s.neutral60:s.neutral20,padding:2*a})},de=function(e){var t=e.delay,n=e.offset;return(0,i.jsx)("span",{css:(0,i.css)({animation:"".concat(ce," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fe=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?s.neutral5:s.neutral0,borderColor:n?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},he=["data"],me=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},ge=function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},ye=["innerRef","isDisabled","isHidden","inputClassName"],ve=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,s=i.spacing,a=i.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},we),t?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},be={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},we={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},be)},Ce=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},be)},_e=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,s=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},xe=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,s=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:s||void 0===s?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ee=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,s=n.colors,a=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},Se=function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",n,t)},Pe=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,s=e.theme,a=s.spacing,l=s.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},Oe=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Te=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,s=o.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},ke={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.jsx)(oe,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,s=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return(0,i.jsx)("div",(0,o.A)({ref:s},C(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.jsx)(ie,null))},DownChevron:ie,CrossIcon:oe,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,s=e.getClassNames,a=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,p=e.theme,d=e.selectProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"group",{group:!0}),u),(0,i.jsx)(a,(0,o.A)({},l,{selectProps:d,theme:p,getStyles:r,getClassNames:s,cx:n}),c),(0,i.jsx)("div",null,t))},GroupHeading:function(e){var t=w(e);t.data;var n=(0,a.A)(t,he);return(0,i.jsx)("div",(0,o.A)({},C(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.jsx)("span",(0,o.A)({},t,C(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=w(e),s=r.innerRef,l=r.isDisabled,u=r.isHidden,c=r.inputClassName,p=(0,a.A)(r,ye);return(0,i.jsx)("div",(0,o.A)({},C(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.jsx)("input",(0,o.A)({className:t({input:!0},c),ref:s,style:Ce(u),disabled:l},p)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,s=e.size,l=void 0===s?4:s,u=(0,a.A)(e,te);return(0,i.jsx)("div",(0,o.A)({},C((0,r.A)((0,r.A)({},u),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.jsx)(de,{delay:0,offset:n}),(0,i.jsx)(de,{delay:160,offset:!0}),(0,i.jsx)(de,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,s=e.isMulti;return(0,i.jsx)("div",(0,o.A)({},C(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,a=e.controlElement,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,m=(0,p.useRef)(null),g=(0,p.useRef)(null),y=(0,p.useState)(H(u)),v=(0,s.A)(y,2),b=v[0],w=v[1],_=(0,p.useMemo)(function(){return{setPortalPlacement:w}},[]),x=(0,p.useState)(null),E=(0,s.A)(x,2),S=E[0],P=E[1],O=(0,p.useCallback)(function(){if(a){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),t="fixed"===c?0:window.pageYOffset,n=e[b]+t;n===(null==S?void 0:S.offset)&&e.left===(null==S?void 0:S.rect.left)&&e.width===(null==S?void 0:S.rect.width)||P({offset:n,rect:e})}},[a,c,b,null==S?void 0:S.offset,null==S?void 0:S.rect.left,null==S?void 0:S.rect.width]);(0,h.A)(function(){O()},[O]);var T=(0,p.useCallback)(function(){"function"==typeof g.current&&(g.current(),g.current=null),a&&m.current&&(g.current=(0,f.ll)(a,m.current,O,{elementResize:"ResizeObserver"in window}))},[a,O]);(0,h.A)(function(){T()},[T]);var k=(0,p.useCallback)(function(e){m.current=e,T()},[T]);if(!t&&"fixed"!==c||!S)return null;var A=(0,i.jsx)("div",(0,o.A)({ref:k},C((0,r.A)((0,r.A)({},e),{},{offset:S.offset,position:c,rect:S.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,i.jsx)(q.Provider,{value:_},t?(0,d.createPortal)(A,t):A)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,s=e.innerProps,l=(0,a.A)(e,z);return(0,i.jsx)("div",(0,o.A)({},C((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,s=e.innerProps,l=(0,a.A)(e,F);return(0,i.jsx)("div",(0,o.A)({},C((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,s=e.innerProps,a=e.isDisabled,l=e.removeProps,u=e.selectProps,c=n.Container,p=n.Label,d=n.Remove;return(0,i.jsx)(c,{data:o,innerProps:(0,r.A)((0,r.A)({},C(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),s),selectProps:u},(0,i.jsx)(p,{data:o,innerProps:(0,r.A)({},C(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,i.jsx)(d,{data:o,innerProps:(0,r.A)((0,r.A)({},C(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:u}))},MultiValueContainer:Se,MultiValueLabel:Se,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,o.A)({role:"button"},n),t||(0,i.jsx)(oe,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,s=e.isSelected,a=e.innerRef,l=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":s}),{ref:a,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,s=e.isRtl;return(0,i.jsx)("div",(0,o.A)({},C(e,"container",{"--is-disabled":r,"--is-rtl":s}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.jsx)("div",(0,o.A)({},C(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,s=e.hasValue;return(0,i.jsx)("div",(0,o.A)({},C(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),n),t)}},Ae=function(e){return(0,r.A)((0,r.A)({},ke),e.components)}},96107(e,t,n){"use strict";n.r(t),n.d(t,{NonceProvider:()=>p,components:()=>u.c,createFilter:()=>s.c,default:()=>c,defaultTheme:()=>s.d,mergeStyles:()=>s.m,useStateManager:()=>r.u});var r=n(34898),o=n(67311),i=n(22155),s=n(65961),a=n(95803),l=n(41487),u=n(92322),c=(n(70316),n(93077),(0,i.forwardRef)(function(e,t){var n=(0,r.u)(e);return i.createElement(s.S,(0,o.A)({ref:t},n))})),p=function(e){var t=e.nonce,n=e.children,r=e.cacheKey,o=(0,i.useMemo)(function(){return(0,l.default)({key:r,nonce:t})},[r,t]);return i.createElement(a.C,{value:o},n)}},34898(e,t,n){"use strict";n.d(t,{u:()=>l});var r=n(7092),o=n(42761),i=n(54818),s=n(22155),a=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,u=void 0!==l&&l,c=e.defaultValue,p=void 0===c?null:c,d=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,i.A)(e,a),w=(0,s.useState)(void 0!==d?d:n),C=(0,o.A)(w,2),_=C[0],x=C[1],E=(0,s.useState)(void 0!==f?f:u),S=(0,o.A)(E,2),P=S[0],O=S[1],T=(0,s.useState)(void 0!==v?v:p),k=(0,o.A)(T,2),A=k[0],I=k[1],R=(0,s.useCallback)(function(e,t){"function"==typeof h&&h(e,t),I(e)},[h]),M=(0,s.useCallback)(function(e,t){var n;"function"==typeof m&&(n=m(e,t)),x(void 0!==n?n:e)},[m]),D=(0,s.useCallback)(function(){"function"==typeof y&&y(),O(!0)},[y]),L=(0,s.useCallback)(function(){"function"==typeof g&&g(),O(!1)},[g]),N=void 0!==d?d:_,V=void 0!==f?f:P,j=void 0!==v?v:A;return(0,r.A)((0,r.A)({},b),{},{inputValue:N,menuIsOpen:V,onChange:R,onInputChange:M,onMenuClose:L,onMenuOpen:D,value:j})}},82134(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var r=s(n(22155)),o=s(n(30395)),i=n(9808);function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function m(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}var b=function(e){function t(){return d(this,t),m(this,g(t).apply(this,arguments))}return y(t,e),h(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},i={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.default.cloneElement(this.props.prevArrow,c({},n,{},i)):r.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}]),t}(r.default.PureComponent);t.PrevArrow=b;var w=function(e){function t(){return d(this,t),m(this,g(t).apply(this,arguments))}return y(t,e),h(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,i.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.default.cloneElement(this.props.nextArrow,c({},n,{},s)):r.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")}}]),t}(r.default.PureComponent);t.NextArrow=w},31528(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(22155))&&r.__esModule?r:{default:r},i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=i},73728(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var r=i(n(22155)),o=i(n(30395));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,c(t).apply(this,arguments))}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,i=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){var e,t=this,n=(e={slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,i=this.props,s={onMouseEnter:i.onMouseEnter,onMouseOver:i.onMouseOver,onMouseLeave:i.onMouseLeave},u=Array.apply(null,Array(n+1).join("0").split("")).map(function(e,n){var i=n*t.props.slidesToScroll,s=n*t.props.slidesToScroll+(t.props.slidesToScroll-1),a=(0,o.default)({"slick-active":t.props.currentSlide>=i&&t.props.currentSlide<=s}),l={message:"dots",index:n,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide},u=t.clickHandler.bind(t,l);return r.default.createElement("li",{key:n,className:a},r.default.cloneElement(t.props.customPaging(n),{onClick:u}))});return r.default.cloneElement(this.props.appendDots(u),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:this.props.dotsClass},s))}}],i&&u(n.prototype,i),t}(r.default.PureComponent);t.Dots=d},64190(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(80001))&&r.__esModule?r:{default:r}).default;t.default=o},44974(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0}},18514(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=f(n(22155)),o=f(n(70316)),i=f(n(44974)),s=f(n(63850)),a=f(n(30395)),l=n(9808),u=n(62545),c=n(73728),p=n(82134),d=f(n(87922));function f(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?b(e):t}(this,v(t).call(this,e)),C(b(n),"listRefHandler",function(e){return n.list=e}),C(b(n),"trackRefHandler",function(e){return n.track=e}),C(b(n),"adaptHeight",function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=(0,l.getHeight)(e)+"px"}}),C(b(n),"UNSAFE_componentWillMount",function(){if(n.ssrInit(),n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=(0,l.getOnDemandLazySlides)(y({},n.props,{},n.state));e.length>0&&(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e))}}),C(b(n),"componentDidMount",function(){var e=y({listRef:n.list,trackRef:n.track},n.props);n.updateState(e,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("update")}),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new d.default(function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout(function(){return n.onWindowResized()},n.props.speed))):n.onWindowResized()}),n.ro.observe(n.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)}),C(b(n),"componentWillUnmount",function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach(function(e){return clearTimeout(e)}),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()}),C(b(n),"UNSAFE_componentWillReceiveProps",function(e){for(var t=y({listRef:n.list,trackRef:n.track},e,{},n.state),o=!1,i=0,s=Object.keys(n.props);i<s.length;i++){var a=s[i];if(!e.hasOwnProperty(a)){o=!0;break}if("object"!==m(e[a])&&"function"!=typeof e[a]&&e[a]!==n.props[a]){o=!0;break}}n.updateState(t,o,function(){n.state.currentSlide>=r.default.Children.count(e.children)&&n.changeSlide({message:"index",index:r.default.Children.count(e.children)-e.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay?n.autoPlay("update"):n.pause("paused")})}),C(b(n),"componentDidUpdate",function(){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var e=(0,l.getOnDemandLazySlides)(y({},n.props,{},n.state));e.length>0&&(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e))}n.adaptHeight()}),C(b(n),"onWindowResized",function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=(0,s.default)(function(){return n.resizeWindow(e)},50),n.debouncedResize()}),C(b(n),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(o.default.findDOMNode(n.track)){var t=y({listRef:n.list,trackRef:n.track},n.props,{},n.state);n.updateState(t,e,function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")}),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}}),C(b(n),"updateState",function(e,t,o){var i=(0,l.initializedState)(e);e=y({},e,{},i,{slideIndex:i.currentSlide}),e=y({},e,{left:(0,l.getTrackLeft)(e)});var s=(0,l.getTrackCSS)(e);(t||r.default.Children.count(n.props.children)!==r.default.Children.count(e.children))&&(i.trackStyle=s),n.setState(i,o)}),C(b(n),"ssrInit",function(){if(n.props.variableWidth){var e=0,t=0,o=[],i=(0,l.getPreClones)(y({},n.props,{},n.state,{slideCount:n.props.children.length})),s=(0,l.getPostClones)(y({},n.props,{},n.state,{slideCount:n.props.children.length}));n.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var a=0;a<i;a++)t+=o[o.length-1-a],e+=o[o.length-1-a];for(var u=0;u<s;u++)e+=o[u];for(var c=0;c<n.state.currentSlide;c++)t+=o[c];var p={width:e+"px",left:-t+"px"};if(n.props.centerMode){var d="".concat(o[n.state.currentSlide],"px");p.left="calc(".concat(p.left," + (100% - ").concat(d,") / 2 ) ")}n.setState({trackStyle:p})}else{var f=r.default.Children.count(n.props.children),h=y({},n.props,{},n.state,{slideCount:f}),m=(0,l.getPreClones)(h)+(0,l.getPostClones)(h)+f,g=100/n.props.slidesToShow*m,v=100/m,b=-v*((0,l.getPreClones)(h)+n.state.currentSlide)*g/100;n.props.centerMode&&(b+=(100-v*g/100)/2);var w={width:g+"%",left:b+"%"};n.setState({slideWidth:v+"%",trackStyle:w})}}),C(b(n),"checkImagesLoad",function(){var e=n.list.querySelectorAll(".slick-slide img"),t=e.length,r=0;Array.prototype.forEach.call(e,function(e){var o=function(){return++r&&r>=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(){i(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),C(b(n),"progressiveLazyLoad",function(){for(var e=[],t=y({},n.props,{},n.state),r=n.state.currentSlide;r<n.state.slideCount+(0,l.getPostClones)(t);r++)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=n.state.currentSlide-1;o>=-(0,l.getPreClones)(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)}),C(b(n),"slideHandler",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,i=r.beforeChange,s=r.onLazyLoad,a=r.speed,u=r.afterChange,c=n.state.currentSlide,p=(0,l.slideHandler)(y({index:e},n.props,{},n.state,{trackRef:n.track,useCSS:n.props.useCSS&&!t})),d=p.state,f=p.nextState;if(d){i&&i(c,d.currentSlide);var h=d.lazyLoadedList.filter(function(e){return n.state.lazyLoadedList.indexOf(e)<0});s&&h.length>0&&s(h),n.setState(d,function(){o&&o.innerSlider.slideHandler(e),f&&(n.animationEndCallback=setTimeout(function(){var e=f.animating,t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(f,["animating"]);n.setState(t,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:e})},10)),u&&u(d.currentSlide),delete n.animationEndCallback})},a))})}}),C(b(n),"changeSlide",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=y({},n.props,{},n.state),o=(0,l.changeSlide)(r,e);(0===o||o)&&(!0===t?n.slideHandler(o,t):n.slideHandler(o))}),C(b(n),"clickHandler",function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0}),C(b(n),"keyHandler",function(e){var t=(0,l.keyHandler)(e,n.props.accessibility,n.props.rtl);""!==t&&n.changeSlide({message:t})}),C(b(n),"selectHandler",function(e){n.changeSlide(e)}),C(b(n),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),C(b(n),"enableBodyScroll",function(){window.ontouchmove=null}),C(b(n),"swipeStart",function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=(0,l.swipeStart)(e,n.props.swipe,n.props.draggable);""!==t&&n.setState(t)}),C(b(n),"swipeMove",function(e){var t=(0,l.swipeMove)(e,y({},n.props,{},n.state,{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))}),C(b(n),"swipeEnd",function(e){var t=(0,l.swipeEnd)(e,y({},n.props,{},n.state,{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}}),C(b(n),"slickPrev",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"previous"})},0))}),C(b(n),"slickNext",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"next"})},0))}),C(b(n),"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)},0))}),C(b(n),"play",function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!(0,l.canGoNext)(y({},n.props,{},n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)}),C(b(n),"autoPlay",function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})}),C(b(n),"pause",function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})}),C(b(n),"onDotsOver",function(){return n.props.autoplay&&n.pause("hovered")}),C(b(n),"onDotsLeave",function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")}),C(b(n),"onTrackOver",function(){return n.props.autoplay&&n.pause("hovered")}),C(b(n),"onTrackLeave",function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")}),C(b(n),"onSlideFocus",function(){return n.props.autoplay&&n.pause("focused")}),C(b(n),"onSlideBlur",function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")}),C(b(n),"render",function(){var e,t,o,i=(0,a.default)("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),s=y({},n.props,{},n.state),d=(0,l.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]),f=n.props.pauseOnHover;if(d=y({},d,{onMouseEnter:f?n.onTrackOver:null,onMouseLeave:f?n.onTrackLeave:null,onMouseOver:f?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var m=(0,l.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),g=n.props.pauseOnDotsHover;m=y({},m,{clickHandler:n.changeSlide,onMouseEnter:g?n.onDotsLeave:null,onMouseOver:g?n.onDotsOver:null,onMouseLeave:g?n.onDotsLeave:null}),e=r.default.createElement(c.Dots,m)}var v=(0,l.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);v.clickHandler=n.changeSlide,n.props.arrows&&(t=r.default.createElement(p.PrevArrow,v),o=r.default.createElement(p.NextArrow,v));var b=null;n.props.vertical&&(b={height:n.state.listHeight});var w=null;!1===n.props.vertical?!0===n.props.centerMode&&(w={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(w={padding:n.props.centerPadding+" 0px"});var C=y({},b,{},w),_=n.props.touchMove,x={className:"slick-list",style:C,onClick:n.clickHandler,onMouseDown:_?n.swipeStart:null,onMouseMove:n.state.dragging&&_?n.swipeMove:null,onMouseUp:_?n.swipeEnd:null,onMouseLeave:n.state.dragging&&_?n.swipeEnd:null,onTouchStart:_?n.swipeStart:null,onTouchMove:n.state.dragging&&_?n.swipeMove:null,onTouchEnd:_?n.swipeEnd:null,onTouchCancel:n.state.dragging&&_?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},E={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(x={className:"slick-list"},E={className:i}),r.default.createElement("div",E,n.props.unslick?"":t,r.default.createElement("div",h({ref:n.listRefHandler},x),r.default.createElement(u.Track,h({ref:n.trackRefHandler},d),n.props.children)),n.props.unslick?"":o,n.props.unslick?"":e)}),n.list=null,n.track=null,n.state=y({},i.default,{currentSlide:n.props.initialSlide,slideCount:r.default.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,e),t}(r.default.Component);t.InnerSlider=_},80001(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(22155)),o=n(18514),i=l(n(51148)),s=l(n(31528)),a=n(9808);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,a.canUseDOM)()&&n(78708),b=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?m(e):t}(this,h(t).call(this,e)),y(m(n),"innerSliderRefHandler",function(e){return n.innerSlider=e}),y(m(n),"slickPrev",function(){return n.innerSlider.slickPrev()}),y(m(n),"slickNext",function(){return n.innerSlider.slickNext()}),y(m(n),"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)}),y(m(n),"slickPause",function(){return n.innerSlider.pause("paused")}),y(m(n),"slickPlay",function(){return n.innerSlider.autoPlay("play")}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(l=[{key:"media",value:function(e,t){v.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"UNSAFE_componentWillMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,a.canUseDOM)()&&e.media(o,function(){e.setState({breakpoint:n})})});var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){v.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":d({},s.default,{},this.props,{},t[0].settings):d({},s.default,{},this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=r.default.Children.toArray(this.props.children);i=i.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],l=null,u=0;u<i.length;u+=e.rows*e.slidesPerRow){for(var p=[],f=u;f<u+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var h=[],m=f;m<f+e.slidesPerRow&&(e.variableWidth&&i[m].props.style&&(l=i[m].props.style.width),!(m>=i.length));m+=1)h.push(r.default.cloneElement(i[m],{key:100*u+10*f+m,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(r.default.createElement("div",{key:10*u+f},h))}e.variableWidth?a.push(r.default.createElement("div",{key:u,style:{width:l}},p)):a.push(r.default.createElement("div",{key:u},p))}if("unslick"===e){var g="regular slider "+(this.props.className||"");return r.default.createElement("div",{className:g},i)}return a.length<=e.slidesToShow&&(e.unslick=!0),r.default.createElement(o.InnerSlider,c({style:this.props.style,ref:this.innerSliderRefHandler},e),a)}}])&&f(n.prototype,l),t}(r.default.Component);t.default=b},62545(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var r=s(n(22155)),o=s(n(30395)),i=n(9808);function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===e.currentSlide}},g=function(e,t){return e.key||t},y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,c(t).apply(this,arguments))}var n,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(s=[{key:"render",value:function(){var e=function(e){var t,n=[],s=[],a=[],l=r.default.Children.count(e.children),u=(0,i.lazyStartIndex)(e),c=(0,i.lazyEndIndex)(e);return r.default.Children.forEach(e.children,function(p,d){var h,y={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};h=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?p:r.default.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t}(f({},e,{index:d})),b=h.props.className||"",w=m(f({},e,{index:d}));if(n.push(r.default.cloneElement(h,{key:"original"+g(h,d),"data-index":d,className:(0,o.default)(w,b),tabIndex:"-1","aria-hidden":!w["slick-active"],style:f({outline:"none"},h.props.style||{},{},v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(y)}})),e.infinite&&!1===e.fade){var C=l-d;C<=(0,i.getPreClones)(e)&&l!==e.slidesToShow&&((t=-C)>=u&&(h=p),w=m(f({},e,{index:t})),s.push(r.default.cloneElement(h,{key:"precloned"+g(h,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(w,b),"aria-hidden":!w["slick-active"],style:f({},h.props.style||{},{},v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(y)}}))),l!==e.slidesToShow&&((t=l+d)<c&&(h=p),w=m(f({},e,{index:t})),a.push(r.default.cloneElement(h,{key:"postcloned"+g(h,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(w,b),"aria-hidden":!w["slick-active"],style:f({},h.props.style||{},{},v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(y)}})))}}),e.rtl?s.concat(n,a).reverse():s.concat(n,a)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.default.createElement("div",l({className:"slick-track",style:this.props.trackStyle},n),e)}}])&&u(n.prototype,s),t}(r.default.PureComponent);t.Track=y},9808(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0;var r=i(n(22155)),o=i(n(70316));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){for(var t=[],n=c(e),r=p(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t};t.getOnDemandLazySlides=u,t.getRequiredLazySlides=function(e){for(var t=[],n=c(e),r=p(e),o=n;o<r;o++)t.push(o);return t};var c=function(e){return e.currentSlide-d(e)};t.lazyStartIndex=c;var p=function(e){return e.currentSlide+f(e)};t.lazyEndIndex=p;var d=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=d;var f=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=f;var h=function(e){return e&&e.offsetWidth||0};t.getWidth=h;var m=function(e){return e&&e.offsetHeight||0};t.getHeight=m;var g=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"};t.getSwipeDirection=g;var y=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=y,t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t,n=r.default.Children.count(e.children),i=Math.ceil(h(o.default.findDOMNode(e.listRef))),s=Math.ceil(h(o.default.findDOMNode(e.trackRef)));if(e.vertical)t=i;else{var a=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(a*=i/100),t=Math.ceil((i-a)/e.slidesToShow)}var l=o.default.findDOMNode(e.listRef)&&m(o.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),c=l*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var d=e.lazyLoadedList||[],f=u({currentSlide:p,lazyLoadedList:d});d.concat(f);var g={slideCount:n,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:p,slideHeight:l,listHeight:c,lazyLoadedList:d};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,s=e.slideCount,l=e.lazyLoadedList,c=e.lazyLoad,p=e.currentSlide,d=e.centerMode,f=e.slidesToScroll,h=e.slidesToShow,m=e.useCSS;if(t&&n)return{};var g,v,b,w=i,C={},S={};if(r){if(!o&&(i<0||i>=s))return{};i<0?w=i+s:i>=s&&(w=i-s),c&&l.indexOf(w)<0&&l.push(w),C={animating:!0,currentSlide:w,lazyLoadedList:l},S={animating:!1}}else g=w,w<0?(g=w+s,o?s%f!==0&&(g=s-s%f):g=0):!y(e)&&w>p?w=g=p:d&&w>=s?(w=o?s:s-1,g=o?0:s-1):w>=s&&(g=w-s,o?s%f!==0&&(g=0):g=s-h),v=E(a({},e,{slideIndex:w})),b=E(a({},e,{slideIndex:g})),o||(v===b&&(w=g),v=b),c&&l.concat(u(a({},e,{currentSlide:w}))),m?(C={animating:!0,currentSlide:g,trackStyle:x(a({},e,{left:v})),lazyLoadedList:l},S={animating:!1,currentSlide:g,trackStyle:_(a({},e,{left:b})),swipeLeft:null}):C={currentSlide:g,trackStyle:_(a({},e,{left:b})),lazyLoadedList:l};return{state:C,nextState:S}},t.changeSlide=function(e,t){var n,r,o,i,s=e.slidesToScroll,l=e.slidesToShow,u=e.slideCount,c=e.currentSlide,p=e.lazyLoad,d=e.infinite;if(n=u%s!==0?0:(u-c)%s,"previous"===t.message)i=c-(o=0===n?s:l-n),p&&!d&&(i=-1===(r=c-o)?u-1:r);else if("next"===t.message)i=c+(o=0===n?s:n),p&&!d&&(i=(c+s)%u+n);else if("dots"===t.message){if((i=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((i=t.index)===t.currentSlide)return null;if(d){var f=T(a({},e,{targetSlide:i}));i>t.currentSlide&&"left"===f?i-=u:i<t.currentSlide&&"right"===f&&(i+=u)}}else if("index"===t.message&&(i=Number(t.index))===t.currentSlide)return null;return i},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,u=t.currentSlide,c=t.edgeFriction,p=t.edgeDragged,d=t.onEdge,f=t.swiped,h=t.swiping,m=t.slideCount,v=t.slidesToScroll,b=t.infinite,w=t.touchObject,C=t.swipeEvent,x=t.listHeight,S=t.listWidth;if(!n){if(r)return e.preventDefault();o&&i&&s&&e.preventDefault();var P,O={},T=E(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var k=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!h&&k>10)return{scrolling:!0};s&&(w.swipeLength=k);var A=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(A=w.curY>w.startY?1:-1);var I=Math.ceil(m/v),R=g(t.touchObject,s),M=w.swipeLength;return b||(0===u&&"right"===R||u+1>=I&&"left"===R||!y(t)&&"left"===R)&&(M=w.swipeLength*c,!1===p&&d&&(d(R),O.edgeDragged=!0)),!f&&C&&(C(R),O.swiped=!0),P=o?T+M*(x/S)*A:l?T-M*A:T+M*A,s&&(P=T+M*A),O=a({},O,{touchObject:w,swipeLeft:P,trackStyle:_(a({},t,{left:P}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)||w.swipeLength>10&&(O.swiping=!0,e.preventDefault()),O}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,c=t.currentSlide,p=t.swipeToSlide,d=t.scrolling,f=t.onSwipe;if(!n)return r&&e.preventDefault(),{};var h=l?u/s:i/s,m=g(o,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return y;if(!o.swipeLength)return y;if(o.swipeLength>h){var v,C;switch(e.preventDefault(),f&&f(m),m){case"left":case"up":C=c+w(t),v=p?b(t,C):C,y.currentDirection=0;break;case"right":case"down":C=c-w(t),v=p?b(t,C):C,y.currentDirection=1;break;default:v=c}y.triggerSlideHandler=v}else{var _=E(t);y.trackStyle=x(a({},t,{left:_}))}return y};var v=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o};t.getNavigableIndexes=v;var b=function(e,t){var n=v(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t};t.checkNavigable=b;var w=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=o.default.findDOMNode(e.listRef).querySelectorAll(".slick-slide");if(Array.from(r).every(function(r){if(e.vertical){if(r.offsetTop+m(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+h(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll};t.getSlideCount=w;var C=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=C;var _=function(e){var t,n;C(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=O(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?o=a({},o,{WebkitTransform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",transform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",msTransform:e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)"}):e.vertical?o.top=e.left:o.left=e.left,e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o};t.getTrackCSS=_;var x=function(e){C(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=_(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=x;var E=function(e){if(e.unslick)return 0;C(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,s=e.infinite,a=e.centerMode,l=e.slideCount,u=e.slidesToShow,c=e.slidesToScroll,p=e.slideWidth,d=e.listWidth,f=e.variableWidth,h=e.slideHeight,m=e.fade,g=e.vertical;if(m||1===e.slideCount)return 0;var y=0;if(s?(y=-S(e),l%c!==0&&r+c>l&&(y=-(r>l?u-(r-l):l%c)),a&&(y+=parseInt(u/2))):(l%c!==0&&r+c>l&&(y=u-l%c),a&&(y=parseInt(u/2))),t=g?r*h*-1+y*h:r*p*-1+y*p,!0===f){var v,b=o.default.findDOMNode(i);if(v=r+S(e),t=(n=b&&b.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=s?r+S(e):r,n=b&&b.children[v],t=0;for(var w=0;w<v;w++)t-=b&&b.children[w]&&b.children[w].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t};t.getTrackLeft=E;var S=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=S;var P=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=P;var O=function(e){return 1===e.slideCount?1:S(e)+e.slideCount+P(e)};t.getTotalSlides=O;var T=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+k(e)?"left":"right":e.targetSlide<e.currentSlide-A(e)?"right":"left"};t.siblingDirection=T;var k=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1};t.slidesOnRight=k;var A=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0};t.slidesOnLeft=A,t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},480(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var o=a(n(22155)),i=a(n(30395)),s=n(87950);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){m(n,e);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,c(c({},n),r)):o.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}]),n}(o.default.PureComponent);t.PrevArrow=b;var w=function(e){m(n,e);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,s.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,c(c({},n),r)):o.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")}}]),n}(o.default.PureComponent);t.NextArrow=w},87018(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(22155))&&r.__esModule?r:{default:r},i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=i},49206(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var o=a(n(22155)),i=a(n(30395)),s=n(87950);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(m,e);var t,n,a,f,h=(a=m,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=d(a);if(f){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),h.apply(this,arguments)}return t=m,n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,a=t.onMouseLeave,c=t.infinite,p=t.slidesToScroll,d=t.slidesToShow,f=t.slideCount,h=t.currentSlide,m=(e={slideCount:f,slidesToScroll:p,slidesToShow:d,infinite:c}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,g={onMouseEnter:n,onMouseOver:r,onMouseLeave:a},y=[],v=0;v<m;v++){var b=(v+1)*p-1,w=c?b:(0,s.clamp)(b,0,f-1),C=w-(p-1),_=c?C:(0,s.clamp)(C,0,f-1),x=(0,i.default)({"slick-active":c?h>=_&&h<=w:h===_}),E={message:"dots",index:v,slidesToScroll:p,currentSlide:h},S=this.clickHandler.bind(this,E);y=y.concat(o.default.createElement("li",{key:v,className:x},o.default.cloneElement(this.props.customPaging(v),{onClick:S})))}return o.default.cloneElement(this.props.appendDots(y),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:this.props.dotsClass},g))}}],n&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.default.PureComponent);t.Dots=f},8644(e,t,n){"use strict";var r;t.A=void 0;var o=((r=n(35783))&&r.__esModule?r:{default:r}).default;t.A=o},93296(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},12988(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=d(n(22155)),o=d(n(93296)),i=d(n(63850)),s=d(n(30395)),a=n(87950),l=n(81031),u=n(49206),c=n(480),p=d(n(87922));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(x,e);var t,n,d,m,_=(d=x,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=w(d);if(m){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}(this,e)});function x(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),C(b(t=_.call(this,e)),"listRefHandler",function(e){return t.list=e}),C(b(t),"trackRefHandler",function(e){return t.track=e}),C(b(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,a.getHeight)(e)+"px"}}),C(b(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,a.getOnDemandLazySlides)(g(g({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=g({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new p.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),C(b(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),C(b(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,a.getOnDemandLazySlides)(g(g({},t.props),t.state));n.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}}),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var o=g(g({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(o,i,function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),C(b(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,i.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),C(b(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=g(g({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),C(b(t),"updateState",function(e,n,o){var i=(0,a.initializedState)(e);e=g(g(g({},e),i),{},{slideIndex:i.currentSlide});var s=(0,a.getTrackLeft)(e);e=g(g({},e),{},{left:s});var l=(0,a.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(i.trackStyle=l),t.setState(i,o)}),C(b(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,n=0,o=[],i=(0,a.getPreClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length})),s=(0,a.getPostClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var l=0;l<i;l++)n+=o[o.length-1-l],e+=o[o.length-1-l];for(var u=0;u<s;u++)e+=o[u];for(var c=0;c<t.state.currentSlide;c++)n+=o[c];var p={width:e+"px",left:-n+"px"};if(t.props.centerMode){var d="".concat(o[t.state.currentSlide],"px");p.left="calc(".concat(p.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:p}}var f=r.default.Children.count(t.props.children),h=g(g(g({},t.props),t.state),{},{slideCount:f}),m=(0,a.getPreClones)(h)+(0,a.getPostClones)(h)+f,y=100/t.props.slidesToShow*m,v=100/m,b=-v*((0,a.getPreClones)(h)+t.state.currentSlide)*y/100;return t.props.centerMode&&(b+=(100-v*y/100)/2),{slideWidth:v+"%",trackStyle:{width:y+"%",left:b+"%"}}}),C(b(t),"checkImagesLoad",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,function(e){var o=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(){i(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),C(b(t),"progressiveLazyLoad",function(){for(var e=[],n=g(g({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,a.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=t.state.currentSlide-1;o>=-(0,a.getPreClones)(n);o--)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),C(b(t),"slideHandler",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,o=r.asNavFor,i=r.beforeChange,s=r.onLazyLoad,l=r.speed,u=r.afterChange,c=t.state.currentSlide,p=(0,a.slideHandler)(g(g(g({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),d=p.state,f=p.nextState;if(d){i&&i(c,d.currentSlide);var h=d.lazyLoadedList.filter(function(e){return t.state.lazyLoadedList.indexOf(e)<0});s&&h.length>0&&s(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),u&&u(c),delete t.animationEndCallback),t.setState(d,function(){o&&t.asNavForIndex!==e&&(t.asNavForIndex=e,o.innerSlider.slideHandler(e)),f&&(t.animationEndCallback=setTimeout(function(){var e=f.animating,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(f,["animating"]);t.setState(n,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),u&&u(d.currentSlide),delete t.animationEndCallback})},l))})}}),C(b(t),"changeSlide",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=g(g({},t.props),t.state),o=(0,a.changeSlide)(r,e);if((0===o||o)&&(!0===n?t.slideHandler(o,n):t.slideHandler(o),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var i=t.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}}),C(b(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),C(b(t),"keyHandler",function(e){var n=(0,a.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})}),C(b(t),"selectHandler",function(e){t.changeSlide(e)}),C(b(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),C(b(t),"enableBodyScroll",function(){window.ontouchmove=null}),C(b(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,a.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)}),C(b(t),"swipeMove",function(e){var n=(0,a.swipeMove)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))}),C(b(t),"swipeEnd",function(e){var n=(0,a.swipeEnd)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}}),C(b(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),C(b(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),C(b(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),C(b(t),"slickGoTo",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)},0))}),C(b(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,a.canGoNext)(g(g({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),C(b(t),"autoPlay",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),C(b(t),"pause",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})}),C(b(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),C(b(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),C(b(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),C(b(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),C(b(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),C(b(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),C(b(t),"render",function(){var e,n,o,i=(0,s.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),p=g(g({},t.props),t.state),d=(0,a.extractObject)(p,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),f=t.props.pauseOnHover;if(d=g(g({},d),{},{onMouseEnter:f?t.onTrackOver:null,onMouseLeave:f?t.onTrackLeave:null,onMouseOver:f?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var m=(0,a.extractObject)(p,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),y=t.props.pauseOnDotsHover;m=g(g({},m),{},{clickHandler:t.changeSlide,onMouseEnter:y?t.onDotsLeave:null,onMouseOver:y?t.onDotsOver:null,onMouseLeave:y?t.onDotsLeave:null}),e=r.default.createElement(u.Dots,m)}var v=(0,a.extractObject)(p,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);v.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(c.PrevArrow,v),o=r.default.createElement(c.NextArrow,v));var b=null;t.props.vertical&&(b={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var C=g(g({},b),w),_=t.props.touchMove,x={className:"slick-list",style:C,onClick:t.clickHandler,onMouseDown:_?t.swipeStart:null,onMouseMove:t.state.dragging&&_?t.swipeMove:null,onMouseUp:_?t.swipeEnd:null,onMouseLeave:t.state.dragging&&_?t.swipeEnd:null,onTouchStart:_?t.swipeStart:null,onTouchMove:t.state.dragging&&_?t.swipeMove:null,onTouchEnd:_?t.touchEnd:null,onTouchCancel:t.state.dragging&&_?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},E={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(x={className:"slick-list"},E={className:i}),r.default.createElement("div",E,t.props.unslick?"":n,r.default.createElement("div",h({ref:t.listRefHandler},x),r.default.createElement(l.Track,h({ref:t.trackRefHandler},d),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=g(g({},o.default),{},{currentSlide:t.props.initialSlide,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=g(g({},t.state),n),t}return t=x,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==f(e[i])&&"function"!=typeof e[i]&&e[i]!==this.props[i]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),x}(r.default.Component);t.InnerSlider=_},35783(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(22155)),i=n(12988),s=u(n(51148)),a=u(n(87018)),l=n(87950);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,l.canUseDOM)()&&n(78708),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(w,e);var t,n,u,p,b=(u=w,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=g(u);if(p){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),y(m(t=b.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),y(m(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),y(m(t),"slickNext",function(){return t.innerSlider.slickNext()}),y(m(t),"slickGoTo",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)}),y(m(t),"slickPause",function(){return t.innerSlider.pause("paused")}),y(m(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=w,(n=[{key:"media",value:function(e,t){v.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o;o=0===r?(0,s.default)({minWidth:0,maxWidth:n}):(0,s.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,l.canUseDOM)()&&e.media(o,function(){e.setState({breakpoint:n})})});var n=(0,s.default)({minWidth:t.slice(-1)[0]});(0,l.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){v.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":d(d(d({},a.default),this.props),t[0].settings):d(d({},a.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=o.default.Children.toArray(this.props.children);r=r.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var s=[],l=null,u=0;u<r.length;u+=e.rows*e.slidesPerRow){for(var p=[],f=u;f<u+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var h=[],m=f;m<f+e.slidesPerRow&&(e.variableWidth&&r[m].props.style&&(l=r[m].props.style.width),!(m>=r.length));m+=1)h.push(o.default.cloneElement(r[m],{key:100*u+10*f+m,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(o.default.createElement("div",{key:10*u+f},h))}e.variableWidth?s.push(o.default.createElement("div",{key:u,style:{width:l}},p)):s.push(o.default.createElement("div",{key:u},p))}if("unslick"===e){var g="regular slider "+(this.props.className||"");return o.default.createElement("div",{className:g},r)}return s.length<=e.slidesToShow&&(e.unslick=!0),o.default.createElement(i.InnerSlider,c({style:this.props.style,ref:this.innerSliderRefHandler},e),s)}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(o.default.Component);t.default=b},81031(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var o=a(n(22155)),i=a(n(30395)),s=n(87950);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},y=function(e,t){return e.key||t},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(b,e);var t,n,a,f,v=(a=b,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=d(a);if(f){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function b(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=v.call.apply(v,[this].concat(n))),"node",null),m(p(e),"handleRef",function(t){e.node=t}),e}return t=b,(n=[{key:"render",value:function(){var e=function(e){var t,n=[],r=[],a=[],l=o.default.Children.count(e.children),u=(0,s.lazyStartIndex)(e),c=(0,s.lazyEndIndex)(e);return o.default.Children.forEach(e.children,function(p,d){var f,m={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?p:o.default.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(h(h({},e),{},{index:d})),b=f.props.className||"",w=g(h(h({},e),{},{index:d}));if(n.push(o.default.cloneElement(f,{key:"original"+y(f,d),"data-index":d,className:(0,i.default)(w,b),tabIndex:"-1","aria-hidden":!w["slick-active"],style:h(h({outline:"none"},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}})),e.infinite&&!1===e.fade){var C=l-d;C<=(0,s.getPreClones)(e)&&l!==e.slidesToShow&&((t=-C)>=u&&(f=p),w=g(h(h({},e),{},{index:t})),r.push(o.default.cloneElement(f,{key:"precloned"+y(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(w,b),"aria-hidden":!w["slick-active"],style:h(h({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}}))),l!==e.slidesToShow&&((t=l+d)<c&&(f=p),w=g(h(h({},e),{},{index:t})),a.push(o.default.cloneElement(f,{key:"postcloned"+y(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(w,b),"aria-hidden":!w["slick-active"],style:h(h({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}})))}}),e.rtl?r.concat(n,a).reverse():r.concat(n,a)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return o.default.createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(o.default.PureComponent);t.Track=v},87950(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=l,t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=t.extractObject=void 0;var r,o=(r=n(22155))&&r.__esModule?r:{default:r};function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return Math.max(t,Math.min(e,n))}var u=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=u;var c=function(e){for(var t=[],n=p(e),r=d(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t};t.getOnDemandLazySlides=c,t.getRequiredLazySlides=function(e){for(var t=[],n=p(e),r=d(e),o=n;o<r;o++)t.push(o);return t};var p=function(e){return e.currentSlide-f(e)};t.lazyStartIndex=p;var d=function(e){return e.currentSlide+h(e)};t.lazyEndIndex=d;var f=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=f;var h=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=h;var m=function(e){return e&&e.offsetWidth||0};t.getWidth=m;var g=function(e){return e&&e.offsetHeight||0};t.getHeight=g;var y=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"};t.getSwipeDirection=y;var v=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=v,t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t,n=o.default.Children.count(e.children),r=e.listRef,i=Math.ceil(m(r)),a=e.trackRef&&e.trackRef.node,l=Math.ceil(m(a));if(e.vertical)t=i;else{var u=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(u*=i/100),t=Math.ceil((i-u)/e.slidesToShow)}var p=r&&g(r.querySelector('[data-index="0"]')),d=p*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var h=e.lazyLoadedList||[],y=c(s(s({},e),{},{currentSlide:f,lazyLoadedList:h})),v={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:f,slideHeight:p,listHeight:d,lazyLoadedList:h=h.concat(y)};return null===e.autoplaying&&e.autoplay&&(v.autoplaying="playing"),v},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,a=e.slideCount,u=e.lazyLoad,p=e.currentSlide,d=e.centerMode,f=e.slidesToScroll,h=e.slidesToShow,m=e.useCSS,g=e.lazyLoadedList;if(t&&n)return{};var y,b,w,C=i,_={},P={},O=o?i:l(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?C=i+a:i>=a&&(C=i-a),u&&g.indexOf(C)<0&&(g=g.concat(C)),_={animating:!0,currentSlide:C,lazyLoadedList:g,targetSlide:C},P={animating:!1,targetSlide:C}}else y=C,C<0?(y=C+a,o?a%f!==0&&(y=a-a%f):y=0):!v(e)&&C>p?C=y=p:d&&C>=a?(C=o?a:a-1,y=o?0:a-1):C>=a&&(y=C-a,o?a%f!==0&&(y=0):y=a-h),!o&&C+h>=a&&(y=a-h),b=S(s(s({},e),{},{slideIndex:C})),w=S(s(s({},e),{},{slideIndex:y})),o||(b===w&&(C=y),b=w),u&&(g=g.concat(c(s(s({},e),{},{currentSlide:C})))),m?(_={animating:!0,currentSlide:y,trackStyle:E(s(s({},e),{},{left:b})),lazyLoadedList:g,targetSlide:O},P={animating:!1,currentSlide:y,trackStyle:x(s(s({},e),{},{left:w})),swipeLeft:null,targetSlide:O}):_={currentSlide:y,trackStyle:x(s(s({},e),{},{left:w})),lazyLoadedList:g,targetSlide:O};return{state:_,nextState:P}},t.changeSlide=function(e,t){var n,r,o,i,a=e.slidesToScroll,l=e.slidesToShow,u=e.slideCount,c=e.currentSlide,p=e.targetSlide,d=e.lazyLoad,f=e.infinite;if(n=u%a!==0?0:(u-c)%a,"previous"===t.message)i=c-(o=0===n?a:l-n),d&&!f&&(i=-1===(r=c-o)?u-1:r),f||(i=p-a);else if("next"===t.message)i=c+(o=0===n?a:n),d&&!f&&(i=(c+a)%u+n),f||(i=p+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,f){var h=k(s(s({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===h?i-=u:i<t.currentSlide&&"right"===h&&(i+=u)}}else"index"===t.message&&(i=Number(t.index));return i},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&u(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,l=t.rtl,c=t.currentSlide,p=t.edgeFriction,d=t.edgeDragged,f=t.onEdge,h=t.swiped,m=t.swiping,g=t.slideCount,b=t.slidesToScroll,w=t.infinite,C=t.touchObject,_=t.swipeEvent,E=t.listHeight,P=t.listWidth;if(!n){if(r)return u(e);o&&i&&a&&u(e);var O,T={},k=S(t);C.curX=e.touches?e.touches[0].pageX:e.clientX,C.curY=e.touches?e.touches[0].pageY:e.clientY,C.swipeLength=Math.round(Math.sqrt(Math.pow(C.curX-C.startX,2)));var A=Math.round(Math.sqrt(Math.pow(C.curY-C.startY,2)));if(!a&&!m&&A>10)return{scrolling:!0};a&&(C.swipeLength=A);var I=(l?-1:1)*(C.curX>C.startX?1:-1);a&&(I=C.curY>C.startY?1:-1);var R=Math.ceil(g/b),M=y(t.touchObject,a),D=C.swipeLength;return w||(0===c&&("right"===M||"down"===M)||c+1>=R&&("left"===M||"up"===M)||!v(t)&&("left"===M||"up"===M))&&(D=C.swipeLength*p,!1===d&&f&&(f(M),T.edgeDragged=!0)),!h&&_&&(_(M),T.swiped=!0),O=o?k+D*(E/P)*I:l?k-D*I:k+D*I,a&&(O=k+D*I),T=s(s({},T),{},{touchObject:C,swipeLeft:O,trackStyle:x(s(s({},t),{},{left:O}))}),Math.abs(C.curX-C.startX)<.8*Math.abs(C.curY-C.startY)||C.swipeLength>10&&(T.swiping=!0,u(e)),T}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,p=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,h=t.targetSlide,m=t.currentSlide,g=t.infinite;if(!n)return r&&u(e),{};var v=l?c/a:i/a,b=y(o,l),_={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return _;if(!o.swipeLength)return _;if(o.swipeLength>v){var x,P;u(e),f&&f(b);var O=g?m:h;switch(b){case"left":case"up":P=O+C(t),x=p?w(t,P):P,_.currentDirection=0;break;case"right":case"down":P=O-C(t),x=p?w(t,P):P,_.currentDirection=1;break;default:x=O}_.triggerSlideHandler=x}else{var T=S(t);_.trackStyle=E(s(s({},t),{},{left:T}))}return _};var b=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o};t.getNavigableIndexes=b;var w=function(e,t){var n=b(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t};t.checkNavigable=w;var C=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(function(r){if(e.vertical){if(r.offsetTop+g(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+m(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll};t.getSlideCount=C;var _=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=_;var x=function(e){var t,n;_(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=T(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=s(s({},o),{},{WebkitTransform:i,transform:a,msTransform:l})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o};t.getTrackCSS=x;var E=function(e){_(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=x(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=E;var S=function(e){if(e.unslick)return 0;_(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,s=e.centerMode,a=e.slideCount,l=e.slidesToShow,u=e.slidesToScroll,c=e.slideWidth,p=e.listWidth,d=e.variableWidth,f=e.slideHeight,h=e.fade,m=e.vertical;if(h||1===e.slideCount)return 0;var g=0;if(i?(g=-P(e),a%u!==0&&r+u>a&&(g=-(r>a?l-(r-a):a%u)),s&&(g+=parseInt(l/2))):(a%u!==0&&r+u>a&&(g=l-a%u),s&&(g=parseInt(l/2))),t=m?r*f*-1+g*f:r*c*-1+g*c,!0===d){var y,v=o&&o.node;if(y=r+P(e),t=(n=v&&v.childNodes[y])?-1*n.offsetLeft:0,!0===s){y=i?r+P(e):r,n=v&&v.children[y],t=0;for(var b=0;b<y;b++)t-=v&&v.children[b]&&v.children[b].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(p-n.offsetWidth)/2}}return t};t.getTrackLeft=S;var P=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=P;var O=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=O;var T=function(e){return 1===e.slideCount?1:P(e)+e.slideCount+O(e)};t.getTotalSlides=T;var k=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+A(e)?"left":"right":e.targetSlide<e.currentSlide-I(e)?"right":"left"};t.siblingDirection=k;var A=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1};t.slidesOnRight=A;var I=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0};t.slidesOnLeft=I,t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},91034(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(22155),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,s="index-module_num__j6XH3";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".index-module_slot_wrap__ZT-DX {\n  display: inline-block;\n  white-space: nowrap;\n}\n\n.index-module_slot__DpPgW {\n  display: inline-block;\n  overflow: hidden;\n  text-align: center;\n  vertical-align: middle;\n  will-change: transform;\n}\n\n.index-module_separator__7GhtE {\n  display: inline-block;\n  vertical-align: middle;\n  text-align: center;\n}\n\n.index-module_numbers__sqlqm {\n  display: block;\n}\n\n.index-module_num__j6XH3 {\n  display: block;\n}\n\n.index-module_top_dummy_list__veRmf {\n  position: absolute;\n  top: 0;\n  transform: translateY(-100%);\n}\n\n[aria-hidden=true] {\n  user-select: none;\n}");var a=[",","."," "],l=/\u0020/,u=/\u00A0/,c=/\u202F/,p="slot-counter-item",d="slot-counter-item-number",f=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")},h=function(e,t){for(var n=[],r=e;r<t;r+=1)n.push(r);return n},m=function(e,t){for(var n=[],r=e;r!==t;)n.push(r),10===(r+=1)&&(r=0);return n},g=function(e,t){var n=Math.random()*(t-e);return Math.floor(n+e)},y=function(e){for(var t,n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0),r=n.length-1;r>0;r-=1){var o=Math.floor(Math.random()*(r+1));t=[n[o],n[r]],n[r]=t[0],n[o]=t[1]}return n},v=function(e){return"number"==typeof e?e:(Array.isArray(e)?e.join(""):e).replace(/[,.]/g,"")},b=function(e){return"object"!=typeof e&&!Number.isNaN(v(e))},w=function(e){return"object"==typeof e},C=function(e){return!w(e)&&(a.includes(e)||l.test(e)||u.test(e)||c.test(e))},_=(0,r.memo)((0,r.forwardRef)(function(e,t){var n,a,l=e.isNew,u=e.charClassName,c=e.numbersRef,h=e.active,m=e.isChanged,g=e.effectiveDuration,v=e.delay,b=e.duration,w=e.speed,C=e.value,_=e.startValue,x=e.disableStartValue,E=e.dummyList,S=e.hasSequentialDummyList,P=e.hasInfiniteList,O=e.valueClassName,T=e.numberSlotClassName,k=e.numberClassName,A=e.reverse,I=e.sequentialAnimationMode,R=e.useMonospaceWidth,M=e.maxNumberWidth,D=e.onFontHeightChange,L=e.slotPeek,N=(0,r.useState)(!1),V=N[0],j=N[1],F=(0,r.useState)(C),z=F[0],B=F[1],H=(0,r.useRef)(),U=(0,r.useRef)(C),q=(0,r.useRef)(null),W=(0,r.useState)(0),$=W[0],Q=W[1],G=(0,r.useState)(S?E:y(E)),Y=G[0],Z=G[1],K=(0,r.useState)(!1),X=K[0],J=K[1],ee=$*(E.length+1);i(function(){J(!0)},[]),i(function(){var e,t;Q(null!==(t=null===(e=q.current)||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==t?t:0)},[X]),(0,r.useEffect)(function(){h?requestAnimationFrame(function(){j(h)}):j(h)},[h]),(0,r.useEffect)(function(){var e=q.current;if($&&e&&"undefined"!=typeof ResizeObserver){var t=new ResizeObserver(function(e){var t=e[0].contentRect.height;Math.abs($-t)>1&&(null==D||D(t))});return t.observe(e),function(){t.disconnect()}}},[$,D]),(0,r.useMemo)(function(){x&&(H.current=U.current)},[x]),(0,r.useEffect)(function(){V&&(H.current=U.current,U.current=C,setTimeout(function(){return B(C)},I?0:g*w*b*1e3/E.length+1e3*v))},[V,C,g,v,E.length,I,w,b]),(0,r.useEffect)(function(){Z(S?E:y(E))},[E,S]),(0,r.useImperativeHandle)(t,function(){return{refreshStyles:function(){var e,t;j(!0),Q(null!==(t=null===(e=q.current)||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==t?t:0),requestAnimationFrame(function(){j(!1)})}}});var te=function(){return Y.map(function(e,t){return r.createElement("span",{key:t,className:f(s,k,d),"aria-hidden":"true"},e)})},ne=A?z:null!=_?_:z;I&&(ne=A?z:null!==(n=null!=_?_:H.current)&&void 0!==n?n:z,I&&l&&!A&&(ne=""));var re=A&&null!=_?_:z;I&&(re=A&&null!==(a=null!=_?_:H.current)&&void 0!==a?a:z);var oe=(0,r.useMemo)(function(){if(X)return R?M:void 0},[X,M,R]),ie=(0,r.useMemo)(function(){if(X)return L?$+2*L:$},[X,$,L]);return r.createElement("span",{className:f("index-module_slot__DpPgW",u,p),style:o({display:"inline-block",width:oe,height:ie},L&&{paddingTop:L,paddingBottom:L})},r.createElement("span",{ref:c,className:f("index-module_numbers__sqlqm",T,"slot-counter-item-numbers"),style:o({transition:"none",transform:A?"translateY(-".concat(ee,"px)"):"translateY(0px)"},V&&m&&{transform:A?"translateY(0px)":"translateY(-".concat(ee,"px)"),transition:"transform ".concat(g,"s ").concat(v,"s ease-in-out")})},X?r.createElement(r.Fragment,null,L&&r.createElement("div",{className:"index-module_top_dummy_list__veRmf"},te()),r.createElement("span",{className:f(s,k,d),"aria-hidden":"true",style:{height:$}},ne),te(),r.createElement("span",{className:f(s,k,O,d,"slot-counter-item-number-value"),ref:q},re),P||L?te():null):r.createElement("span",{className:f(s,k,d),"aria-hidden":"true"},null!=_?_:z)))})),x=(0,r.memo)((0,r.forwardRef)(function(e,t){var n,o,s,a,l,u,c,d,y,x,E=e.value,S=e.startValue,P=e.startValueOnce,O=void 0!==P&&P,T=e.duration,k=void 0===T?.7:T,A=e.speed,I=void 0===A?1.4:A,R=e.delay,M=e.dummyCharacters,D=e.dummyCharacterCount,L=void 0===D?6:D,N=e.autoAnimationStart,V=void 0===N||N,j=e.containerClassName,F=e.charClassName,z=e.separatorClassName,B=e.valueClassName,H=e.numberSlotClassName,U=e.numberClassName,q=e.animateUnchanged,W=void 0!==q&&q,$=e.hasInfiniteList,Q=void 0!==$&&$,G=e.sequentialAnimationMode,Y=void 0!==G&&G,Z=e.useMonospaceWidth,K=void 0!==Z&&Z,X=e.direction,J=e.debounceDelay,ee=e.animateOnVisible,te=e.startFromLastDigit,ne=void 0!==te&&te,re=e.onAnimationStart,oe=e.onAnimationEnd,ie=e.separatorCharacters,se=e.isSeparatorCharacter,ae=void 0===se?C:se,le=e.slotPeek,ue=function(e,t){var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)(function(){if(0===t)return i(e);var n=setTimeout(function(){i(e)},t);return function(){clearTimeout(n)}},[e,t]),o}(E,null!=J?J:0),ce=(0,r.useMemo)(function(){return e=ue,Array.isArray(e)&&w(e[0])?"":"object"==typeof ue?JSON.stringify(ue):ue.toString();var e},[ue]),pe=(0,r.useState)(!1),de=pe[0],fe=pe[1],he=(0,r.useRef)(),me=(0,r.useRef)(null),ge=(0,r.useRef)(null),ye=(0,r.useRef)(S),ve=(0,r.useRef)([]),be=(0,r.useMemo)(function(){return"boolean"==typeof ee?ee:"object"==typeof ee||void 0},[ee]),we=(0,r.useMemo)(function(){return"object"==typeof ee?ee.rootMargin:void 0},[ee]),Ce=(0,r.useMemo)(function(){return"object"==typeof ee?ee.triggerOnce:void 0},[ee]),_e=(0,r.useRef)(!0),xe=!be&&V,Ee=(0,r.useRef)(null==S||xe?ue:S),Se=(0,r.useRef)(S),Pe=(0,r.useRef)(0),Oe=(0,r.useRef)(0),Te=(0,r.useState)([]),ke=Te[0],Ae=Te[1],Ie=(0,r.useRef)(),Re=(0,r.useState)(0),Me=Re[0],De=Re[1],Le=(0,r.useState)(),Ne=Le[0],Ve=Le[1],je=(0,r.useRef)(!1),Fe=null!=S&&(!O||Pe.current<1),ze=null!==(o=null===(n=he.current)||void 0===n?void 0:n.dummyCharacterCount)&&void 0!==o?o:L,Be=null!==(a=null===(s=he.current)||void 0===s?void 0:s.duration)&&void 0!==a?a:k,He=(0,r.useRef)({onAnimationStart:re,onAnimationEnd:oe});He.current={onAnimationStart:re,onAnimationEnd:oe};var Ue=(0,r.useRef)(!1),qe=(0,r.useCallback)(function(){var e=ge.current;if(e){var t=h(0,10).map(function(t){var n=document.createElement("span");n.className=null!=B?B:"",n.style.position="absolute",n.style.top="0",n.style.left="-9999px",n.style.visibility="hidden",n.textContent=t.toString(),e.appendChild(n);var r=n.getBoundingClientRect().width;return e.removeChild(n),r}),n=Math.max.apply(Math,t);Ve(n)}},[B]);i(function(){var e;qe(),null===(e=document.fonts)||void 0===e||e.ready.then(function(){qe()})},[]),(0,r.useEffect)(function(){Ae(h(0,ze*k*I-1).map(function(e){if(!M)return g(0,10);var t=e>=M.length?g(0,M.length):e;return M[t]}))},[M,ze,I,k]),Ee.current!==ue&&je.current&&Oe.current>0&&(Se.current=Ee.current,Ee.current=ue);var We=Array.isArray(Se.current)?Se.current:null!==(u=null===(l=Se.current)||void 0===l?void 0:l.toString().split(""))&&void 0!==u?u:[],$e=Array.isArray(Ee.current)?Ee.current:null!==(d=null===(c=Ee.current)||void 0===c?void 0:c.toString().split(""))&&void 0!==d?d:[],Qe=Array.isArray(ye.current)?ye.current:null!==(x=null===(y=ye.current)||void 0===y?void 0:y.toString().split(""))&&void 0!==x?x:[],Ge=(0,r.useMemo)(function(){return Array.isArray(ue)?ue:null==ue?void 0:ue.toString().split("")},[ue]),Ye=(0,r.useMemo)(function(){return Array.isArray(S)?S:null==S?void 0:S.toString().split("")},[S]),Ze=We.length!==$e.length,Ke=[];$e.forEach(function(e,t){var n=$e.length-t-1,r=Fe?Qe:We;($e[n]!==r[n]||Ze||W)&&Ke.push(n)}),ne||Ke.reverse();var Xe=(0,r.useMemo)(function(){return R||Math.min(.1,Be/Ge.length)},[Be,Ge.length,R]),Je=(0,r.useCallback)(function(){var e,t,n;null===(t=(e=He.current).onAnimationEnd)||void 0===t||t.call(e),Ue.current=!1,null===(n=ge.current)||void 0===n||n.removeEventListener("transitionend",Je)},[]),et=(0,r.useCallback)(function(){var e,t,n;Ie.current&&window.cancelAnimationFrame(Ie.current),Ue.current&&Je(),Ue.current=!0,null===(e=ge.current)||void 0===e||e.addEventListener("transitionend",Je),null===(n=(t=He.current).onAnimationStart)||void 0===n||n.call(t),fe(!1),Pe.current=Oe.current,Pe.current+=1,window.requestAnimationFrame(function(){var e;null===(e=ge.current)||void 0===e||e.offsetWidth,Ie.current=requestAnimationFrame(function(){Oe.current+=1,fe(!0)})})},[Je]),tt=(0,r.useCallback)(function(e){var t,n,r=Fe?S:Se.current;if(null==r||!b(r)||!b(ue))return[];var o=r.toString().length,i=ue.toString().length,s=o<i,a=Math.abs(o-i),l=Number(v(r.toString())),u=Number(v(ue.toString())),c=Number(l.toString()[s?-a+e:a+e]||0),p=Number(u.toString()[e]||0);if(p===c)return[];var d=l<u,f=d?m((c+1)%10,p):m((p+1)%10,c);return"bottom-up"!==(null!==(n=null===(t=he.current)||void 0===t?void 0:t.direction)&&void 0!==n?n:X)||d?f:f.reverse()},[Fe,ue,S,X]),nt=(0,r.useCallback)(function(){ve.current.forEach(function(e){e.refreshStyles()}),qe()},[qe]);(0,r.useEffect)(function(){(je.current||null!=Se.current)&&(je.current||null==ye.current)&&(je.current||xe)&&et()},[ce,et,xe]),(0,r.useEffect)(function(){xe&&et()},[xe,et]),(0,r.useEffect)(function(){requestAnimationFrame(function(){je.current=!0})},[]),(0,r.useImperativeHandle)(t,function(){return{startAnimation:ut,refreshStyles:nt,reload:function(){return De(function(e){return e+1})}}});var rt=null==S||xe||0!==Pe.current?Ge:Ye||[],ot=((null==Ye?void 0:Ye.length)||0)-rt.length,it=function(e){var t,n=(0,r.useRef)(e),o=(0,r.useRef)(n.current),i=e.join(","),s=null===(t=n.current)||void 0===t?void 0:t.join(",");return(0,r.useEffect)(function(){s!==i&&(o.current=(null==s?void 0:s.split(","))||[],n.current=i.split(","))},[i,s]),{getPrevDependencies:(0,r.useCallback)(function(){return o.current},[]),setPrevDependenciesToSameAsCurrent:(0,r.useCallback)(function(){o.current=n.current},[])}}(rt),st=it.getPrevDependencies,at=it.setPrevDependenciesToSameAsCurrent,lt=rt.length-st().length,ut=(0,r.useCallback)(function(e){null==S||O||(Se.current=void 0),he.current=e,et(),at()},[S,O,et,at]),ct=(0,r.useMemo)(function(){return function(e){var t;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];clearTimeout(t),t=setTimeout(function(){e.apply(void 0,n)},0)}}(function(){nt()})},[nt]);(0,r.useEffect)(function(){if(me.current&&window.IntersectionObserver){var e=new IntersectionObserver(function(e){e[0].isIntersecting&&nt()});return e.observe(me.current),function(){return e.disconnect()}}},[nt]),(0,r.useEffect)(function(){if(be&&me.current&&window.IntersectionObserver){var e=new IntersectionObserver(function(n){n[0].isIntersecting&&_e.current&&(ut(),_e.current=!1,Ce&&(e.disconnect(),t.disconnect()))},{rootMargin:we,threshold:1}),t=new IntersectionObserver(function(e){e[0].isIntersecting||(_e.current=!0)},{threshold:0});return e.observe(me.current),t.observe(me.current),function(){e.disconnect(),t.disconnect()}}},[be,we,Ce,ut]);var pt=function(e){return ie&&"string"==typeof e?ie.includes(e):null!==ae&&ae(e)},dt=Ke.filter(function(e){return!pt(rt[e])}),ft=-1;return r.createElement("span",{key:Me,ref:me,className:f(j,"index-module_slot_wrap__ZT-DX","slot-counter")},rt.map(function(e,t){var n,o,i=Ke.includes(t),s=(i?dt.indexOf(t):0)*Xe,a=Se.current,l=null!=S&&!!O&&Pe.current>1,u=null!=ue&&null!=a&&b(ue)&&b(a)&&v(ue)<v(a);if((null===(n=he.current)||void 0===n?void 0:n.direction)&&(u="top-down"===(null===(o=he.current)||void 0===o?void 0:o.direction)),X&&(u="top-down"===X),pt(e))return r.createElement("span",{key:$e.length-t-1,className:f("index-module_separator__7GhtE",z,p,"slot-counter-separator")},e);var c=Y&&(!xe||Oe.current>1);return ft+=1,r.createElement(_,{key:rt.length-t-1,index:t,isNew:lt>0&&t<lt,maxNumberWidth:Ne,numbersRef:ge,active:de,isChanged:i,charClassName:F,effectiveDuration:Be,delay:s,value:e,startValue:l||null==Ye?void 0:Ye[t+ot],disableStartValue:l,dummyList:c?tt(ft):ke,hasSequentialDummyList:c,hasInfiniteList:Q,valueClassName:B,numberSlotClassName:H,numberClassName:U,reverse:u,sequentialAnimationMode:Y,useMonospaceWidth:K,onFontHeightChange:ct,speed:I,duration:k,slotPeek:le,ref:function(e){e&&ve.current.push(e)}})}))}))},88130(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p=s(n(22155)),d=n(22066),f=n(3570),h=d.keyframes(a||(a=o(["\n  0% {left: -35%;right: 100%}\n  60% {left: 100%;right: -90%}\n  100% {left: 100%;right: -90%}\n"],["\n  0% {left: -35%;right: 100%}\n  60% {left: 100%;right: -90%}\n  100% {left: 100%;right: -90%}\n"]))),m=d.keyframes(l||(l=o(["\n  0% {left: -200%;right: 100%}\n  60% {left: 107%;right: -8%}\n  100% {left: 107%;right: -8%}\n"],["\n  0% {left: -200%;right: 100%}\n  60% {left: 107%;right: -8%}\n  100% {left: 107%;right: -8%}\n"]))),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.height,i=n.color;return d.css(u||(u=o(["\n      position: absolute;\n      height: ",";\n      overflow: hidden;\n      background-color: ",";\n      background-clip: padding-box;\n      display: block;\n      border-radius: 2px;\n      will-change: left, right;\n      animation-fill-mode: forwards;\n      animation: "," 2.1s ","\n        ","\n        infinite;\n    "],["\n      position: absolute;\n      height: ",";\n      overflow: hidden;\n      background-color: ",";\n      background-clip: padding-box;\n      display: block;\n      border-radius: 2px;\n      will-change: left, right;\n      animation-fill-mode: forwards;\n      animation: "," 2.1s ","\n        ","\n        infinite;\n    "])),f.cssValue(r),i,1===e?h:m,2===e?"1.15s":"",1===e?"cubic-bezier(0.65, 0.815, 0.735, 0.395)":"cubic-bezier(0.165, 0.84, 0.44, 1)")},t.wrapper=function(){var e=t.props,n=e.width,r=e.height,i=e.color;return d.css(c||(c=o(["\n      position: relative;\n      width: ",";\n      height: ",";\n      overflow: hidden;\n      background-color: ",";\n      background-clip: padding-box;\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n      overflow: hidden;\n      background-color: ",";\n      background-clip: padding-box;\n    "])),f.cssValue(n),f.cssValue(r),f.calculateRgba(i,.2))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?d.jsx("div",{css:[this.wrapper(),n]},d.jsx("div",{css:this.style(1)}),d.jsx("div",{css:this.style(2)})):null},t.defaultProps=f.heightWidthDefaults(4,100),t}(p.PureComponent);t.Loader=g,t.default=g},6337(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  50% {transform: scale(0.75);opacity: 0.2}\n  100% {transform: scale(1);opacity: 1}\n"],["\n  50% {transform: scale(0.75);opacity: 0.2}\n  100% {transform: scale(1);opacity: 1}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.size,s=n.margin;return c.css(l||(l=o(["\n      display: inline-block;\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      animation: "," 0.7s "," infinite linear;\n      animation-fill-mode: both;\n    "],["\n      display: inline-block;\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      animation: "," 0.7s "," infinite linear;\n      animation-fill-mode: both;\n    "])),r,p.cssValue(i),p.cssValue(i),p.cssValue(s),d,e%2?"0s":"0.35s")},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[n]},c.jsx("div",{css:this.style(1)}),c.jsx("div",{css:this.style(2)}),c.jsx("div",{css:this.style(3)})):null},t.defaultProps=p.sizeMarginDefaults(15),t}(u.PureComponent);t.default=f},24025(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c=s(n(22155)),p=n(22066),d=n(3570),f=p.keyframes(a||(a=o(["\n  0%, 100% {transform: scale(0)}\n  50% {transform: scale(1.0)}\n"],["\n  0%, 100% {transform: scale(0)}\n  50% {transform: scale(1.0)}\n"]))),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.size;return p.css(l||(l=o(["\n      position: absolute;\n      height: ",";\n      width: ",";\n      background-color: ",";\n      border-radius: 100%;\n      opacity: 0.6;\n      top: 0;\n      left: 0;\n      animation-fill-mode: both;\n      animation: "," 2.1s "," infinite ease-in-out;\n    "],["\n      position: absolute;\n      height: ",";\n      width: ",";\n      background-color: ",";\n      border-radius: 100%;\n      opacity: 0.6;\n      top: 0;\n      left: 0;\n      animation-fill-mode: both;\n      animation: "," 2.1s "," infinite ease-in-out;\n    "])),d.cssValue(i),d.cssValue(i),r,f,1===e?"1s":"0s")},t.wrapper=function(){var e=t.props.size;return p.css(u||(u=o(["\n      position: relative;\n      width: ",";\n      height: ",";\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n    "])),d.cssValue(e),d.cssValue(e))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?p.jsx("div",{css:[this.wrapper(),n]},p.jsx("div",{css:this.style(1)}),p.jsx("div",{css:this.style(2)})):null},t.defaultProps=d.sizeDefaults(60),t}(c.PureComponent);t.default=h},49885(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c=s(n(22155)),p=n(22066),d=n(3570),f=p.keyframes(a||(a=o(["\n  0% {transform: rotate(0deg)}\n  50% {transform: rotate(180deg)}\n  100% {transform: rotate(360deg)}\n"],["\n  0% {transform: rotate(0deg)}\n  50% {transform: rotate(180deg)}\n  100% {transform: rotate(360deg)}\n"]))),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.size,i=n.color,s=d.parseLengthAndUnit(r),a=s.value,u=s.unit;return p.css(l||(l=o(["\n      position: absolute;\n      height: ",";\n      width: ",";\n      border: 1px solid ",";\n      border-radius: 100%;\n      transition: 2s;\n      border-bottom: none;\n      border-right: none;\n      top: ","%;\n      left: ",'%;\n      animation-fill-mode: "";\n      animation: '," 1s ","s infinite linear;\n    "],["\n      position: absolute;\n      height: ",";\n      width: ",";\n      border: 1px solid ",";\n      border-radius: 100%;\n      transition: 2s;\n      border-bottom: none;\n      border-right: none;\n      top: ","%;\n      left: ",'%;\n      animation-fill-mode: "";\n      animation: '," 1s ","s infinite linear;\n    "])),""+a*(1-e/10)+u,""+a*(1-e/10)+u,i,.7*e*2.5,.35*e*2.5,f,.2*e)},t.wrapper=function(){var e=t.props.size;return p.css(u||(u=o(["\n      position: relative;\n      width: ",";\n      height: ",";\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n    "])),d.cssValue(e),d.cssValue(e))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?p.jsx("div",{css:[this.wrapper(),n]},p.jsx("div",{css:this.style(0)}),p.jsx("div",{css:this.style(1)}),p.jsx("div",{css:this.style(2)}),p.jsx("div",{css:this.style(3)}),p.jsx("div",{css:this.style(4)})):null},t.defaultProps=d.sizeDefaults(50),t}(c.PureComponent);t.default=h},78827(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p,d=s(n(22155)),f=n(22066),h=n(3570),m=f.keyframes(a||(a=o(["\n  0% {transform:translate(0, -1em) rotate(-45deg)}\n  5% {transform:translate(0, -1em) rotate(-50deg)}\n  20% {transform:translate(1em, -2em) rotate(47deg)}\n  25% {transform:translate(1em, -2em) rotate(45deg)}\n  30% {transform:translate(1em, -2em) rotate(40deg)}\n  45% {transform:translate(2em, -3em) rotate(137deg)}\n  50% {transform:translate(2em, -3em) rotate(135deg)}\n  55% {transform:translate(2em, -3em) rotate(130deg)}\n  70% {transform:translate(3em, -4em) rotate(217deg)}\n  75% {transform:translate(3em, -4em) rotate(220deg)}\n  100% {transform:translate(0, -1em) rotate(-225deg)}\n"],["\n  0% {transform:translate(0, -1em) rotate(-45deg)}\n  5% {transform:translate(0, -1em) rotate(-50deg)}\n  20% {transform:translate(1em, -2em) rotate(47deg)}\n  25% {transform:translate(1em, -2em) rotate(45deg)}\n  30% {transform:translate(1em, -2em) rotate(40deg)}\n  45% {transform:translate(2em, -3em) rotate(137deg)}\n  50% {transform:translate(2em, -3em) rotate(135deg)}\n  55% {transform:translate(2em, -3em) rotate(130deg)}\n  70% {transform:translate(3em, -4em) rotate(217deg)}\n  75% {transform:translate(3em, -4em) rotate(220deg)}\n  100% {transform:translate(0, -1em) rotate(-225deg)}\n"]))),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(){var e=t.props.color;return f.css(l||(l=o(["\n      position: absolute;\n      left: 0;\n      bottom: -0.1em;\n      height: 1em;\n      width: 1em;\n      background-color: transparent;\n      border-radius: 15%;\n      border: 0.25em solid ",";\n      transform: translate(0, -1em) rotate(-45deg);\n      animation-fill-mode: both;\n      animation: "," 2.5s infinite cubic-bezier(0.79, 0, 0.47, 0.97);\n    "],["\n      position: absolute;\n      left: 0;\n      bottom: -0.1em;\n      height: 1em;\n      width: 1em;\n      background-color: transparent;\n      border-radius: 15%;\n      border: 0.25em solid ",";\n      transform: translate(0, -1em) rotate(-45deg);\n      animation-fill-mode: both;\n      animation: "," 2.5s infinite cubic-bezier(0.79, 0, 0.47, 0.97);\n    "])),e,m)},t.wrapper=function(){var e=t.props.size;return f.css(u||(u=o(["\n      position: absolute;\n      top: 50%;\n      left: 50%;\n      margin-top: -2.7em;\n      margin-left: -2.7em;\n      width: 5.4em;\n      height: 5.4em;\n      font-size: ",";\n    "],["\n      position: absolute;\n      top: 50%;\n      left: 50%;\n      margin-top: -2.7em;\n      margin-left: -2.7em;\n      width: 5.4em;\n      height: 5.4em;\n      font-size: ",";\n    "])),h.cssValue(e))},t.hill=function(){var e=t.props.color;return f.css(c||(c=o(["\n      position: absolute;\n      width: 7.1em;\n      height: 7.1em;\n      top: 1.7em;\n      left: 1.7em;\n      border-left: 0.25em solid ",";\n      transform: rotate(45deg);\n    "],["\n      position: absolute;\n      width: 7.1em;\n      height: 7.1em;\n      top: 1.7em;\n      left: 1.7em;\n      border-left: 0.25em solid ",";\n      transform: rotate(45deg);\n    "])),e)},t.container=function(){return f.css(p||(p=o(["\n      position: relative;\n      width: 7.1em;\n      height: 7.1em;\n    "],["\n      position: relative;\n      width: 7.1em;\n      height: 7.1em;\n    "])))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?f.jsx("div",{css:[this.container(),n]},f.jsx("div",{css:this.wrapper()},f.jsx("div",{css:this.style()}),f.jsx("div",{css:this.hill()}))):null},t.defaultProps=h.sizeDefaults(15),t}(d.PureComponent);t.default=g},44387(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  0% {transform: rotate(0deg) scale(1)}\n  50% {transform: rotate(180deg) scale(0.8)}\n  100% {transform: rotate(360deg) scale(1)}\n"],["\n  0% {transform: rotate(0deg) scale(1)}\n  50% {transform: rotate(180deg) scale(0.8)}\n  100% {transform: rotate(360deg) scale(1)}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(){var e=t.props,n=e.size,r=e.color;return c.css(l||(l=o(["\n      background: transparent !important;\n      width: ",";\n      height: ",";\n      border-radius: 100%;\n      border: 2px solid;\n      border-color: ",";\n      border-bottom-color: transparent;\n      display: inline-block;\n      animation: "," 0.75s 0s infinite linear;\n      animation-fill-mode: both;\n    "],["\n      background: transparent !important;\n      width: ",";\n      height: ",";\n      border-radius: 100%;\n      border: 2px solid;\n      border-color: ",";\n      border-bottom-color: transparent;\n      display: inline-block;\n      animation: "," 0.75s 0s infinite linear;\n      animation-fill-mode: both;\n    "])),p.cssValue(n),p.cssValue(n),r,d)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[this.style(),n]}):null},t.defaultProps=p.sizeDefaults(35),t}(u.PureComponent);t.default=f},33433(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  100% { transform: rotate(360deg) }\n"],["\n  100% { transform: rotate(360deg) }\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrapper=function(){var e=t.props,n=e.size,r=e.color,i=p.parseLengthAndUnit(n),s=i.value,a=i.unit;return c.css(l||(l=o(["\n      position: relative;\n      width: ",";\n      height: ",";\n      background-color: transparent;\n      box-shadow: inset 0px 0px 0px 2px ",';\n      border-radius: 50%;\n\n      &:after,\n      &:before {\n        position: absolute;\n        content: "";\n        background-color: ',";\n      }\n\n      &:after {\n        width: ","px;\n        height: 2px;\n        top: ","px;\n        left: ","px;\n        transform-origin: 1px 1px;\n        animation: "," 2s linear infinite;\n      }\n\n      &:before {\n        width: ","px;\n        height: 2px;\n        top: ","px;\n        left: ","px;\n        transform-origin: 1px 1px;\n        animation: "," 8s linear infinite;\n      }\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n      background-color: transparent;\n      box-shadow: inset 0px 0px 0px 2px ",';\n      border-radius: 50%;\n\n      &:after,\n      &:before {\n        position: absolute;\n        content: "";\n        background-color: ',";\n      }\n\n      &:after {\n        width: ","px;\n        height: 2px;\n        top: ","px;\n        left: ","px;\n        transform-origin: 1px 1px;\n        animation: "," 2s linear infinite;\n      }\n\n      &:before {\n        width: ","px;\n        height: 2px;\n        top: ","px;\n        left: ","px;\n        transform-origin: 1px 1px;\n        animation: "," 8s linear infinite;\n      }\n    "])),""+s+a,""+s+a,r,r,s/2.4,s/2-1,s/2-1,d,s/3,s/2-1,s/2-1,d)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[this.wrapper(),n]}):null},t.defaultProps=p.sizeDefaults(50),t}(u.PureComponent);t.default=f},50236(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p=s(n(22155)),d=n(22066),f=n(3570),h=d.keyframes(a||(a=o(["\n  100% {transform: rotate(360deg)}\n"],["\n  100% {transform: rotate(360deg)}\n"]))),m=d.keyframes(l||(l=o(["\n  0%, 100% {transform: scale(0)}\n  50% {transform: scale(1.0)}\n"],["\n  0%, 100% {transform: scale(0)}\n  50% {transform: scale(1.0)}\n"]))),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.size,i=n.color,s=f.parseLengthAndUnit(r),a=s.value,l=s.unit;return d.css(u||(u=o(["\n      position: absolute;\n      top: ",";\n      bottom: ",";\n      height: ",";\n      width: ",";\n      background-color: ",";\n      border-radius: 100%;\n      animation-fill-mode: forwards;\n      animation: "," 2s "," infinite linear;\n    "],["\n      position: absolute;\n      top: ",";\n      bottom: ",";\n      height: ",";\n      width: ",";\n      background-color: ",";\n      border-radius: 100%;\n      animation-fill-mode: forwards;\n      animation: "," 2s "," infinite linear;\n    "])),e%2?"0":"auto",e%2?"auto":"0",""+a/2+l,""+a/2+l,i,m,2===e?"-1s":"0s")},t.wrapper=function(){var e=t.props.size;return d.css(c||(c=o(["\n      position: relative;\n      width: ",";\n      height: ",";\n      animation-fill-mode: forwards;\n      animation: "," 2s 0s infinite linear;\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n      animation-fill-mode: forwards;\n      animation: "," 2s 0s infinite linear;\n    "])),f.cssValue(e),f.cssValue(e),h)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?d.jsx("div",{css:[this.wrapper(),n]},d.jsx("div",{css:this.style(1)}),d.jsx("div",{css:this.style(2)})):null},t.defaultProps=f.sizeDefaults(60),t}(p.PureComponent);t.default=g},4123(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p,d,f,h,m,g,y,v=s(n(22155)),b=n(22066),w=n(3570),C=b.keyframes(a||(a=o(["\n  50% {opacity: 0.3}\n  100% {opacity: 1}\n"],["\n  50% {opacity: 0.3}\n  100% {opacity: 1}\n"]))),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.radius=function(){var e=t.props.margin;return w.parseLengthAndUnit(e).value+18},t.quarter=function(){return t.radius()/2+t.radius()/5.5},t.style=function(e){var n=t.props,r=n.height,i=n.width,s=n.margin,a=n.color,u=n.radius;return b.css(l||(l=o(["\n      position: absolute;\n      width: ",";\n      height: ",";\n      margin: ",";\n      background-color: ",";\n      border-radius: ",';\n      transition: 2s;\n      animation-fill-mode: "both";\n      animation: '," 1.2s ","s infinite ease-in-out;\n    "],["\n      position: absolute;\n      width: ",";\n      height: ",";\n      margin: ",";\n      background-color: ",";\n      border-radius: ",';\n      transition: 2s;\n      animation-fill-mode: "both";\n      animation: '," 1.2s ","s infinite ease-in-out;\n    "])),w.cssValue(i),w.cssValue(r),w.cssValue(s),a,w.cssValue(u),C,.12*e)},t.wrapper=function(){return b.css(u||(u=o(["\n      position: relative;\n      font-size: 0;\n      top: ","px;\n      left: ","px;\n      width: ","px;\n      height: ","px;\n    "],["\n      position: relative;\n      font-size: 0;\n      top: ","px;\n      left: ","px;\n      width: ","px;\n      height: ","px;\n    "])),t.radius(),t.radius(),3*t.radius(),3*t.radius())},t.a=function(){return b.css(c||(c=o(["\n    ",";\n    top: ","px;\n    left: 0;\n  "],["\n    ",";\n    top: ","px;\n    left: 0;\n  "])),t.style(1),t.radius())},t.b=function(){return b.css(p||(p=o(["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(-45deg);\n  "],["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(-45deg);\n  "])),t.style(2),t.quarter(),t.quarter())},t.c=function(){return b.css(d||(d=o(["\n    ",";\n    top: 0;\n    left: ","px;\n    transform: rotate(90deg);\n  "],["\n    ",";\n    top: 0;\n    left: ","px;\n    transform: rotate(90deg);\n  "])),t.style(3),t.radius())},t.d=function(){return b.css(f||(f=o(["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(45deg);\n  "],["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(45deg);\n  "])),t.style(4),-t.quarter(),t.quarter())},t.e=function(){return b.css(h||(h=o(["\n    ",";\n    top: ","px;\n    left: 0;\n  "],["\n    ",";\n    top: ","px;\n    left: 0;\n  "])),t.style(5),-t.radius())},t.f=function(){return b.css(m||(m=o(["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(-45deg);\n  "],["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(-45deg);\n  "])),t.style(6),-t.quarter(),-t.quarter())},t.g=function(){return b.css(g||(g=o(["\n    ",";\n    top: 0;\n    left: ","px;\n    transform: rotate(90deg);\n  "],["\n    ",";\n    top: 0;\n    left: ","px;\n    transform: rotate(90deg);\n  "])),t.style(7),-t.radius())},t.h=function(){return b.css(y||(y=o(["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(45deg);\n  "],["\n    ",";\n    top: ","px;\n    left: ","px;\n    transform: rotate(45deg);\n  "])),t.style(8),t.quarter(),-t.quarter())},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?b.jsx("div",{css:[this.wrapper(),n]},b.jsx("div",{css:this.a()}),b.jsx("div",{css:this.b()}),b.jsx("div",{css:this.c()}),b.jsx("div",{css:this.d()}),b.jsx("div",{css:this.e()}),b.jsx("div",{css:this.f()}),b.jsx("div",{css:this.g()}),b.jsx("div",{css:this.h()})):null},t.defaultProps=w.heightWidthRadiusDefaults(15,5,2),t}(v.PureComponent);t.default=_},71621(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c=s(n(22155)),p=n(22066),d=n(3570),f=p.keyframes(a||(a=o(["\n  0% {transform: scale(1)}\n  50% {transform: scale(0.5); opacity: 0.7}\n  100% {transform: scale(1);opacity: 1}\n"],["\n  0% {transform: scale(1)}\n  50% {transform: scale(0.5); opacity: 0.7}\n  100% {transform: scale(1);opacity: 1}\n"]))),h=function(e){return Math.random()*e},m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.size,s=n.margin;return p.css(l||(l=o(["\n      display: inline-block;\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",';\n      border-radius: 100%;\n      animation-fill-mode: "both";\n      animation: '," ","s ","s infinite ease;\n    "],["\n      display: inline-block;\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",';\n      border-radius: 100%;\n      animation-fill-mode: "both";\n      animation: '," ","s ","s infinite ease;\n    "])),r,d.cssValue(i),d.cssValue(i),d.cssValue(s),f,e/100+.6,e/100-.2)},t.wrapper=function(){var e=t.props,n=e.size,r=e.margin,i=d.parseLengthAndUnit(n),s=d.parseLengthAndUnit(r),a=""+(3*parseFloat(i.value.toString())+6*parseFloat(s.value.toString()))+i.unit;return p.css(u||(u=o(["\n      width: ",";\n      font-size: 0;\n    "],["\n      width: ",";\n      font-size: 0;\n    "])),a)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?p.jsx("div",{css:[this.wrapper(),n]},p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))}),p.jsx("div",{css:this.style(h(100))})):null},t.defaultProps=d.sizeMarginDefaults(15),t}(c.PureComponent);t.default=m},12965(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p=s(n(22155)),d=n(22066),f=n(3570),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.thickness=function(){var e=t.props.size;return f.parseLengthAndUnit(e).value/5},t.lat=function(){var e=t.props.size;return(f.parseLengthAndUnit(e).value-t.thickness())/2},t.offset=function(){return t.lat()-t.thickness()},t.color=function(){var e=t.props.color;return f.calculateRgba(e,.75)},t.before=function(){var e=t.props.size,n=t.color(),r=t.lat(),o=t.thickness(),s=t.offset();return d.keyframes(a||(a=i(["\n      0% {width: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      35% {width: ",";box-shadow: 0 ","px ",", 0 ","px ","}\n      70% {width: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      100% {box-shadow: ","px ","px ",", ","px ","px ","}\n    "],["\n      0% {width: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      35% {width: ",";box-shadow: 0 ","px ",", 0 ","px ","}\n      70% {width: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      100% {box-shadow: ","px ","px ",", ","px ","px ","}\n    "])),o,r,-s,n,-r,s,n,f.cssValue(e),-s,n,s,n,o,-r,-s,n,r,s,n,r,-s,n,-r,s,n)},t.after=function(){var e=t.props.size,n=t.color(),r=t.lat(),o=t.thickness(),s=t.offset();return d.keyframes(l||(l=i(["\n      0% {height: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      35% {height: ",";box-shadow: ","px 0 ",", ","px 0 ","}\n      70% {height: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      100% {box-shadow: ","px ","px ",", ","px ","px ","}\n    "],["\n      0% {height: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      35% {height: ",";box-shadow: ","px 0 ",", ","px 0 ","}\n      70% {height: ","px;box-shadow: ","px ","px ",", ","px ","px ","}\n      100% {box-shadow: ","px ","px ",", ","px ","px ","}\n    "])),o,s,r,n,-s,-r,n,f.cssValue(e),s,n,-s,n,o,s,-r,n,-s,r,n,s,r,n,-s,-r,n)},t.style=function(e){var n=t.props.size,r=f.parseLengthAndUnit(n),o=r.value,s=r.unit;return d.css(u||(u=i(['\n      position: absolute;\n      content: "";\n      top: 50%;\n      left: 50%;\n      display: block;\n      width: ',";\n      height: ",";\n      border-radius: ",";\n      transform: translate(-50%, -50%);\n      animation-fill-mode: none;\n      animation: "," 2s infinite;\n    "],['\n      position: absolute;\n      content: "";\n      top: 50%;\n      left: 50%;\n      display: block;\n      width: ',";\n      height: ",";\n      border-radius: ",";\n      transform: translate(-50%, -50%);\n      animation-fill-mode: none;\n      animation: "," 2s infinite;\n    "])),""+o/5+s,""+o/5+s,""+o/10+s,1===e?t.before():t.after())},t.wrapper=function(){var e=t.props.size;return d.css(c||(c=i(["\n      position: relative;\n      width: ",";\n      height: ",";\n      transform: rotate(165deg);\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n      transform: rotate(165deg);\n    "])),f.cssValue(e),f.cssValue(e))},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?d.jsx("div",{css:[this.wrapper(),n]},d.jsx("div",{css:this.style(1)}),d.jsx("div",{css:this.style(2)})):null},t.defaultProps=f.sizeDefaults(50),t}(p.PureComponent);t.default=h},18172(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p,d=s(n(22155)),f=n(22066),h=n(3570),m=f.keyframes(a||(a=o(["\n  100% {transform: rotate(360deg)}\n"],["\n  100% {transform: rotate(360deg)}\n"]))),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.moonSize=function(){var e=t.props.size;return h.parseLengthAndUnit(e).value/7},t.ballStyle=function(e){return f.css(l||(l=o(["\n      width: ",";\n      height: ",";\n      border-radius: 100%;\n    "],["\n      width: ",";\n      height: ",";\n      border-radius: 100%;\n    "])),h.cssValue(e),h.cssValue(e))},t.wrapper=function(){var e=t.props.size,n=h.parseLengthAndUnit(e),r=n.value,i=n.unit;return f.css(u||(u=o(["\n      position: relative;\n      width: ",";\n      height: ",";\n      animation: "," 0.6s 0s infinite linear;\n      animation-fill-mode: forwards;\n    "],["\n      position: relative;\n      width: ",";\n      height: ",";\n      animation: "," 0.6s 0s infinite linear;\n      animation-fill-mode: forwards;\n    "])),""+(r+2*t.moonSize())+i,""+(r+2*t.moonSize())+i,m)},t.ball=function(){var e=t.props,n=e.color,r=e.size,i=h.parseLengthAndUnit(r),s=i.value,a=i.unit;return f.css(c||(c=o(["\n      ",";\n      background-color: ",";\n      opacity: 0.8;\n      position: absolute;\n      top: ",";\n      animation: "," 0.6s 0s infinite linear;\n      animation-fill-mode: forwards;\n    "],["\n      ",";\n      background-color: ",";\n      opacity: 0.8;\n      position: absolute;\n      top: ",";\n      animation: "," 0.6s 0s infinite linear;\n      animation-fill-mode: forwards;\n    "])),t.ballStyle(t.moonSize()),n,""+(s/2-t.moonSize()/2)+a,m)},t.circle=function(){var e=t.props,n=e.size,r=e.color,i=h.parseLengthAndUnit(n).value;return f.css(p||(p=o(["\n      ",";\n      border: ","px solid ",";\n      opacity: 0.1;\n      box-sizing: content-box;\n    "],["\n      ",";\n      border: ","px solid ",";\n      opacity: 0.1;\n      box-sizing: content-box;\n    "])),t.ballStyle(i),t.moonSize(),r)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?f.jsx("div",{css:[this.wrapper(),n]},f.jsx("div",{css:this.ball()}),f.jsx("div",{css:this.circle()})):null},t.defaultProps=h.sizeDefaults(60),t}(d.PureComponent);t.default=g},14241(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p,d,f=s(n(22155)),h=n(22066),m=n(3570),g=[h.keyframes(a||(a=o(["\n    0% {transform: rotate(0deg)}\n    50% {transform: rotate(-44deg)}\n  "],["\n    0% {transform: rotate(0deg)}\n    50% {transform: rotate(-44deg)}\n  "]))),h.keyframes(l||(l=o(["\n    0% {transform: rotate(0deg)}\n    50% {transform: rotate(44deg)}\n  "],["\n    0% {transform: rotate(0deg)}\n    50% {transform: rotate(44deg)}\n  "])))],y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ball=function(){var e=t.props.size,n=m.parseLengthAndUnit(e),r=n.value,i=n.unit;return h.keyframes(u||(u=o(["\n      75% {opacity: 0.7}\n      100% {transform: translate(",", ",")}\n    "],["\n      75% {opacity: 0.7}\n      100% {transform: translate(",", ",")}\n    "])),""+-4*r+i,""+-r/4+i)},t.ballStyle=function(e){var n=t.props,r=n.color,i=n.margin,s=n.size,a=m.parseLengthAndUnit(s),l=a.value,u=a.unit;return h.css(c||(c=o(["\n      width: ",";\n      height: ",";\n      background-color: ",";\n      margin: ",";\n      border-radius: 100%;\n      transform: translate(0, ",");\n      position: absolute;\n      top: ",";\n      left: ",";\n      animation: "," 1s ","s infinite linear;\n      animation-fill-mode: both;\n    "],["\n      width: ",";\n      height: ",";\n      background-color: ",";\n      margin: ",";\n      border-radius: 100%;\n      transform: translate(0, ",");\n      position: absolute;\n      top: ",";\n      left: ",";\n      animation: "," 1s ","s infinite linear;\n      animation-fill-mode: both;\n    "])),""+l/3+u,""+l/3+u,r,m.cssValue(i),""+-l/4+u,""+l+u,""+4*l+u,t.ball(),.25*e)},t.s1=function(){var e=t.props.size;return m.cssValue(e)+" solid transparent"},t.s2=function(){var e=t.props,n=e.size,r=e.color;return m.cssValue(n)+" solid "+r},t.pacmanStyle=function(e){var n=t.props.size,r=t.s1(),i=t.s2();return h.css(p||(p=o(["\n      width: 0;\n      height: 0;\n      border-right: ",";\n      border-top: ",";\n      border-left: ",";\n      border-bottom: ",";\n      border-radius: ",";\n      position: absolute;\n      animation: "," 0.8s infinite ease-in-out;\n      animation-fill-mode: both;\n    "],["\n      width: 0;\n      height: 0;\n      border-right: ",";\n      border-top: ",";\n      border-left: ",";\n      border-bottom: ",";\n      border-radius: ",";\n      position: absolute;\n      animation: "," 0.8s infinite ease-in-out;\n      animation-fill-mode: both;\n    "])),r,0===e?r:i,i,0===e?i:r,m.cssValue(n),g[e])},t.wrapper=function(){var e=t.props.size;return h.css(d||(d=o(["\n      position: relative;\n      font-size: 0;\n      height: ",";\n      width: ",";\n    "],["\n      position: relative;\n      font-size: 0;\n      height: ",";\n      width: ",";\n    "])),m.cssValue(e),m.cssValue(e))},t.pac=function(){return t.pacmanStyle(0)},t.man=function(){return t.pacmanStyle(1)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?h.jsx("div",{css:[this.wrapper(),n]},h.jsx("div",{css:this.pac()}),h.jsx("div",{css:this.man()}),h.jsx("div",{css:this.ballStyle(2)}),h.jsx("div",{css:this.ballStyle(3)}),h.jsx("div",{css:this.ballStyle(4)}),h.jsx("div",{css:this.ballStyle(5)})):null},t.defaultProps=m.sizeMarginDefaults(25),t}(f.PureComponent);t.default=y},11712(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p,d,f,h,m=s(n(22155)),g=n(22066),y=n(3570),v=[1,3,5],b=[g.keyframes(a||(a=o(["\n      25% {transform: translateX(-","rem) scale(0.75)}\n      50% {transform: translateX(-","rem) scale(0.6)}\n      75% {transform: translateX(-","rem) scale(0.5)}\n      95% {transform: translateX(0rem) scale(1)}\n    "],["\n      25% {transform: translateX(-","rem) scale(0.75)}\n      50% {transform: translateX(-","rem) scale(0.6)}\n      75% {transform: translateX(-","rem) scale(0.5)}\n      95% {transform: translateX(0rem) scale(1)}\n    "])),v[0],v[1],v[2]),g.keyframes(l||(l=o(["\n      25% {transform: translateX(-","rem) scale(0.75)}\n      50% {transform: translateX(-","rem) scale(0.6)}\n      75% {transform: translateX(-","rem) scale(0.6)}\n      95% {transform: translateX(0rem) scale(1)}\n    "],["\n      25% {transform: translateX(-","rem) scale(0.75)}\n      50% {transform: translateX(-","rem) scale(0.6)}\n      75% {transform: translateX(-","rem) scale(0.6)}\n      95% {transform: translateX(0rem) scale(1)}\n    "])),v[0],v[1],v[1]),g.keyframes(u||(u=o(["\n      25% {transform: translateX(-","rem) scale(0.75)}\n      75% {transform: translateX(-","rem) scale(0.75)}\n      95% {transform: translateX(0rem) scale(1)}\n    "],["\n      25% {transform: translateX(-","rem) scale(0.75)}\n      75% {transform: translateX(-","rem) scale(0.75)}\n      95% {transform: translateX(0rem) scale(1)}\n    "])),v[0],v[0]),g.keyframes(c||(c=o(["\n      25% {transform: translateX(","rem) scale(0.75)}\n      75% {transform: translateX(","rem) scale(0.75)}\n      95% {transform: translateX(0rem) scale(1)}\n    "],["\n      25% {transform: translateX(","rem) scale(0.75)}\n      75% {transform: translateX(","rem) scale(0.75)}\n      95% {transform: translateX(0rem) scale(1)}\n    "])),v[0],v[0]),g.keyframes(p||(p=o(["\n      25% {transform: translateX(","rem) scale(0.75)}\n      50% {transform: translateX(","rem) scale(0.6)}\n      75% {transform: translateX(","rem) scale(0.6)}\n      95% {transform: translateX(0rem) scale(1)}\n    "],["\n      25% {transform: translateX(","rem) scale(0.75)}\n      50% {transform: translateX(","rem) scale(0.6)}\n      75% {transform: translateX(","rem) scale(0.6)}\n      95% {transform: translateX(0rem) scale(1)}\n    "])),v[0],v[1],v[1]),g.keyframes(d||(d=o(["\n      25% {transform: translateX(","rem) scale(0.75)}\n      50% {transform: translateX(","rem) scale(0.6)}\n      75% {transform: translateX(","rem) scale(0.5)}\n      95% {transform: translateX(0rem) scale(1)}\n    "],["\n      25% {transform: translateX(","rem) scale(0.75)}\n      50% {transform: translateX(","rem) scale(0.6)}\n      75% {transform: translateX(","rem) scale(0.5)}\n      95% {transform: translateX(0rem) scale(1)}\n    "])),v[0],v[1],v[2])],w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.size,i=n.color,s=y.parseLengthAndUnit(r),a=s.value,l=s.unit;return g.css(f||(f=o(["\n      position: absolute;\n      font-size: ",";\n      width: ",";\n      height: ",";\n      background: ",";\n      border-radius: 50%;\n      animation: "," 1.5s infinite;\n      animation-fill-mode: forwards;\n    "],["\n      position: absolute;\n      font-size: ",";\n      width: ",";\n      height: ",";\n      background: ",";\n      border-radius: 50%;\n      animation: "," 1.5s infinite;\n      animation-fill-mode: forwards;\n    "])),""+a/3+l,""+a+l,""+a+l,i,b[e])},t.wrapper=function(){return g.css(h||(h=o(["\n      position: relative;\n    "],["\n      position: relative;\n    "])))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?g.jsx("div",{css:[this.wrapper(),n]},g.jsx("div",{css:this.style(0)}),g.jsx("div",{css:this.style(1)}),g.jsx("div",{css:this.style(2)}),g.jsx("div",{css:this.style(3)}),g.jsx("div",{css:this.style(4)}),g.jsx("div",{css:this.style(5)})):null},t.defaultProps=y.sizeDefaults(15),t}(m.PureComponent);t.default=w},52350(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  0% {transform: scale(1);opacity: 1}\n  45% {transform: scale(0.1);opacity: 0.7}\n  80% {transform: scale(1);opacity: 1}\n"],["\n  0% {transform: scale(1);opacity: 1}\n  45% {transform: scale(0.1);opacity: 0.7}\n  80% {transform: scale(1);opacity: 1}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.size,s=n.margin;return c.css(l||(l=o(["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      display: inline-block;\n      animation: "," 0.75s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n      animation-fill-mode: both;\n    "],["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      display: inline-block;\n      animation: "," 0.75s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n      animation-fill-mode: both;\n    "])),r,p.cssValue(i),p.cssValue(i),p.cssValue(s),d,.12*e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[n]},c.jsx("div",{css:this.style(1)}),c.jsx("div",{css:this.style(2)}),c.jsx("div",{css:this.style(3)})):null},t.defaultProps=p.sizeMarginDefaults(15),t}(u.PureComponent);t.default=f},95475(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p=s(n(22155)),d=n(22066),f=n(3570),h=d.keyframes(a||(a=o(["\n  0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)}\n  100% {transform: rotateX(180deg) rotateY(360deg) rotateZ(360deg)}\n"],["\n  0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)}\n  100% {transform: rotateX(180deg) rotateY(360deg) rotateZ(360deg)}\n"]))),m=d.keyframes(l||(l=o(["\n  0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)}\n  100% {transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg)}\n"],["\n  0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)}\n  100% {transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg)}\n"]))),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.size,i=n.color,s=f.parseLengthAndUnit(r),a=s.value,l=s.unit;return d.css(u||(u=o(["\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: ",";\n      height: ",";\n      border: "," solid ",";\n      opacity: 0.4;\n      border-radius: 100%;\n      animation-fill-mode: forwards;\n      perspective: 800px;\n      animation: "," 2s 0s infinite linear;\n    "],["\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: ",";\n      height: ",";\n      border: "," solid ",";\n      opacity: 0.4;\n      border-radius: 100%;\n      animation-fill-mode: forwards;\n      perspective: 800px;\n      animation: "," 2s 0s infinite linear;\n    "])),""+a+l,""+a+l,""+a/10+l,i,1===e?h:m)},t.wrapper=function(){var e=t.props.size;return d.css(c||(c=o(["\n      width: ",";\n      height: ",";\n      position: relative;\n    "],["\n      width: ",";\n      height: ",";\n      position: relative;\n    "])),f.cssValue(e),f.cssValue(e))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?d.jsx("div",{css:[this.wrapper(),n]},d.jsx("div",{css:this.style(1)}),d.jsx("div",{css:this.style(2)})):null},t.defaultProps=f.sizeDefaults(60),t}(p.PureComponent);t.default=g},24348(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c=s(n(22155)),p=n(22066),d=n(3570),f=p.keyframes(a||(a=o(["\n  0% {transform: scale(1.1)}\n  25% {transform: translateY(-","px)}\n  50% {transform: scale(0.4)}\n  75% {transform: translateY(","px)}\n  100% {transform: translateY(0) scale(1.0)}\n"],["\n  0% {transform: scale(1.1)}\n  25% {transform: translateY(-","px)}\n  50% {transform: scale(0.4)}\n  75% {transform: translateY(","px)}\n  100% {transform: translateY(0) scale(1.0)}\n"])),30,30),h=p.keyframes(l||(l=o(["\n  0% {transform: scale(0.4)}\n  25% {transform: translateY(","px)}\n  50% {transform: scale(1.1)}\n  75% {transform: translateY(","px)}\n  100% {transform: translateY(0) scale(0.75)}\n"],["\n  0% {transform: scale(0.4)}\n  25% {transform: translateY(","px)}\n  50% {transform: scale(1.1)}\n  75% {transform: translateY(","px)}\n  100% {transform: translateY(0) scale(0.75)}\n"])),30,-30),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.size,s=n.margin;return p.css(u||(u=o(["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      display: inline-block;\n      animation: "," 1s 0s infinite cubic-bezier(0.15, 0.46, 0.9, 0.6);\n      animation-fill-mode: both;\n    "],["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      display: inline-block;\n      animation: "," 1s 0s infinite cubic-bezier(0.15, 0.46, 0.9, 0.6);\n      animation-fill-mode: both;\n    "])),r,d.cssValue(i),d.cssValue(i),d.cssValue(s),e%2==0?f:h)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?p.jsx("div",{css:[n]},p.jsx("div",{css:this.style(1)}),p.jsx("div",{css:this.style(2)}),p.jsx("div",{css:this.style(3)}),p.jsx("div",{css:this.style(4)}),p.jsx("div",{css:this.style(5)})):null},t.defaultProps=d.sizeMarginDefaults(15),t}(c.PureComponent);t.default=m},4434(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u,c,p,d,f=s(n(22155)),h=n(22066),m=n(3570),g=h.keyframes(a||(a=o(["\n  0% {transform: rotate(0deg)}\n  50% {transform: rotate(180deg)}\n  100% {transform: rotate(360deg)}\n"],["\n  0% {transform: rotate(0deg)}\n  50% {transform: rotate(180deg)}\n  100% {transform: rotate(360deg)}\n"]))),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props.margin,r=(e%2?-1:1)*(26+m.parseLengthAndUnit(n).value);return h.css(l||(l=o(["\n      opacity: 0.8;\n      position: absolute;\n      top: 0;\n      left: ","px;\n    "],["\n      opacity: 0.8;\n      position: absolute;\n      top: 0;\n      left: ","px;\n    "])),r)},t.ball=function(){var e=t.props,n=e.color,r=e.size;return h.css(u||(u=o(["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      border-radius: 100%;\n    "],["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      border-radius: 100%;\n    "])),n,m.cssValue(r),m.cssValue(r))},t.wrapper=function(){return h.css(c||(c=o(["\n      ",";\n      display: inline-block;\n      position: relative;\n      animation-fill-mode: both;\n      animation: "," 1s 0s infinite cubic-bezier(0.7, -0.13, 0.22, 0.86);\n    "],["\n      ",";\n      display: inline-block;\n      position: relative;\n      animation-fill-mode: both;\n      animation: "," 1s 0s infinite cubic-bezier(0.7, -0.13, 0.22, 0.86);\n    "])),t.ball(),g)},t.long=function(){return h.css(p||(p=o(["\n    ",";\n    ",";\n  "],["\n    ",";\n    ",";\n  "])),t.ball(),t.style(1))},t.short=function(){return h.css(d||(d=o(["\n    ",";\n    ",";\n  "],["\n    ",";\n    ",";\n  "])),t.ball(),t.style(2))},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?h.jsx("div",{css:[this.wrapper(),n]},h.jsx("div",{css:this.long()}),h.jsx("div",{css:this.short()})):null},t.defaultProps=m.sizeMarginDefaults(15),t}(f.PureComponent);t.default=y},81093(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  0% {transform: scaley(1.0)}\n  50% {transform: scaley(0.4)}\n  100% {transform: scaley(1.0)}\n"],["\n  0% {transform: scaley(1.0)}\n  50% {transform: scaley(0.4)}\n  100% {transform: scaley(1.0)}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.width,s=n.height,a=n.margin,u=n.radius;return c.css(l||(l=o(["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: ",";\n      display: inline-block;\n      animation: "," 1s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n      animation-fill-mode: both;\n    "],["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: ",";\n      display: inline-block;\n      animation: "," 1s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n      animation-fill-mode: both;\n    "])),r,p.cssValue(i),p.cssValue(s),p.cssValue(a),p.cssValue(u),d,.1*e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[n]},c.jsx("div",{css:this.style(1)}),c.jsx("div",{css:this.style(2)}),c.jsx("div",{css:this.style(3)}),c.jsx("div",{css:this.style(4)}),c.jsx("div",{css:this.style(5)})):null},t.defaultProps=p.heightWidthRadiusDefaults(35,4,2),t}(u.PureComponent);t.default=f},12759(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  25% {transform: perspective(100px) rotateX(180deg) rotateY(0)}\n  50% {transform: perspective(100px) rotateX(180deg) rotateY(180deg)}\n  75% {transform: perspective(100px) rotateX(0) rotateY(180deg)}\n  100% {transform: perspective(100px) rotateX(0) rotateY(0)}\n"],["\n  25% {transform: perspective(100px) rotateX(180deg) rotateY(0)}\n  50% {transform: perspective(100px) rotateX(180deg) rotateY(180deg)}\n  75% {transform: perspective(100px) rotateX(0) rotateY(180deg)}\n  100% {transform: perspective(100px) rotateX(0) rotateY(0)}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(){var e=t.props,n=e.size,r=e.color;return c.css(l||(l=o(["\n      width: 0;\n      height: 0;\n      border-left: "," solid transparent;\n      border-right: "," solid transparent;\n      border-bottom: "," solid ",";\n      display: inline-block;\n      animation: "," 3s 0s infinite cubic-bezier(0.09, 0.57, 0.49, 0.9);\n      animation-fill-mode: both;\n    "],["\n      width: 0;\n      height: 0;\n      border-left: "," solid transparent;\n      border-right: "," solid transparent;\n      border-bottom: "," solid ",";\n      display: inline-block;\n      animation: "," 3s 0s infinite cubic-bezier(0.09, 0.57, 0.49, 0.9);\n      animation-fill-mode: both;\n    "])),p.cssValue(n),p.cssValue(n),p.cssValue(n),r,d)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[this.style(),n]}):null},t.defaultProps=p.sizeDefaults(20),t}(u.PureComponent);t.default=f},94150(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(3570),d=c.keyframes(a||(a=o(["\n  25% {transform: rotateX(180deg) rotateY(0)}\n  50% {transform: rotateX(180deg) rotateY(180deg)}\n  75% {transform: rotateX(0) rotateY(180deg)}\n  100% {transform: rotateX(0) rotateY(0)}\n"],["\n  25% {transform: rotateX(180deg) rotateY(0)}\n  50% {transform: rotateX(180deg) rotateY(180deg)}\n  75% {transform: rotateX(0) rotateY(180deg)}\n  100% {transform: rotateX(0) rotateY(0)}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(){var e=t.props,n=e.color,r=e.size;return c.css(l||(l=o(["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      display: inline-block;\n      animation: "," 3s 0s infinite cubic-bezier(0.09, 0.57, 0.49, 0.9);\n      animation-fill-mode: both;\n    "],["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      display: inline-block;\n      animation: "," 3s 0s infinite cubic-bezier(0.09, 0.57, 0.49, 0.9);\n      animation-fill-mode: both;\n    "])),n,p.cssValue(r),p.cssValue(r),d)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[this.style(),n]}):null},t.defaultProps=p.sizeDefaults(50),t}(u.PureComponent);t.default=f},53282(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,l,u=s(n(22155)),c=n(22066),p=n(4452),d=n(3570),f=c.keyframes(a||(a=o(["\n  33% {transform: translateY(10px)}\n  66% {transform: translateY(-10px)}\n  100% {transform: translateY(0)}\n"],["\n  33% {transform: translateY(10px)}\n  66% {transform: translateY(-10px)}\n  100% {transform: translateY(0)}\n"]))),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,i=n.size,s=n.margin;return c.css(l||(l=o(["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      display: inline-block;\n      animation: "," 0.6s ","s infinite ease-in-out;\n      animation-fill-mode: both;\n    "],["\n      background-color: ",";\n      width: ",";\n      height: ",";\n      margin: ",";\n      border-radius: 100%;\n      display: inline-block;\n      animation: "," 0.6s ","s infinite ease-in-out;\n      animation-fill-mode: both;\n    "])),r,d.cssValue(i),d.cssValue(i),d.cssValue(s),f,.07*e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[n]},c.jsx("div",{css:this.style(1)}),c.jsx("div",{css:this.style(2)}),c.jsx("div",{css:this.style(3)})):null},t.defaultProps=p.sizeMarginDefaults(15),t}(u.PureComponent);t.default=h},50928(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.maroon="#800000",e.red="#FF0000",e.orange="#FFA500",e.yellow="#FFFF00",e.olive="#808000",e.green="#008000",e.purple="#800080",e.fuchsia="#FF00FF",e.lime="#00FF00",e.teal="#008080",e.aqua="#00FFFF",e.blue="#0000FF",e.navy="#000080",e.black="#000000",e.gray="#808080",e.silver="#C0C0C0",e.white="#FFFFFF"}(n||(n={})),t.calculateRgba=function(e,t){if(Object.keys(n).includes(e)&&(e=n[e]),"#"===e[0]&&(e=e.slice(1)),3===e.length){var r="";e.split("").forEach(function(e){r+=e,r+=e}),e=r}return"rgba("+e.match(/.{2}/g).map(function(e){return parseInt(e,16)}).join(", ")+", "+t+")"}},3570(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(4452)),r(n(50928)),r(n(90112))},4452(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={loading:!0,color:"#000000",css:""};function r(e){return Object.assign({},n,{size:e})}function o(e,t){return Object.assign({},n,{height:e,width:t})}t.sizeDefaults=r,t.sizeMarginDefaults=function(e){return Object.assign({},r(e),{margin:2})},t.heightWidthDefaults=o,t.heightWidthRadiusDefaults=function(e,t,n){return void 0===n&&(n=2),Object.assign({},o(e,t),{radius:n,margin:2})}},90112(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=e.match(/^[0-9.]*/).toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var o=e.match(/[^0-9]*$/).toString();return n[o]?{value:t,unit:o}:(console.warn("React Spinners: "+e+" is not a valid css value. Defaulting to "+t+"px."),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return""+t.value+t.unit}},5372(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(88130)),i=r(n(6337)),s=r(n(24025)),a=r(n(49885)),l=r(n(78827)),u=r(n(44387)),c=r(n(33433)),p=r(n(50236)),d=r(n(4123)),f=r(n(71621)),h=r(n(12965)),m=r(n(18172)),g=r(n(14241)),y=r(n(11712)),v=r(n(52350)),b=r(n(95475)),w=r(n(24348)),C=r(n(4434)),_=r(n(81093)),x=r(n(12759)),E=r(n(94150)),S=r(n(53282));t.BarLoader=o.default,t.BeatLoader=i.default,t.BounceLoader=s.default,t.CircleLoader=a.default,t.ClimbingBoxLoader=l.default,t.ClipLoader=u.default,t.ClockLoader=c.default,t.DotLoader=p.default,t.FadeLoader=d.default,t.GridLoader=f.default,t.HashLoader=h.default,t.MoonLoader=m.default,t.PacmanLoader=g.default,t.PropagateLoader=y.default,t.PulseLoader=v.default,t.RingLoader=b.default,t.RiseLoader=w.default,t.RotateLoader=C.default,t.ScaleLoader=_.default,t.SkewLoader=x.default,t.SquareLoader=E.default,t.SyncLoader=S.default},37357(e,t,n){"use strict";n.r(t),n.d(t,{ReactTableDefaults:()=>M,default:()=>L});var r=n(22155),o=n(30395),i=n.n(o),s=n(17020),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}const u={get:function(e,t,n){if(!t)return e;var r=p(t),o=void 0;try{o=r.reduce(function(e,t){return e[t]},e)}catch(e){}return void 0!==o?o:n},set:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[2],n=p(arguments[1]),r=void 0,o=e;(r=n.shift())&&n.length;)o[r]||(o[r]={}),o=o[r];return o[r]=t,e},takeRight:function(e,t){var n=t>e.length?0:e.length-t;return e.slice(n)},last:function(e){return e[e.length-1]},orderBy:function(e,t,n,r){return e.sort(function(e,o){for(var i=0;i<t.length;i+=1){var s=t[i],a=!1===n[i]||"desc"===n[i],l=s(e,o);if(l)return a?-l:l}return n[0]?e[r]-o[r]:o[r]-e[r]})},range:function(e){for(var t=[],n=0;n<e;n+=1)t.push(e);return t},remove:function(e,t){return e.filter(function(n,r){return!!t(n)&&(e.splice(r,1),!0)})},clone:function(e){try{return JSON.parse(JSON.stringify(e,function(e,t){return"function"==typeof t?t.toString():t}))}catch(t){return e}},getFirstDefined:function(){for(var e=0;e<arguments.length;e+=1)if(void 0!==(arguments.length<=e?void 0:arguments[e]))return arguments.length<=e?void 0:arguments[e]},sum:function(e){return e.reduce(function(e,t){return e+t},0)},makeTemplateComponent:function(e,t){if(!t)throw new Error("No displayName found for template component:",e);var n=function(t){var n=t.children,o=t.className,s=l(t,["children","className"]);return r.createElement("div",a({className:i()(e,o)},s),n)};return n.displayName=t,n},groupBy:function(e,t){return e.reduce(function(e,n,r){var o="function"==typeof t?t(n,r):n[t];return e[o]=c(e[o])?e[o]:[],e[o].push(n),e},{})},isArray:c,splitProps:function(e){return{className:e.className,style:e.style,rest:l(e,["className","style"])||{}}},compactObject:function(e){var t={};return e&&Object.keys(e).map(function(n){return Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&void 0!==e[n]&&(t[n]=e[n]),!0}),t},isSortingDesc:function(e){return!("desc"!==e.sort&&!0!==e.desc&&!1!==e.asc)},normalizeComponent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return s.isElement(e)||"string"==typeof e?e:s.isValidElementType(e)?r.createElement(e,t):n},asPx:function(e){return e=Number(e),Number.isNaN(e)?null:e+"px"}};function c(e){return Array.isArray(e)}function p(e){return d(e).join(".").replace(/\[/g,".").replace(/\]/g,"").split(".")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(c(e))for(var n=0;n<e.length;n+=1)d(e[n],t);else t.push(e);return t}var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(e){return r.createElement("button",b({type:"button"},e,{className:"-btn"}),e.children)},C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getSafePage=n.getSafePage.bind(n),n.changePage=n.changePage.bind(n),n.applyPage=n.applyPage.bind(n),n.state={page:e.page},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"componentDidUpdate",value:function(e,t){e.page!==this.props.page&&t.page!==this.state.page&&this.setState({page:this.props.page})}},{key:"getSafePage",value:function(e){return Number.isNaN(e)&&(e=this.props.page),Math.min(Math.max(e,0),this.props.pages-1)}},{key:"changePage",value:function(e){e=this.getSafePage(e),this.setState({page:e}),this.props.page!==e&&this.props.onPageChange(e)}},{key:"applyPage",value:function(e){e&&e.preventDefault();var t=this.state.page;this.changePage(""===t?this.props.page:t)}},{key:"getPageJumpProperties",value:function(){var e=this;return{onKeyPress:function(t){13!==t.which&&13!==t.keyCode||e.applyPage()},onBlur:this.applyPage,value:""===this.state.page?"":this.state.page+1,onChange:function(t){var n=t.target.value,r=n-1;if(""===n)return e.setState({page:n});e.setState({page:e.getSafePage(r)})},inputType:""===this.state.page?"text":"number",pageJumpText:this.props.pageJumpText}}},{key:"render",value:function(){var e=this,t=this.props,n=t.pages,o=t.page,s=t.showPageSizeOptions,a=t.pageSizeOptions,l=t.pageSize,u=t.showPageJump,c=t.canPrevious,p=t.canNext,d=t.onPageSizeChange,f=t.className,h=t.PreviousComponent,m=t.NextComponent,g=t.renderPageJump,y=t.renderCurrentPage,v=t.renderTotalPagesCount,b=t.renderPageSizeOptions;return r.createElement("div",{className:i()(f,"-pagination"),style:this.props.style},r.createElement("div",{className:"-previous"},r.createElement(h,{onClick:function(){c&&e.changePage(o-1)},disabled:!c},this.props.previousText)),r.createElement("div",{className:"-center"},r.createElement("span",{className:"-pageInfo"},this.props.pageText," ",u?g(this.getPageJumpProperties()):y(o)," ",this.props.ofText," ",v(n)),s&&b({pageSize:l,rowsSelectorText:this.props.rowsSelectorText,pageSizeOptions:a,onPageSizeChange:d,rowsText:this.props.rowsText})),r.createElement("div",{className:"-next"},r.createElement(m,{onClick:function(){p&&e.changePage(o+1)},disabled:!p},this.props.nextText)))}}]),t}(r.Component);C.defaultProps={PreviousComponent:w,NextComponent:w,renderPageJump:function(e){var t=e.onChange,n=e.value,o=e.onBlur,i=e.onKeyPress,s=e.inputType,a=e.pageJumpText;return r.createElement("div",{className:"-pageJump"},r.createElement("input",{"aria-label":a,type:s,onChange:t,value:n,onBlur:o,onKeyPress:i}))},renderCurrentPage:function(e){return r.createElement("span",{className:"-currentPage"},e+1)},renderTotalPagesCount:function(e){return r.createElement("span",{className:"-totalPages"},e||1)},renderPageSizeOptions:function(e){var t=e.pageSize,n=e.pageSizeOptions,o=e.rowsSelectorText,i=e.onPageSizeChange,s=e.rowsText;return r.createElement("span",{className:"select-wrap -pageSizeOptions"},r.createElement("select",{"aria-label":o,onChange:function(e){return i(Number(e.target.value))},value:t},n.map(function(e,t){return r.createElement("option",{key:t,value:e},e+" "+s)})))}};const _=C;var x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function E(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var S=function(){return{}};const P={data:[],resolveData:function(e){return e},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPage:0,defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(e,t,n){var r=e.pivotId||e.id;return void 0===t[r]||String(t[r]).startsWith(e.value)},defaultSortMethod:function(e,t,n){return t=null==t?"":t,(e="string"==typeof(e=null==e?"":e)?e.toLowerCase():e)>(t="string"==typeof t?t.toLowerCase():t)?1:e<t?-1:0},onPageChange:void 0,onPageSizeChange:void 0,onSortedChange:void 0,onFilteredChange:void 0,onResizedChange:void 0,onExpandedChange:void 0,pivotBy:void 0,pivotValKey:"_pivotVal",pivotIDKey:"_pivotID",subRowsKey:"_subRows",aggregatedKey:"_aggregated",nestingLevelKey:"_nestingLevel",originalKey:"_original",indexKey:"_index",groupedByPivotKey:"_groupedByPivot",onFetchData:function(){return null},className:"",style:{},getProps:S,getTableProps:S,getTheadGroupProps:S,getTheadGroupTrProps:S,getTheadGroupThProps:S,getTheadProps:S,getTheadTrProps:S,getTheadThProps:S,getTheadFilterProps:S,getTheadFilterTrProps:S,getTheadFilterThProps:S,getTbodyProps:S,getTrGroupProps:S,getTrProps:S,getTdProps:S,getTfootProps:S,getTfootTrProps:S,getTfootTdProps:S,getPaginationProps:S,getLoadingProps:S,getNoDataProps:S,getResizerProps:S,column:{Cell:void 0,Header:void 0,Footer:void 0,Aggregated:void 0,Pivot:void 0,PivotValue:void 0,Expander:void 0,Filter:void 0,Placeholder:void 0,sortable:void 0,resizable:void 0,filterable:void 0,show:!0,minWidth:100,minResizeWidth:11,className:"",style:{},getProps:S,aggregate:void 0,headerClassName:"",headerStyle:{},getHeaderProps:S,footerClassName:"",footerStyle:{},getFooterProps:S,filterMethod:void 0,filterAll:!1,sortMethod:void 0},expanderDefaults:{sortable:!1,resizable:!1,filterable:!1,width:35},pivotDefaults:{},previousText:"Previous",nextText:"Next",loadingText:"Loading...",noDataText:"No rows found",pageText:"Page",ofText:"of",rowsText:"rows",pageJumpText:"jump to page",rowsSelectorText:"rows per page",TableComponent:function(e){var t=e.children,n=e.className,o=E(e,["children","className"]);return r.createElement("div",x({className:i()("rt-table",n),role:"grid"},o),t)},TheadComponent:u.makeTemplateComponent("rt-thead","Thead"),TbodyComponent:u.makeTemplateComponent("rt-tbody","Tbody"),TrGroupComponent:function(e){var t=e.children,n=e.className,o=E(e,["children","className"]);return r.createElement("div",x({className:i()("rt-tr-group",n),role:"rowgroup"},o),t)},TrComponent:function(e){var t=e.children,n=e.className,o=E(e,["children","className"]);return r.createElement("div",x({className:i()("rt-tr",n),role:"row"},o),t)},ThComponent:function(e){var t=e.toggleSort,n=e.className,o=e.children,s=E(e,["toggleSort","className","children"]);return r.createElement("div",x({className:i()("rt-th",n),onClick:function(e){return t&&t(e)},role:"columnheader",tabIndex:"-1"},s),o)},TdComponent:function(e){e.toggleSort;var t=e.className,n=e.children,o=E(e,["toggleSort","className","children"]);return r.createElement("div",x({className:i()("rt-td",t),role:"gridcell"},o),n)},TfootComponent:u.makeTemplateComponent("rt-tfoot","Tfoot"),FilterComponent:function(e){var t=e.filter,n=e.onChange,o=e.column;return r.createElement("input",{type:"text",style:{width:"100%"},placeholder:o.Placeholder,value:t?t.value:"",onChange:function(e){return n(e.target.value)}})},ExpanderComponent:function(e){var t=e.isExpanded;return r.createElement("div",{className:i()("rt-expander",t&&"-open")},"•")},PivotValueComponent:function(e){var t=e.subRows,n=e.value;return r.createElement("span",null,n," ",t&&"("+t.length+")")},AggregatedComponent:function(e){var t=e.subRows,n=e.column,o=t.filter(function(e){return void 0!==e[n.id]}).map(function(e,o){return r.createElement("span",{key:o},e[n.id],o<t.length-1?", ":"")});return r.createElement("span",null,o)},PivotComponent:void 0,PaginationComponent:_,PreviousComponent:void 0,NextComponent:void 0,LoadingComponent:function(e){var t=e.className,n=e.loading,o=e.loadingText,s=E(e,["className","loading","loadingText"]);return r.createElement("div",x({className:i()("-loading",{"-active":n},t)},s),r.createElement("div",{className:"-loading-inner"},o))},NoDataComponent:u.makeTemplateComponent("rt-noData","NoData"),ResizerComponent:u.makeTemplateComponent("rt-resizer","Resizer"),PadRowComponent:function(){return r.createElement("span",null," ")}};var O=n(5821),T=n.n(O);const k={data:T().any,loading:T().bool,showPagination:T().bool,showPaginationTop:T().bool,showPaginationBottom:T().bool,showPageSizeOptions:T().bool,pageSizeOptions:T().array,defaultPageSize:T().number,showPageJump:T().bool,collapseOnSortingChange:T().bool,collapseOnPageChange:T().bool,collapseOnDataChange:T().bool,freezeWhenExpanded:T().bool,sortable:T().bool,resizable:T().bool,filterable:T().bool,defaultSortDesc:T().bool,defaultSorted:T().array,defaultFiltered:T().array,defaultResized:T().array,defaultExpanded:T().object,defaultFilterMethod:T().func,defaultSortMethod:T().func,onPageChange:T().func,onPageSizeChange:T().func,onSortedChange:T().func,onFilteredChange:T().func,onResizedChange:T().func,onExpandedChange:T().func,pivotBy:T().array,pivotValKey:T().string,pivotIDKey:T().string,subRowsKey:T().string,aggregatedKey:T().string,nestingLevelKey:T().string,originalKey:T().string,indexKey:T().string,groupedByPivotKey:T().string,onFetchData:T().func,className:T().string,style:T().object,getProps:T().func,getTableProps:T().func,getTheadGroupProps:T().func,getTheadGroupTrProps:T().func,getTheadGroupThProps:T().func,getTheadProps:T().func,getTheadTrProps:T().func,getTheadThProps:T().func,getTheadFilterProps:T().func,getTheadFilterTrProps:T().func,getTheadFilterThProps:T().func,getTbodyProps:T().func,getTrGroupProps:T().func,getTrProps:T().func,getTdProps:T().func,getTfootProps:T().func,getTfootTrProps:T().func,getTfootTdProps:T().func,getPaginationProps:T().func,getLoadingProps:T().func,getNoDataProps:T().func,getResizerProps:T().func,columns:T().arrayOf(T().shape({Cell:T().oneOfType([T().element,T().string,T().elementType]),Header:T().oneOfType([T().element,T().string,T().elementType]),Footer:T().oneOfType([T().element,T().string,T().elementType]),Aggregated:T().oneOfType([T().element,T().string,T().elementType]),Pivot:T().oneOfType([T().element,T().string,T().elementType]),PivotValue:T().oneOfType([T().element,T().string,T().elementType]),Expander:T().oneOfType([T().element,T().string,T().elementType]),Filter:T().oneOfType([T().element,T().elementType]),sortable:T().bool,resizable:T().bool,filterable:T().bool,show:T().bool,minWidth:T().number,minResizeWidth:T().number,className:T().string,style:T().object,getProps:T().func,aggregate:T().func,headerClassName:T().string,headerStyle:T().object,getHeaderProps:T().func,footerClassName:T().string,footerStyle:T().object,getFooterProps:T().func,filterMethod:T().func,filterAll:T().bool,sortMethod:T().func})),expanderDefaults:T().shape({sortable:T().bool,resizable:T().bool,filterable:T().bool,width:T().number}),pivotDefaults:T().object,previousText:T().node,nextText:T().node,loadingText:T().node,noDataText:T().node,pageText:T().node,ofText:T().node,rowsText:T().node,pageJumpText:T().node,rowsSelectorText:T().node,TableComponent:T().elementType,TheadComponent:T().elementType,TbodyComponent:T().elementType,TrGroupComponent:T().elementType,TrComponent:T().elementType,ThComponent:T().elementType,TdComponent:T().elementType,TfootComponent:T().elementType,FilterComponent:T().elementType,ExpanderComponent:T().elementType,PivotValueComponent:T().elementType,AggregatedComponent:T().elementType,PivotComponent:T().elementType,PaginationComponent:T().elementType,PreviousComponent:T().elementType,NextComponent:T().elementType,LoadingComponent:T().elementType,NoDataComponent:T().elementType,ResizerComponent:T().elementType,PadRowComponent:T().elementType};var A=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),M=P,D=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getResolvedState=n.getResolvedState.bind(n),n.getDataModel=n.getDataModel.bind(n),n.getSortedData=n.getSortedData.bind(n),n.fireFetchData=n.fireFetchData.bind(n),n.getPropOrState=n.getPropOrState.bind(n),n.getStateOrProp=n.getStateOrProp.bind(n),n.filterData=n.filterData.bind(n),n.sortData=n.sortData.bind(n),n.getMinRows=n.getMinRows.bind(n),n.onPageChange=n.onPageChange.bind(n),n.onPageSizeChange=n.onPageSizeChange.bind(n),n.sortColumn=n.sortColumn.bind(n),n.filterColumn=n.filterColumn.bind(n),n.resizeColumnStart=n.resizeColumnStart.bind(n),n.resizeColumnEnd=n.resizeColumnEnd.bind(n),n.resizeColumnMoving=n.resizeColumnMoving.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),R(t,[{key:"render",value:function(){var e=this,t=this.getResolvedState(),n=t.children,o=t.className,s=t.style,a=t.getProps,l=t.getTableProps,c=t.getTheadGroupProps,p=t.getTheadGroupTrProps,d=t.getTheadGroupThProps,f=t.getTheadProps,h=t.getTheadTrProps,m=t.getTheadThProps,g=t.getTheadFilterProps,y=t.getTheadFilterTrProps,v=t.getTheadFilterThProps,b=t.getTbodyProps,w=t.getTrGroupProps,C=t.getTrProps,_=t.getTdProps,x=t.getTfootProps,E=t.getTfootTrProps,S=t.getTfootTdProps,O=t.getPaginationProps,T=t.getLoadingProps,k=t.getNoDataProps,R=t.getResizerProps,M=t.showPagination,D=t.showPaginationTop,L=t.showPaginationBottom,N=t.manual,V=t.loadingText,j=t.noDataText,F=t.sortable,z=t.multiSort,B=t.resizable,H=t.filterable,U=t.pivotIDKey,q=t.pivotValKey,W=t.pivotBy,$=t.subRowsKey,Q=t.aggregatedKey,G=t.originalKey,Y=t.indexKey,Z=t.groupedByPivotKey,K=t.loading,X=t.pageSize,J=t.page,ee=t.sorted,te=t.filtered,ne=t.resized,re=t.expanded,oe=t.pages,ie=t.onExpandedChange,se=t.TableComponent,ae=t.TheadComponent,le=t.TbodyComponent,ue=t.TrGroupComponent,ce=t.TrComponent,pe=t.ThComponent,de=t.TdComponent,fe=t.TfootComponent,he=t.PaginationComponent,me=t.LoadingComponent,ge=t.SubComponent,ye=t.NoDataComponent,ve=t.ResizerComponent,be=t.ExpanderComponent,we=t.PivotValueComponent,Ce=t.PivotComponent,_e=t.AggregatedComponent,xe=t.FilterComponent,Ee=t.PadRowComponent,Se=t.resolvedData,Pe=t.allVisibleColumns,Oe=t.headerGroups,Te=t.hasHeaderGroups,ke=t.sortedData,Ae=t.currentlyResizing,Ie=X*J,Re=Ie+X,Me=N?Se:ke.slice(Ie,Re),De=this.getMinRows(),Le=u.range(Math.max(De-Me.length,0)),Ne=Pe.some(function(e){return e.Footer}),Ve=H||Pe.some(function(e){return e.filterable}),je=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[t.map(function(t,o){var i=I({},t,{_viewIndex:r+=1}),s=n.concat([o]);if(i[$]&&u.get(re,s)){var a=e(i[$],s,r),l=A(a,2);i[$]=l[0],r=l[1]}return i}),r]}(Me),Fe=A(je,1);Me=Fe[0];var ze=J>0,Be=J+1<oe,He=u.sum(Pe.map(function(e){var t=ne.find(function(t){return t.id===e.id})||{};return u.getFirstDefined(t.value,e.width,e.minWidth)})),Ue=-1,qe=I({},t,{startRow:Ie,endRow:Re,pageRows:Me,minRows:De,padRows:Le,hasColumnFooter:Ne,canPrevious:ze,canNext:Be,rowMinWidth:He}),We=u.splitProps(a(qe,void 0,void 0,this)),$e=u.splitProps(l(qe,void 0,void 0,this)),Qe=u.splitProps(b(qe,void 0,void 0,this)),Ge=T(qe,void 0,void 0,this),Ye=k(qe,void 0,void 0,this),Ze=function(t,n){var o=function(e){return(ne.find(function(t){return t.id===e.id})||{}).value},s=u.sum(t.columns.map(function(e){return e.width||o(e)?0:e.minWidth})),a=u.sum(t.columns.map(function(e){return u.getFirstDefined(o(e),e.width,e.minWidth)})),l=u.sum(t.columns.map(function(e){return u.getFirstDefined(o(e),e.width,e.maxWidth)})),c=u.splitProps(d(qe,void 0,t,e)),p=u.splitProps(t.getHeaderProps(qe,void 0,t,e)),f=[t.headerClassName,c.className,p.className],h=I({},t.headerStyle,c.style,p.style),m=I({},c.rest,p.rest),g={flex:s+" 0 auto",width:u.asPx(a),maxWidth:u.asPx(l)};return r.createElement(pe,I({key:n+"-"+t.id,className:i()(f),style:I({},h,g)},m),u.normalizeComponent(t.Header,{data:ke,column:t}))},Ke=function(t,n){var o=ne.find(function(e){return e.id===t.id})||{},s=ee.find(function(e){return e.id===t.id}),a="function"==typeof t.show?t.show():t.show,l=u.getFirstDefined(o.value,t.width,t.minWidth),c=u.getFirstDefined(o.value,t.width,t.maxWidth),p=u.splitProps(m(qe,void 0,t,e)),d=u.splitProps(t.getHeaderProps(qe,void 0,t,e)),f=[t.headerClassName,p.className,d.className],h=I({},t.headerStyle,p.style,d.style),g=I({},p.rest,d.rest),y=u.getFirstDefined(t.resizable,B,!1),v=y?r.createElement(ve,I({onMouseDown:function(n){return e.resizeColumnStart(n,t,!1)},onTouchStart:function(n){return e.resizeColumnStart(n,t,!0)}},R("finalState",void 0,t,e))):null,b=u.getFirstDefined(t.sortable,F,!1);return r.createElement(pe,I({key:n+"-"+t.id,className:i()(f,y&&"rt-resizable-header",s?s.desc?"-sort-desc":"-sort-asc":"",b&&"-cursor-pointer",!a&&"-hidden",W&&W.slice(0,-1).includes(t.id)&&"rt-header-pivot"),style:I({},h,{flex:l+" 0 auto",width:u.asPx(l),maxWidth:u.asPx(c)}),toggleSort:function(n){b&&e.sortColumn(t,!!z&&n.shiftKey)}},g),r.createElement("div",{className:i()(y&&"rt-resizable-header-content")},u.normalizeComponent(t.Header,{data:ke,column:t})),v)},Xe=function(t,n){var o=ne.find(function(e){return e.id===t.id})||{},s=u.getFirstDefined(o.value,t.width,t.minWidth),a=u.getFirstDefined(o.value,t.width,t.maxWidth),l=u.splitProps(v(qe,void 0,t,e)),c=u.splitProps(t.getHeaderProps(qe,void 0,t,e)),p=[t.headerClassName,l.className,c.className],d=I({},t.headerStyle,l.style,c.style),f=I({},l.rest,c.rest),h=te.find(function(e){return e.id===t.id}),m=t.Filter||xe,g=u.getFirstDefined(t.filterable,H,!1);return r.createElement(pe,I({key:n+"-"+t.id,className:i()(p),style:I({},d,{flex:s+" 0 auto",width:u.asPx(s),maxWidth:u.asPx(a)})},f),g?u.normalizeComponent(m,{column:t,filter:h,onChange:function(n){return e.filterColumn(t,n)}},P.column.Filter):null)},Je=function t(n,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a={original:n[G],row:n,index:n[Y],viewIndex:Ue+=1,pageSize:X,page:J,level:s.length,nestingPath:s.concat([o]),aggregated:n[Q],groupedByPivot:n[Z],subRows:n[$]},l=u.get(re,a.nestingPath),c=w(qe,a,void 0,e),p=u.splitProps(C(qe,a,void 0,e));return r.createElement(ue,I({key:a.nestingPath.join("_")},c),r.createElement(ce,I({className:i()(p.className,n._viewIndex%2?"-even":"-odd"),style:p.style},p.rest),Pe.map(function(t,o){var s=ne.find(function(e){return e.id===t.id})||{},c="function"==typeof t.show?t.show():t.show,p=u.getFirstDefined(s.value,t.width,t.minWidth),d=u.getFirstDefined(s.value,t.width,t.maxWidth),f=u.splitProps(_(qe,a,t,e)),h=u.splitProps(t.getProps(qe,a,t,e)),m=[f.className,t.className,h.className],g=I({},f.style,t.style,h.style),y=I({},a,{isExpanded:l,column:I({},t),value:a.row[t.id],pivoted:t.pivoted,expander:t.expander,resized:ne,show:c,width:p,maxWidth:d,tdProps:f,columnProps:h,classes:m,styles:g}),v=y.value,b=void 0,w=void 0,C=void 0,x=u.normalizeComponent(t.Cell,y,v),E=t.Aggregated||(t.aggregate?t.Cell:_e),S=t.Expander||be,P=t.PivotValue||we,O=Ce||function(e){return r.createElement("div",null,r.createElement(S,e),r.createElement(P,e))},T=t.Pivot||O;(y.pivoted||y.expander)&&(y.expandable=!0,b=!0,!y.pivoted||y.subRows||ge||(y.expandable=!1)),y.pivoted?(w=a.row[U]===t.id&&y.subRows,C=W.indexOf(t.id)>W.indexOf(a.row[U])&&y.subRows,x=w?u.normalizeComponent(T,I({},y,{value:n[q]}),n[q]):C?u.normalizeComponent(E,y,v):null):y.aggregated&&(x=u.normalizeComponent(E,y,v)),y.expander&&(x=u.normalizeComponent(S,y,n[q]),W&&(y.groupedByPivot&&(x=null),y.subRows||ge||(x=null)));var k=b?function(t){var n=u.clone(re);return n=l?u.set(n,y.nestingPath,!1):u.set(n,y.nestingPath,{}),e.setStateWithData({expanded:n},function(){return ie&&ie(n,y.nestingPath,t,y)})}:function(){},A={onClick:k};return f.rest.onClick&&(A.onClick=function(e){f.rest.onClick(e,function(){return k(e)})}),h.rest.onClick&&(A.onClick=function(e){h.rest.onClick(e,function(){return k(e)})}),r.createElement(de,I({key:o+"-"+t.id,className:i()(m,!y.expandable&&!c&&"hidden",y.expandable&&"rt-expandable",(w||C)&&"rt-pivot"),style:I({},g,{flex:p+" 0 auto",width:u.asPx(p),maxWidth:u.asPx(d)})},f.rest,h.rest,A),x)})),a.subRows&&l&&a.subRows.map(function(e,n){return t(e,n,a.nestingPath)}),ge&&!a.subRows&&l&&ge(a,function(){var e=u.clone(re);u.set(e,a.nestingPath,!1)}))},et=function(t,n){var o=ne.find(function(e){return e.id===t.id})||{},s="function"==typeof t.show?t.show():t.show,a=u.getFirstDefined(o.value,t.width,t.minWidth),l=a,c=u.getFirstDefined(o.value,t.width,t.maxWidth),p=u.splitProps(_(qe,void 0,t,e)),d=u.splitProps(t.getProps(qe,void 0,t,e)),f=[p.className,t.className,d.className],h=I({},p.style,t.style,d.style);return r.createElement(de,I({key:n+"-"+t.id,className:i()(f,!s&&"hidden"),style:I({},h,{flex:l+" 0 auto",width:u.asPx(a),maxWidth:u.asPx(c)})},p.rest),u.normalizeComponent(Ee))},tt=function(t,n){var o=w(qe,void 0,void 0,e),s=u.splitProps(C(qe,void 0,void 0,e));return r.createElement(ue,I({key:"pad-"+n},o),r.createElement(ce,{className:i()("-padRow",(Me.length+n)%2?"-even":"-odd",s.className),style:s.style||{}},Pe.map(et)))},nt=function(t,n){var o=ne.find(function(e){return e.id===t.id})||{},s="function"==typeof t.show?t.show():t.show,a=u.getFirstDefined(o.value,t.width,t.minWidth),l=u.getFirstDefined(o.value,t.width,t.maxWidth),c=u.splitProps(S(qe,void 0,t,e)),p=u.splitProps(t.getProps(qe,void 0,t,e)),d=u.splitProps(t.getFooterProps(qe,void 0,t,e)),f=[c.className,t.className,p.className,d.className],h=I({},c.style,t.style,p.style,d.style);return r.createElement(de,I({key:n+"-"+t.id,className:i()(f,!s&&"hidden"),style:I({},h,{flex:a+" 0 auto",width:u.asPx(a),maxWidth:u.asPx(l)})},p.rest,c.rest,d.rest),u.normalizeComponent(t.Footer,{data:ke,column:t}))},rt=function(n){var o=u.splitProps(O(qe,void 0,void 0,e));return r.createElement(he,I({},t,{pages:oe,canPrevious:ze,canNext:Be,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,className:o.className,style:o.style,isTop:n},o.rest))},ot=function(){return r.createElement("div",I({className:i()("ReactTable",o,We.className),style:I({},s,We.style)},We.rest),M&&D?r.createElement("div",{className:"pagination-top"},rt(!0)):null,r.createElement(se,I({className:i()($e.className,Ae?"rt-resizing":""),style:$e.style},$e.rest),Te?(v=u.splitProps(c(qe,void 0,void 0,e)),b=u.splitProps(p(qe,void 0,void 0,e)),r.createElement(ae,I({className:i()("-headerGroups",v.className),style:I({},v.style,{minWidth:He+"px"})},v.rest),r.createElement(ce,I({className:b.className,style:b.style},b.rest),Oe.map(Ze)))):null,(d=u.splitProps(f(qe,void 0,void 0,e)),m=u.splitProps(h(qe,void 0,void 0,e)),r.createElement(ae,I({className:i()("-header",d.className),style:I({},d.style,{minWidth:He+"px"})},d.rest),r.createElement(ce,I({className:m.className,style:m.style},m.rest),Pe.map(Ke)))),Ve?(a=u.splitProps(g(qe,void 0,void 0,e)),l=u.splitProps(y(qe,void 0,void 0,e)),r.createElement(ae,I({className:i()("-filters",a.className),style:I({},a.style,{minWidth:He+"px"})},a.rest),r.createElement(ce,I({className:l.className,style:l.style},l.rest),Pe.map(Xe)))):null,r.createElement(le,I({className:i()(Qe.className),style:I({},Qe.style,{minWidth:He+"px"})},Qe.rest),Me.map(function(e,t){return Je(e,t)}),Le.map(tt)),Ne?(t=u.splitProps(x(qe,void 0,void 0,e)),n=u.splitProps(E(qe,void 0,void 0,e)),r.createElement(fe,I({className:t.className,style:I({},t.style,{minWidth:He+"px"})},t.rest),r.createElement(ce,I({className:i()(n.className),style:n.style},n.rest),Pe.map(nt)))):null),M&&L?r.createElement("div",{className:"pagination-bottom"},rt(!1)):null,!Me.length&&r.createElement(ye,Ye,u.normalizeComponent(j)),r.createElement(me,I({loading:K,loadingText:V},Ge)));var t,n,a,l,d,m,v,b};return n?n(qe,ot,this):ot()}}]),t}(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"getResolvedState",value:function(e,t){return h({},u.compactObject(this.state),u.compactObject(this.props),u.compactObject(t),u.compactObject(e))}},{key:"getDataModel",value:function(e,t){var n=this,o=e.columns,i=e.pivotBy,s=void 0===i?[]:i,a=e.data,l=e.resolveData,c=e.pivotIDKey,p=e.pivotValKey,d=e.subRowsKey,f=e.aggregatedKey,m=e.nestingLevelKey,v=e.originalKey,b=e.indexKey,w=e.groupedByPivotKey,C=e.SubComponent,_=!1;o.forEach(function(e){e.columns&&(_=!0)});var x=[].concat(y(o)),E=o.find(function(e){return e.expander||e.columns&&e.columns.some(function(e){return e.expander})});E&&!E.expander&&(E=E.columns.find(function(e){return e.expander})),C&&!E&&(x=[E={expander:!0}].concat(y(x)));var S=[],P=function(e,t){var r=function(e,t){var r=void 0;if((r=e.expander?h({},n.props.column,n.props.expanderDefaults,e):h({},n.props.column,e)).maxWidth<r.minWidth&&(r.minWidth=r.maxWidth),t&&(r.parentColumn=t),"string"==typeof r.accessor){r.id=r.id||r.accessor;var o=r.accessor;return r.accessor=function(e){return u.get(e,o)},r}if(r.accessor&&!r.id)throw console.warn(r),new Error("A column id is required if using a non-string accessor for column above.");return r.accessor||(r.accessor=function(){}),r}(e,t);return S.push(r),r},O=x.map(function(e){return e.columns?h({},e,{columns:e.columns.map(function(t){return P(t,e)})}):P(e)}).slice(),T=[],k=(O=(O=O.map(function(e){if(e.columns){var t=e.columns.filter(function(e){return!(s.indexOf(e.id)>-1)&&u.getFirstDefined(e.show,!0)});return h({},e,{columns:t})}return e})).filter(function(e){return e.columns?e.columns.length:!(s.indexOf(e.id)>-1)&&u.getFirstDefined(e.show,!0)})).findIndex(function(e){return e.pivot});if(s.length){var A=[];s.forEach(function(e){var t=S.find(function(t){return t.id===e});t&&A.push(t)});var I=A.reduce(function(e,t){return e&&e===t.parentColumn&&t.parentColumn},A[0].parentColumn),R=_&&I.Header,M={Header:R=R||function(){return r.createElement("strong",null,"Pivoted")},columns:A.map(function(e){return h({},n.props.pivotDefaults,e,{pivoted:!0})})};k>=0?(M=h({},O[k],M),O.splice(k,1,M)):O.unshift(M)}var D=[],L=[],N=function(e,t){D.push(h({},n.props.column,t,{columns:e})),L=[]};O.forEach(function(e){if(e.columns)return T=T.concat(e.columns),L.length>0&&N(L),void N(e.columns,e);T.push(e),L.push(e)}),_&&L.length>0&&N(L);var V=function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(g(r={},v,t),g(r,b,n),g(r,d,t[d]),g(r,m,o),r);return S.forEach(function(e){e.expander||(i[e.id]=e.accessor(t))}),i[d]&&(i[d]=i[d].map(function(t,n){return e(t,n,o+1)})),i},j=this.resolvedData;this.resolvedData&&!t||(j=l(a),this.resolvedData=j),j=j.map(function(e,t){return V(e,t)});var F=T.filter(function(e){return!e.expander&&e.aggregate});return s.length&&(j=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r===n.length)return t;var o=Object.entries(u.groupBy(t,n[r])).map(function(e){var t,o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),i=o[0],s=o[1];return g(t={},c,n[r]),g(t,p,i),g(t,n[r],i),g(t,d,s),g(t,m,r),g(t,w,!0),t});return o=o.map(function(t){var o,i=e(t[d],n,r+1);return h({},t,(g(o={},d,i),g(o,f,!0),o),function(e){var t={};return F.forEach(function(n){var r=e.map(function(e){return e[n.id]});t[n.id]=n.aggregate(r,e)}),t}(i))}),o}(j,s)),h({},e,{resolvedData:j,allVisibleColumns:T,headerGroups:D,allDecoratedColumns:S,hasHeaderGroups:_})}},{key:"getSortedData",value:function(e){var t=e.manual,n=e.sorted,r=e.filtered,o=e.defaultFilterMethod,i=e.resolvedData,s=e.allDecoratedColumns,a={};return s.filter(function(e){return e.sortMethod}).forEach(function(e){a[e.id]=e.sortMethod}),{sortedData:t?i:this.sortData(this.filterData(i,r,o,s),n,a)}}},{key:"fireFetchData",value:function(){var e=h({},this.getResolvedState(),{page:this.getStateOrProp("page"),pageSize:this.getStateOrProp("pageSize"),filtered:this.getStateOrProp("filtered")});this.props.onFetchData(e,this)}},{key:"getPropOrState",value:function(e){return u.getFirstDefined(this.props[e],this.state[e])}},{key:"getStateOrProp",value:function(e){return u.getFirstDefined(this.state[e],this.props[e])}},{key:"filterData",value:function(e,t,n,r){var o=this,i=e;return t.length&&(i=(i=t.reduce(function(e,t){var o=r.find(function(e){return e.id===t.id});if(!o||!1===o.filterable)return e;var i=o.filterMethod||n;return o.filterAll?i(t,e,o):e.filter(function(e){return i(t,e,o)})},i)).map(function(e){return e[o.props.subRowsKey]?h({},e,g({},o.props.subRowsKey,o.filterData(e[o.props.subRowsKey],t,n,r))):e}).filter(function(e){return!e[o.props.subRowsKey]||e[o.props.subRowsKey].length>0})),i}},{key:"sortData",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return e;var o=(this.props.orderByMethod||u.orderBy)(e,t.map(function(e){return r[e.id]?function(t,n){return r[e.id](t[e.id],n[e.id],e.desc)}:function(t,r){return n.props.defaultSortMethod(t[e.id],r[e.id],e.desc)}}),t.map(function(e){return!e.desc}),this.props.indexKey);return o.forEach(function(e){e[n.props.subRowsKey]&&(e[n.props.subRowsKey]=n.sortData(e[n.props.subRowsKey],t,r))}),o}},{key:"getMinRows",value:function(){return u.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(e){var t=this.props,n=t.onPageChange,r=t.collapseOnPageChange,o={page:e};r&&(o.expanded={}),this.setStateWithData(o,function(){return n&&n(e)})}},{key:"onPageSizeChange",value:function(e){var t=this.props.onPageSizeChange,n=this.getResolvedState(),r=n.pageSize*n.page,o=Math.floor(r/e);this.setStateWithData({pageSize:e,page:o},function(){return t&&t(e,o)})}},{key:"sortColumn",value:function(e,t){var n=this.getResolvedState(),r=n.sorted,o=n.skipNextSort,i=n.defaultSortDesc,s=Object.prototype.hasOwnProperty.call(e,"defaultSortDesc")?e.defaultSortDesc:i,a=!s;if(o)this.setStateWithData({skipNextSort:!1});else{var l=this.props.onSortedChange,c=u.clone(r||[]).map(function(e){return e.desc=u.isSortingDesc(e),e});if(u.isArray(e)){var p=c.findIndex(function(t){return t.id===e[0].id});p>-1?(c[p].desc===a?t?c.splice(p,e.length):e.forEach(function(e,t){c[p+t].desc=s}):e.forEach(function(e,t){c[p+t].desc=a}),t||(c=c.slice(p,e.length))):c=t?c.concat(e.map(function(e){return{id:e.id,desc:s}})):e.map(function(e){return{id:e.id,desc:s}})}else{var d=c.findIndex(function(t){return t.id===e.id});if(d>-1){var f=c[d];f.desc===a?t?c.splice(d,1):(f.desc=s,c=[f]):(f.desc=a,t||(c=[f]))}else t?c.push({id:e.id,desc:s}):c=[{id:e.id,desc:s}]}this.setStateWithData({page:!r.length&&c.length||!t?0:this.state.page,sorted:c},function(){return l&&l(c,e,t)})}}},{key:"filterColumn",value:function(e,t){var n=this.getResolvedState().filtered,r=this.props.onFilteredChange,o=(n||[]).filter(function(t){return t.id!==e.id});""!==t&&o.push({id:e.id,value:t}),this.setStateWithData({filtered:o},function(){return r&&r(o,e,t)})}},{key:"resizeColumnStart",value:function(e,t,n){var r=this;e.stopPropagation();var o,i=e.target.parentElement.getBoundingClientRect().width;o=n?e.changedTouches[0].pageX:e.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:t.id,startX:o,parentWidth:i}},function(){n?(document.addEventListener("touchmove",r.resizeColumnMoving),document.addEventListener("touchcancel",r.resizeColumnEnd),document.addEventListener("touchend",r.resizeColumnEnd)):(document.addEventListener("mousemove",r.resizeColumnMoving),document.addEventListener("mouseup",r.resizeColumnEnd),document.addEventListener("mouseleave",r.resizeColumnEnd))})}},{key:"resizeColumnMoving",value:function(e){e.stopPropagation();var t=this.props,n=t.onResizedChange,r=t.column,o=this.getResolvedState(),i=o.resized,s=o.currentlyResizing,a=o.columns.find(function(e){return e.accessor===s.id||e.id===s.id}),l=a&&null!=a.minResizeWidth?a.minResizeWidth:r.minResizeWidth,u=i.filter(function(e){return e.id!==s.id}),c=void 0;"touchmove"===e.type?c=e.changedTouches[0].pageX:"mousemove"===e.type&&(c=e.pageX);var p=Math.max(s.parentWidth+c-s.startX,l);u.push({id:s.id,value:p}),this.setStateWithData({resized:u},function(){return n&&n(u,e)})}},{key:"resizeColumnEnd",value:function(e){e.stopPropagation();var t="touchend"===e.type||"touchcancel"===e.type;t&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),t||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),t}(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={page:e.defaultPage,pageSize:e.defaultPageSize,sorted:e.defaultSorted,expanded:e.defaultExpanded,filtered:e.defaultFiltered,resized:e.defaultResized,currentlyResizing:!1,skipNextSort:!1},o=n.getResolvedState(e,r),i=n.getDataModel(o,!0);return n.state=n.calculateNewResolvedState(i),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),f(t,[{key:"componentDidMount",value:function(){this.fireFetchData()}},{key:"componentDidUpdate",value:function(e,t){var n=this.getResolvedState(e,t),r=this.getResolvedState(this.props,this.state);["sorted","filtered","resized","expanded"].forEach(function(e){var t="default"+(e.charAt(0).toUpperCase()+e.slice(1));JSON.stringify(n[t])!==JSON.stringify(r[t])&&(r[e]=r[t])}),["sortable","filterable","resizable"].forEach(function(e){if(n[e]!==r[e]){var t=e.replace("able","")+"ed",o="default"+(t.charAt(0).toUpperCase()+t.slice(1));r[t]=r[o]}}),n.data===r.data&&n.columns===r.columns&&n.pivotBy===r.pivotBy&&n.sorted===r.sorted&&n.filtered===r.filtered||this.setStateWithData(this.getDataModel(r,n.data!==r.data))}},{key:"calculateNewResolvedState",value:function(e){var t=this.getResolvedState(),n=this.getResolvedState({},e),r=n.freezeWhenExpanded;if(n.frozen=!1,r)for(var o=Object.keys(n.expanded),i=0;i<o.length;i+=1)if(n.expanded[o[i]]){n.frozen=!0;break}return(t.frozen&&!n.frozen||t.sorted!==n.sorted||t.filtered!==n.filtered||t.showFilters!==n.showFilters||!n.frozen&&t.resolvedData!==n.resolvedData)&&((t.sorted!==n.sorted&&this.props.collapseOnSortingChange||t.filtered!==n.filtered||t.showFilters!==n.showFilters||t.sortedData&&!n.frozen&&t.resolvedData!==n.resolvedData&&this.props.collapseOnDataChange)&&(n.expanded={}),Object.assign(n,this.getSortedData(n))),t.filtered!==n.filtered&&(n.page=0),n.sortedData&&(n.pages=n.manual?n.pages:Math.ceil(n.sortedData.length/n.pageSize),n.page=n.manual?n.page:Math.max(n.page>=n.pages?n.pages-1:n.page,0)),n}},{key:"setStateWithData",value:function(e,t){var n=this,r=this.getResolvedState(),o=this.calculateNewResolvedState(e);return this.setState(o,function(){t&&t(),r.page===o.page&&r.pageSize===o.pageSize&&r.sorted===o.sorted&&r.filtered===o.filtered||n.fireFetchData()})}}]),t}(r.Component)));D.propTypes=k,D.defaultProps=P;const L=D},10446(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(22155)),o=a(n(5821)),i=a(n(70316)),s=a(n(22561));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}s.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var m=void 0!==i.default.createPortal,g=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],y=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}(this,p(t).call(this,e)),h(f(f(n)),"_targetNode",null),h(f(f(n)),"_elementParentNode",null),h(f(f(n)),"_tether",null),h(f(f(n)),"_elementComponent",null),h(f(f(n)),"_targetComponent",null),n.updateChildrenComponents(n.props),n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,o=[{key:"updateChildrenComponents",value:function(e){var t=r.Children.toArray(e.children);if(this._targetComponent=t[0],this._elementComponent=t[1],this._targetComponent&&this._elementComponent&&this._createContainer(),this._elementParentNode&&this.props.className!==e.className){var n,o,i=(this.props.className||"").split(" ").filter(function(e){return e.length>0}),s=(e.className||"").split(" ").filter(function(e){return e.length>0});(n=this._elementParentNode.classList).remove.apply(n,u(i)),(o=this._elementParentNode.classList).add.apply(o,u(s))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,n){this._tether.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tether.once(e,t,n)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)}),this.on("repositioned",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)})}},{key:"_destroy",value:function(){this._elementParentNode&&(m||i.default.unmountComponentAtNode(this._elementParentNode),this._elementParentNode.parentNode.removeChild(this._elementParentNode)),this._tether&&this._tether.destroy(),this._elementParentNode=null,this._tether=null,this._targetNode=null,this._targetComponent=null,this._elementComponent=null}},{key:"_createContainer",value:function(){if(!this._elementParentNode){var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||"",this._renderNode.appendChild(this._elementParentNode)}}},{key:"_update",value:function(){var e=this,t=!this._elementComponent||!this._targetComponent;t||(this._targetNode=i.default.findDOMNode(this),t=!this._targetNode),t?this._destroy():m?this._updateTether():i.default.unstable_renderSubtreeIntoContainer(this,this._elementComponent,this._elementParentNode,function(){e._elementParentNode&&e._updateTether()})}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","renderElementTag","renderElementTo","id","className","style"]),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}({target:this._targetNode,element:this._elementParentNode},r),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),n){var a=this._elementParentNode.style;Object.keys(n).forEach(function(e){a[e]!==n[e]&&(a[e]=n[e])})}this._tether?this._tether.setOptions(o):(this._tether=new s.default(o),this._registerEventListeners()),this._tether.position()}},{key:"render",value:function(){return this._targetComponent?m&&this._elementComponent?[this._targetComponent,i.default.createPortal(this._elementComponent,this._elementParentNode)]:this._targetComponent:null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&c(n.prototype,o),t}(r.Component);function b(e){this.updateChildrenComponents(e)}h(v,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(g),attachment:o.default.oneOf(y).isRequired,targetAttachment:o.default.oneOf(y),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,children:function(e,t,n){var o=e.children,i=r.Children.count(o);return i<=0?new Error("".concat(n," expects at least one child to use as the target element.")):i>2?new Error("Only a max of two children allowed in ".concat(n,".")):void 0}}),h(v,"defaultProps",{renderElementTag:"div",renderElementTo:null});var w,C=function(e){if(Array.isArray(e))return e}(w=r.default.version.split(".").map(Number))||function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return t}(w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),_=C[0],x=C[1];_<16||16===_&&x<9?v.prototype.componentWillUpdate=b:v.prototype.UNSAFE_componentWillUpdate=b;var E=v;t.default=E},74807(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(10446))&&r.__esModule?r:{default:r}},86536(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(22155)),o=a(n(5821)),i=a(n(70316)),s=a(n(22561));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}s.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var m=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],g=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],y=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}(this,(e=p(t)).call.apply(e,[this].concat(i))),h(f(f(n)),"_targetNode",r.default.createRef()),h(f(f(n)),"_elementNode",r.default.createRef()),h(f(f(n)),"_elementParentNode",null),h(f(f(n)),"_tetherInstance",null),n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,o=[{key:"componentDidMount",value:function(){this._createContainer(),this.forceUpdate()}},{key:"componentDidUpdate",value:function(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){var t,n,r=(e.className||"").split(" ").filter(function(e){return e.length>0}),o=(this.props.className||"").split(" ").filter(function(e){return e.length>0});(t=this._elementParentNode.classList).remove.apply(t,u(r)),(n=this._elementParentNode.classList).add.apply(n,u(o))}this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tetherInstance}},{key:"disable",value:function(){this._tetherInstance.disable()}},{key:"enable",value:function(){this._tetherInstance.enable()}},{key:"on",value:function(e,t,n){this._tetherInstance.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tetherInstance.once(e,t,n)}},{key:"off",value:function(e,t){this._tetherInstance.off(e,t)}},{key:"position",value:function(){this._tetherInstance.position()}},{key:"_runRenders",value:function(){var e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}},{key:"_createTetherInstance",value:function(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new s.default(e),this._registerEventListeners()}},{key:"_destroyTetherInstance",value:function(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)}),this.on("repositioned",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)})}},{key:"_destroy",value:function(){this._destroyTetherInstance(),this._removeContainer()}},{key:"_createContainer",value:function(){this._removeContainer();var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||""}},{key:"_addContainerToDOM",value:function(){this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.appendChild(this._elementParentNode)}},{key:"_removeContainer",value:function(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.parentNode.removeChild(this._elementParentNode)}},{key:"_update",value:function(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=(e.renderTarget,e.renderElement,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","renderElementTag","renderElementTo","id","className","style","renderTarget","renderElement"])),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}({target:this._targetNode.current,element:this._elementParentNode},r),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),n){var s=this._elementParentNode.style;Object.keys(n).forEach(function(e){s[e]!==n[e]&&(s[e]=n[e])})}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(o):this._createTetherInstance(o),this._tetherInstance.position()}},{key:"render",value:function(){var e=this._runRenders(),t=e.targetComponent,n=e.elementComponent;return t?r.default.createElement(r.default.Fragment,null,t,n&&this._elementParentNode&&i.default.createPortal(n,this._elementParentNode)):null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&c(n.prototype,o),t}(r.Component);h(y,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(m),attachment:o.default.oneOf(g).isRequired,targetAttachment:o.default.oneOf(g),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,renderTarget:o.default.func,renderElement:o.default.func,children:function(e,t,n){var o=e.children;if(r.Children.count(o)>0)return new Error("".concat(n," no longer uses children to render components. Please use renderTarget and renderElement instead."))}}),h(y,"defaultProps",{renderElementTag:"div",renderElementTo:null});var v=y;t.default=v},24257(e,t,n){"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(86536))&&r.__esModule?r:{default:r}},4508(e,t,n){"use strict";n.r(t),n.d(t,{Bounce:()=>A,Flip:()=>M,Slide:()=>I,ToastContainer:()=>L,Zoom:()=>R,collapseToast:()=>b,cssTransition:()=>w,toast:()=>Q,useToast:()=>P,useToastContainer:()=>E});var r=n(22155),o=n(20051),i=n(35284),s=n(70316);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function u(e){return"number"==typeof e&&!isNaN(e)}function c(e){return"boolean"==typeof e}function p(e){return"string"==typeof e}function d(e){return"function"==typeof e}function f(e){return p(e)||d(e)?e:null}function h(e){return 0===e||e}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e){return(0,r.isValidElement)(e)||p(e)||d(e)||u(e)}var y={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},v={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function b(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,o=e.style;requestAnimationFrame(function(){o.minHeight="initial",o.height=r+"px",o.transition="all "+n+"ms",requestAnimationFrame(function(){o.height="0",o.padding="0",o.margin="0",setTimeout(function(){return t()},n)})})}function w(e){var t,n,i=e.enter,s=e.exit,a=e.duration,u=void 0===a?750:a,c=e.appendPosition,p=void 0!==c&&c,d=e.collapse,f=void 0===d||d,h=e.collapseDuration,m=void 0===h?300:h;return Array.isArray(u)&&2===u.length?(t=u[0],n=u[1]):t=n=u,function(e){var a=e.children,u=e.position,c=e.preventExitTransition,d=e.done,h=l(e,["children","position","preventExitTransition","done"]),g=p?i+"--"+u:i,y=p?s+"--"+u:s,v=function e(){var t=h.nodeRef.current;t&&(t.removeEventListener("animationend",e),f?b(t,d,m):d())};return(0,r.createElement)(o.Ay,Object.assign({},h,{timeout:c?f?m:50:{enter:t,exit:f?n+m:n+50},onEnter:function(){var e=h.nodeRef.current;e&&(e.classList.add(g),e.style.animationFillMode="forwards",e.style.animationDuration=t+"ms")},onEntered:function(){var e=h.nodeRef.current;e&&(e.classList.remove(g),e.style.removeProperty("animationFillMode"),e.style.removeProperty("animationDuration"))},onExit:c?v:function(){var e=h.nodeRef.current;e&&(e.classList.add(y),e.style.animationFillMode="forwards",e.style.animationDuration=n+"ms",e.addEventListener("animationend",v))},unmountOnExit:!0}),a)}}var C={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter(function(e){return e!==t});return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(function(e){return clearTimeout(e)}),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.list.has(e)&&this.list.get(e).forEach(function(n){var o=setTimeout(function(){n.apply(void 0,r)},0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(o)})}};function _(e,t){void 0===t&&(t=!1);var n=(0,r.useRef)(e);return(0,r.useEffect)(function(){t&&(n.current=e)}),n.current}function x(e,t){switch(t.type){case"ADD":return[].concat(e,[t.toastId]).filter(function(e){return e!==t.staleId});case"REMOVE":return h(t.toastId)?e.filter(function(e){return e!==t.toastId}):[]}}function E(e){var t=(0,r.useReducer)(function(e){return e+1},0)[1],n=(0,r.useReducer)(x,[]),o=n[0],i=n[1],s=(0,r.useRef)(null),a=_(0),m=_([]),y=_({}),v=_({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:b,getToast:function(e){return y[e]||null}});function b(e){return-1!==o.indexOf(e)}function w(e){var t=e.containerId,n=v.props,r=n.limit,o=n.enableMultiContainer;r&&(!t||v.containerId===t&&o)&&(a-=m.length,m=[])}function E(e){var t=m.length;if((a=h(e)?a-1:a-v.displayedToast)<0&&(a=0),t>0){var n=h(e)?1:v.props.limit;if(1===t||1===n)v.displayedToast++,S();else{var r=n>t?t:n;v.displayedToast=r;for(var o=0;o<r;o++)S()}}i({type:"REMOVE",toastId:e})}function S(){var e=m.shift(),t=e.toastContent,n=e.toastProps,r=e.staleId;setTimeout(function(){O(t,n,r)},500)}function P(e,n){var o=n.delay,i=n.staleId,h=l(n,["delay","staleId"]);if(g(e)&&!function(e){var t=e.containerId,n=e.toastId,r=e.updateId;return!!(!s.current||v.props.enableMultiContainer&&t!==v.props.containerId||v.isToastActive(n)&&null==r)}(h)){var b=h.toastId,w=h.updateId,C=v.props,_=function(){return E(b)},x=!(0,v.isToastActive)(b);x&&a++;var S,P,T={toastId:b,updateId:w,key:h.key||v.toastKey++,type:h.type,closeToast:_,closeButton:h.closeButton,rtl:C.rtl,position:h.position||C.position,transition:h.transition||C.transition,className:f(h.className||C.toastClassName),bodyClassName:f(h.bodyClassName||C.bodyClassName),style:h.style||C.toastStyle,bodyStyle:h.bodyStyle||C.bodyStyle,onClick:h.onClick||C.onClick,pauseOnHover:c(h.pauseOnHover)?h.pauseOnHover:C.pauseOnHover,pauseOnFocusLoss:c(h.pauseOnFocusLoss)?h.pauseOnFocusLoss:C.pauseOnFocusLoss,draggable:c(h.draggable)?h.draggable:C.draggable,draggablePercent:u(h.draggablePercent)?h.draggablePercent:C.draggablePercent,closeOnClick:c(h.closeOnClick)?h.closeOnClick:C.closeOnClick,progressClassName:f(h.progressClassName||C.progressClassName),progressStyle:h.progressStyle||C.progressStyle,autoClose:(S=h.autoClose,P=C.autoClose,!1===S||u(S)&&S>0?S:P),hideProgressBar:c(h.hideProgressBar)?h.hideProgressBar:C.hideProgressBar,progress:h.progress,role:p(h.role)?h.role:C.role,deleteToast:function(){!function(e){delete y[e],t()}(b)}};d(h.onOpen)&&(T.onOpen=h.onOpen),d(h.onClose)&&(T.onClose=h.onClose);var k=C.closeButton;!1===h.closeButton||g(h.closeButton)?k=h.closeButton:!0===h.closeButton&&(k=!g(C.closeButton)||C.closeButton),T.closeButton=k;var A=e;(0,r.isValidElement)(e)&&!p(e.type)?A=(0,r.cloneElement)(e,{closeToast:_,toastProps:T}):d(e)&&(A=e({closeToast:_,toastProps:T})),C.limit&&C.limit>0&&a>C.limit&&x?m.push({toastContent:A,toastProps:T,staleId:i}):u(o)&&o>0?setTimeout(function(){O(A,T,i)},o):O(A,T,i)}}function O(e,t,n){var r=t.toastId;y[r]={content:e,props:t},i({type:"ADD",toastId:r,staleId:n})}return(0,r.useEffect)(function(){return v.containerId=e.containerId,C.cancelEmit(3).on(0,P).on(1,function(e){return s.current&&E(e)}).on(5,w).emit(2,v),function(){return C.emit(3,v)}},[]),(0,r.useEffect)(function(){v.isToastActive=b,v.displayedToast=o.length,C.emit(4,o.length,e.containerId)},[o]),(0,r.useEffect)(function(){v.props=e}),{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(y).reverse():Object.keys(y),o=0;o<r.length;o++){var i=y[r[o]],s=i.props.position;n[s]||(n[s]=[]),n[s].push(i)}return Object.keys(n).map(function(e){return t(e,n[e])})},collection:y,containerRef:s,isToastActive:b}}function S(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function P(e){var t=(0,r.useState)(!0),n=t[0],o=t[1],i=(0,r.useState)(!1),s=i[0],a=i[1],l=(0,r.useRef)(null),u=_({start:0,x:0,y:0,deltaX:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),c=_(e,!0),p=e.autoClose,f=e.pauseOnHover,h=e.closeToast,m=e.onClick,g=e.closeOnClick;function y(t){var n=l.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.start=u.x=S(t.nativeEvent),u.removalDistance=n.offsetWidth*(e.draggablePercent/100)}function v(){if(u.boundingRect){var t=u.boundingRect,n=t.top,r=t.bottom,o=t.left,i=t.right;e.pauseOnHover&&u.x>=o&&u.x<=i&&u.y>=n&&u.y<=r?w():b()}}function b(){o(!0)}function w(){o(!1)}function C(e){e.preventDefault();var t=l.current;u.canDrag&&(n&&w(),u.x=S(e),u.deltaX=u.x-u.start,u.y=function(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}(e),u.start!==u.x&&(u.canCloseOnClick=!1),t.style.transform="translateX("+u.deltaX+"px)",t.style.opacity=""+(1-Math.abs(u.deltaX/u.removalDistance)))}function x(){var t=l.current;if(u.canDrag){if(u.canDrag=!1,Math.abs(u.deltaX)>u.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translateX(0)",t.style.opacity="1"}}(0,r.useEffect)(function(){return d(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),function(){d(c.onClose)&&c.onClose((0,r.isValidElement)(c.children)&&c.children.props)}},[]),(0,r.useEffect)(function(){return e.draggable&&(document.addEventListener("mousemove",C),document.addEventListener("mouseup",x),document.addEventListener("touchmove",C),document.addEventListener("touchend",x)),function(){e.draggable&&(document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",x))}},[e.draggable]),(0,r.useEffect)(function(){return e.pauseOnFocusLoss&&(window.addEventListener("focus",b),window.addEventListener("blur",w)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",w))}},[e.pauseOnFocusLoss]);var E={onMouseDown:y,onTouchStart:y,onMouseUp:v,onTouchEnd:v};return p&&f&&(E.onMouseEnter=w,E.onMouseLeave=b),g&&(E.onClick=function(e){m&&m(e),u.canCloseOnClick&&h()}),{playToast:b,pauseToast:w,isRunning:n,preventExitTransition:s,toastRef:l,eventHandlers:E}}function O(e){var t=e.closeToast,n=e.type,o=e.ariaLabel,i=void 0===o?"close":o;return(0,r.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},(0,r.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,r.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function T(e){var t,n,o=e.delay,s=e.isRunning,l=e.closeToast,u=e.type,c=e.hide,p=e.className,f=e.style,h=e.controlledProgress,m=e.progress,g=e.rtl,y=e.isIn,v=a({},f,{animationDuration:o+"ms",animationPlayState:s?"running":"paused",opacity:c?0:1});h&&(v.transform="scaleX("+m+")");var b=["Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+u,(t={},t["Toastify__progress-bar--rtl"]=g,t)],w=d(p)?p({rtl:g,type:u,defaultClassName:i.A.apply(void 0,b)}):i.A.apply(void 0,[].concat(b,[p])),C=((n={})[h&&m>=1?"onTransitionEnd":"onAnimationEnd"]=h&&m<1?null:function(){y&&l()},n);return(0,r.createElement)("div",Object.assign({className:w,style:v},C))}T.defaultProps={type:v.DEFAULT,hide:!1};var k=function(e){var t,n=P(e),o=n.isRunning,s=n.preventExitTransition,a=n.toastRef,l=n.eventHandlers,u=e.closeButton,c=e.children,p=e.autoClose,f=e.onClick,h=e.type,m=e.hideProgressBar,g=e.closeToast,y=e.transition,v=e.position,b=e.className,w=e.style,C=e.bodyClassName,_=e.bodyStyle,x=e.progressClassName,E=e.progressStyle,S=e.updateId,O=e.role,k=e.progress,A=e.rtl,I=e.toastId,R=e.deleteToast,M=["Toastify__toast","Toastify__toast--"+h,(t={},t["Toastify__toast--rtl"]=A,t)],D=d(b)?b({rtl:A,position:v,type:h,defaultClassName:i.A.apply(void 0,M)}):i.A.apply(void 0,[].concat(M,[b])),L=!!k;return(0,r.createElement)(y,{in:e.in,appear:!0,done:R,position:v,preventExitTransition:s,nodeRef:a},(0,r.createElement)("div",Object.assign({id:I,onClick:f,className:D||void 0},l,{style:w,ref:a}),(0,r.createElement)("div",Object.assign({},e.in&&{role:O},{className:d(C)?C({type:h}):(0,i.A)("Toastify__toast-body",C),style:_}),c),function(e){if(e){var t={closeToast:g,type:h};return d(e)?e(t):(0,r.isValidElement)(e)?(0,r.cloneElement)(e,t):void 0}}(u),(p||L)&&(0,r.createElement)(T,Object.assign({},S&&!L?{key:"pb-"+S}:{},{rtl:A,delay:p,isRunning:o,isIn:e.in,closeToast:g,hide:m,type:h,style:E,className:x,controlledProgress:L,progress:k}))))},A=w({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),I=w({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),R=w({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),M=w({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"}),D=function(e){var t=e.children,n=e.className,o=e.style,i=l(e,["children","className","style"]);return delete i.in,(0,r.createElement)("div",{className:n,style:o},r.Children.map(t,function(e){return(0,r.cloneElement)(e,i)}))},L=function(e){var t=E(e),n=t.getToastToRender,o=t.containerRef,s=t.isToastActive,l=e.className,u=e.style,c=e.rtl,p=e.containerId;return(0,r.createElement)("div",{ref:o,className:"Toastify",id:p},n(function(e,t){var n,o,p={className:d(l)?l({position:e,rtl:c,defaultClassName:(0,i.A)("Toastify__toast-container","Toastify__toast-container--"+e,(n={},n["Toastify__toast-container--rtl"]=c,n))}):(0,i.A)("Toastify__toast-container","Toastify__toast-container--"+e,(o={},o["Toastify__toast-container--rtl"]=c,o),f(l)),style:0===t.length?a({},u,{pointerEvents:"none"}):a({},u)};return(0,r.createElement)(D,Object.assign({},p,{key:"container-"+e}),t.map(function(e){var t=e.content,n=e.props;return(0,r.createElement)(k,Object.assign({},n,{in:s(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?O:n.closeButton}),t)}))}))};L.defaultProps={position:y.TOP_RIGHT,transition:A,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:O,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,role:"alert"};var N,V,j,F=new Map,z=[],B=!1;function H(){return F.size>0}function U(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function q(e){return e&&(p(e.toastId)||u(e.toastId))?e.toastId:U()}function W(e,t){return H()?C.emit(0,e,t):(z.push({content:e,options:t}),B&&m&&(B=!1,V=document.createElement("div"),document.body.appendChild(V),(0,s.render)((0,r.createElement)(L,Object.assign({},j)),V))),t.toastId}function $(e,t){return a({},t,{type:t&&t.type||e,toastId:q(t)})}var Q=function(e,t){return W(e,$(v.DEFAULT,t))};Q.success=function(e,t){return W(e,$(v.SUCCESS,t))},Q.info=function(e,t){return W(e,$(v.INFO,t))},Q.error=function(e,t){return W(e,$(v.ERROR,t))},Q.warning=function(e,t){return W(e,$(v.WARNING,t))},Q.dark=function(e,t){return W(e,$(v.DARK,t))},Q.warn=Q.warning,Q.dismiss=function(e){return H()&&C.emit(1,e)},Q.clearWaitingQueue=function(e){return void 0===e&&(e={}),H()&&C.emit(5,e)},Q.isActive=function(e){var t=!1;return F.forEach(function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},Q.update=function(e,t){void 0===t&&(t={}),setTimeout(function(){var n=function(e,t){var n,r=(n=t.containerId,H()?F.get(n||N):null);return r?r.getToast(e):null}(e,t);if(n){var r=n.props,o=n.content,i=a({},r,t,{toastId:t.toastId||e,updateId:U()});i.toastId!==e&&(i.staleId=e);var s=void 0!==i.render?i.render:o;delete i.render,W(s,i)}},0)},Q.done=function(e){Q.update(e,{progress:1})},Q.onChange=function(e){return d(e)&&C.on(4,e),function(){d(e)&&C.off(4,e)}},Q.configure=function(e){void 0===e&&(e={}),B=!0,j=e},Q.POSITION=y,Q.TYPE=v,C.on(2,function(e){N=e.containerId||e,F.set(N,e),z.forEach(function(e){C.emit(0,e.content,e.options)}),z=[]}).on(3,function(e){F.delete(e.containerId||e),0===F.size&&C.off(0).off(1).off(5),m&&V&&document.body.removeChild(V)})},846(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(67311),o=n(1110),i=n(32252),s=n(24310),a=n(48532),l=n(22155),u=n(20051),c=n(44299),p=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,a.A)(e,t)})},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&(0,c.F)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach(function(t){return(0,s.A)(e,t)})}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&p(e,r),o&&p(e,o),i&&p(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.A)(e,["classNames"]));return l.createElement(u.Ay,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);d.defaultProps={classNames:""},d.propTypes={};const f=d},20051(e,t,n){"use strict";n.d(t,{Ay:()=>y,_K:()=>f,ns:()=>d,ze:()=>h});var r=n(1110),o=n(32252),i=n(22155),s=n(70316),a=n(81858),l=n(86801),u=n(44299),c="unmounted",p="exited",d="entering",f="entered",h="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?c:p,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);n&&(0,u.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[s.findDOMNode(this),r],i=o[0],l=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!e&&!n||a.A.disabled?this.safeSetState({status:f},function(){t.props.onEntered(i)}):(this.props.onEnter(i,l),this.safeSetState({status:d},function(){t.props.onEntering(i,l),t.onTransitionEnd(c,function(){t.safeSetState({status:f},function(){t.props.onEntered(i,l)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);t&&!a.A.disabled?(this.props.onExit(r),this.safeSetState({status:h},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(r)})})})):this.safeSetState({status:p},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.A.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function g(){}m.contextType=l.A,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=c,m.EXITED=p,m.ENTERING=d,m.ENTERED=f,m.EXITING=h;const y=m},48994(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(1110),o=n(67311),i=n(53378),s=n(32252),a=n(22155),l=n(86801);function u(e,t){var n=Object.create(null);return e&&a.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)}),n}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}function p(e,t,n){var r=u(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];a[o[l][r]]=n(u)}a[l]=n(l)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if((0,a.isValidElement)(s)){var l=i in t,u=i in r,p=t[i],d=(0,a.isValidElement)(p)&&!p.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,a.isValidElement)(p)&&(o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:p.props.in,exit:c(s,"exit",e),enter:c(s,"enter",e)})):o[i]=(0,a.cloneElement)(s,{in:!1}):o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:c(s,"exit",e),enter:c(s,"enter",e)})}}),o}var d=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},f=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,i.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,s.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,u(n.children,function(e){return(0,a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:c(e,"appear",n),enter:c(e,"enter",n),exit:c(e,"exit",n)})})):p(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=u(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.A)(e,["component","childFactory"]),i=this.state.contextValue,s=d(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?a.createElement(l.A.Provider,{value:i},s):a.createElement(l.A.Provider,{value:i},a.createElement(t,o,s))},t}(a.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};const h=f},86801(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(22155).createContext(null)},81858(e,t,n){"use strict";n.d(t,{A:()=>r});const r={disabled:!1}},27184(e,t,n){"use strict";n.r(t),n.d(t,{CSSTransition:()=>r.A,ReplaceTransition:()=>c,SwitchTransition:()=>C,Transition:()=>f.Ay,TransitionGroup:()=>l.A,config:()=>_.A});var r=n(846),o=n(1110),i=n(32252),s=n(22155),a=n(70316),l=n(48994),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,i.A)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=s.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var l=i.props.nodeRef?void 0:a.findDOMNode(this);this.props[e](l)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,o.A)(e,["children","in"]),i=s.Children.toArray(t),a=i[0],u=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,s.createElement(l.A,r,n?s.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s.Component);u.propTypes={};const c=u;var p,d,f=n(20051),h=n(86801),m="out-in",g="in-out",y=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},v=((p={})[m]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:y(t,"onExited",function(){n(f.ns,null)})})},p[g]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s.cloneElement(r,{in:!0,onEntered:y(r,"onEntered",function(){n(f.ns)})})]},p),b=((d={})[m]=function(e){var t=e.children,n=e.changeState;return s.cloneElement(t,{in:!0,onEntered:y(t,"onEntered",function(){n(f._K,s.cloneElement(t,{in:!0}))})})},d[g]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s.cloneElement(t,{in:!1,onExited:y(t,"onExited",function(){r(f._K,s.cloneElement(n,{in:!0}))})}),s.cloneElement(n,{in:!0})]},d),w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:f._K,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===f.ns&&e.mode===g?{status:f.ns}:!t.current||((n=t.current)===(r=e.children)||s.isValidElement(n)&&s.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:s.cloneElement(e.children,{in:!0})}:{status:f.ze};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,l={children:n,current:a,changeState:this.changeState,status:i};switch(i){case f.ns:e=b[r](l);break;case f.ze:e=v[r](l);break;case f._K:e=a}return s.createElement(h.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(s.Component);w.propTypes={},w.defaultProps={mode:m};const C=w;var _=n(81858)},44299(e,t,n){"use strict";n.d(t,{F:()=>r});var r=function(e){return e.scrollTop}},62921(e,t,n){"use strict";var r=n(22155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},66018(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var C=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)_.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:x.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function k(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+T(l,0):i,C(s)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),k(s,t,o,"",function(e){return e})):null!=s&&(P(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",C(e))for(var u=0;u<e.length;u++){var c=i+T(a=e[u],u);l+=k(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=k(a=a.value,t,o,c=i+T(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],o=0;return k(e,r,"","",function(e){return t.call(n,e,o++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},M={transition:null},D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:M,ReactCurrentOwner:x};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=L,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)_.call(t,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},22155(e,t,n){"use strict";e.exports=n(66018)},65723(e,t,n){"use strict";e.exports=n(62921)},76357(e,t,n){"use strict";var r=n(9387),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var i=Object.create(n(41166));i.inherits=n(91193);var s=n(31755),a=n(18511);i.inherits(p,s);for(var l=o(a.prototype),u=0;u<l.length;u++){var c=l[u];p.prototype[c]||(p.prototype[c]=a.prototype[c])}function p(e){if(!(this instanceof p))return new p(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},25825(e,t,n){"use strict";e.exports=i;var r=n(8235),o=Object.create(n(41166));function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=n(91193),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},31755(e,t,n){"use strict";var r=n(85409),o=n(9387);e.exports=b;var i,s=n(85101);b.ReadableState=v,n(80381).EventEmitter;var a=function(e,t){return e.listeners(t).length},l=n(94484),u=n(18604).Buffer,c=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=Object.create(n(41166));p.inherits=n(91193);var d=n(87679),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=n(33211),g=n(46955);p.inherits(b,l);var y=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var r=t instanceof(i=i||n(76357));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(89851).I),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(76357),!(this instanceof b))return new b(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function w(e,t,n,r,o){var i,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}}(e,s)):(o||(i=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):C(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):P(e,s)):C(e,s,t,!1))):r||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),P(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},b.prototype.unshift=function(e){return w(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(89851).I),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var _=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(S,e):S(e))}function S(e){f("emit readable"),e.emit("readable"),A(e)}function P(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){f("readable nexttick read 0"),e.read(0)}function k(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;for(e-=o.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,s),0===(e-=s)){s===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++o}return t.length-=o,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):E(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?v:u;function u(){f("onend"),e.end()}i.endEmitted?o.nextTick(l):n.once("end",l),e.on("unpipe",function t(r,o){f("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,f("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",h),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())});var c=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",c);var p=!1,d=!1;function h(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==D(i.pipes,e))&&!p&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++,d=!0),n.pause())}function m(t){f("onerror",t),v(),e.removeListener("error",m),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),v()}function y(){f("onfinish"),e.removeListener("close",g),v()}function v(){f("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=D(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):o.nextTick(T,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(k,e,t))}(this,e)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<y.length;i++)e.on(y[i],this.emit.bind(this,y[i]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=I},8235(e,t,n){"use strict";e.exports=s;var r=n(76357),o=Object.create(n(41166));function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){l(e,t,n)}):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(91193),o.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},18511(e,t,n){"use strict";var r=n(85409),o=n(9387);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var s,a=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:o.nextTick;y.WritableState=g;var l=Object.create(n(41166));l.inherits=n(91193);var u,c={deprecate:n(91947)},p=n(94484),d=n(18604).Buffer,f=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=n(46955);function m(){}function g(e,t){s=s||n(76357),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var l=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:r&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),x(e,t))}(e,n,r,t,i);else{var s=C(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?a(b,e,n,s,i):b(e,n,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function y(e){if(s=s||n(76357),!(u.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),p.call(this)}function v(e,t,n,r,o,i,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var a=0,l=!0;n;)o[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;o.allBuffers=l,v(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,p=n.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,c,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var n=C(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(y,p),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===y&&e&&e._writableState instanceof g}})):u=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,a=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof f);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(r,s),i=!1),i}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,o,i){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n)),t}(t,r,o);r!==s&&(n=!0,o="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,a,r,o,i);return l}(this,i,a,e,t,n)),s},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,x(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=h.destroy,y.prototype._undestroy=h.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}},33211(e,t,n){"use strict";var r=n(18604).Buffer,o=n(99603);function i(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,o=0;n;)i(n.data,t,o),o+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},46955(e,t,n){"use strict";var r=n(9387);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(o,n,e)):r.nextTick(o,n,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},94484(e,t,n){e.exports=n(80381).EventEmitter},9464(e,t,n){(t=e.exports=n(31755)).Stream=t,t.Readable=t,t.Writable=n(18511),t.Duplex=n(76357),t.Transform=n(8235),t.PassThrough=n(25825)},41399(e,t,n){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(22155))},91385(e,t,n){"use strict";var r=n(11663),o=n(45918),i=n(35998);function s(e){var t=r(i);t.prototype.options=o(t.prototype.options,this.data("settings"),e),this.Parser=t}e.exports=s,s.Parser=i},49347(e,t,n){"use strict";var r=n(45918),o=n(45413);e.exports=function(e){return i.raw=function(e,i,s){return o(e,r(s,{position:t(i),warning:n}))},i;function t(t){for(var n=e.offset,r=t.line,o=[];++r&&r in n;)o.push((n[r]||0)+1);return{start:t,indent:o}}function n(t,n,r){3!==r&&e.file.message(t,n)}function i(r,i,s){o(r,{position:t(i),warning:n,text:s,reference:s,textContext:e,referenceContext:e})}}},68699(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(80399)}},80179(e){"use strict";e.exports=function(e,t){for(var n=e.indexOf("\n",t);n>t&&" "===e.charAt(n-1);)n--;return n}},3489(e){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},83737(e){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},69504(e){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);return-1===r?n:-1===n||r<n?r:n}},21533(e){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},19918(e){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r||n<r?n:r}},62889(e){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);return-1===r?n:-1===n||r<n?r:n}},5716(e){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},63701(e){"use strict";e.exports=function(e,n){var r,o=t.length,i=-1,s=-1;if(!this.options.gfm)return-1;for(;++i<o;)-1!==(r=e.indexOf(t[i],n))&&(r<s||-1===s)&&(s=r);return s};var t=["https://","http://","mailto:"]},73334(e,t,n){"use strict";var r=n(45918),o=n(85094);e.exports=function(){var e,t=this,n=String(t.file),s={line:1,column:1,offset:0},a=r(s);return 65279===(n=n.replace(i,"\n")).charCodeAt(0)&&(n=n.slice(1),a.column++,a.offset++),e={type:"root",children:t.tokenizeBlock(n,a),position:{start:s,end:t.eof||r(s)}},t.options.position||o(e,!0),e};var i=/\r\n|\r/g},35998(e,t,n){"use strict";var r=n(45918),o=n(90408),i=n(79458),s=n(94645),a=n(49347),l=n(89268);function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=i(t).toOffset,this.unescape=s(this,"escape"),this.decode=a(this)}e.exports=u;var c=u.prototype;function p(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(80510),c.parse=n(73334),c.options=n(68699),c.exitStart=o("atStart",!0),c.enterList=o("inList",!1),c.enterLink=o("inLink",!1),c.enterBlock=o("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(78619),indentedCode:n(17044),fencedCode:n(47508),blockquote:n(92968),atxHeading:n(20267),thematicBreak:n(51786),list:n(72815),setextHeading:n(50133),html:n(63562),footnote:n(28333),definition:n(37610),table:n(54851),paragraph:n(7790)},c.inlineTokenizers={escape:n(84304),autoLink:n(5025),url:n(19130),html:n(49910),link:n(49911),reference:n(14030),strong:n(79100),emphasis:n(81841),deletion:n(1864),code:n(56470),break:n(16884),text:n(38756)},c.blockMethods=p(c.blockTokenizers),c.inlineMethods=p(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},80510(e,t,n){"use strict";var r=n(45918),o=n(64685),i=n(68699);e.exports=function(e){var t,n,s=this,a=s.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in i){if(null==(n=e[t])&&(n=a[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return s.options=e,s.escape=o(e),s}},5025(e,t,n){"use strict";var r=n(13279),o=n(45413),i=n(5716);e.exports=a,a.locator=i,a.notInLink=!0;var s="mailto:";function a(e,t,n){var i,a,l,u,c,p,d,f,h,m,g,y;if("<"===t.charAt(0)){for(i=this,a="",l=t.length,u=0,c="",d=!1,f="",u++,a="<";u<l&&(p=t.charAt(u),!(r(p)||">"===p||"@"===p||":"===p&&"/"===t.charAt(u+1)));)c+=p,u++;if(c){if(f+=c,c="",f+=p=t.charAt(u),u++,"@"===p)d=!0;else{if(":"!==p||"/"!==t.charAt(u+1))return;f+="/",u++}for(;u<l&&(p=t.charAt(u),!r(p)&&">"!==p);)c+=p,u++;if(p=t.charAt(u),c&&">"===p)return!!n||(m=f+=c,a+=f+p,(h=e.now()).column++,h.offset++,d&&(f.slice(0,7).toLowerCase()===s?(m=m.substr(7),h.column+=7,h.offset+=7):f=s+f),g=i.inlineTokenizers,i.inlineTokenizers={text:g.text},y=i.enterLink(),m=i.tokenizeInline(m,h),i.inlineTokenizers=g,y(),e(a)({type:"link",title:null,url:o(f,{nonTerminated:!1}),children:m}))}}}},92968(e,t,n){"use strict";var r=n(93729),o=n(8745);e.exports=function(e,t,n){for(var i,s,a,l,u,c,p,d,f,h=this,m=h.offset,g=h.blockTokenizers,y=h.interruptBlockquote,v=e.now(),b=v.line,w=t.length,C=[],_=[],x=[],E=0;E<w&&(" "===(s=t.charAt(E))||"\t"===s);)E++;if(">"===t.charAt(E)){if(n)return!0;for(E=0;E<w;){for(p=E,d=!1,-1===(l=t.indexOf("\n",E))&&(l=w);E<w&&(" "===(s=t.charAt(E))||"\t"===s);)E++;if(">"===t.charAt(E)?(E++,d=!0," "===t.charAt(E)&&E++):E=p,u=t.slice(E,l),!d&&!r(u)){E=p;break}if(!d&&(a=t.slice(E),o(y,g,h,[e,a,!0])))break;c=p===E?u:t.slice(p,l),x.push(E-p),C.push(c),_.push(u),E=l+1}for(E=-1,w=x.length,i=e(C.join("\n"));++E<w;)m[b]=(m[b]||0)+x[E],b++;return f=h.enterBlock(),_=h.tokenizeBlock(_.join("\n"),v),f(),i({type:"blockquote",children:_})}}},16884(e,t,n){"use strict";var r=n(80179);function o(e,t,n){for(var r,o=t.length,i=-1,s="";++i<o;){if("\n"===(r=t.charAt(i))){if(i<2)return;return!!n||e(s+=r)({type:"break"})}if(" "!==r)return;s+=r}}e.exports=o,o.locator=r},47508(e,t,n){"use strict";var r=n(5432);e.exports=function(e,t,n){var a,l,u,c,p,d,f,h,m,g,y,v=this,b=v.options,w=t.length+1,C=0,_="";if(b.gfm){for(;C<w&&((u=t.charAt(C))===s||u===i);)_+=u,C++;if(g=C,"~"===(u=t.charAt(C))||"`"===u){for(C++,l=u,a=1,_+=u;C<w&&(u=t.charAt(C))===l;)_+=u,a++,C++;if(!(a<3)){for(;C<w&&((u=t.charAt(C))===s||u===i);)_+=u,C++;for(c="",p="";C<w&&(u=t.charAt(C))!==o&&"~"!==u&&"`"!==u;)u===s||u===i?p+=u:(c+=p+u,p=""),C++;if(!(u=t.charAt(C))||u===o){if(n)return!0;for((y=e.now()).column+=_.length,y.offset+=_.length,_+=c,c=v.decode.raw(v.unescape(c),y),p&&(_+=p),p="",h="",m="",d="",f="";C<w;)if(d+=h,f+=m,h="",m="",(u=t.charAt(C))===o){for(d?(h+=u,m+=u):_+=u,p="",C++;C<w&&(u=t.charAt(C))===s;)p+=u,C++;if(h+=p,m+=p.slice(g),!(p.length>=4)){for(p="";C<w&&(u=t.charAt(C))===l;)p+=u,C++;if(h+=p,m+=p,!(p.length<a)){for(p="";C<w&&((u=t.charAt(C))===s||u===i);)h+=u,m+=u,C++;if(!u||u===o)break}}}else d+=u,m+=u,C++;return e(_+=d+h)({type:"code",lang:c||null,value:r(f)})}}}}};var o="\n",i="\t",s=" "},17044(e,t,n){"use strict";var r=n(96210),o=n(5432);e.exports=function(e,t,n){for(var r,s,a,l=-1,u=t.length,c="",p="",d="",f="";++l<u;)if(r=t.charAt(l),a)if(a=!1,c+=d,p+=f,d="",f="","\n"===r)d=r,f=r;else for(c+=r,p+=r;++l<u;){if(!(r=t.charAt(l))||"\n"===r){f=r,d=r;break}c+=r,p+=r}else if(" "===r&&t.charAt(l+1)===r&&t.charAt(l+2)===r&&t.charAt(l+3)===r)d+=i,l+=3,a=!0;else if("\t"===r)d+=r,a=!0;else{for(s="";"\t"===r||" "===r;)s+=r,r=t.charAt(++l);if("\n"!==r)break;d+=s+r,f+=r}if(p)return!!n||e(c)({type:"code",lang:null,value:o(p)})};var i=r(" ",4)},56470(e,t,n){"use strict";var r=n(13279),o=n(3489);e.exports=s,s.locator=o;var i="`";function s(e,t,n){for(var o,s,a,l,u,c,p,d,f=t.length,h=0,m="",g="";h<f&&t.charAt(h)===i;)m+=i,h++;if(m){for(u=m,l=h,m="",d=t.charAt(h),a=0;h<f;){if(c=d,d=t.charAt(h+1),c===i?(a++,g+=c):(a=0,m+=c),a&&d!==i){if(a===l){u+=m+g,p=!0;break}m+=g,g=""}h++}if(!p){if(l%2!=0)return;m=""}if(n)return!0;for(o="",s="",f=m.length,h=-1;++h<f;)c=m.charAt(h),r(c)?s+=c:(s&&(o&&(o+=s),s=""),o+=c);return e(u)({type:"inlineCode",value:o})}}},37610(e,t,n){"use strict";var r=n(13279),o=n(81833);e.exports=u,u.notInList=!0,u.notInBlock=!0;var i="\n",s="\t",a=" ",l="]";function u(e,t,n){for(var r,u,d,f,h,m,g,y,v=this,b=v.options.commonmark,w=0,C=t.length,_="";w<C&&((f=t.charAt(w))===a||f===s);)_+=f,w++;if("["===(f=t.charAt(w))){for(w++,_+=f,d="";w<C&&(f=t.charAt(w))!==l;)"\\"===f&&(d+=f,w++,f=t.charAt(w)),d+=f,w++;if(d&&t.charAt(w)===l&&":"===t.charAt(w+1)){for(m=d,w=(_+=d+l+":").length,d="";w<C&&((f=t.charAt(w))===s||f===a||f===i);)_+=f,w++;if(d="",r=_,"<"===(f=t.charAt(w))){for(w++;w<C&&c(f=t.charAt(w));)d+=f,w++;if((f=t.charAt(w))===c.delimiter)_+="<"+d+f,w++;else{if(b)return;w-=d.length+1,d=""}}if(!d){for(;w<C&&p(f=t.charAt(w));)d+=f,w++;_+=d}if(d){for(g=d,d="";w<C&&((f=t.charAt(w))===s||f===a||f===i);)d+=f,w++;if(h=null,'"'===(f=t.charAt(w))?h='"':"'"===f?h="'":"("===f&&(h=")"),h){if(!d)return;for(w=(_+=d+f).length,d="";w<C&&(f=t.charAt(w))!==h;){if(f===i){if(w++,(f=t.charAt(w))===i||f===h)return;d+=i}d+=f,w++}if((f=t.charAt(w))!==h)return;u=_,_+=d+f,w++,y=d,d=""}else d="",w=_.length;for(;w<C&&((f=t.charAt(w))===s||f===a);)_+=f,w++;return(f=t.charAt(w))&&f!==i?void 0:!!n||(r=e(r).test().end,g=v.decode.raw(v.unescape(g),r,{nonTerminated:!1}),y&&(u=e(u).test().end,y=v.decode.raw(v.unescape(y),u)),e(_)({type:"definition",identifier:o(m),title:y||null,url:g}))}}}}function c(e){return">"!==e&&"["!==e&&e!==l}function p(e){return"["!==e&&e!==l&&!r(e)}c.delimiter=">"},1864(e,t,n){"use strict";var r=n(13279),o=n(83737);e.exports=s,s.locator=o;var i="~";function s(e,t,n){var o,s,a,l="",u="",c="",p="";if(this.options.gfm&&t.charAt(0)===i&&t.charAt(1)===i&&!r(t.charAt(2)))for(o=1,s=t.length,(a=e.now()).column+=2,a.offset+=2;++o<s;){if(!((l=t.charAt(o))!==i||u!==i||c&&r(c)))return!!n||e("~~"+p+"~~")({type:"delete",children:this.tokenizeInline(p,a)});p+=u,c=u,u=l}}},81841(e,t,n){"use strict";var r=n(93729),o=n(65541),i=n(13279),s=n(69504);function a(e,t,n){var s,a,l,u,c,p,d,f=0,h=t.charAt(f);if(!("*"!==h&&"_"!==h||(a=this.options.pedantic,c=h,l=h,p=t.length,f++,u="",h="",a&&i(t.charAt(f)))))for(;f<p;){if(d=h,!((h=t.charAt(f))!==l||a&&i(d))){if((h=t.charAt(++f))!==l){if(!r(u)||d===l)return;if(!a&&"_"===l&&o(h)){u+=l;continue}return!!n||((s=e.now()).column++,s.offset++,e(c+u+l)({type:"emphasis",children:this.tokenizeInline(u,s)}))}u+=l}a||"\\"!==h||(u+=h,h=t.charAt(++f)),u+=h,f++}}e.exports=a,a.locator=s},84304(e,t,n){"use strict";var r=n(21533);function o(e,t,n){var r,o;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(o="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(o))}e.exports=o,o.locator=r},28333(e,t,n){"use strict";var r=n(13279),o=n(81833);e.exports=s,s.notInList=!0,s.notInBlock=!0;var i=/^( {4}|\t)?/gm;function s(e,t,n){var s,a,l,u,c,p,d,f,h,m,g,y,v=this,b=v.offset;if(v.options.footnotes){for(s=0,a=t.length,l="",u=e.now(),c=u.line;s<a&&(h=t.charAt(s),r(h));)l+=h,s++;if("["===t.charAt(s)&&"^"===t.charAt(s+1)){for(s=(l+="[^").length,d="";s<a&&"]"!==(h=t.charAt(s));)"\\"===h&&(d+=h,s++,h=t.charAt(s)),d+=h,s++;if(d&&"]"===t.charAt(s)&&":"===t.charAt(s+1)){if(n)return!0;for(m=o(d),s=(l+=d+"]:").length;s<a&&("\t"===(h=t.charAt(s))||" "===h);)l+=h,s++;for(u.column+=l.length,u.offset+=l.length,d="",p="",f="";s<a;){if("\n"===(h=t.charAt(s))){for(f=h,s++;s<a&&"\n"===(h=t.charAt(s));)f+=h,s++;for(d+=f,f="";s<a&&" "===(h=t.charAt(s));)f+=h,s++;if(0===f.length)break;d+=f}d&&(p+=d,d=""),p+=h,s++}return l+=p,p=p.replace(i,function(e){return b[c]=(b[c]||0)+e.length,c++,""}),g=e(l),y=v.enterBlock(),p=v.tokenizeBlock(p,u),y(),g({type:"footnoteDefinition",identifier:m,children:p})}}}}},20267(e){"use strict";e.exports=function(e,o,i){for(var s,a,l,u=this.options,c=o.length+1,p=-1,d=e.now(),f="",h="";++p<c;){if((s=o.charAt(p))!==n&&s!==t){p--;break}f+=s}for(l=0;++p<=c;){if((s=o.charAt(p))!==r){p--;break}f+=s,l++}if(!(l>6)&&l&&(u.pedantic||o.charAt(p+1)!==r)){for(c=o.length+1,a="";++p<c;){if((s=o.charAt(p))!==n&&s!==t){p--;break}a+=s}if(u.pedantic||0!==a.length||!s||"\n"===s){if(i)return!0;for(f+=a,a="",h="";++p<c&&(s=o.charAt(p))&&"\n"!==s;)if(s===n||s===t||s===r){for(;s===n||s===t;)a+=s,s=o.charAt(++p);for(;s===r;)a+=s,s=o.charAt(++p);for(;s===n||s===t;)a+=s,s=o.charAt(++p);p--}else h+=a+s,a="";return d.column+=f.length,d.offset+=f.length,e(f+=h+a)({type:"heading",depth:l,children:this.tokenizeInline(h,d)})}}};var t="\t",n=" ",r="#"},50133(e){"use strict";e.exports=function(e,n,r){for(var o,i,s,a,l,u=e.now(),c=n.length,p=-1,d="";++p<c;){if(" "!==(s=n.charAt(p))||p>=3){p--;break}d+=s}for(o="",i="";++p<c;){if("\n"===(s=n.charAt(p))){p--;break}" "===s||"\t"===s?i+=s:(o+=i+s,i="")}if(u.column+=d.length,u.offset+=d.length,d+=o+i,s=n.charAt(++p),a=n.charAt(++p),"\n"===s&&t[a]){for(d+=s,i=a,l=t[a];++p<c;){if((s=n.charAt(p))!==a){if("\n"!==s)return;p--;break}i+=s}return!!r||e(d+i)({type:"heading",depth:l,children:this.tokenizeInline(o,u)})}};var t={"=":1,"-":2}},63562(e,t,n){"use strict";var r=n(25633).X;e.exports=function(e,t,n){for(var o,i,s,a,l,u,c,p=this.options.blocks,d=t.length,f=0,h=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+p.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];f<d&&("\t"===(a=t.charAt(f))||" "===a);)f++;if("<"===t.charAt(f)){for(o=-1===(o=t.indexOf("\n",f+1))?d:o,i=t.slice(f,o),s=-1,l=h.length;++s<l;)if(h[s][0].test(i)){u=h[s];break}if(u){if(n)return u[2];if(f=o,!u[1].test(i))for(;f<d;){if(o=-1===(o=t.indexOf("\n",f+1))?d:o,i=t.slice(f+1,o),u[1].test(i)){i&&(f=o);break}f=o}return e(c=t.slice(0,f))({type:"html",value:c})}}}},49910(e,t,n){"use strict";var r=n(66633),o=n(5716),i=n(25633).T;e.exports=l,l.locator=o;var s=/^<a /i,a=/^<\/a>/i;function l(e,t,n){var o,l,u=this,c=t.length;if(!("<"!==t.charAt(0)||c<3)&&(o=t.charAt(1),(r(o)||"?"===o||"!"===o||"/"===o)&&(l=t.match(i))))return!!n||(l=l[0],!u.inLink&&s.test(l)?u.inLink=!0:u.inLink&&a.test(l)&&(u.inLink=!1),e(l)({type:"html",value:l}))}},49911(e,t,n){"use strict";var r=n(13279),o=n(19918);e.exports=f,f.locator=o;var i={}.hasOwnProperty,s="\\",a="(",l=")",u='"',c="'",p={};p[u]=u,p[c]=c;var d={};function f(e,t,n){var o,u,c,f,h,m,g,y,v,b,w,C,_,x,E,S,P,O,T,k=this,A="",I=0,R=t.charAt(0),M=k.options.pedantic,D=k.options.commonmark,L=k.options.gfm;if("!"===R&&(v=!0,A=R,R=t.charAt(++I)),"["===R&&(v||!k.inLink)){for(A+=R,E="",I++,C=t.length,x=0,(P=e.now()).column+=I,P.offset+=I;I<C;){if(m=R=t.charAt(I),"`"===R){for(u=1;"`"===t.charAt(I+1);)m+=R,I++,u++;c?u>=c&&(c=0):c=u}else if(R===s)I++,m+=t.charAt(I);else if(c&&!L||"["!==R){if((!c||L)&&"]"===R){if(!x){if(!M)for(;I<C&&(R=t.charAt(I+1),r(R));)m+=R,I++;if(t.charAt(I+1)!==a)return;m+=a,o=!0,I++;break}x--}}else x++;E+=m,m="",I++}if(o){for(b=E,A+=E+m,I++;I<C&&(R=t.charAt(I),r(R));)A+=R,I++;if(R=t.charAt(I),y=D?d:p,E="",f=A,"<"===R){for(I++,f+="<";I<C&&">"!==(R=t.charAt(I));){if(D&&"\n"===R)return;E+=R,I++}if(">"!==t.charAt(I))return;A+="<"+E+">",S=E,I++}else{for(R=null,m="";I<C&&(R=t.charAt(I),!m||!i.call(y,R));){if(r(R)){if(!M)break;m+=R}else{if(R===a)x++;else if(R===l){if(0===x)break;x--}E+=m,m="",R===s&&(E+=s,R=t.charAt(++I)),E+=R}I++}S=E,I=(A+=E).length}for(E="";I<C&&(R=t.charAt(I),r(R));)E+=R,I++;if(R=t.charAt(I),A+=E,E&&i.call(y,R))if(I++,A+=R,E="",w=y[R],h=A,D){for(;I<C&&(R=t.charAt(I))!==w;)R===s&&(E+=s,R=t.charAt(++I)),I++,E+=R;if((R=t.charAt(I))!==w)return;for(_=E,A+=E+R,I++;I<C&&(R=t.charAt(I),r(R));)A+=R,I++}else for(m="";I<C;){if((R=t.charAt(I))===w)g&&(E+=w+m,m=""),g=!0;else if(g){if(R===l){A+=E+w+m,_=E;break}r(R)?m+=R:(E+=w+m+R,m="",g=!1)}else E+=R;I++}if(t.charAt(I)===l)return!!n||(A+=l,S=k.decode.raw(k.unescape(S),e(f).test().end,{nonTerminated:!1}),_&&(h=e(h).test().end,_=k.decode.raw(k.unescape(_),h)),T={type:v?"image":"link",title:_||null,url:S},v?T.alt=k.decode.raw(k.unescape(b),P)||null:(O=k.enterLink(),T.children=k.tokenizeInline(b,P),O()),e(A)(T))}}}d[u]=u,d[c]=c,d[a]=l},72815(e,t,n){"use strict";var r=n(93729),o=n(96210),i=n(67101),s=n(99084),a=n(57610),l=n(8745);e.exports=function(e,t,n){for(var o,s,a,d,f,h,m,g,C,_,x,E,S,P,O,T,k,A,I,R,M,D,L,N,V=this,j=V.options.commonmark,F=V.options.pedantic,z=V.blockTokenizers,B=V.interruptList,H=0,U=t.length,q=null,W=0;H<U;){if((d=t.charAt(H))===p)W+=4-W%4;else{if(d!==u)break;W++}H++}if(!(W>=4)){if(d=t.charAt(H),o=j?b:v,!0===y[d])f=d,a=!1;else{for(a=!0,s="";H<U&&(d=t.charAt(H),i(d));)s+=d,H++;if(d=t.charAt(H),!s||!0!==o[d])return;q=parseInt(s,10),f=d}if((d=t.charAt(++H))===u||d===p){if(n)return!0;for(H=0,P=[],O=[],T=[];H<U;){for(m=H,g=!1,N=!1,-1===(h=t.indexOf(c,H))&&(h=U),L=H+4,W=0;H<U;){if((d=t.charAt(H))===p)W+=4-W%4;else{if(d!==u)break;W++}H++}if(W>=4&&(N=!0),k&&W>=k.indent&&(N=!0),d=t.charAt(H),C=null,!N){if(!0===y[d])C=d,H++,W++;else{for(s="";H<U&&(d=t.charAt(H),i(d));)s+=d,H++;d=t.charAt(H),H++,s&&!0===o[d]&&(C=d,W+=s.length+1)}if(C)if((d=t.charAt(H))===p)W+=4-W%4,H++;else if(d===u){for(L=H+4;H<L&&t.charAt(H)===u;)H++,W++;H===L&&t.charAt(H)===u&&(H-=3,W-=3)}else d!==c&&""!==d&&(C=null)}if(C){if(!F&&f!==C)break;g=!0}else j||N||t.charAt(m)!==u?j&&k&&(N=W>=k.indent||W>4):N=!0,g=!1,H=m;if(x=t.slice(m,h),_=m===H?x:t.slice(H,h),("*"===C||"_"===C||"-"===C)&&z.thematicBreak.call(V,e,x,!0))break;if(E=S,S=!r(_).length,N&&k)k.value=k.value.concat(T,x),O=O.concat(T,x),T=[];else if(g)0!==T.length&&(k.value.push(""),k.trail=T.concat()),k={value:[x],indent:W,trail:[]},P.push(k),O=O.concat(T,x),T=[];else if(S){if(E)break;T.push(x)}else{if(E)break;if(l(B,z,V,[e,x,!0]))break;k.value=k.value.concat(T,x),O=O.concat(T,x),T=[]}H=h+1}for(M=e(O.join(c)).reset({type:"list",ordered:a,start:q,loose:null,children:[]}),A=V.enterList(),I=V.enterBlock(),R=!1,H=-1,U=P.length;++H<U;)k=P[H].value.join(c),D=e.now(),(k=e(k)(w(V,k,D),M)).loose&&(R=!0),k=P[H].trail.join(c),H!==U-1&&(k+=c),e(k);return A(),I(),M.loose=R,M}}};var u=" ",c="\n",p="\t",d=/\n\n(?!\s*$)/,f=/^\[([ \t]|x|X)][ \t]/,h=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,m=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,g=/^( {1,4}|\t)?/gm,y={"*":!0,"+":!0,"-":!0},v={".":!0},b={};function w(e,t,n){var r,o,i=e.offset,s=null;return t=(e.options.pedantic?C:_).apply(null,arguments),e.options.gfm&&(r=t.match(f))&&(o=r[0].length,s="x"===r[1].toLowerCase(),i[n.line]+=o,t=t.slice(o)),{type:"listItem",loose:d.test(t)||t.charAt(t.length-1)===c,checked:s,children:e.tokenizeBlock(t,n)}}function C(e,t,n){var r=e.offset,o=n.line;return t=t.replace(m,i),o=n.line,t.replace(g,i);function i(e){return r[o]=(r[o]||0)+e.length,o++,""}}function _(e,t,n){var r,i,l,p,d,f,m,g=e.offset,y=n.line;for(p=(t=t.replace(h,function(e,t,n,s,a){return i=t+n+s,l=a,Number(n)<10&&i.length%2==1&&(n=u+n),(r=t+o(u,n.length)+s)+l})).split(c),(d=a(t,s(r).indent).split(c))[0]=l,g[y]=(g[y]||0)+i.length,y++,f=0,m=p.length;++f<m;)g[y]=(g[y]||0)+p[f].length-d[f].length,y++;return d.join(c)}b["."]=!0,b[")"]=!0},78619(e,t,n){"use strict";var r=n(13279);e.exports=function(e,t,n){var o,i,s,a,l=t.charAt(0);if("\n"===l){if(n)return!0;for(a=1,o=t.length,i=l,s="";a<o&&(l=t.charAt(a),r(l));)s+=l,"\n"===l&&(i+=s,s=""),a++;e(i)}}},7790(e,t,n){"use strict";var r=n(93729),o=n(67101),i=n(5432),s=n(8745);e.exports=function(e,t,n){for(var l,u,c,p,d,f=this,h=f.options,m=h.commonmark,g=h.gfm,y=f.blockTokenizers,v=f.interruptParagraph,b=t.indexOf(a),w=t.length;b<w;){if(-1===b){b=w;break}if(t.charAt(b+1)===a)break;if(m){for(p=0,l=b+1;l<w;){if("\t"===(c=t.charAt(l))){p=4;break}if(" "!==c)break;p++,l++}if(p>=4){b=t.indexOf(a,b+1);continue}}if(u=t.slice(b+1),s(v,y,f,[e,u,!0]))break;if(y.list.call(f,e,u,!0)&&(f.inList||m||g&&!o(r.left(u).charAt(0))))break;if(l=b,-1!==(b=t.indexOf(a,b+1))&&""===r(t.slice(l,b))){b=l;break}}return u=t.slice(0,b),""===r(u)?(e(u),null):!!n||(d=e.now(),e(u=i(u))({type:"paragraph",children:f.tokenizeInline(u,d)}))};var a="\n"},14030(e,t,n){"use strict";var r=n(13279),o=n(19918),i=n(81833);e.exports=f,f.locator=o;var s="link",a="image",l="footnote",u="full",c="\\",p="[",d="]";function f(e,t,n){var o,f,h,m,g,y,v,b,w=this,C=t.charAt(0),_=0,x=t.length,E="",S="",P=s,O="shortcut";if("!"===C&&(P=a,S=C,C=t.charAt(++_)),C===p){if(_++,S+=C,y="",w.options.footnotes&&"^"===t.charAt(_)){if(P===a)return;S+="^",_++,P=l}for(b=0;_<x;){if((C=t.charAt(_))===p)v=!0,b++;else if(C===d){if(!b)break;b--}C===c&&(y+=c,C=t.charAt(++_)),y+=C,_++}if(E=y,o=y,(C=t.charAt(_))===d){for(_++,E+=C,y="";_<x&&(C=t.charAt(_),r(C));)y+=C,_++;if(C=t.charAt(_),P!==l&&C===p){for(f="",y+=C,_++;_<x&&(C=t.charAt(_))!==p&&C!==d;)C===c&&(f+=c,C=t.charAt(++_)),f+=C,_++;(C=t.charAt(_))===d?(O=f?u:"collapsed",y+=f+C,_++):f="",E+=y,y=""}else{if(!o)return;f=o}if(O===u||!v)return E=S+E,P===s&&w.inLink?null:!!n||(P===l&&-1!==o.indexOf(" ")?e(E)({type:"footnote",children:this.tokenizeInline(o,e.now())}):((h=e.now()).column+=S.length,h.offset+=S.length,m={type:P+"Reference",identifier:i(f=O===u?f:o)},P!==s&&P!==a||(m.referenceType=O),P===s?(g=w.enterLink(),m.children=w.tokenizeInline(o,h),g()):P===a&&(m.alt=w.decode.raw(w.unescape(o),h)||null),e(E)(m)))}}}},79100(e,t,n){"use strict";var r=n(93729),o=n(13279),i=n(62889);function s(e,t,n){var i,s,a,l,u,c,p,d=0,f=t.charAt(d);if(!("*"!==f&&"_"!==f||t.charAt(++d)!==f||(s=this.options.pedantic,u=(a=f)+a,c=t.length,d++,l="",f="",s&&o(t.charAt(d)))))for(;d<c;){if(p=f,!((f=t.charAt(d))!==a||t.charAt(d+1)!==a||s&&o(p))&&(f=t.charAt(d+2))!==a){if(!r(l))return;return!!n||((i=e.now()).column+=2,i.offset+=2,e(u+l+u)({type:"strong",children:this.tokenizeInline(l,i)}))}s||"\\"!==f||(l+=f,f=t.charAt(++d)),l+=f,d++}}e.exports=s,s.locator=i},54851(e,t,n){"use strict";var r=n(13279);e.exports=function(e,t,n){var s,a,l,u,c,p,d,f,h,m,g,y,v,b,w,C,_,x,E,S,P,O,T,k;if(this.options.gfm){for(s=0,x=0,p=t.length+1,d=[];s<p;){if(O=t.indexOf(o,s),T=t.indexOf("|",s+1),-1===O&&(O=t.length),-1===T||T>O){if(x<2)return;break}d.push(t.slice(s,O)),x++,s=O+1}for(u=d.join(o),s=0,p=(a=d.splice(1,1)[0]||[]).length,x--,l=!1,g=[];s<p;){if("|"===(h=a.charAt(s))){if(m=null,!1===l){if(!1===k)return}else g.push(l),l=!1;k=!1}else if("-"===h)m=!0,l=l||null;else if(":"===h)l=l===i?"center":m&&null===l?"right":i;else if(!r(h))return;s++}if(!1!==l&&g.push(l),!(g.length<1)){if(n)return!0;for(_=-1,S=[],P=e(u).reset({type:"table",align:g,children:S});++_<x;){for(E=d[_],c={type:"tableRow",children:[]},_&&e(o),e(E).reset(c,P),p=E.length+1,s=0,f="",y="",v=!0,b=null,w=null;s<p;)if("\t"!==(h=E.charAt(s))&&" "!==h){if(""===h||"|"===h)if(v)e(h);else{if(h&&w){f+=h,s++;continue}!y&&!h||v||(u=y,f.length>1&&(h?(u+=f.slice(0,f.length-1),f=f.charAt(f.length-1)):(u+=f,f="")),C=e.now(),e(u)({type:"tableCell",children:this.tokenizeInline(y,C)},c)),e(f+h),f="",y=""}else if(f&&(y+=f,f=""),y+=h,"\\"===h&&s!==p-2&&(y+=E.charAt(s+1),s++),"`"===h){for(b=1;E.charAt(s+1)===h;)y+=h,s++,b++;w?b>=w&&(w=0):w=b}v=!1,s++}else y?f+=h:e(h),s++;_||e(o+a)}return P}}};var o="\n",i="left"},38756(e){"use strict";e.exports=function(e,t,n){var r,o,i,s,a,l,u,c,p,d,f=this;if(n)return!0;for(s=(r=f.inlineMethods).length,o=f.inlineTokenizers,i=-1,p=t.length;++i<s;)"text"!==(c=r[i])&&o[c]&&((u=o[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(f,t,1))&&l<p&&(p=l));a=t.slice(0,p),d=e.now(),f.decode(a,d,function(t,n,r){e(r||t)({type:"text",value:t})})}},51786(e){"use strict";e.exports=function(e,t,n){for(var r,o,i,s,a=-1,l=t.length+1,u="";++a<l&&("\t"===(r=t.charAt(a))||" "===r);)u+=r;if("*"===r||"-"===r||"_"===r)for(o=r,u+=r,i=1,s="";++a<l;)if((r=t.charAt(a))===o)i++,u+=s+o,s="";else{if(" "!==r)return i>=3&&(!r||"\n"===r)?(u+=s,!!n||e(u)({type:"thematicBreak"})):void 0;s+=r}}},19130(e,t,n){"use strict";var r=n(45413),o=n(13279),i=n(63701);e.exports=u,u.locator=i,u.notInLink=!0;var s="mailto:",a=["http://","https://",s],l=a.length;function u(e,t,n){var i,u,c,p,d,f,h,m,g,y,v,b,w=this;if(w.options.gfm){for(i="",p=-1,m=l;++p<m;)if(f=a[p],(h=t.slice(0,f.length)).toLowerCase()===f){i=h;break}if(i){for(p=i.length,m=t.length,g="",y=0;p<m&&(c=t.charAt(p),!o(c)&&"<"!==c)&&("."!==c&&","!==c&&":"!==c&&";"!==c&&'"'!==c&&"'"!==c&&")"!==c&&"]"!==c||(v=t.charAt(p+1))&&!o(v))&&("("!==c&&"["!==c||y++,")"!==c&&"]"!==c||!(--y<0));)g+=c,p++;if(g){if(u=i+=g,f===s){if(-1===(d=g.indexOf("@"))||d===m-1)return;u=u.substr(7)}return!!n||(b=w.enterLink(),u=w.tokenizeInline(u,e.now()),b(),e(i)({type:"link",title:null,url:r(i,{nonTerminated:!1}),children:u}))}}}}},89268(e){"use strict";e.exports=function(e){return function(r,o){var i,s,a,l,u,c=this,p=c.offset,d=[],f=c[e+"Methods"],h=c[e+"Tokenizers"],m=o.line,g=o.column;if(!r)return d;for(w.now=v,w.file=c.file,y("");r;){for(i=-1,s=f.length,l=!1;++i<s&&(!(a=h[f[i]])||a.onlyAtStart&&!c.atStart||a.notInList&&c.inList||a.notInBlock&&c.inBlock||a.notInLink&&c.inLink||(u=r.length,a.apply(c,[w,r]),!(l=u!==r.length))););l||c.file.fail(new Error("Infinite loop"),w.now())}return c.eof=v(),d;function y(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)m++,t=n,n=e.indexOf("\n",n+1);-1===t?g+=e.length:g=e.length-t,m in p&&(-1!==t?g+=p[m]:g<=p[m]&&(g=p[m]+1))}function v(){var e={line:m,column:g};return e.offset=c.toOffset(e),e}function b(e){this.start=e,this.end=v()}function w(e){var o,i=function(){var e=[],t=m+1;return function(){for(var n=m+1;t<n;)e.push((p[t]||0)+1),t++;return e}}(),s=(o=v(),function(e,t){var n=e.position,r=n?n.start:o,i=[],s=n&&n.end.line,a=o.line;if(e.position=new b(r),n&&t&&n.indent){if(i=n.indent,s<a){for(;++s<a;)i.push((p[s]||0)+1);i.push(o.column)}t=i.concat(t)}return e.position.indent=t||[],e}),a=v();return function(e){r.substring(0,e.length)!==e&&c.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),v())}(e),l.reset=u,u.test=f,l.test=f,r=r.substring(e.length),y(e),i=i(),l;function l(e,r){return s(function(e,r){var o=r?r.children:d,i=o[o.length-1];return i&&e.type===i.type&&e.type in t&&n(i)&&n(e)&&(e=t[e.type].call(c,i,e)),e!==i&&o.push(e),c.atStart&&0!==d.length&&c.exitStart(),e}(s(e),r),i)}function u(){var t=l.apply(null,arguments);return m=a.line,g=a.column,r=e+r,t}function f(){var t=s({});return m=a.line,g=a.column,r=e+r,t.position}}}};var t={text:function(e,t){return e.value+=t.value,e},blockquote:function(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}};function n(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}},94645(e){"use strict";e.exports=function(e,t){return function(n){for(var r,o=0,i=n.indexOf("\\"),s=e[t],a=[];-1!==i;)a.push(n.slice(o,i)),o=i+1,(r=n.charAt(o))&&-1!==s.indexOf(r)||a.push("\\"),i=n.indexOf("\\",o);return a.push(n.slice(o)),a.join("")}}},99084(e){"use strict";e.exports=function(e){for(var n,r=0,o=0,i=e.charAt(r),s={};i in t;)o+=n=t[i],n>1&&(o=Math.floor(o/n)*n),s[o]=r,i=e.charAt(++r);return{indent:o,stops:s}};var t={" ":1,"\t":4}},25633(e,t){"use strict";var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.X=new RegExp("^(?:"+n+"|"+r+")"),t.T=new RegExp("^(?:"+n+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},8745(e){"use strict";e.exports=function(e,t,n,r){for(var o,i,s,a,l,u,c=["pedantic","commonmark"],p=c.length,d=e.length,f=-1;++f<d;){for(i=(o=e[f])[1]||{},s=o[0],a=-1,u=!1;++a<p;)if(void 0!==i[l=c[a]]&&i[l]!==n.options[l]){u=!0;break}if(!u&&t[s].apply(n,r))return!0}return!1}},81833(e,t,n){"use strict";var r=n(50703);e.exports=function(e){return r(e).toLowerCase()}},57610(e,t,n){"use strict";var r=n(93729),o=n(96210),i=n(99084);e.exports=function(e,t){var n,s,a,l,u=e.split("\n"),c=u.length+1,p=1/0,d=[];for(u.unshift(o(" ",t)+"!");c--;)if(s=i(u[c]),d[c]=s.stops,0!==r(u[c]).length){if(!s.indent){p=1/0;break}s.indent>0&&s.indent<p&&(p=s.indent)}if(p!==1/0)for(c=u.length;c--;){for(a=d[c],n=p;n&&!(n in a);)n--;l=0!==r(u[c]).length&&p&&n!==p?"\t":"",u[c]=l+u[c].slice(n in a?a[n]+1:0)}return u.shift(),u.join("\n")}},66198(e,t,n){"use strict";var r;function o(e){return(r=r||document.createElement("textarea")).innerHTML="&"+e+";",r.value}n.d(t,{F:()=>Oe});var i=Object.prototype.hasOwnProperty;function s(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}var a=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function l(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")}function u(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function c(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var p=/&([a-z#][a-z0-9]{1,31});/gi,d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function f(e,t){var n=0,r=o(t);return t!==r?r:35===t.charCodeAt(0)&&d.test(t)&&u(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?c(n):e}function h(e){return e.indexOf("&")<0?e:e.replace(p,f)}var m=/[&<>"]/,g=/[&<>"]/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function v(e){return y[e]}function b(e){return m.test(e)?e.replace(g,v):e}var w={};function C(e,t){return++t>=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?C(e,t+2):t}w.blockquote_open=function(){return"<blockquote>\n"},w.blockquote_close=function(e,t){return"</blockquote>"+_(e,t)},w.code=function(e,t){return e[t].block?"<pre><code>"+b(e[t].content)+"</code></pre>"+_(e,t):"<code>"+b(e[t].content)+"</code>"},w.fence=function(e,t,n,r,o){var s,a,u,c,p=e[t],d="",f=n.langPrefix;if(p.params){if(a=(s=p.params.split(/\s+/g)).join(" "),u=o.rules.fence_custom,c=s[0],u&&i.call(u,c))return o.rules.fence_custom[s[0]](e,t,n,r,o);d=' class="'+f+b(h(l(a)))+'"'}return"<pre><code"+d+">"+(n.highlight&&n.highlight.apply(n.highlight,[p.content].concat(s))||b(p.content))+"</code></pre>"+_(e,t)},w.fence_custom={},w.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},w.heading_close=function(e,t){return"</h"+e[t].hLevel+">\n"},w.hr=function(e,t,n){return(n.xhtmlOut?"<hr />":"<hr>")+_(e,t)},w.bullet_list_open=function(){return"<ul>\n"},w.bullet_list_close=function(e,t){return"</ul>"+_(e,t)},w.list_item_open=function(){return"<li>"},w.list_item_close=function(){return"</li>\n"},w.ordered_list_open=function(e,t){var n=e[t];return"<ol"+(n.order>1?' start="'+n.order+'"':"")+">\n"},w.ordered_list_close=function(e,t){return"</ol>"+_(e,t)},w.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},w.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"</p>")+(n?_(e,t):"")},w.link_open=function(e,t,n){var r=e[t].title?' title="'+b(h(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'<a href="'+b(e[t].href)+'"'+r+o+">"},w.link_close=function(){return"</a>"},w.image=function(e,t,n){var r=' src="'+b(e[t].src)+'"',o=e[t].title?' title="'+b(h(e[t].title))+'"':"";return"<img"+r+' alt="'+(e[t].alt?b(h(l(e[t].alt))):"")+'"'+o+(n.xhtmlOut?" /":"")+">"},w.table_open=function(){return"<table>\n"},w.table_close=function(){return"</table>\n"},w.thead_open=function(){return"<thead>\n"},w.thead_close=function(){return"</thead>\n"},w.tbody_open=function(){return"<tbody>\n"},w.tbody_close=function(){return"</tbody>\n"},w.tr_open=function(){return"<tr>"},w.tr_close=function(){return"</tr>\n"},w.th_open=function(e,t){var n=e[t];return"<th"+(n.align?' style="text-align:'+n.align+'"':"")+">"},w.th_close=function(){return"</th>"},w.td_open=function(e,t){var n=e[t];return"<td"+(n.align?' style="text-align:'+n.align+'"':"")+">"},w.td_close=function(){return"</td>"},w.strong_open=function(){return"<strong>"},w.strong_close=function(){return"</strong>"},w.em_open=function(){return"<em>"},w.em_close=function(){return"</em>"},w.del_open=function(){return"<del>"},w.del_close=function(){return"</del>"},w.ins_open=function(){return"<ins>"},w.ins_close=function(){return"</ins>"},w.mark_open=function(){return"<mark>"},w.mark_close=function(){return"</mark>"},w.sub=function(e,t){return"<sub>"+b(e[t].content)+"</sub>"},w.sup=function(e,t){return"<sup>"+b(e[t].content)+"</sup>"},w.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},w.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},w.text=function(e,t){return b(e[t].content)},w.htmlblock=function(e,t){return e[t].content},w.htmltag=function(e,t){return e[t].content},w.abbr_open=function(e,t){return'<abbr title="'+b(h(e[t].title))+'">'},w.abbr_close=function(){return"</abbr>"},w.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+n+'" id="'+r+'">['+n+"]</a></sup>"},w.footnote_block_open=function(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},w.footnote_block_close=function(){return"</ol>\n</section>\n"},w.footnote_open=function(e,t){return'<li id="fn'+Number(e[t].id+1).toString()+'"  class="footnote-item">'},w.footnote_close=function(){return"</li>\n"},w.footnote_anchor=function(e,t){var n="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'},w.dl_open=function(){return"<dl>\n"},w.dt_open=function(){return"<dt>"},w.dd_open=function(){return"<dd>"},w.dl_close=function(){return"</dl>\n"},w.dt_close=function(){return"</dt>\n"},w.dd_close=function(){return"</dd>\n"};var _=w.getBreak=function(e,t){return(t=C(e,t))<e.length&&"list_item_close"===e[t].type?"":"\n"};function x(){this.rules=s({},w),this.getBreak=w.getBreak}function E(){this.__rules__=[],this.__cache__=null}function S(e,t,n,r,o){this.src=e,this.env=r,this.options=n,this.parser=t,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function P(e,t){var n,r,o,i=-1,s=e.posMax,a=e.pos,l=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos<s;){if(91===(o=e.src.charCodeAt(e.pos)))n++;else if(93===o&&0===--n){r=!0;break}e.parser.skipToken(e)}return r?(i=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=n-1,e.pos=a,e.isInLabel=l,i}function O(e,t,n,r){var o,i,s,a,l,u;if(42!==e.charCodeAt(0))return-1;if(91!==e.charCodeAt(1))return-1;if(-1===e.indexOf("]:"))return-1;if((i=P(o=new S(e,t,n,r,[]),1))<0||58!==e.charCodeAt(i+1))return-1;for(a=o.posMax,s=i+2;s<a&&10!==o.src.charCodeAt(s);s++);return l=e.slice(2,i),0===(u=e.slice(i+2,s).trim()).length?-1:(r.abbreviations||(r.abbreviations={}),void 0===r.abbreviations[":"+l]&&(r.abbreviations[":"+l]=u),s)}function T(e){var t=h(e);try{t=decodeURI(t)}catch(e){}return encodeURI(t)}function k(e,t){var n,r,o,i=t,s=e.posMax;if(60===e.src.charCodeAt(t)){for(t++;t<s;){if(10===(n=e.src.charCodeAt(t)))return!1;if(62===n)return o=T(l(e.src.slice(i+1,t))),!!e.parser.validateLink(o)&&(e.pos=t+1,e.linkContent=o,!0);92===n&&t+1<s?t+=2:t++}return!1}for(r=0;t<s&&32!==(n=e.src.charCodeAt(t))&&!(n<32||127===n);)if(92===n&&t+1<s)t+=2;else{if(40===n&&++r>1)break;if(41===n&&--r<0)break;t++}return i!==t&&(o=l(e.src.slice(i,t)),!!e.parser.validateLink(o)&&(e.linkContent=o,e.pos=t,!0))}function A(e,t){var n,r=t,o=e.posMax,i=e.src.charCodeAt(t);if(34!==i&&39!==i&&40!==i)return!1;for(t++,40===i&&(i=41);t<o;){if((n=e.src.charCodeAt(t))===i)return e.pos=t+1,e.linkContent=l(e.src.slice(r+1,t)),!0;92===n&&t+1<o?t+=2:t++}return!1}function I(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function R(e,t,n,r){var o,i,s,a,l,u,c,p,d;if(91!==e.charCodeAt(0))return-1;if(-1===e.indexOf("]:"))return-1;if((i=P(o=new S(e,t,n,r,[]),0))<0||58!==e.charCodeAt(i+1))return-1;for(a=o.posMax,s=i+2;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);if(!k(o,s))return-1;for(c=o.linkContent,u=s=o.pos,s+=1;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);for(s<a&&u!==s&&A(o,s)?(p=o.linkContent,s=o.pos):(p="",s=u);s<a&&32===o.src.charCodeAt(s);)s++;return s<a&&10!==o.src.charCodeAt(s)?-1:(d=I(e.slice(1,i)),void 0===r.references[d]&&(r.references[d]={title:p,href:c}),s)}x.prototype.renderInline=function(e,t,n){for(var r=this.rules,o=e.length,i=0,s="";o--;)s+=r[e[i].type](e,i++,t,n,this);return s},x.prototype.render=function(e,t,n){for(var r=this.rules,o=e.length,i=-1,s="";++i<o;)"inline"===e[i].type?s+=this.renderInline(e[i].children,t,n):s+=r[e[i].type](e,i,t,n,this);return s},E.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return-1},E.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},E.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},E.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},E.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},E.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},E.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(e){e.enabled=!1}),e.forEach(function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0},this),this.__cache__=null},E.prototype.disable=function(e){(e=Array.isArray(e)?e:[e]).forEach(function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!1},this),this.__cache__=null},E.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},S.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},S.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},S.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},S.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};var M=" \n()[]'\".,!?-";function D(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var L=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,N=/\((c|tm|r|p)\)/gi,V={c:"©",r:"®",p:"§",tm:"™"};function j(e){return e.indexOf("(")<0?e:e.replace(N,function(e,t){return V[t.toLowerCase()]})}var F=/['"]/,z=/['"]/g,B=/[-\s()\[\]]/;function H(e,t){return!(t<0||t>=e.length||B.test(e[t]))}function U(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var q=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,n,r,o,i=e.tokens;if(!e.inlineMode)for(t=1,n=i.length-1;t<n;t++)if("paragraph_open"===i[t-1].type&&"inline"===i[t].type&&"paragraph_close"===i[t+1].type){for(r=i[t].content;r.length&&!((o=O(r,e.inline,e.options,e.env))<0);)r=r.slice(o).trim();i[t].content=r,r.length||(i[t-1].tight=!0,i[t+1].tight=!0)}}],["references",function(e){var t,n,r,o,i=e.tokens;if(e.env.references=e.env.references||{},!e.inlineMode)for(t=1,n=i.length-1;t<n;t++)if("inline"===i[t].type&&"paragraph_open"===i[t-1].type&&"paragraph_close"===i[t+1].type){for(r=i[t].content;r.length&&!((o=R(r,e.inline,e.options,e.env))<0);)r=r.slice(o).trim();i[t].content=r,r.length||(i[t-1].tight=!0,i[t+1].tight=!0)}}],["inline",function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.inline.parse(t.content,e.options,e.env,t.children)}],["footnote_tail",function(e){var t,n,r,o,i,s,a,l,u,c=0,p=!1,d={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(e){return"footnote_reference_open"===e.type?(p=!0,l=[],u=e.label,!1):"footnote_reference_close"===e.type?(p=!1,d[":"+u]=l,!1):(p&&l.push(e),!p)}),e.env.footnotes.list)){for(s=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:c++}),t=0,n=s.length;t<n;t++){for(e.tokens.push({type:"footnote_open",id:t,level:c++}),s[t].tokens?((a=[]).push({type:"paragraph_open",tight:!1,level:c++}),a.push({type:"inline",content:"",level:c,children:s[t].tokens}),a.push({type:"paragraph_close",tight:!1,level:--c})):s[t].label&&(a=d[":"+s[t].label]),e.tokens=e.tokens.concat(a),i="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,o=s[t].count>0?s[t].count:1,r=0;r<o;r++)e.tokens.push({type:"footnote_anchor",id:t,subId:r,level:c});i&&e.tokens.push(i),e.tokens.push({type:"footnote_close",level:--c})}e.tokens.push({type:"footnote_block_close",level:--c})}}],["abbr2",function(e){var t,n,r,o,i,s,a,l,u,c,p,d,f=e.tokens;if(e.env.abbreviations)for(e.env.abbrRegExp||(d="(^|["+M.split("").map(D).join("")+"])("+Object.keys(e.env.abbreviations).map(function(e){return e.substr(1)}).sort(function(e,t){return t.length-e.length}).map(D).join("|")+")($|["+M.split("").map(D).join("")+"])",e.env.abbrRegExp=new RegExp(d,"g")),c=e.env.abbrRegExp,n=0,r=f.length;n<r;n++)if("inline"===f[n].type)for(t=(o=f[n].children).length-1;t>=0;t--)if("text"===(i=o[t]).type){for(l=0,s=i.content,c.lastIndex=0,u=i.level,a=[];p=c.exec(s);)c.lastIndex>l&&a.push({type:"text",content:s.slice(l,p.index+p[1].length),level:u}),a.push({type:"abbr_open",title:e.env.abbreviations[":"+p[2]],level:u++}),a.push({type:"text",content:p[2],level:u}),a.push({type:"abbr_close",level:--u}),l=c.lastIndex-p[3].length;a.length&&(l<s.length&&a.push({type:"text",content:s.slice(l),level:u}),f[n].children=o=[].concat(o.slice(0,t),a,o.slice(t+1)))}}],["replacements",function(e){var t,n,r,o,i;if(e.options.typographer)for(i=e.tokens.length-1;i>=0;i--)if("inline"===e.tokens[i].type)for(t=(o=e.tokens[i].children).length-1;t>=0;t--)"text"===(n=o[t]).type&&(r=j(r=n.content),L.test(r)&&(r=r.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=r)}],["smartquotes",function(e){var t,n,r,o,i,s,a,l,u,c,p,d,f,h,m,g,y;if(e.options.typographer)for(y=[],m=e.tokens.length-1;m>=0;m--)if("inline"===e.tokens[m].type)for(g=e.tokens[m].children,y.length=0,t=0;t<g.length;t++)if("text"===(n=g[t]).type&&!F.test(n.text)){for(a=g[t].level,f=y.length-1;f>=0&&!(y[f].level<=a);f--);y.length=f+1,i=0,s=(r=n.content).length;e:for(;i<s&&(z.lastIndex=i,o=z.exec(r));)if(l=!H(r,o.index-1),i=o.index+1,h="'"===o[0],(u=!H(r,i))||l){if(p=!u,d=!l)for(f=y.length-1;f>=0&&(c=y[f],!(y[f].level<a));f--)if(c.single===h&&y[f].level===a){c=y[f],h?(g[c.token].content=U(g[c.token].content,c.pos,e.options.quotes[2]),n.content=U(n.content,o.index,e.options.quotes[3])):(g[c.token].content=U(g[c.token].content,c.pos,e.options.quotes[0]),n.content=U(n.content,o.index,e.options.quotes[1])),y.length=f;continue e}p?y.push({token:t,pos:o.index,single:h,level:a}):d&&h&&(n.content=U(n.content,o.index,"’"))}else h&&(n.content=U(n.content,o.index,"’"))}}]];function W(){this.options={},this.ruler=new E;for(var e=0;e<q.length;e++)this.ruler.push(q[e][0],q[e][1])}function $(e,t,n,r,o){var i,s,a,l,u,c,p;for(this.src=e,this.parser=t,this.options=n,this.env=r,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",c=0,p=!1,a=l=c=0,u=(s=this.src).length;l<u;l++){if(i=s.charCodeAt(l),!p){if(32===i){c++;continue}p=!0}10!==i&&l!==u-1||(10!==i&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(c),p=!1,c=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function Q(e,t){var n,r,o;return(r=e.bMarks[t]+e.tShift[t])>=(o=e.eMarks[t])||42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<o&&32!==e.src.charCodeAt(r)?-1:r}function G(e,t){var n,r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(r+1>=o)return-1;if((n=e.src.charCodeAt(r++))<48||n>57)return-1;for(;;){if(r>=o)return-1;if(!((n=e.src.charCodeAt(r++))>=48&&n<=57)){if(41===n||46===n)break;return-1}}return r<o&&32!==e.src.charCodeAt(r)?-1:r}W.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},$.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},$.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},$.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&32===this.src.charCodeAt(e);e++);return e},$.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},$.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},$.prototype.getLines=function(e,t,n,r){var o,i,s,a,l,u=e;if(e>=t)return"";if(u+1===t)return i=this.bMarks[u]+Math.min(this.tShift[u],n),s=r?this.eMarks[u]+1:this.eMarks[u],this.src.slice(i,s);for(a=new Array(t-e),o=0;u<t;u++,o++)(l=this.tShift[u])>n&&(l=n),l<0&&(l=0),i=this.bMarks[u]+l,s=u+1<t||r?this.eMarks[u]+1:this.eMarks[u],a[o]=this.src.slice(i,s);return a.join("")};var Y={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){Y[e]=!0});var Z=/^<([a-zA-Z]{1,15})[\s\/>]/,K=/^<\/([a-zA-Z]{1,15})[\s>]/;function X(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function J(e,t){var n,r,o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return o>=i||126!==(r=e.src.charCodeAt(o++))&&58!==r||o===(n=e.skipSpaces(o))||n>=i?-1:n}var ee=[["code",function(e,t,n){var r,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.tShift[r]-e.blkIndent>=4))break;o=++r}return e.line=r,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,n,r){var o,i,s,a,l,u=!1,c=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(c+3>p)return!1;if(126!==(o=e.src.charCodeAt(c))&&96!==o)return!1;if(l=c,(i=(c=e.skipChars(c,o))-l)<3)return!1;if((s=e.src.slice(c,p).trim()).indexOf("`")>=0)return!1;if(r)return!0;for(a=t;!(++a>=n||(c=l=e.bMarks[a]+e.tShift[a])<(p=e.eMarks[a])&&e.tShift[a]<e.blkIndent);)if(e.src.charCodeAt(c)===o&&!(e.tShift[a]-e.blkIndent>=4||(c=e.skipChars(c,o))-l<i||(c=e.skipSpaces(c))<p)){u=!0;break}return i=e.tShift[t],e.line=a+(u?1:0),e.tokens.push({type:"fence",params:s,content:e.getLines(t+1,a,i,!0),lines:[t,e.line],level:e.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(e,t,n,r){var o,i,s,a,l,u,c,p,d,f,h,m=e.bMarks[t]+e.tShift[t],g=e.eMarks[t];if(m>g)return!1;if(62!==e.src.charCodeAt(m++))return!1;if(e.level>=e.options.maxNesting)return!1;if(r)return!0;for(32===e.src.charCodeAt(m)&&m++,l=e.blkIndent,e.blkIndent=0,a=[e.bMarks[t]],e.bMarks[t]=m,i=(m=m<g?e.skipSpaces(m):m)>=g,s=[e.tShift[t]],e.tShift[t]=m-e.bMarks[t],p=e.parser.ruler.getRules("blockquote"),o=t+1;o<n&&!((m=e.bMarks[o]+e.tShift[o])>=(g=e.eMarks[o]));o++)if(62!==e.src.charCodeAt(m++)){if(i)break;for(h=!1,d=0,f=p.length;d<f;d++)if(p[d](e,o,n,!0)){h=!0;break}if(h)break;a.push(e.bMarks[o]),s.push(e.tShift[o]),e.tShift[o]=-1337}else 32===e.src.charCodeAt(m)&&m++,a.push(e.bMarks[o]),e.bMarks[o]=m,i=(m=m<g?e.skipSpaces(m):m)>=g,s.push(e.tShift[o]),e.tShift[o]=m-e.bMarks[o];for(u=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:c=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=u,c[1]=e.line,d=0;d<s.length;d++)e.bMarks[d+t]=a[d],e.tShift[d+t]=s[d];return e.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(e,t,n,r){var o,i,s,a=e.bMarks[t],l=e.eMarks[t];if((a+=e.tShift[t])>l)return!1;if(42!==(o=e.src.charCodeAt(a++))&&45!==o&&95!==o)return!1;for(i=1;a<l;){if((s=e.src.charCodeAt(a++))!==o&&32!==s)return!1;s===o&&i++}return!(i<3||(r||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),0))},["paragraph","blockquote","list"]],["list",function(e,t,n,r){var o,i,s,a,l,u,c,p,d,f,h,m,g,y,v,b,w,C,_,x,E,S=!0;if((p=G(e,t))>=0)m=!0;else{if(!((p=Q(e,t))>=0))return!1;m=!1}if(e.level>=e.options.maxNesting)return!1;if(h=e.src.charCodeAt(p-1),r)return!0;for(y=e.tokens.length,m?(c=e.bMarks[t]+e.tShift[t],f=Number(e.src.substr(c,p-c-1)),e.tokens.push({type:"ordered_list_open",order:f,lines:b=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:b=[t,0],level:e.level++}),o=t,v=!1,C=e.parser.ruler.getRules("list");!(!(o<n)||((d=(g=e.skipSpaces(p))>=e.eMarks[o]?1:g-p)>4&&(d=1),d<1&&(d=1),i=p-e.bMarks[o]+d,e.tokens.push({type:"list_item_open",lines:w=[t,0],level:e.level++}),a=e.blkIndent,l=e.tight,s=e.tShift[t],u=e.parentType,e.tShift[t]=g-e.bMarks[t],e.blkIndent=i,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,n,!0),e.tight&&!v||(S=!1),v=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=a,e.tShift[t]=s,e.tight=l,e.parentType=u,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,w[1]=o,g=e.bMarks[t],o>=n)||e.isEmpty(o)||e.tShift[o]<e.blkIndent);){for(E=!1,_=0,x=C.length;_<x;_++)if(C[_](e,o,n,!0)){E=!0;break}if(E)break;if(m){if((p=G(e,o))<0)break}else if((p=Q(e,o))<0)break;if(h!==e.src.charCodeAt(p-1))break}return e.tokens.push({type:m?"ordered_list_close":"bullet_list_close",level:--e.level}),b[1]=o,e.line=o,S&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,y),!0},["paragraph","blockquote"]],["footnote",function(e,t,n,r){var o,i,s,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(u+4>c)return!1;if(91!==e.src.charCodeAt(u))return!1;if(94!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(a=u+2;a<c;a++){if(32===e.src.charCodeAt(a))return!1;if(93===e.src.charCodeAt(a))break}return!(a===u+2||a+1>=c||58!==e.src.charCodeAt(++a)||(r||(a++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),l=e.src.slice(u+2,a-2),e.env.footnotes.refs[":"+l]=-1,e.tokens.push({type:"footnote_reference_open",label:l,level:e.level++}),o=e.bMarks[t],i=e.tShift[t],s=e.parentType,e.tShift[t]=e.skipSpaces(a)-a,e.bMarks[t]=a,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,n,!0),e.parentType=s,e.blkIndent-=4,e.tShift[t]=i,e.bMarks[t]=o,e.tokens.push({type:"footnote_reference_close",level:--e.level})),0))},["paragraph"]],["heading",function(e,t,n,r){var o,i,s,a=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(a>=l)return!1;if(35!==(o=e.src.charCodeAt(a))||a>=l)return!1;for(i=1,o=e.src.charCodeAt(++a);35===o&&a<l&&i<=6;)i++,o=e.src.charCodeAt(++a);return!(i>6||a<l&&32!==o||(r||(l=e.skipCharsBack(l,32,a),(s=e.skipCharsBack(l,35,a))>a&&32===e.src.charCodeAt(s-1)&&(l=s),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:i,lines:[t,e.line],level:e.level}),a<l&&e.tokens.push({type:"inline",content:e.src.slice(a,l).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:i,level:e.level})),0))},["paragraph","blockquote"]],["lheading",function(e,t,n){var r,o,i,s=t+1;return!(s>=n||e.tShift[s]<e.blkIndent||e.tShift[s]-e.blkIndent>3||(o=e.bMarks[s]+e.tShift[s])>=(i=e.eMarks[s])||45!==(r=e.src.charCodeAt(o))&&61!==r||(o=e.skipChars(o,r),(o=e.skipSpaces(o))<i||(o=e.bMarks[t]+e.tShift[t],e.line=s+1,e.tokens.push({type:"heading_open",hLevel:61===r?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(o,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:61===r?1:2,level:e.level}),0)))}],["htmlblock",function(e,t,n,r){var o,i,s,a=e.bMarks[t],l=e.eMarks[t],u=e.tShift[t];if(a+=u,!e.options.html)return!1;if(u>3||a+2>=l)return!1;if(60!==e.src.charCodeAt(a))return!1;if(33===(o=e.src.charCodeAt(a+1))||63===o){if(r)return!0}else{if(47!==o&&!function(e){var t=32|e;return t>=97&&t<=122}(o))return!1;if(47===o){if(!(i=e.src.slice(a,l).match(K)))return!1}else if(!(i=e.src.slice(a,l).match(Z)))return!1;if(!0!==Y[i[1].toLowerCase()])return!1;if(r)return!0}for(s=t+1;s<e.lineMax&&!e.isEmpty(s);)s++;return e.line=s,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,s,0,!0)}),!0},["paragraph","blockquote"]],["table",function(e,t,n,r){var o,i,s,a,l,u,c,p,d,f,h;if(t+2>n)return!1;if(l=t+1,e.tShift[l]<e.blkIndent)return!1;if((s=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(o=e.src.charCodeAt(s))&&45!==o&&58!==o)return!1;if(i=X(e,t+1),!/^[-:| ]+$/.test(i))return!1;if((u=i.split("|"))<=2)return!1;for(p=[],a=0;a<u.length;a++){if(!(d=u[a].trim())){if(0===a||a===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(d))return!1;58===d.charCodeAt(d.length-1)?p.push(58===d.charCodeAt(0)?"center":"right"):58===d.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(i=X(e,t).trim()).indexOf("|"))return!1;if(u=i.replace(/^\||\|$/g,"").split("|"),p.length!==u.length)return!1;if(r)return!0;for(e.tokens.push({type:"table_open",lines:f=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),a=0;a<u.length;a++)e.tokens.push({type:"th_open",align:p[a],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:u[a].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:h=[t+2,0],level:e.level++}),l=t+2;l<n&&!(e.tShift[l]<e.blkIndent)&&-1!==(i=X(e,l).trim()).indexOf("|");l++){for(u=i.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),a=0;a<u.length;a++)e.tokens.push({type:"td_open",align:p[a],level:e.level++}),c=u[a].substring(124===u[a].charCodeAt(0)?1:0,124===u[a].charCodeAt(u[a].length-1)?u[a].length-1:u[a].length).trim(),e.tokens.push({type:"inline",content:c,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),f[1]=h[1]=l,e.line=l,!0},["paragraph"]],["deflist",function(e,t,n,r){var o,i,s,a,l,u,c,p,d,f,h,m,g,y;if(r)return!(e.ddIndent<0)&&J(e,t)>=0;if(c=t+1,e.isEmpty(c)&&++c>n)return!1;if(e.tShift[c]<e.blkIndent)return!1;if((o=J(e,c))<0)return!1;if(e.level>=e.options.maxNesting)return!1;u=e.tokens.length,e.tokens.push({type:"dl_open",lines:l=[t,0],level:e.level++}),s=t,i=c;e:for(;;){for(y=!0,g=!1,e.tokens.push({type:"dt_open",lines:[s,s],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(s,s+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[s,s],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:a=[c,0],level:e.level++}),m=e.tight,d=e.ddIndent,p=e.blkIndent,h=e.tShift[i],f=e.parentType,e.blkIndent=e.ddIndent=e.tShift[i]+2,e.tShift[i]=o-e.bMarks[i],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,i,n,!0),e.tight&&!g||(y=!1),g=e.line-i>1&&e.isEmpty(e.line-1),e.tShift[i]=h,e.tight=m,e.parentType=f,e.blkIndent=p,e.ddIndent=d,e.tokens.push({type:"dd_close",level:--e.level}),a[1]=c=e.line,c>=n)break e;if(e.tShift[c]<e.blkIndent)break e;if((o=J(e,c))<0)break;i=c}if(c>=n)break;if(s=c,e.isEmpty(s))break;if(e.tShift[s]<e.blkIndent)break;if((i=s+1)>=n)break;if(e.isEmpty(i)&&i++,i>=n)break;if(e.tShift[i]<e.blkIndent)break;if((o=J(e,i))<0)break}return e.tokens.push({type:"dl_close",level:--e.level}),l[1]=c,e.line=c,y&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,u),!0},["paragraph"]],["paragraph",function(e,t){var n,r,o,i,s,a,l=t+1;if(l<(n=e.lineMax)&&!e.isEmpty(l))for(a=e.parser.ruler.getRules("paragraph");l<n&&!e.isEmpty(l);l++)if(!(e.tShift[l]-e.blkIndent>3)){for(o=!1,i=0,s=a.length;i<s;i++)if(a[i](e,l,n,!0)){o=!0;break}if(o)break}return r=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,r.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:r,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}]];function te(){this.ruler=new E;for(var e=0;e<ee.length;e++)this.ruler.push(ee[e][0],ee[e][1],{alt:(ee[e][2]||[]).slice()})}te.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),i=o.length,s=t,a=!1;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.tShift[s]<e.blkIndent);){for(r=0;r<i&&!o[r](e,s,n,!1);r++);if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)){if(a=!0,++s<n&&"list"===e.parentType&&e.isEmpty(s))break;e.line=s}}};var ne=/[\n\t]/g,re=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,oe=/\u00a0/g;function ie(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}te.prototype.parse=function(e,t,n,r){var o,i=0,s=0;if(!e)return[];(e=(e=e.replace(oe," ")).replace(re,"\n")).indexOf("\t")>=0&&(e=e.replace(ne,function(t,n){var r;return 10===e.charCodeAt(n)?(i=n+1,s=0,t):(r="    ".slice((n-i-s)%4),s=n-i+1,r)})),o=new $(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};for(var se=[],ae=0;ae<256;ae++)se.push(0);function le(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function ue(e,t){var n,r,o,i=t,s=!0,a=!0,l=e.posMax,u=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;i<l&&e.src.charCodeAt(i)===u;)i++;return i>=l&&(s=!1),(o=i-t)>=4?s=a=!1:(32!==(r=i<l?e.src.charCodeAt(i):-1)&&10!==r||(s=!1),32!==n&&10!==n||(a=!1),95===u&&(le(n)&&(s=!1),le(r)&&(a=!1))),{can_open:s,can_close:a,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){se[e.charCodeAt(0)]=1});var ce=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,pe=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,de=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],fe=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,he=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function me(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var ge=me(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),ye=me(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",ge)(),ve=me(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ye)(),be=me(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",ve)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)(),we=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Ce=/^&([a-z][a-z0-9]{1,31});/i,_e=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!ie(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["newline",function(e,t){var n,r,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var i=n-2;i>=0;i--)if(32!==e.pending.charCodeAt(i)){e.pending=e.pending.substring(0,i+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o<r&&32===e.src.charCodeAt(o);)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<o){if((n=e.src.charCodeAt(r))<256&&0!==se[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push({type:"hardbreak",level:e.level}),r++;r<o&&32===e.src.charCodeAt(r);)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}],["backticks",function(e,t){var n,r,o,i,s,a=e.pos;if(96!==e.src.charCodeAt(a))return!1;for(n=a,a++,r=e.posMax;a<r&&96===e.src.charCodeAt(a);)a++;for(o=e.src.slice(n,a),i=s=a;-1!==(i=e.src.indexOf("`",s));){for(s=i+1;s<r&&96===e.src.charCodeAt(s);)s++;if(s-i===o.length)return t||e.push({type:"code",content:e.src.slice(a,i).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=s,!0}return t||(e.pending+=o),e.pos+=o.length,!0}],["del",function(e,t){var n,r,o,i,s,a=e.posMax,l=e.pos;if(126!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=a)return!1;if(126!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),126===i)return!1;if(126===s)return!1;if(32===s||10===s)return!1;for(r=l+2;r<a&&126===e.src.charCodeAt(r);)r++;if(r>l+3)return e.pos+=r-l,t||(e.pending+=e.src.slice(l,r)),!0;for(e.pos=l+2,o=1;e.pos+1<a;){if(126===e.src.charCodeAt(e.pos)&&126===e.src.charCodeAt(e.pos+1)&&(i=e.src.charCodeAt(e.pos-1),126!==(s=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&126!==i&&(32!==i&&10!==i?o--:32!==s&&10!==s&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=l,!1)}],["ins",function(e,t){var n,r,o,i,s,a=e.posMax,l=e.pos;if(43!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=a)return!1;if(43!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),43===i)return!1;if(43===s)return!1;if(32===s||10===s)return!1;for(r=l+2;r<a&&43===e.src.charCodeAt(r);)r++;if(r!==l+2)return e.pos+=r-l,t||(e.pending+=e.src.slice(l,r)),!0;for(e.pos=l+2,o=1;e.pos+1<a;){if(43===e.src.charCodeAt(e.pos)&&43===e.src.charCodeAt(e.pos+1)&&(i=e.src.charCodeAt(e.pos-1),43!==(s=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&43!==i&&(32!==i&&10!==i?o--:32!==s&&10!==s&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=l,!1)}],["mark",function(e,t){var n,r,o,i,s,a=e.posMax,l=e.pos;if(61!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=a)return!1;if(61!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),61===i)return!1;if(61===s)return!1;if(32===s||10===s)return!1;for(r=l+2;r<a&&61===e.src.charCodeAt(r);)r++;if(r!==l+2)return e.pos+=r-l,t||(e.pending+=e.src.slice(l,r)),!0;for(e.pos=l+2,o=1;e.pos+1<a;){if(61===e.src.charCodeAt(e.pos)&&61===e.src.charCodeAt(e.pos+1)&&(i=e.src.charCodeAt(e.pos-1),61!==(s=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&61!==i&&(32!==i&&10!==i?o--:32!==s&&10!==s&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=l,!1)}],["emphasis",function(e,t){var n,r,o,i,s,a,l,u=e.posMax,c=e.pos,p=e.src.charCodeAt(c);if(95!==p&&42!==p)return!1;if(t)return!1;if(n=(l=ue(e,c)).delims,!l.can_open)return e.pos+=n,t||(e.pending+=e.src.slice(c,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=c+n,a=[n];e.pos<u;)if(e.src.charCodeAt(e.pos)!==p)e.parser.skipToken(e);else{if(r=(l=ue(e,e.pos)).delims,l.can_close){for(i=a.pop(),s=r;i!==s;){if(s<i){a.push(i-s);break}if(s-=i,0===a.length)break;e.pos+=i,i=a.pop()}if(0===a.length){n=i,o=!0;break}e.pos+=r;continue}l.can_open&&a.push(r),e.pos+=r}return o?(e.posMax=e.pos,e.pos=c+n,t||(2!==n&&3!==n||e.push({type:"strong_open",level:e.level++}),1!==n&&3!==n||e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),1!==n&&3!==n||e.push({type:"em_close",level:--e.level}),2!==n&&3!==n||e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+n,e.posMax=u,!0):(e.pos=c,!1)}],["sub",function(e,t){var n,r,o=e.posMax,i=e.pos;if(126!==e.src.charCodeAt(i))return!1;if(t)return!1;if(i+2>=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos<o;){if(126===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return n&&i+1!==e.pos?(r=e.src.slice(i+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=i,!1):(e.posMax=e.pos,e.pos=i+1,t||e.push({type:"sub",level:e.level,content:r.replace(ce,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0):(e.pos=i,!1)}],["sup",function(e,t){var n,r,o=e.posMax,i=e.pos;if(94!==e.src.charCodeAt(i))return!1;if(t)return!1;if(i+2>=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos<o;){if(94===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return n&&i+1!==e.pos?(r=e.src.slice(i+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=i,!1):(e.posMax=e.pos,e.pos=i+1,t||e.push({type:"sup",level:e.level,content:r.replace(pe,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0):(e.pos=i,!1)}],["links",function(e,t){var n,r,o,i,s,a,l,u,c=!1,p=e.pos,d=e.posMax,f=e.pos,h=e.src.charCodeAt(f);if(33===h&&(c=!0,h=e.src.charCodeAt(++f)),91!==h)return!1;if(e.level>=e.options.maxNesting)return!1;if(n=f+1,(r=P(e,f))<0)return!1;if((a=r+1)<d&&40===e.src.charCodeAt(a)){for(a++;a<d&&(32===(u=e.src.charCodeAt(a))||10===u);a++);if(a>=d)return!1;for(f=a,k(e,a)?(i=e.linkContent,a=e.pos):i="",f=a;a<d&&(32===(u=e.src.charCodeAt(a))||10===u);a++);if(a<d&&f!==a&&A(e,a))for(s=e.linkContent,a=e.pos;a<d&&(32===(u=e.src.charCodeAt(a))||10===u);a++);else s="";if(a>=d||41!==e.src.charCodeAt(a))return e.pos=p,!1;a++}else{if(e.linkLevel>0)return!1;for(;a<d&&(32===(u=e.src.charCodeAt(a))||10===u);a++);if(a<d&&91===e.src.charCodeAt(a)&&(f=a+1,(a=P(e,a))>=0?o=e.src.slice(f,a++):a=f-1),o||(void 0===o&&(a=r+1),o=e.src.slice(n,r)),!(l=e.env.references[I(o)]))return e.pos=p,!1;i=l.href,s=l.title}return t||(e.pos=n,e.posMax=r,c?e.push({type:"image",src:i,title:s,alt:e.src.substr(n,r-n),level:e.level}):(e.push({type:"link_open",href:i,title:s,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=a,e.posMax=d,!0}],["footnote_inline",function(e,t){var n,r,o,i,s=e.posMax,a=e.pos;return!(a+2>=s||94!==e.src.charCodeAt(a)||91!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(n=a+2,(r=P(e,a+1))<0||(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=r,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,i=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(i)},e.linkLevel--),e.pos=r+1,e.posMax=s,0)))}],["footnote_ref",function(e,t){var n,r,o,i,s=e.posMax,a=e.pos;if(a+3>s)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(a))return!1;if(94!==e.src.charCodeAt(a+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(r=a+2;r<s;r++){if(32===e.src.charCodeAt(r))return!1;if(10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}return!(r===a+2||r>=s||(r++,n=e.src.slice(a+2,r-1),void 0===e.env.footnotes.refs[":"+n]||(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],i=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:i,level:e.level})),e.pos=r,e.posMax=s,0)))}],["autolink",function(e,t){var n,r,o,i,s,a=e.pos;return!(60!==e.src.charCodeAt(a)||(n=e.src.slice(a)).indexOf(">")<0||((r=n.match(he))?de.indexOf(r[1].toLowerCase())<0||(s=T(i=r[0].slice(1,-1)),!e.parser.validateLink(i)||(t||(e.push({type:"link_open",href:s,level:e.level}),e.push({type:"text",content:i,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=r[0].length,0)):!(o=n.match(fe))||(s=T("mailto:"+(i=o[0].slice(1,-1))),!e.parser.validateLink(s)||(t||(e.push({type:"link_open",href:s,level:e.level}),e.push({type:"text",content:i,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,0))))}],["htmltag",function(e,t){var n,r,o,i=e.pos;return!(!e.options.html||(o=e.posMax,60!==e.src.charCodeAt(i)||i+2>=o||33!==(n=e.src.charCodeAt(i+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(r=e.src.slice(i).match(be))||(t||e.push({type:"htmltag",content:e.src.slice(i,i+r[0].length),level:e.level}),e.pos+=r[0].length,0)))}],["entity",function(e,t){var n,r,i=e.pos,s=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<s)if(35===e.src.charCodeAt(i+1)){if(r=e.src.slice(i).match(we))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=u(n)?c(n):c(65533)),e.pos+=r[0].length,!0}else if(r=e.src.slice(i).match(Ce)){var a=o(r[1]);if(r[1]!==a)return t||(e.pending+=a),e.pos+=r[0].length,!0}return t||(e.pending+="&"),e.pos++,!0}]];function xe(){this.ruler=new E;for(var e=0;e<_e.length;e++)this.ruler.push(_e[e][0],_e[e][1]);this.validateLink=Ee}function Ee(e){var t=e.trim().toLowerCase();return-1===(t=h(t)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(t.split(":")[0])}xe.prototype.skipToken=function(e){var t,n,r=this.ruler.getRules(""),o=r.length,i=e.pos;if((n=e.cacheGet(i))>0)e.pos=n;else{for(t=0;t<o;t++)if(r[t](e,!0))return void e.cacheSet(i,e.pos);e.pos++,e.cacheSet(i,e.pos)}},xe.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,i=e.posMax;e.pos<i;){for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},xe.prototype.parse=function(e,t,n,r){var o=new S(e,this,t,n,r);this.tokenize(o)};var Se={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function Pe(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Oe(e,t){"string"!=typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new xe,this.block=new te,this.core=new W,this.renderer=new x,this.ruler=new E,this.options={},this.configure(Se[e]),this.set(t||{})}Oe.prototype.set=function(e){s(this.options,e)},Oe.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})},Oe.prototype.use=function(e,t){return e(this,t),this},Oe.prototype.parse=function(e,t){var n=new Pe(this,e,t);return this.core.process(n),n.tokens},Oe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Oe.prototype.parseInline=function(e,t){var n=new Pe(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Oe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)}},96210(e){"use strict";var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},45587(e,t,n){"use strict";var r=n(31351);e.exports=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=r.basename(e,r.extname(e))+t;return r.join(r.dirname(e),n)}},87922(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>x});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){s(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){o&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+f(e["border-"+n+"-width"])},0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return o?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=f(i)}return t}(r),i=o.left+o.right,s=o.top+o.bottom,a=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==t&&(a-=h(r,"left","right")+i),Math.round(l+s)!==n&&(l-=h(r,"top","bottom")+s)),!function(e){return e===p(e).document.documentElement}(e)){var u=Math.round(a+i)-t,c=Math.round(l+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(l-=c)}return y(o.left,o.top,a,l)}(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,o,i,s,a,l,u=(r=(n=t).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),c(l,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),l);c(this,{target:e,contentRect:u})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new b(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new r,_=function e(t){if(!(this instanceof e))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=u.getInstance(),r=new w(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}});const x=void 0!==i.ResizeObserver?i.ResizeObserver:_},14174(e,t,n){"use strict";n.d(t,{Y:()=>o});var r=n(22155);const o=e=>{const[,t]=(0,r.useReducer)(e=>e+1,0),n=(0,r.useRef)(null),{replace:o,append:i}=e,s=o?o(e.format(e.value)):e.format(e.value),a=(0,r.useRef)(!1);return(0,r.useLayoutEffect)(()=>{if(null==n.current)return;let[r,a,l,u,c]=n.current;n.current=null;const p=u&&c,d=r.slice(a.selectionStart).search(e.accept||/\d/g),f=-1!==d?d:0,h=t=>(t.match(e.accept||/\d/g)||[]).join(""),m=h(r.substr(0,a.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==m.length;++r){let o=e.indexOf(m[r],t)+1,i=h(e).indexOf(m[r],n)+1;i-n>1&&(o=t,i=n),n=Math.max(i,n),t=Math.max(t,o)}return t};if(!0===e.mask&&l&&!c){let e=g(r);const t=h(r.substr(e))[0];e=r.indexOf(t,e),r=`${r.substr(0,e)}${r.substr(e+1)}`}let y=e.format(r);null==i||a.selectionStart!==r.length||c||(l?y=i(y):""===h(y.slice(-1))&&(y=y.slice(0,-1)));const v=o?o(y):y;return s===v?t():e.onChange(v),()=>{let t=g(y);if(null!=e.mask&&(l||u&&!p))for(;y[t]&&""===h(y[t]);)t+=1;a.selectionStart=a.selectionEnd=t+(p?1+f:0)}}),(0,r.useEffect)(()=>{const e=e=>{"Delete"===e.code&&(a.current=!0)},t=e=>{"Delete"===e.code&&(a.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),{value:null!=n.current?n.current[0]:s,onChange:r=>{const o=r.target.value;n.current=[o,r.target,o.length>s.length,a.current,s===e.format(o)],t()}}}},47795(e,t,n){"use strict";var r=n(77511).Buffer,o=n(91193),i=n(41002),s=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(e,t){return e<<t|e>>>32-t}function h(e,t,n,r,o,i,s,a){return f(e+(t^n^r)+i+s|0,a)+o|0}function m(e,t,n,r,o,i,s,a){return f(e+(t&n|~t&r)+i+s|0,a)+o|0}function g(e,t,n,r,o,i,s,a){return f(e+((t|~n)^r)+i+s|0,a)+o|0}function y(e,t,n,r,o,i,s,a){return f(e+(t&r|n&~r)+i+s|0,a)+o|0}function v(e,t,n,r,o,i,s,a){return f(e+(t^(n|~r))+i+s|0,a)+o|0}function b(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}o(b,i),b.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,b=0|this._e,w=0|this._a,C=0|this._b,_=0|this._c,x=0|this._d,E=0|this._e,S=0;S<80;S+=1){var P,O;S<16?(P=h(n,r,o,i,b,e[a[S]],p[0],u[S]),O=v(w,C,_,x,E,e[l[S]],d[0],c[S])):S<32?(P=m(n,r,o,i,b,e[a[S]],p[1],u[S]),O=y(w,C,_,x,E,e[l[S]],d[1],c[S])):S<48?(P=g(n,r,o,i,b,e[a[S]],p[2],u[S]),O=g(w,C,_,x,E,e[l[S]],d[2],c[S])):S<64?(P=y(n,r,o,i,b,e[a[S]],p[3],u[S]),O=m(w,C,_,x,E,e[l[S]],d[3],c[S])):(P=v(n,r,o,i,b,e[a[S]],p[4],u[S]),O=h(w,C,_,x,E,e[l[S]],d[4],c[S])),n=b,b=i,i=f(o,10),o=r,r=P,w=E,E=x,x=f(_,10),_=C,C=O}var T=this._b+o+x|0;this._b=this._c+i+E|0,this._c=this._d+b+w|0,this._d=this._e+n+C|0,this._e=this._a+r+_|0,this._a=T},b.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=b},18604(e,t,n){var r=n(77511),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s),i(o,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},56608(e,t,n){var r=n(77511),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},73910(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,f=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function C(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,M(_);else{var t=r(c);null!==t&&D(C,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,v(P),P=-1),h=!0;var i=f;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!k());){var s=d.callback;if("function"==typeof s){d.callback=null,f=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?d.callback=a:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var p=r(c);null!==p&&D(C,p.startTime-n),l=!1}return l}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,S=null,P=-1,O=5,T=-1;function k(){return!(t.unstable_now()-T<O)}function A(){if(null!==S){var e=t.unstable_now();T=e;var n=!0;try{n=S(!0,e)}finally{n?x():(E=!1,S=null)}}else E=!1}if("function"==typeof b)x=function(){b(A)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=A,x=function(){R.postMessage(null)}}else x=function(){y(A,0)};function M(e){S=e,E||(E=!0,x())}function D(e,n){P=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,M(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(P),P=-1):g=!0,D(C,i-s))):(e.sortIndex=a,n(u,e),m||h||(m=!0,M(_))),e},t.unstable_shouldYield=k,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9593(e,t,n){"use strict";e.exports=n(73910)},6392(e){var t="undefined"!=typeof window?window:{},n="undefined"!=typeof document?document:{documentElement:{}},r=void 0===t.pageYOffset?n.documentElement:null;e.exports=function(){return r||(e=window.pageYOffset,document.documentElement.scrollTop=e+1,r=window.pageYOffset>e?(document.documentElement.scrollTop=e,document.documentElement):document.scrollingElement||document.body);var e}},79701(e,t,n){var r=n(37037),o=new Error("Element already at target scroll position"),i=new Error("Scroll cancelled"),s=Math.min;function a(e){return function(t,n,a,c){"function"==typeof(a=a||{})&&(c=a,a={}),"function"!=typeof c&&(c=u);var p=+new Date,d=t[e],f=a.ease||l,h=isNaN(a.duration)?350:+a.duration,m=!1;return d===n?c(o,t[e]):r(function o(a){if(m)return c(i,t[e]);var l=+new Date,u=s(1,(l-p)/h),g=f(u);t[e]=g*(n-d)+d,r(u<1?o:function(){c(null,t[e])})}),function(){m=!0}}}function l(e){return.5*(1-Math.cos(Math.PI*e))}function u(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},34030(e,t){var n,r;void 0===(r="function"==typeof(n=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}return function(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var n=t.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}})?n.apply(t,[]):n)||(e.exports=r)},7755(e,t,n){"use strict";var r=n(49336),o=n(20022),i=n(491)(),s=n(25667),a=n(71102),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},7921(e,t,n){var r=n(85409);!function(e){"use strict";if(!e.setImmediate){var t,n,o,i,s,a=1,l={},u=!1,c=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?t=function(e){r.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&f(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),t=function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,t=function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(f,0,e)},p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:e,args:n};return l[a]=o,t(a),a++},p.clearImmediate=d}function d(e){delete l[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),u=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},55009(e,t,n){"use strict";var r=n(56608).Buffer,o=n(26919);function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){e=o(e,t||"utf8");for(var n=this._block,r=this._blockSize,i=e.length,s=this._len,a=0;a<i;){for(var l=s%r,u=Math.min(i-a,r-l),c=0;c<u;c++)n[l+c]=e[a+c];a+=u,(s+=u)%r===0&&this._update(n)}return this._len+=i,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},99041(e,t,n){"use strict";e.exports=function(t){var n=t.toLowerCase(),r=e.exports[n];if(!r)throw new Error(n+" is not supported (we accept pull requests)");return new r},e.exports.sha=n(69639),e.exports.sha1=n(67528),e.exports.sha224=n(74991),e.exports.sha256=n(81774),e.exports.sha384=n(84846),e.exports.sha512=n(7823)},69639(e,t,n){"use strict";var r=n(91193),o=n(55009),i=n(56608).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function p(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var d=0;d<80;++d){var f=~~(d/20),h=u(n)+p(f,r,o,i)+a+t[d]+s[f]|0;a=i,i=o,o=c(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},67528(e,t,n){"use strict";var r=n(91193),o=n(55009),i=n(56608).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function p(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=u(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var f=0;f<80;++f){var h=~~(f/20),m=c(n)+d(h,r,o,i)+a+t[f]+s[h]|0;a=i,i=o,o=p(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},74991(e,t,n){"use strict";var r=n(91193),o=n(81774),i=n(55009),s=n(56608).Buffer,a=new Array(64);function l(){this.init(),this._w=a,i.call(this,64,56)}r(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},81774(e,t,n){"use strict";var r=n(91193),o=n(55009),i=n(56608).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function l(){this.init(),this._w=a,o.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function h(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}r(l,o),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,a=0|this._e,l=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=h(t[y-2])+t[y-7]+f(t[y-15])+t[y-16]|0;for(var v=0;v<64;++v){var b=g+d(a)+u(a,l,m)+s[v]+t[v]|0,w=p(n)+c(n,r,o)|0;g=m,m=l,l=a,a=i+b|0,i=o,o=r,r=n,n=b+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0,this._f=l+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},84846(e,t,n){"use strict";var r=n(91193),o=n(7823),i=n(55009),s=n(56608).Buffer,a=new Array(160);function l(){this.init(),this._w=a,i.call(this,128,112)}r(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},7823(e,t,n){"use strict";var r=n(91193),o=n(55009),i=n(56608).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function l(){this.init(),this._w=a,o.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}r(l,o),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,a=0|this._eh,l=0|this._fh,v=0|this._gh,b=0|this._hh,w=0|this._al,C=0|this._bl,_=0|this._cl,x=0|this._dl,E=0|this._el,S=0|this._fl,P=0|this._gl,O=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var k=t[T-30],A=t[T-30+1],I=f(k,A),R=h(A,k),M=m(k=t[T-4],A=t[T-4+1]),D=g(A,k),L=t[T-14],N=t[T-14+1],V=t[T-32],j=t[T-32+1],F=R+N|0,z=I+L+y(F,R)|0;z=(z=z+M+y(F=F+D|0,D)|0)+V+y(F=F+j|0,j)|0,t[T]=z,t[T+1]=F}for(var B=0;B<160;B+=2){z=t[B],F=t[B+1];var H=c(n,r,o),U=c(w,C,_),q=p(n,w),W=p(w,n),$=d(a,E),Q=d(E,a),G=s[B],Y=s[B+1],Z=u(a,l,v),K=u(E,S,P),X=O+Q|0,J=b+$+y(X,O)|0;J=(J=(J=J+Z+y(X=X+K|0,K)|0)+G+y(X=X+Y|0,Y)|0)+z+y(X=X+F|0,F)|0;var ee=W+U|0,te=q+H+y(ee,W)|0;b=v,O=P,v=l,P=S,l=a,S=E,a=i+J+y(E=x+X|0,x)|0,i=o,x=_,o=r,_=C,r=n,C=w,n=J+te+y(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+C|0,this._cl=this._cl+_|0,this._dl=this._dl+x|0,this._el=this._el+E|0,this._fl=this._fl+S|0,this._gl=this._gl+P|0,this._hl=this._hl+O|0,this._ah=this._ah+n+y(this._al,w)|0,this._bh=this._bh+r+y(this._bl,C)|0,this._ch=this._ch+o+y(this._cl,_)|0,this._dh=this._dh+i+y(this._dl,x)|0,this._eh=this._eh+a+y(this._el,E)|0,this._fh=this._fh+l+y(this._fl,S)|0,this._gh=this._gh+v+y(this._gl,P)|0,this._hh=this._hh+b+y(this._hl,O)|0},l.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},60162(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!a(u))return!1;var c=e[u],p=t[u];if(!1===(o=n?n.call(r,c,p,u):void 0)||void 0===o&&c!==p)return!1}return!0}},45755(e,t,n){"use strict";var r=n(78311),o=n(71102),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},84566(e,t,n){"use strict";var r=n(49336),o=n(98801),i=n(78311),s=n(71102),a=r("%Map%",!0),l=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),c=o("Map.prototype.has",!0),p=o("Map.prototype.delete",!0),d=o("Map.prototype.size",!0);e.exports=!!a&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(t){if(e){var n=p(e,t);return 0===d(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,n){e||(e=new a),u(e,t,n)}};return t}},53635(e,t,n){"use strict";var r=n(49336),o=n(98801),i=n(78311),s=n(84566),a=n(71102),l=r("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return d(e,n)}else if(s&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?p(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),c(e,n,r)):s&&(t||(t=s()),t.set(n,r))}};return n}:s},4198(e,t,n){"use strict";var r=n(71102),o=n(78311),i=n(45755),s=n(84566),a=n(53635)||s||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=a()),e.set(t,n)}};return t}},99178(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},90408(e){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,o=r[e];return r[e]=!t,function(){r[e]=o}}}},66096(e,t,n){var r=n(15120);function o(){r.call(this)}o.prototype=new r,e.exports=o,o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",a));var i=!1;function s(){i||(i=!0,e.end())}function a(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),!this.hasListeners("error"))throw e}function u(){n.off("data",r),e.off("drain",o),n.off("end",s),n.off("close",a),n.off("error",l),e.off("error",l),n.off("end",u),n.off("close",u),e.off("end",u),e.off("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("end",u),e.on("close",u),e.emit("pipe",n),e}},75006(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},1047(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},89851(e,t,n){"use strict";var r=n(18604).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=p,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.I=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=s(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=s(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=s(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},64323(e,t,n){"use strict";var r=n(56608).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=p,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.I=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=s(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=s(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=s(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},1721(e){var t=/<\/?([a-z][a-z0-9]*)\b[^>]*>?/gi;e.exports=function(e){return(e=e||"").replace(t,"").trim()}},75235(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>ze,StyleSheetConsumer:()=>oe,StyleSheetContext:()=>re,StyleSheetManager:()=>ce,ThemeConsumer:()=>Re,ThemeContext:()=>Ie,ThemeProvider:()=>Me,__PRIVATE__:()=>Ue,createGlobalStyle:()=>je,css:()=>we,default:()=>qe,isStyledComponent:()=>w,keyframes:()=>Fe,useTheme:()=>He,version:()=>_,withTheme:()=>Be});var r=n(49968),o=n(22155),i=n(60162),s=n.n(i),a=n(27903),l=n(55355),u=n(99302),c=n(4674),p=n.n(c),d=n(85409);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},g=Object.freeze([]),y=Object.freeze({});function v(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var C=void 0!==d&&void 0!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}&&({NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.REACT_APP_SC_ATTR||{NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.SC_ATTR)||"data-styled",_="5.3.11",x="undefined"!=typeof window&&"HTMLElement"in window,E=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==d&&void 0!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}&&(void 0!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.SC_DISABLE_SPEEDY&&"false"!=={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.SC_DISABLE_SPEEDY)),S={};function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var O=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&P(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),T=new Map,k=new Map,A=1,I=function(e){if(T.has(e))return T.get(e);for(;k.has(A);)A++;var t=A++;return T.set(e,t),k.set(t,e),t},R=function(e){return k.get(e)},M=function(e,t){t>=A&&(A=t+1),T.set(e,t),k.set(t,e)},D="style["+C+'][data-styled-version="5.3.11"]',L=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},V=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var s=n[o].trim();if(s){var a=s.match(L);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(M(u,l),N(e,u,a[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},j=function(){return n.nc},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(C))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(C,"active"),r.setAttribute("data-styled-version","5.3.11");var s=j();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},z=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}P(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),H=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=x,q={isServer:!x,useCSSOMInjection:!E},W=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=f({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&x&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(C)&&(V(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(f({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new H(o):r?new z(o):new B(o),new O(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=R(o);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(o);if(s&&a&&s.size){var l=C+".g"+o+'[id="'+i+'"]',u="";void 0!==s&&s.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+a+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),$=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Q(t%52)+n;return(Q(t%52)+n).replace($,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Z=function(e){return Y(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!w(n))return!1}return!0}var X=Z("5.3.11"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=Y(X,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ve(this.rules,e,t,n).join(""),s=G(Y(this.baseHash,i)>>>0);if(!t.hasNameForId(r,s)){var a=n(i,"."+s,void 0,r);t.insertRules(r,s,a)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,u=Y(this.baseHash,n.hash),c="",p=0;p<l;p++){var d=this.rules[p];if("string"==typeof d)c+=d;else if(d){var f=ve(d,e,t,n),h=Array.isArray(f)?f.join(""):f;u=Y(u,h+p),c+=h}}if(c){var m=G(u>>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,o,i=void 0===e?y:e,s=i.options,l=void 0===s?y:s,u=i.plugins,c=void 0===u?g:u,p=new a.A(l),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,s,a,l,u,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),h=function(e,r,i){return 0===r&&-1!==te.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,s,a){void 0===a&&(a="&");var l=e.replace(ee,""),u=i&&s?s+" "+i+" { "+l+" }":l;return t=a,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),p(s||!i?"":i,u)}return p.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce(function(e,t){return t.name||P(15),Y(e,t.name)},5381).toString():"",m}var re=o.createContext(),oe=re.Consumer,ie=o.createContext(),se=(ie.Consumer,new W),ae=ne();function le(){return(0,o.useContext)(re)||se}function ue(){return(0,o.useContext)(ie)||ae}function ce(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=le(),a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,o.useMemo)(function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return(0,o.useEffect)(function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]),o.createElement(re.Provider,{value:a},o.createElement(ie.Provider,{value:l},e.children))}var pe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ae);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return P(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ae),this.name+e.hash},e}(),de=/([A-Z])/,fe=/([A-Z])/g,he=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function ge(e){return de.test(e)?e.replace(fe,me).replace(he,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],s=0,a=e.length;s<a;s+=1)""!==(o=ve(e[s],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ye(e)?"":w(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof pe?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,o,i=[];for(var s in t)t.hasOwnProperty(s)&&!ye(t[s])&&(Array.isArray(t[s])&&t[s].isCss||v(t[s])?i.push(ge(s)+":",t[s],";"):m(t[s])?i.push.apply(i,e(t[s],s)):i.push(ge(s)+": "+(r=s,(null==(o=t[s])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in l.A||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||m(e)?be(ve(h(g,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:be(ve(h(e,n)))}new Set;var Ce=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},_e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function Ee(e){return e.replace(_e,"-").replace(xe,"")}var Se=function(e){return G(Z(e)>>>0)};function Pe(e){return"string"==typeof e&&!0}var Oe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ke(e,t,n){var r=e[n];Oe(t)&&Oe(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var s=i[o];if(Oe(s))for(var a in s)Te(a)&&ke(e,s[a],a)}return e}var Ie=o.createContext(),Re=Ie.Consumer;function Me(e){var t=(0,o.useContext)(Ie),n=(0,o.useMemo)(function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?P(8):t?f({},t,{},e):e:P(14)}(e.theme,t)},[e.theme,t]);return e.children?o.createElement(Ie.Provider,{value:n},e.children):null}var De={};function Le(e,t,n){var r=w(e),i=!Pe(e),s=t.attrs,a=void 0===s?g:s,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ee(e);De[n]=(De[n]||0)+1;var r=n+"-"+Se("5.3.11"+n+De[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,d=t.displayName,h=void 0===d?function(e){return Pe(e)?"styled."+e:"Styled("+b(e)+")"}(e):d,m=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||c,C=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,_=t.shouldForwardProp;r&&e.shouldForwardProp&&(_=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var x,E=new J(n,m,r?e.componentStyle:void 0),S=E.isStatic&&0===a.length,P=function(e,t){return function(e,t,n,r){var i=e.attrs,s=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,p=e.styledComponentId,d=e.target,h=function(e,t,n){void 0===e&&(e=y);var r=f({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,i,s=e;for(t in v(s)&&(s=s(r)),s)r[t]=o[t]="className"===t?(n=o[t],i=s[t],n&&i?n+" "+i:n||i):s[t]}),[r,o]}(Ce(t,(0,o.useContext)(Ie),a)||y,t,i),m=h[0],g=h[1],b=function(e,t,n){var r=le(),o=ue();return t?e.generateAndInjectStyles(y,r,o):e.generateAndInjectStyles(n,r,o)}(s,r,m),w=n,C=g.$as||t.$as||g.as||t.as||d,_=Pe(C),x=g!==t?f({},t,{},g):t,E={};for(var S in x)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?E.as=x[S]:(c?c(S,u.A,C):!_||(0,u.A)(S))&&(E[S]=x[S]));return t.style&&g.style!==t.style&&(E.style=f({},t.style,{},g.style)),E.className=Array.prototype.concat(l,p,b!==p?b:null,t.className,g.className).filter(Boolean).join(" "),E.ref=w,(0,o.createElement)(C,E)}(x,e,t,S)};return P.displayName=h,(x=o.forwardRef(P)).attrs=C,x.componentStyle=E,x.displayName=h,x.shouldForwardProp=_,x.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,x.styledComponentId=m,x.target=r?e.target:e,x.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Pe(e)?e:Ee(b(e)));return Le(e,f({},o,{attrs:C,componentId:i}),n)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),Object.defineProperty(x,"toString",{value:function(){return"."+x.styledComponentId}}),i&&p()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Ne=function(e){return function e(t,n,o){if(void 0===o&&(o=y),!(0,r.isValidElementType)(n))return P(1,String(n));var i=function(){return t(n,o,we.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,f({},o,{},r))},i.attrs=function(r){return e(t,n,f({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Le,e)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ne[e]=Ne(e)});var Ve=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function je(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=we.apply(void 0,[e].concat(n)),s="sc-global-"+Se(JSON.stringify(i)),a=new Ve(i,s);function l(e){var t=le(),n=ue(),r=(0,o.useContext)(Ie),i=(0,o.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,r,n),(0,o.useLayoutEffect)(function(){if(!t.server)return u(i,e,t,r,n),function(){return a.removeStyles(i,t)}},[i,e,t,r,n]),null}function u(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,S,n,o);else{var i=f({},t,{theme:Ce(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return o.memo(l)}function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=we.apply(void 0,[e].concat(n)).join(""),i=Se(o);return new pe(i,o)}var ze=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=j();return"<style "+[n&&'nonce="'+n+'"',C+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?P(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return P(2);var n=((t={})[C]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=j();return r&&(n.nonce=r),[o.createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?P(2):o.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return P(3)},e}(),Be=function(e){var t=o.forwardRef(function(t,n){var r=(0,o.useContext)(Ie),i=e.defaultProps,s=Ce(t,r,i);return o.createElement(e,f({},t,{theme:s,ref:n}))});return p()(t,e),t.displayName="WithTheme("+b(e)+")",t},He=function(){return(0,o.useContext)(Ie)},Ue={StyleSheet:W,masterSheet:se};const qe=Ne},92301(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Version",function(){return Ba}),n.d(t,"ReleaseDate",function(){return Ha}),n.d(t,"checkLibraryVersion",function(){return $a}),n.d(t,"setLicenseKey",function(){return Qa}),n.d(t,"slk",function(){return Ga}),n.d(t,"hasLicense",function(){return Ya}),n.d(t,"glc",function(){return Za}),n.d(t,"settings",function(){return Xt}),n.d(t,"Helpers",function(){return s}),n.d(t,"AnswerCountValidator",function(){return Cn}),n.d(t,"EmailValidator",function(){return xn}),n.d(t,"NumericValidator",function(){return bn}),n.d(t,"RegexValidator",function(){return _n}),n.d(t,"SurveyValidator",function(){return yn}),n.d(t,"TextValidator",function(){return wn}),n.d(t,"ValidatorResult",function(){return gn}),n.d(t,"ExpressionValidator",function(){return En}),n.d(t,"ValidatorRunner",function(){return vn}),n.d(t,"ItemValue",function(){return Nn}),n.d(t,"Base",function(){return xe}),n.d(t,"Event",function(){return Se}),n.d(t,"EventBase",function(){return Pe}),n.d(t,"ArrayChanges",function(){return Ee}),n.d(t,"ComputedUpdater",function(){return _e}),n.d(t,"SurveyError",function(){return Jt}),n.d(t,"SurveyElementCore",function(){return dt}),n.d(t,"SurveyElement",function(){return ft}),n.d(t,"DragTypeOverMeEnum",function(){return tt}),n.d(t,"CalculatedValue",function(){return jn}),n.d(t,"CustomError",function(){return hn}),n.d(t,"AnswerRequiredError",function(){return tn}),n.d(t,"OneAnswerRequiredError",function(){return nn}),n.d(t,"RequreNumericError",function(){return rn}),n.d(t,"ExceedSizeError",function(){return on}),n.d(t,"LocalizableString",function(){return mt}),n.d(t,"LocalizableStrings",function(){return gt}),n.d(t,"HtmlConditionItem",function(){return Bn}),n.d(t,"UrlConditionItem",function(){return Hn}),n.d(t,"ChoicesRestful",function(){return Wn}),n.d(t,"ChoicesRestfull",function(){return $n}),n.d(t,"FunctionFactory",function(){return V}),n.d(t,"registerFunction",function(){return j}),n.d(t,"ConditionRunner",function(){return ge}),n.d(t,"ExpressionRunner",function(){return ye}),n.d(t,"ExpressionExecutor",function(){return he}),n.d(t,"Operand",function(){return ee}),n.d(t,"Const",function(){return oe}),n.d(t,"BinaryOperand",function(){return te}),n.d(t,"Variable",function(){return ie}),n.d(t,"FunctionOperand",function(){return se}),n.d(t,"ArrayOperand",function(){return re}),n.d(t,"UnaryOperand",function(){return ne}),n.d(t,"ConditionsParser",function(){return pe}),n.d(t,"ProcessValue",function(){return L}),n.d(t,"JsonError",function(){return E}),n.d(t,"JsonIncorrectTypeError",function(){return T}),n.d(t,"JsonMetadata",function(){return x}),n.d(t,"JsonMetadataClass",function(){return _}),n.d(t,"JsonMissingTypeError",function(){return O}),n.d(t,"JsonMissingTypeErrorBase",function(){return P}),n.d(t,"JsonObject",function(){return R}),n.d(t,"JsonObjectProperty",function(){return w}),n.d(t,"JsonRequiredPropertyError",function(){return k}),n.d(t,"JsonUnknownPropertyError",function(){return S}),n.d(t,"Serializer",function(){return M}),n.d(t,"property",function(){return y}),n.d(t,"propertyArray",function(){return b}),n.d(t,"MatrixDropdownCell",function(){return xr}),n.d(t,"MatrixDropdownRowModelBase",function(){return Pr}),n.d(t,"QuestionMatrixDropdownModelBase",function(){return Tr}),n.d(t,"MatrixDropdownColumn",function(){return hr}),n.d(t,"matrixDropdownColumnTypes",function(){return fr}),n.d(t,"QuestionMatrixDropdownRenderedCell",function(){return vr}),n.d(t,"QuestionMatrixDropdownRenderedRow",function(){return br}),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",function(){return wr}),n.d(t,"QuestionMatrixDropdownRenderedTable",function(){return Cr}),n.d(t,"MatrixDropdownRowModel",function(){return Ar}),n.d(t,"QuestionMatrixDropdownModel",function(){return Ir}),n.d(t,"MatrixDynamicRowModel",function(){return $r}),n.d(t,"QuestionMatrixDynamicModel",function(){return Qr}),n.d(t,"MatrixRowModel",function(){return ci}),n.d(t,"MatrixCells",function(){return pi}),n.d(t,"QuestionMatrixModel",function(){return di}),n.d(t,"QuestionMatrixBaseModel",function(){return Yn}),n.d(t,"MultipleTextItemModel",function(){return Ii}),n.d(t,"MultipleTextCell",function(){return Li}),n.d(t,"MultipleTextErrorCell",function(){return Ni}),n.d(t,"MutlipleTextErrorRow",function(){return Di}),n.d(t,"MutlipleTextRow",function(){return Mi}),n.d(t,"QuestionMultipleTextModel",function(){return Ri}),n.d(t,"MultipleTextEditorModel",function(){return Ai}),n.d(t,"PanelModel",function(){return So}),n.d(t,"PanelModelBase",function(){return Eo}),n.d(t,"QuestionRowModel",function(){return xo}),n.d(t,"FlowPanelModel",function(){return ji}),n.d(t,"PageModel",function(){return To}),n.d(t,"DefaultTitleModel",function(){return Fi}),n.d(t,"Question",function(){return Rn}),n.d(t,"QuestionNonValue",function(){return Bi}),n.d(t,"QuestionEmptyModel",function(){return Ui}),n.d(t,"QuestionCheckboxBase",function(){return Wo}),n.d(t,"QuestionSelectBase",function(){return qo}),n.d(t,"QuestionCheckboxModel",function(){return Wi}),n.d(t,"QuestionTagboxModel",function(){return Ji}),n.d(t,"QuestionRankingModel",function(){return ls}),n.d(t,"QuestionCommentModel",function(){return cs}),n.d(t,"QuestionDropdownModel",function(){return li}),n.d(t,"QuestionFactory",function(){return ar}),n.d(t,"ElementFactory",function(){return lr}),n.d(t,"QuestionFileModel",function(){return vs}),n.d(t,"QuestionFilePage",function(){return ys}),n.d(t,"QuestionHtmlModel",function(){return Cs}),n.d(t,"QuestionRadiogroupModel",function(){return xs}),n.d(t,"QuestionRatingModel",function(){return As}),n.d(t,"RenderedRatingItem",function(){return Ts}),n.d(t,"QuestionExpressionModel",function(){return cr}),n.d(t,"QuestionTextBase",function(){return gi}),n.d(t,"CharacterCounter",function(){return mi}),n.d(t,"QuestionTextModel",function(){return _i}),n.d(t,"QuestionBooleanModel",function(){return Ms}),n.d(t,"QuestionImagePickerModel",function(){return Vs}),n.d(t,"ImageItemValue",function(){return Ns}),n.d(t,"QuestionImageModel",function(){return Bs}),n.d(t,"QuestionSignaturePadModel",function(){return Gs}),n.d(t,"QuestionPanelDynamicModel",function(){return na}),n.d(t,"QuestionPanelDynamicItem",function(){return ea}),n.d(t,"SurveyTimer",function(){return eo}),n.d(t,"SurveyTimerModel",function(){return ro}),n.d(t,"tryFocusPage",function(){return Ro}),n.d(t,"createTOCListModel",function(){return Do}),n.d(t,"getTocRootCss",function(){return No}),n.d(t,"TOCModel",function(){return Vo}),n.d(t,"SurveyProgressModel",function(){return ra}),n.d(t,"ProgressButtons",function(){return Ao}),n.d(t,"ProgressButtonsResponsivityManager",function(){return Io}),n.d(t,"SurveyModel",function(){return zo}),n.d(t,"SurveyTrigger",function(){return sa}),n.d(t,"SurveyTriggerComplete",function(){return la}),n.d(t,"SurveyTriggerSetValue",function(){return ua}),n.d(t,"SurveyTriggerVisible",function(){return aa}),n.d(t,"SurveyTriggerCopyValue",function(){return da}),n.d(t,"SurveyTriggerRunExpression",function(){return pa}),n.d(t,"SurveyTriggerSkip",function(){return ca}),n.d(t,"Trigger",function(){return ia}),n.d(t,"PopupSurveyModel",function(){return ha}),n.d(t,"SurveyWindowModel",function(){return ma}),n.d(t,"TextPreProcessor",function(){return Xn}),n.d(t,"Notifier",function(){return so}),n.d(t,"Cover",function(){return co}),n.d(t,"CoverCell",function(){return uo}),n.d(t,"dxSurveyService",function(){return Xr}),n.d(t,"englishStrings",function(){return a}),n.d(t,"surveyLocalization",function(){return l}),n.d(t,"surveyStrings",function(){return d}),n.d(t,"getLocaleString",function(){return u}),n.d(t,"getLocaleStrings",function(){return c}),n.d(t,"setupLocale",function(){return p}),n.d(t,"QuestionCustomWidget",function(){return Sn}),n.d(t,"CustomWidgetCollection",function(){return Pn}),n.d(t,"QuestionCustomModel",function(){return or}),n.d(t,"QuestionCompositeModel",function(){return sr}),n.d(t,"ComponentQuestionJSON",function(){return tr}),n.d(t,"ComponentCollection",function(){return nr}),n.d(t,"ListModel",function(){return Fe}),n.d(t,"MultiSelectListModel",function(){return Qi}),n.d(t,"PopupModel",function(){return He}),n.d(t,"createDialogOptions",function(){return Ue}),n.d(t,"PopupBaseViewModel",function(){return Xo}),n.d(t,"PopupDropdownViewModel",function(){return ni}),n.d(t,"PopupModalViewModel",function(){return ya}),n.d(t,"createPopupViewModel",function(){return wa}),n.d(t,"createPopupModalViewModel",function(){return ba}),n.d(t,"DropdownListModel",function(){return ii}),n.d(t,"DropdownMultiSelectListModel",function(){return Zi}),n.d(t,"QuestionButtonGroupModel",function(){return Ea}),n.d(t,"ButtonGroupItemModel",function(){return Sa}),n.d(t,"ButtonGroupItemValue",function(){return xa}),n.d(t,"IsMobile",function(){return Lr}),n.d(t,"IsTouch",function(){return jr}),n.d(t,"_setIsTouch",function(){return Fr}),n.d(t,"confirmAction",function(){return yt}),n.d(t,"confirmActionAsync",function(){return vt}),n.d(t,"detectIEOrEdge",function(){return bt}),n.d(t,"doKey2ClickUp",function(){return Lt}),n.d(t,"doKey2ClickDown",function(){return Nt}),n.d(t,"doKey2ClickBlur",function(){return Dt}),n.d(t,"loadFileFromBase64",function(){return wt}),n.d(t,"increaseHeightByContent",function(){return Vt}),n.d(t,"createSvg",function(){return kt}),n.d(t,"chooseFiles",function(){return $t}),n.d(t,"sanitizeEditableContent",function(){return Ut}),n.d(t,"prepareElementForVerticalAnimation",function(){return Gt}),n.d(t,"cleanHtmlElementAfterAnimation",function(){return Yt}),n.d(t,"classesToSelector",function(){return zt}),n.d(t,"renamedIcons",function(){return Pt}),n.d(t,"getIconNameFromProxy",function(){return Ot}),n.d(t,"InputMaskBase",function(){return Oa}),n.d(t,"InputMaskPattern",function(){return Ra}),n.d(t,"InputMaskNumeric",function(){return La}),n.d(t,"InputMaskDateTime",function(){return za}),n.d(t,"InputMaskCurrency",function(){return Wa}),n.d(t,"CssClassBuilder",function(){return Ae}),n.d(t,"TextAreaModel",function(){return Tn}),n.d(t,"surveyCss",function(){return Yr}),n.d(t,"defaultV2Css",function(){return Zr}),n.d(t,"defaultV2ThemeName",function(){return Kr}),n.d(t,"DragDropCore",function(){return Br}),n.d(t,"DragDropChoices",function(){return ts}),n.d(t,"DragDropRankingSelectToRank",function(){return is}),n.d(t,"StylesManager",function(){return sl}),n.d(t,"defaultStandardCss",function(){return al}),n.d(t,"modernCss",function(){return ll}),n.d(t,"SvgIconRegistry",function(){return ul}),n.d(t,"SvgRegistry",function(){return cl}),n.d(t,"SvgThemeSets",function(){return pl}),n.d(t,"addIconsToThemeSet",function(){return dl}),n.d(t,"RendererFactory",function(){return On}),n.d(t,"ResponsivityManager",function(){return Te}),n.d(t,"VerticalResponsivityManager",function(){return ke}),n.d(t,"unwrap",function(){return At}),n.d(t,"getOriginalEvent",function(){return jt}),n.d(t,"getElement",function(){return _t}),n.d(t,"activateLazyRenderingChecks",function(){return Et}),n.d(t,"createDropdownActionModel",function(){return $e}),n.d(t,"createDropdownActionModelAdvanced",function(){return Qe}),n.d(t,"createPopupModelWithListModel",function(){return Ge}),n.d(t,"getActionDropdownButtonTarget",function(){return Ye}),n.d(t,"BaseAction",function(){return Ze}),n.d(t,"Action",function(){return Ke}),n.d(t,"ActionDropdownViewModel",function(){return Xe}),n.d(t,"AnimationUtils",function(){return rt}),n.d(t,"AnimationPropertyUtils",function(){return ot}),n.d(t,"AnimationGroupUtils",function(){return it}),n.d(t,"AnimationProperty",function(){return st}),n.d(t,"AnimationBoolean",function(){return at}),n.d(t,"AnimationGroup",function(){return lt}),n.d(t,"AnimationTab",function(){return ut}),n.d(t,"AdaptiveActionContainer",function(){return et}),n.d(t,"defaultActionBarCss",function(){return Me}),n.d(t,"ActionContainer",function(){return De}),n.d(t,"DragOrClickHelper",function(){return qr}),n.d(t,"Model",function(){return zo});var r=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualViewport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getDevicePixelRatio=function(){return e.isAvailable()?window.devicePixelRatio:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,n){e.isAvailable()&&window.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&window.removeEventListener(t,n)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),o=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,n){e.isAvailable()&&document.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&document.removeEventListener(t,n)},e}();function i(e,t){if(!t)return new Date;var n;Xt.storeUtcDates||"string"!=typeof t||(n=t).indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(n)||isNaN(new Date(n).getTime())||(t+="T00:00:00");var r=new Date(t);return Xt.onDateCreated(r,e,t)}var s=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isValueUndefined=function(e){return null==e||"number"==typeof e&&isNaN(e)},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.checkIfArraysEqual=function(t,n,r){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(void 0!==r.ignoreOrder&&r.ignoreOrder){for(var o=[],i=[],s=0;s<t.length;s++)o.push(t[s]),i.push(n[s]);o.sort(),i.sort(),t=o,n=i}for(s=0;s<t.length;s++)if(!e.checkIfValuesEqual(t[s],n[s],r))return!1;return!0},e.isArraysEqual=function(t,n,r,o,i){return void 0===r&&(r=!1),e.checkIfArraysEqual(t,n,{ignoreOrder:r,caseSensitive:o,trimStrings:i})},e.compareStrings=function(e,t){var n=Xt.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var r=-1,o=0;o<e.length&&o<t.length;o++){if(this.isCharDigit(e[o])&&this.isCharDigit(t[o])){r=o;break}if(e[o]!==t[o])break}if(r>-1){var i=this.getNumberFromStr(e,r),s=this.getNumberFromStr(t,r);if(!Number.isNaN(i)&&!Number.isNaN(s)&&i!==s)return i>s?1:-1}return e>t?1:-1},e.checkIfValuesEqual=function(t,n,r){if(t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;var o=void 0!==r.caseSensitive?r.caseSensitive:Xt.comparator.caseSensitive,i=void 0!==r.trimStrings?r.trimStrings:Xt.comparator.trimStrings;if("string"==typeof t&&"string"==typeof n){var s=Xt.comparator.normalizeTextCallback;return t=s(t,"compare"),n=s(n,"compare"),i&&(t=t.trim(),n=n.trim()),o||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();var a=!r.doNotConvertNumbers;if(a&&e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();var l=e.isValueObject(t),u=e.isValueObject(n);if(!l&&!u&&(a||"number"!=typeof t&&"number"!=typeof n))return t==n;if(!l||!u)return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.checkIfArraysEqual(t,n,r);for(var c in t)if(t.hasOwnProperty(c)){if(!n.hasOwnProperty(c))return!1;if(!this.checkIfValuesEqual(t[c],n[c],r))return!1}for(c in n)if(n.hasOwnProperty(c)&&!t.hasOwnProperty(c))return!1;return!0},e.isTwoValueEquals=function(e,t,n,r,o){return void 0===n&&(n=!1),this.checkIfValuesEqual(e,t,{ignoreOrder:n,caseSensitive:r,trimStrings:o})},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){return this.createCopyWithPrefix(e,void 0)},e.createCopyWithPrefix=function(e,t){var n={};if(!e)return n;for(var r in e)n[t?t+r:r]=e[r];return n},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(t){var n=e.getNumberCore(t);return Xt.parseNumber(t,n)},e.getNumberCore=function(t){if("string"==typeof t){if(!(t=t.trim()))return NaN;if(0==t.indexOf("0x"))return t.length>32?NaN:parseInt(t);if(t.length>15&&e.isDigitsOnly(t))return NaN;if(e.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var n=parseFloat(t);return isNaN(n)||!isFinite(t)?NaN:n},e.isStringHasOperator=function(e){if(e.lastIndexOf("-")>0)return!1;if(e.lastIndexOf("+")>0)return!1;for(var t=0;t<4;t++)if(e.indexOf("*^/%"[t])>-1)return!0;return!1},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!Xt.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n,r){if(t<0)return"";var o=1,i="",s=".",a=!0,l="A",u="",c=function(t){if(!t)return!1;for(var n=0;n<t.length;n++)if(e.isCharDigit(t[n]))return!0;return!1};if(n){for(var p=(u=n).length-1,d=c(u),f=function(){return d&&!e.isCharDigit(u[p])||e.isCharNotLetterAndDigit(u[p])};p>=0&&f();)p--;var h="";for(p<u.length-1&&(h=u.substring(p+1),u=u.substring(0,p+1)),p=u.length-1;p>=0&&!f()&&(p--,d););l=u.substring(p+1),i=u.substring(0,p+1),parseInt(l)?o=parseInt(l):1==l.length&&(a=!1),(h||i)&&(s=h)}if(r>-1&&c(i)&&(i=this.getNumberByIndex(r,i)),a){for(var m=(t+o).toString();m.length<l.length;)m="0"+m;return i+m+s}return i+String.fromCharCode(l.charCodeAt(0)+t)+s},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.isDigitsOnly=function(t){if(!t)return!1;for(var n=0;n<t.length;n++)if(!e.isCharDigit(t[n]))return!1;return!0},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return"string"==typeof t||"string"==typeof n?t+n:e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):this.getUnbindValue(t)},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var n=e.split("."),r=t.split("."),o=n.length,i=r.length,s=0;s<o&&s<i;s++){var a=n[s],l=r[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return o===i?0:o<i?-1:1},e.isUrlYoutubeVideo=function(e){if(!e)return!1;var t=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];e=(e=e.toLowerCase()).replace(/^https?:\/\//,"");for(var n=0;n<t.length;n++)if(0===e.indexOf(t[n]+"/"))return!0;return!1},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,n){return void 0!==e[n]?e[n]:t})});var a={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},l={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(e){this.useEnglishNames=e},setupLocale:function(e){var t=e.localeCode;this.locales[t]=e.strings,this.localeNames[t]=e.nativeName,this.localeNamesInEnglish[t]=e.englishName,void 0!==e.rtl&&(this.localeDirections[t]=e.rtl?"rtl":"ltr")},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=this.getCorrectLocaleName(e)},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=this.getCorrectLocaleName(e)},getCorrectLocaleName:function(e){return"cz"===e&&(e="cs"),"gr"===e&&(e="el"),"rs"===e&&(e="sr"),"ua"===e&&(e="uk"),e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocaleName:function(e,t){if(!e)return"";void 0===t&&(t=this.showNamesInEnglish);var n=t?this.localeNamesInEnglish:this.localeNames,r=t?this.localeNames:this.localeNamesInEnglish;return n[e]||r[e]||e},getLocales:function(e){var t=this;void 0===e&&(e=!1);var n=[];n.push("");var r=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){r={};for(var o=0;o<this.supportedLocales.length;o++)r[this.supportedLocales[o]]=!0}for(var i in r)e&&i==this.defaultLocale||n.push(i);var s=function(e){return t.getLocaleName(e).toLowerCase()};return n.sort(function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1}),n},onGetExternalString:function(e,t){}};function u(e,t){return void 0===t&&(t=null),l.getString(e,t)}function c(e){return l.getLocaleStrings(e)}function p(e){l.setupLocale(e)}var d=a;l.locales.en=a,l.localeNames.en="english";var f,h=(f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},f(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function g(e,t,n){var r=e.getLocalizableString(n);if(!r){var o=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(o=t.localizable.defaultStr),r=e.createLocalizableString(n,e,!0,o),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback)}}function y(e){return void 0===e&&(e={}),function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===_e.ComputedUpdaterType){xe.startCollectDependencies(function(){return e[n]=t.updater()},e,n);var r=t.updater(),o=xe.finishCollectDependencies();return t.setDependencies(o),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){g(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var o=e.getLocale?e.getLocale():"";return u(t.localizable.defaultStr,o)}return""}(this,e,n)},set:function(t){g(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return g(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t),i=this.getPropertyValue(n);o!==i&&(this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this,i))}})}}function v(e,t,n){e.ensureArray(n,function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)})}function b(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return v(this,e,n),this.getPropertyValue(n)},set:function(t){v(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,m([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var w=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.getDefaultValue=function(t){var n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&M.isDescendantOf(this.className,"itemvalue")&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e,void 0!==e&&(this.defaultValueFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){if(this.isLocalizable)return null==t;var n=this.getDefaultValue(e);return s.isValueEmpty(n)?!1===t&&("boolean"==this.type||"switch"==this.type)&&!this.defaultValueFunc||""===t||s.isValueEmpty(t):s.isTwoValueEquals(t,n,!1,!0,!1)},e.prototype.getSerializableValue=function(e,t){if(this.onSerializeValue)return this.onSerializeValue(e);var n=this.getValue(e);return null==n||!t&&this.isDefaultValueByObj(e,n)?void 0:n},e.prototype.getValue=function(e){return this.onGetValue?(e=this.getOriginalObj(e),this.onGetValue(e)):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?(e=this.getOriginalObj(e),this.onSetValue(e,t,n)):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t,!0):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||!e||this.layout===e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&M.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!(!this.alternativeName&&!this.oldName)||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?M.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||s.compareVerions(this.version,e)<=0},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),C=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name).defaultValue=n.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.isArray||"multiplevalues"===n.type;if("function"==typeof t.createNewArray&&(M.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,function(e){e.locOwner=t,e.ownerPropertyName=n.name}),i=!0):i&&t.createNewArray(n.name),i)){var s=n.getDefaultValue(t);Array.isArray(s)&&t.setPropertyValue(n.name,s)}t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,void 0)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),_=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),C.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=M.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach(function(e){return t[e.name]=e});var n=this.parentName?M.findClass(this.parentName):null;n&&n.getAllProperties().forEach(function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)}),this.properties.forEach(function(t){e.hashProperties[t.name]||e.addPropCore(t)})}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!M.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;C.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=M.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new w(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),void 0!==t.displayName&&(l.displayName=t.displayName),s.isValueEmpty(t.category)||(l.category=t.category),s.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),!0===t.availableInMatrixColumn&&(l.availableInMatrixColumn=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),!0===l.isArray&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,C.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){var n=Array.isArray(t)?t:[t];e.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(e,n[r])},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=M.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),x=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var n=e.getOriginalObj(),r=M.findProperty(n.getType(),t);if(r)return this.getObjPropertyValueCore(n,r)}var o=M.findProperty(e.getType(),t);return o?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===t)return!0;return!1},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new _(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var n=this.getProperties(t),r=this.getDynamicPropertiesByObj(e),o=r.length-1;o>=0;o--)this.findProperty(t,r[o].name)&&r.splice(o,1);return 0===r.length?n:[].concat(n).concat(r)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,n){var r=this;n.forEach(function(n){r.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&r.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&r.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)})},e.prototype.addDynamicPropertyIntoObj=function(e,t,n,r){var o={configurable:!0,get:function(){return t[n]}};r||(o.set=function(e){t[n]=e}),Object.defineProperty(e,n,o)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)},e.prototype.getDynamicPropertiesByTypes=function(e,t,n){if(!t)return[];var r=t+"-"+e;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(t);if(!o||0==o.length)return[];for(var i={},s=this.getProperties(e),a=0;a<s.length;a++)i[s[a].name]=s[a];var l=[];n||(n=[]);for(var u=0;u<o.length;u++){var c=o[u];n.indexOf(c.name)<0&&this.canAddDybamicProp(c,i[c.name])&&l.push(c)}return this.dynamicPropsCache[r]=l,l},e.prototype.canAddDybamicProp=function(e,t){if(!t)return!0;if(e===t)return!1;for(var n=e.classInfo;n&&n.parentName;){if((e=this.findProperty(n.parentName,e.name))&&e===t)return!0;n=e?e.classInfo:void 0}return!1},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new w(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},C.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var n=t.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),C.removeProperty(n.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=M.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(t){t&&(e[t]={type:"string"})}))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"===e.name&&(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];!1!==a.isSerializable&&(e.parentName&&M.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name)))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=this.getChoicesValues(s))}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e.prototype.getChoicesValues=function(e){var t=new Array;return e.forEach(function(e){"object"==typeof e&&void 0!==e.value?t.push(e.value):t.push(e)}),t},e}(),E=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),S=function(e){function t(t,n){var r=e.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+t+"'.")||this;return r.propertyName=t,r.className=n,r}return h(t,e),t}(E),P=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.baseClassName=t,o.type=n,o.message=r,o}return h(t,e),t}(E),O=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return h(t,e),t}(P),T=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return h(t,e),t}(P),k=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return h(t,e),t}(E),A=function(e){function t(t,n){var r=e.call(this,"arrayproperty","The property '"+t+"' should be an array in '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return h(t,e),t}(E),I=function(e){function t(t,n){var r=e.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+t.name+"'.")||this;return r.property=t,r.value=n,r}return h(t,e),t}(E),R=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t,n){this.toObjectCore(e,t,n);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e,t)},e.prototype.toObjectCore=function(t,n,r){if(t){var o=null,i=void 0,s=!0;if(n.getType&&(i=n.getType(),o=M.getProperties(i),s=!!i&&!M.isDescendantOf(i,"itemvalue")),o){n.startLoadingFromJson&&n.startLoadingFromJson(t),o=this.addDynamicProperties(n,t,o),this.options=r;var a={};a[e.typePropertyName]=!0;var l={};for(var u in t)this.setPropertyValueToObj(t,n,u,o,a,l,i,s,r);this.options=void 0,n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.setPropertyValueToObj=function(t,n,r,o,i,s,a,l,u){var c=this;if(!i[r])if(r!==e.positionPropertyName){var p=this.findProperty(o,r);if(!p&&l&&this.addNewError(new S(r.toString(),a),t,n),p){var d=p.dependsOn;Array.isArray(d)&&(s[r]=!0,d.forEach(function(e){s[e]||c.setPropertyValueToObj(t,n,e,o,i,s,a,!1,u)})),this.valueToObj(t[r],n,p,t,u),i[r]=!0}}else n[r]=t[r]},e.prototype.toJsonObjectCore=function(t,n,r){if(!t||!t.getType)return t;if(!t.isSurvey&&"function"==typeof t.getData)return t.getData();var o={};null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType()));var i=!0===r;return r&&!0!==r||(r={}),i&&(r.storeDefaults=i),this.propertiesToJson(t,M.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return M.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return n;if(e.getDynamicPropertyName){var r=e.getDynamicPropertyName();if(!r)return n;r&&t[r]&&(e[r]=t[r])}var o=this.getDynamicProperties(e);return 0===o.length?n:[].concat(n).concat(o)},e.prototype.propertiesToJson=function(e,t,n,r){for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){r||(r={}),!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing||r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(e,t,n,r)},e.prototype.valueToJsonCore=function(e,t,n,r){var o=n.getSerializedProperty(e,r.version);if(o&&o!==n)this.valueToJsonCore(e,t,o,r);else{var i=n.getSerializableValue(e,r.storeDefaults);if(void 0!==i){if(this.isValueArray(i)){for(var s=[],a=0;a<i.length;a++)s.push(this.toJsonObjectCore(i[a],n,r));i=s.length>0?s:null}else i=this.toJsonObjectCore(i,n,r);if(null!=i){var l=n.getSerializedName(r.version),u="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(l,null);(r.storeDefaults&&u||!n.isDefaultValueByObj(e,i))&&(M.onSerializingProperty&&M.onSerializingProperty(e,n,i,t)||(t[l]=this.removePosOnValueToJson(n,i)))}}}},e.prototype.valueToObj=function(e,t,n,r,o){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else{if(n.isArray&&!Array.isArray(e)&&e){e=[e];var i=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new A(i,t.getType()),r||e,t)}if(this.isValueArray(e))this.valueToArray(e,t,n.name,n,o);else{var s=this.createNewObj(e,n);s.newObj&&(this.toObjectCore(e,s.newObj,o),e=s.newObj),s.error||(null!=n?(n.setValue(t,e,this),o&&o.validatePropertyValues&&(n.validateValue(e)||this.addNewError(new I(n,e),r,t))):t[n.name]=e)}}},e.prototype.removePosOnValueToJson=function(e,t){return e.isCustom&&t?(this.removePosFromObj(t),t):t},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t&&"function"!=typeof t.getType){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);if("object"==typeof t)for(var r in t[e.positionPropertyName]&&delete t[e.positionPropertyName],t)this.removePosFromObj(t[r])}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(e,t){var n={newObj:null,error:null},r=this.getClassNameForNewObj(e,t);return n.newObj=r?M.createClass(r,e):null,n.error=this.checkNewObjectOnErrors(n.newObj,e,t,r),n},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new T(n.name,n.baseClassName):new O(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(e,t){if(!e.getType||"function"==typeof e.getData)return null;var n=M.findClass(e.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var i=r[o];if(s.isValueEmpty(i.defaultValue)&&!t[i.name])return new k(i.name,e.getType())}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r,o){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var i=t[n]?t[n]:[];this.addValuesIntoArray(e,i,r,o),t[n]||(t[n]=i)}},e.prototype.addValuesIntoArray=function(e,t,n,r){for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],n);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),e[o].valueName&&(i.newObj.valueName=e[o].valueName.toString()),t.push(i.newObj),this.toObjectCore(e[o],i.newObj,r)):i.error||t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new x,e}(),M=R.metaData,D="@survey",L=function(){function e(){this.values=null,this.properties=null,this.asyncValues={}}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){void 0===t&&(t=null),t||(t=this.values);var n=this.getValueCore(e,t);return n.onProcessValue?n.onProcessValue(n.value):n.value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!s.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.onProcessValue=t.onProcessValue,e.sctrictCompare=t.sctrictCompare},e.prototype.isAnyKeyChanged=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r){var o=r.toLowerCase();if(e.hasOwnProperty(r))return!0;if(r!==o&&e.hasOwnProperty(o))return!0;var i=this.getFirstName(r);if(e.hasOwnProperty(i)){if(r===i)return!0;var a=e[i];if(null!=a){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[i]=a.oldValue;var u=this.getValue(r,l);l[i]=a.newValue;var c=this.getValue(r,l);if(!s.isTwoValueEquals(u,c,!1,!1,!1))return!0}}}}return!1},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===D)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var r=e[n];if(s.isNumber(r)&&Array.isArray(t)&&r>=t.length)return null;t=t[r],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,onProcessValue:function(e){return n.getExpressionValue(e)},path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var o=this.getValueFromSurvey(e);void 0!==o&&(r.hasValue=!0,r.value=o,r.path=[D,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},r=t;if(!r&&0!==r&&!1!==r)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,e,!1);return o?(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!s.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var r=this.getFirstPropertyName(t,e,n),o=e,i=r?[r]:null,a=t;a!=r&&o;){if("["==a[0]){var l=this.getObjInArray(o,a);if(!l)return null;o=l.value,a=l.text,i.push(l.index)}else{if(!r&&a===this.getFirstName(a))return{value:e,text:t,path:i};if(o=this.getObjectValue(o,r),s.isValueEmpty(o)&&!n)return null;a=a.substring(r.length)}a&&"."==a[0]&&(a=a.substring(1)),(r=this.getFirstPropertyName(a,o,n))&&i.push(r)}return{value:o,text:a,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n){if(void 0===n&&(n=!1),!e)return"";if(t||(t={}),t.hasOwnProperty(e))return e;var r=e.toLowerCase(),o=r[0],i=o.toUpperCase(),s="";for(var a in t){var l=a[0];if(l===i||l===o){var u=a.toLowerCase();if(u==r)return a;if(r.length<=u.length)continue;var c=r[u.length];if("."!=c&&"["!=c)continue;u==r.substring(0,u.length)&&s.length<a.length&&(s=a)}}if(s)return s;if(n&&"["!==e[0]){var p=e.indexOf(".");return p>-1&&(t[e=e.substring(0,p)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}(),N=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e.error=function(e){console.error(e)},e}(),V=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n,r){void 0===n&&(n=null);var o=this.functionHash[e];if(!o)return N.warn("Unknown function name: "+e),null;var i={func:o};if(n)for(var s in n)i[s]=n[s];return i.func(t,r)},e.Instance=new e,e}(),j=V.Instance.register;function F(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)F(e[n],t);else s.isNumber(e)&&(e=s.getNumber(e)),t.push(e)}function z(e){var t=[];F(e,t);for(var n=0,r=0;r<t.length;r++)n=s.correctAfterPlusMinis(n,t[r],n+t[r]);return n}function B(e,t){var n=[];F(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function H(e,t,n,r,o,i){return!e||s.isValueEmpty(e[t])||i&&!i.run(e)?n:r(n,o?"string"==typeof(a=e[t])?s.isNumber(a)?s.getNumber(a):void 0:a:1);var a}function U(e,t,n,r){void 0===r&&(r=!0);var o=function(e,t){if(e.length<2||e.length>3)return null;var n=e[0];if(!n)return null;if(!Array.isArray(n)&&!Array.isArray(Object.keys(n)))return null;var r=e[1];if("string"!=typeof r&&!(r instanceof String))return null;var o=e.length>2?e[2]:void 0;if("string"==typeof o||o instanceof String||(o=void 0),!o){var i=Array.isArray(t)&&t.length>2?t[2]:void 0;i&&i.toString()&&(o=i.toString())}return{data:n,name:r,expression:o}}(e,t);if(o){var i=o.expression?new ge(o.expression):void 0;i&&i.isAsync&&(i=void 0);var s=void 0;if(Array.isArray(o.data))for(var a=0;a<o.data.length;a++)s=H(o.data[a],o.name,s,n,r,i);else for(var l in o.data)s=H(o.data[l],o.name,s,n,r,i);return s}}function q(e,t){var n=U(e,t,function(e,t){return null==e&&(e=0),null==t||null==t?e:s.correctAfterPlusMinis(e,t,e+t)});return void 0!==n?n:0}function W(e,t){var n=U(e,t,function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1},!1);return void 0!==n?n:0}function $(e,t,n){if("days"===n)return Y([e,t]);var r=i("function-dateDiffMonths",e),o=i("function-dateDiffMonths",t);n=n||"years";var s=12*(o.getFullYear()-r.getFullYear())+o.getMonth()-r.getMonth();return o.getDate()<r.getDate()&&(s-=1),"months"===n?s:~~(s/12)}function Q(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function G(e){var t=i("function-today");return Xt.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function Y(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=i("function-diffDays",e[0]),n=i("function-diffDays",e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)}function Z(e,t){var n=G(void 0);return t&&t[0]&&(n=i("function-"+e,t[0])),n}function K(e,t){if(e&&t){for(var n=e.question;n&&n.parent;){if(i=n.parent.getQuestionByName(t))return i;n=n.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var i,s=e[r[o]];if(s&&s.getQuestionByName&&(i=s.getQuestionByName(t)))return i}return null}}function X(e,t){return t.length>1&&!s.isValueEmpty(t[1])?e.getDisplayValue(!0,t[1]):e.displayValue}V.Instance.register("sum",z),V.Instance.register("min",function(e){return B(e,!0)}),V.Instance.register("max",function(e){return B(e,!1)}),V.Instance.register("count",function(e){var t=[];return F(e,t),t.length}),V.Instance.register("avg",function(e){var t=[];F(e,t);var n=z(e);return t.length>0?n/t.length:0}),V.Instance.register("sumInArray",q),V.Instance.register("minInArray",function(e,t){return U(e,t,function(e,t){return null==e?t:null==t||null==t||e<t?e:t})}),V.Instance.register("maxInArray",function(e,t){return U(e,t,function(e,t){return null==e?t:null==t||null==t||e>t?e:t})}),V.Instance.register("countInArray",W),V.Instance.register("avgInArray",function(e,t){var n=W(e,t);return 0==n?0:q(e,t)/n}),V.Instance.register("iif",function(e){return e||3===e.length?e[0]?e[1]:e[2]:""}),V.Instance.register("getDate",function(e){return!e&&e.length<1?null:e[0]?i("function-getDate",e[0]):null}),V.Instance.register("age",function(e){return!Array.isArray(e)||e.length<1||!e[0]?null:$(e[0],void 0,(e.length>1?e[1]:"")||"years")}),V.Instance.register("dateDiff",function(e){if(!Array.isArray(e)||e.length<2||!e[0]||!e[1])return null;var t=(e.length>2?e[2]:"")||"days",n="hours"===t||"minutes"===t,r=n?"days":t,o=$(e[0],e[1],r);if(n){var s=i("function-dateDiffMonths",e[0]),a=i("function-dateDiffMonths",e[1]);(a.getHours()>s.getHours()||"hours"!==t&&a.getHours()===s.getHours()&&a.getMinutes()>s.getMinutes())&&(o-=1);var l=24*o+a.getHours()-s.getHours();return"hours"===t?l:(a.getMinutes()<s.getMinutes()&&(l-=1),60*l+a.getMinutes()-s.getMinutes())}return o}),V.Instance.register("dateAdd",function(e){if(!Array.isArray(e)||e.length<2||!e[0]||!e[1])return null;var t=i("function-dateAdd",e[0]),n=e[1],r=e[2]||"days";return"days"===r&&t.setDate(t.getDate()+n),"months"===r&&t.setMonth(t.getMonth()+n),"years"===r&&t.setFullYear(t.getFullYear()+n),t}),V.Instance.register("isContainerReady",function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!Q(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return Q(n)}),V.Instance.register("isDisplayMode",function(){return this.survey&&this.survey.isDisplayMode}),V.Instance.register("currentDate",function(){return i("function-currentDate")}),V.Instance.register("today",G),V.Instance.register("getYear",function(e){if(1===e.length&&e[0])return i("function-getYear",e[0]).getFullYear()}),V.Instance.register("currentYear",function(){return i("function-currentYear").getFullYear()}),V.Instance.register("diffDays",Y),V.Instance.register("year",function(e){return Z("year",e).getFullYear()}),V.Instance.register("month",function(e){return Z("month",e).getMonth()+1}),V.Instance.register("day",function(e){return Z("day",e).getDate()}),V.Instance.register("weekday",function(e){return Z("weekday",e).getDay()}),V.Instance.register("displayValue",function(e){var t=this,n=K(this,e[0]);if(!n)return"";if(n.isReady)this.returnResult(X(n,e));else{var r=function(n,o){n.isReady&&(n.onReadyChanged.remove(r),t.returnResult(X(n,e)))};n.onReadyChanged.add(r)}},!0),V.Instance.register("propertyValue",function(e){if(2===e.length&&e[0]&&e[1]){var t=K(this,e[0]);return t?t[e[1]]:void 0}}),V.Instance.register("substring",function(e){if(e.length<2)return"";var t=e[0];if(!t||"string"!=typeof t)return"";var n=e[1];if(!s.isNumber(n))return"";var r=e.length>2?e[2]:void 0;return s.isNumber(r)?t.substring(n,r):t.substring(n)});var J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ee=function(){function e(){this._id=e.counter++}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.addOperandsToList=function(e){e.push(this),this.addChildrenToList(e)},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e.prototype.addChildrenToList=function(e){},e.counter=1,e}(),te=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?ae.binaryFunctions.arithmeticOp(t):ae.binaryFunctions[t],null==i.consumer&&ae.throwInvalidOperatorError(t),i}return J(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+ae.safeToString(this.left,e)+" "+ae.operatorToString(this.operatorName)+" "+ae.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.addChildrenToList=function(e){this.left&&this.left.addOperandsToList(e),this.right&&this.right.addOperandsToList(e)},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(ee),ne=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=ae.unaryFunctions[n],null==r.consumer&&ae.throwInvalidOperatorError(n),r}return J(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}var n=ae.operatorToString(this.operator),r=this.expression.toString(e);return this.isRigtOperator?r+" "+n:n+" "+r},Object.defineProperty(t.prototype,"isRigtOperator",{get:function(){var e=this.operatorName.toLowerCase();return"notempty"===e||"empty"===e},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.addChildrenToList=function(e){this.expression.addOperandsToList(e)},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(ee),re=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return J(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map(function(t){return t.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(t){return t.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(t){t.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.addChildrenToList=function(e){this.values.forEach(function(t){t.addOperandsToList(e)})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(t){return t.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(ee),oe=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return J(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){if(!e||"string"!=typeof e)return e;if(ae.isBooleanValue(e))return"true"===e.toLowerCase();if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(s.isNumber(e)){if("0"===e[0]&&0!=e.indexOf("0x")){var t=e.length,n=t>1&&("."===e[1]||","===e[1]);if(!n&&t>1||n&&t<2)return e}return s.getNumber(e)}return e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t}(ee),ie=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return J(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return Xt.expressionDisableConversionChar},set:function(e){Xt.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){if(this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),!this.valueInfo.hasValue)return null;var t=this.valueInfo.value;return this.valueInfo.onProcessValue&&(t=this.valueInfo.onProcessValue(t)),this.getCorrectValue(t)},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(oe),se=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,Array.isArray(n)&&0===n.length&&(r.parameters=new re([])),r}return J(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var t=this.getAsynValue(e);return t?t.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var t=e.properties;if(this.isAsyncFunction){t=s.createCopy(e.properties);var n=this.id,r=e.asyncValues,o=e.onCompleteAsyncFunc,i=this;t.returnResult=function(e){r[n]={value:e},o(i)}}return V.Instance.run(this.originalValue,this.parameters.evaluate(e),t,this.parameters.values)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.addChildrenToList=function(e){this.parameters.addOperandsToList(e)},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return V.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var t=void 0;if(this.isAsyncFunction()&&(t={operand:this}),this.parameters.hasAsyncFunction()){var n=new Array;this.parameters.addToAsyncList(n),n.forEach(function(e){return e.parent=t}),t||(t={}),t.children=n}t&&e.push(t)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(ee),ae=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||s.isNumber(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(s.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),s.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=i("expression-operand",e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return s.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return s.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return s.sumAnyValues(e,t)},minus:function(e,t){return s.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return s.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n,r){return!e.binaryFunctions.equal(t,n,r)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!s.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(s.isValueEmpty(t)&&s.isValueEmpty(n))return!0;if(s.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(s.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!s.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}(),le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return le(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),ce=function(e,t){this.at=e,this.code=t},pe=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(e){try{return function(e,t){t=void 0!==t?t:{};var n,r,o,i,s={},a={Expression:jn},l=jn,u=function(e,t){return lr(e,t,!0)},c="||",p=Mn("||",!1),d="or",f=Mn("or",!0),h=function(){return"or"},m="&&",g=Mn("&&",!1),y="and",v=Mn("and",!0),b=function(){return"and"},w=function(e,t){return lr(e,t)},C="<=",_=Mn("<=",!1),x="lessorequal",E=Mn("lessorequal",!0),S=function(){return"lessorequal"},P=">=",O=Mn(">=",!1),T="greaterorequal",k=Mn("greaterorequal",!0),A=function(){return"greaterorequal"},I="==",R=Mn("==",!1),M="equal",D=Mn("equal",!0),L=function(){return"equal"},N="=",V=Mn("=",!1),j="!=",F=Mn("!=",!1),z="notequal",B=Mn("notequal",!0),H=function(){return"notequal"},U="<",q=Mn("<",!1),W="less",$=Mn("less",!0),Q=function(){return"less"},G=">",Y=Mn(">",!1),Z="greater",K=Mn("greater",!0),X=function(){return"greater"},J="+",ee=Mn("+",!1),ae=function(){return"plus"},le="-",ce=Mn("-",!1),pe=function(){return"minus"},de="*",fe=Mn("*",!1),he=function(){return"mul"},me="/",ge=Mn("/",!1),ye=function(){return"div"},ve="%",be=Mn("%",!1),we=function(){return"mod"},Ce="^",_e=Mn("^",!1),xe="power",Ee=Mn("power",!0),Se=function(){return"power"},Pe="*=",Oe=Mn("*=",!1),Te="contains",ke=Mn("contains",!0),Ae="contain",Ie=Mn("contain",!0),Re=function(){return"contains"},Me="notcontains",De=Mn("notcontains",!0),Le="notcontain",Ne=Mn("notcontain",!0),Ve=function(){return"notcontains"},je="anyof",Fe=Mn("anyof",!0),ze=function(){return"anyof"},Be="allof",He=Mn("allof",!0),Ue=function(){return"allof"},qe="(",We=Mn("(",!1),$e=")",Qe=Mn(")",!1),Ge=function(e){return e},Ye=function(e,t){return new se(e,t)},Ze="!",Ke=Mn("!",!1),Xe="negate",Je=Mn("negate",!0),et=function(e){return new ne(e,"negate")},tt=function(e,t){return new ne(e,t)},nt="empty",rt=Mn("empty",!0),ot=function(){return"empty"},it="notempty",st=Mn("notempty",!0),at=function(){return"notempty"},lt="undefined",ut=Mn("undefined",!1),ct="null",pt=Mn("null",!1),dt=function(){return null},ft=function(e){return new oe(e)},ht="{",mt=Mn("{",!1),gt="}",yt=Mn("}",!1),vt=function(e){return new ie(e)},bt=function(e){return e},wt="''",Ct=Mn("''",!1),_t=function(){return""},xt='""',Et=Mn('""',!1),St="'",Pt=Mn("'",!1),Ot=function(e){return"'"+e+"'"},Tt='"',kt=Mn('"',!1),At="[",It=Mn("[",!1),Rt="]",Mt=Mn("]",!1),Dt=function(e){return e},Lt=",",Nt=Mn(",",!1),Vt=function(e,t){if(null==e)return new re([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),o=3;o<r.length;o+=4)n.push(r[o]);return new re(n)},jt="true",Ft=Mn("true",!0),zt=function(){return!0},Bt="false",Ht=Mn("false",!0),Ut=function(){return!1},qt="0x",Wt=Mn("0x",!1),$t=function(){return parseInt(Rn(),16)},Qt=/^[\-]/,Gt=Dn(["-"],!1,!1),Yt=function(e,t){return null==e?t:-t},Zt=".",Kt=Mn(".",!1),Xt=function(){return parseFloat(Rn())},Jt=function(){return parseInt(Rn(),10)},en="0",tn=Mn("0",!1),nn=function(){return 0},rn=function(e){return e.join("")},on="\\'",sn=Mn("\\'",!1),an=function(){return"'"},ln='\\"',un=Mn('\\"',!1),cn=function(){return'"'},pn=/^[^"']/,dn=Dn(['"',"'"],!0,!1),fn=function(){return Rn()},hn=/^[^{}]/,mn=Dn(["{","}"],!0,!1),gn=/^[0-9]/,yn=Dn([["0","9"]],!1,!1),vn=/^[1-9]/,bn=Dn([["1","9"]],!1,!1),wn=/^[a-zA-Z_]/,Cn=Dn([["a","z"],["A","Z"],"_"],!1,!1),_n={type:"other",description:"whitespace"},xn=/^[ \t\n\r]/,En=Dn([" ","\t","\n","\r"],!1,!1),Sn=0,Pn=0,On=[{line:1,column:1}],Tn=0,kn=[],An=0,In={};if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');l=a[t.startRule]}function Rn(){return e.substring(Pn,Sn)}function Mn(e,t){return{type:"literal",text:e,ignoreCase:t}}function Dn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Ln(t){var n,r=On[t];if(r)return r;for(n=t-1;!On[n];)n--;for(r={line:(r=On[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return On[t]=r,r}function Nn(e,t){var n=Ln(e),r=Ln(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Vn(e){Sn<Tn||(Sn>Tn&&(Tn=Sn,kn=[]),kn.push(e))}function jn(){var e,t,n,r,o,i,a,l,c=34*Sn+0,p=In[c];if(p)return Sn=p.nextPos,p.result;if(e=Sn,ar()!==s)if((t=zn())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Fn())!==s&&(a=ar())!==s&&(l=zn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Fn())!==s&&(a=ar())!==s&&(l=zn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);n!==s&&(r=ar())!==s?(Pn=e,e=u(t,n)):(Sn=e,e=s)}else Sn=e,e=s;else Sn=e,e=s;return In[c]={nextPos:Sn,result:e},e}function Fn(){var t,n,r=34*Sn+1,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,2)===c?(n=c,Sn+=2):(n=s,0===An&&Vn(p)),n===s&&(e.substr(Sn,2).toLowerCase()===d?(n=e.substr(Sn,2),Sn+=2):(n=s,0===An&&Vn(f))),n!==s&&(Pn=t,n=h()),t=n,In[r]={nextPos:Sn,result:t},t)}function zn(){var e,t,n,r,o,i,a,l,c=34*Sn+2,p=In[c];if(p)return Sn=p.nextPos,p.result;if(e=Sn,(t=Hn())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Bn())!==s&&(a=ar())!==s&&(l=Hn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Bn())!==s&&(a=ar())!==s&&(l=Hn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);n!==s?(Pn=e,e=t=u(t,n)):(Sn=e,e=s)}else Sn=e,e=s;return In[c]={nextPos:Sn,result:e},e}function Bn(){var t,n,r=34*Sn+3,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,2)===m?(n=m,Sn+=2):(n=s,0===An&&Vn(g)),n===s&&(e.substr(Sn,3).toLowerCase()===y?(n=e.substr(Sn,3),Sn+=3):(n=s,0===An&&Vn(v))),n!==s&&(Pn=t,n=b()),t=n,In[r]={nextPos:Sn,result:t},t)}function Hn(){var e,t,n,r,o,i,a,l,u=34*Sn+4,c=In[u];if(c)return Sn=c.nextPos,c.result;if(e=Sn,(t=qn())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Un())!==s&&(a=ar())!==s&&(l=qn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Un())!==s&&(a=ar())!==s&&(l=qn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);n!==s?(Pn=e,e=t=w(t,n)):(Sn=e,e=s)}else Sn=e,e=s;return In[u]={nextPos:Sn,result:e},e}function Un(){var t,n,r=34*Sn+5,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,2)===C?(n=C,Sn+=2):(n=s,0===An&&Vn(_)),n===s&&(e.substr(Sn,11).toLowerCase()===x?(n=e.substr(Sn,11),Sn+=11):(n=s,0===An&&Vn(E))),n!==s&&(Pn=t,n=S()),(t=n)===s&&(t=Sn,e.substr(Sn,2)===P?(n=P,Sn+=2):(n=s,0===An&&Vn(O)),n===s&&(e.substr(Sn,14).toLowerCase()===T?(n=e.substr(Sn,14),Sn+=14):(n=s,0===An&&Vn(k))),n!==s&&(Pn=t,n=A()),(t=n)===s&&(t=Sn,e.substr(Sn,2)===I?(n=I,Sn+=2):(n=s,0===An&&Vn(R)),n===s&&(e.substr(Sn,5).toLowerCase()===M?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(D))),n!==s&&(Pn=t,n=L()),(t=n)===s&&(t=Sn,61===e.charCodeAt(Sn)?(n=N,Sn++):(n=s,0===An&&Vn(V)),n===s&&(e.substr(Sn,5).toLowerCase()===M?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(D))),n!==s&&(Pn=t,n=L()),(t=n)===s&&(t=Sn,e.substr(Sn,2)===j?(n=j,Sn+=2):(n=s,0===An&&Vn(F)),n===s&&(e.substr(Sn,8).toLowerCase()===z?(n=e.substr(Sn,8),Sn+=8):(n=s,0===An&&Vn(B))),n!==s&&(Pn=t,n=H()),(t=n)===s&&(t=Sn,60===e.charCodeAt(Sn)?(n=U,Sn++):(n=s,0===An&&Vn(q)),n===s&&(e.substr(Sn,4).toLowerCase()===W?(n=e.substr(Sn,4),Sn+=4):(n=s,0===An&&Vn($))),n!==s&&(Pn=t,n=Q()),(t=n)===s&&(t=Sn,62===e.charCodeAt(Sn)?(n=G,Sn++):(n=s,0===An&&Vn(Y)),n===s&&(e.substr(Sn,7).toLowerCase()===Z?(n=e.substr(Sn,7),Sn+=7):(n=s,0===An&&Vn(K))),n!==s&&(Pn=t,n=X()),t=n)))))),In[r]={nextPos:Sn,result:t},t)}function qn(){var e,t,n,r,o,i,a,l,c=34*Sn+6,p=In[c];if(p)return Sn=p.nextPos,p.result;if(e=Sn,(t=$n())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Wn())!==s&&(a=ar())!==s&&(l=$n())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Wn())!==s&&(a=ar())!==s&&(l=$n())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);n!==s?(Pn=e,e=t=u(t,n)):(Sn=e,e=s)}else Sn=e,e=s;return In[c]={nextPos:Sn,result:e},e}function Wn(){var t,n,r=34*Sn+7,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,43===e.charCodeAt(Sn)?(n=J,Sn++):(n=s,0===An&&Vn(ee)),n!==s&&(Pn=t,n=ae()),(t=n)===s&&(t=Sn,45===e.charCodeAt(Sn)?(n=le,Sn++):(n=s,0===An&&Vn(ce)),n!==s&&(Pn=t,n=pe()),t=n),In[r]={nextPos:Sn,result:t},t)}function $n(){var e,t,n,r,o,i,a,l,c=34*Sn+8,p=In[c];if(p)return Sn=p.nextPos,p.result;if(e=Sn,(t=Gn())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Qn())!==s&&(a=ar())!==s&&(l=Gn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Qn())!==s&&(a=ar())!==s&&(l=Gn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);n!==s?(Pn=e,e=t=u(t,n)):(Sn=e,e=s)}else Sn=e,e=s;return In[c]={nextPos:Sn,result:e},e}function Qn(){var t,n,r=34*Sn+9,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,42===e.charCodeAt(Sn)?(n=de,Sn++):(n=s,0===An&&Vn(fe)),n!==s&&(Pn=t,n=he()),(t=n)===s&&(t=Sn,47===e.charCodeAt(Sn)?(n=me,Sn++):(n=s,0===An&&Vn(ge)),n!==s&&(Pn=t,n=ye()),(t=n)===s&&(t=Sn,37===e.charCodeAt(Sn)?(n=ve,Sn++):(n=s,0===An&&Vn(be)),n!==s&&(Pn=t,n=we()),t=n)),In[r]={nextPos:Sn,result:t},t)}function Gn(){var e,t,n,r,o,i,a,l,c=34*Sn+10,p=In[c];if(p)return Sn=p.nextPos,p.result;if(e=Sn,(t=Zn())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Yn())!==s&&(a=ar())!==s&&(l=Zn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Yn())!==s&&(a=ar())!==s&&(l=Zn())!==s?r=o=[o,i,a,l]:(Sn=r,r=s);n!==s?(Pn=e,e=t=u(t,n)):(Sn=e,e=s)}else Sn=e,e=s;return In[c]={nextPos:Sn,result:e},e}function Yn(){var t,n,r=34*Sn+11,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,94===e.charCodeAt(Sn)?(n=Ce,Sn++):(n=s,0===An&&Vn(_e)),n===s&&(e.substr(Sn,5).toLowerCase()===xe?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(Ee))),n!==s&&(Pn=t,n=Se()),t=n,In[r]={nextPos:Sn,result:t},t)}function Zn(){var e,t,n,r,o,i,a,l,u=34*Sn+12,c=In[u];if(c)return Sn=c.nextPos,c.result;if(e=Sn,(t=Xn())!==s){for(n=[],r=Sn,(o=ar())!==s&&(i=Kn())!==s&&(a=ar())!==s?((l=Xn())===s&&(l=null),l!==s?r=o=[o,i,a,l]:(Sn=r,r=s)):(Sn=r,r=s);r!==s;)n.push(r),r=Sn,(o=ar())!==s&&(i=Kn())!==s&&(a=ar())!==s?((l=Xn())===s&&(l=null),l!==s?r=o=[o,i,a,l]:(Sn=r,r=s)):(Sn=r,r=s);n!==s?(Pn=e,e=t=w(t,n)):(Sn=e,e=s)}else Sn=e,e=s;return In[u]={nextPos:Sn,result:e},e}function Kn(){var t,n,r=34*Sn+13,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,2)===Pe?(n=Pe,Sn+=2):(n=s,0===An&&Vn(Oe)),n===s&&(e.substr(Sn,8).toLowerCase()===Te?(n=e.substr(Sn,8),Sn+=8):(n=s,0===An&&Vn(ke)),n===s&&(e.substr(Sn,7).toLowerCase()===Ae?(n=e.substr(Sn,7),Sn+=7):(n=s,0===An&&Vn(Ie)))),n!==s&&(Pn=t,n=Re()),(t=n)===s&&(t=Sn,e.substr(Sn,11).toLowerCase()===Me?(n=e.substr(Sn,11),Sn+=11):(n=s,0===An&&Vn(De)),n===s&&(e.substr(Sn,10).toLowerCase()===Le?(n=e.substr(Sn,10),Sn+=10):(n=s,0===An&&Vn(Ne))),n!==s&&(Pn=t,n=Ve()),(t=n)===s&&(t=Sn,e.substr(Sn,5).toLowerCase()===je?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(Fe)),n!==s&&(Pn=t,n=ze()),(t=n)===s&&(t=Sn,e.substr(Sn,5).toLowerCase()===Be?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(He)),n!==s&&(Pn=t,n=Ue()),t=n))),In[r]={nextPos:Sn,result:t},t)}function Xn(){var t,n,r,o,i=34*Sn+14,a=In[i];return a?(Sn=a.nextPos,a.result):(t=Sn,40===e.charCodeAt(Sn)?(n=qe,Sn++):(n=s,0===An&&Vn(We)),n!==s&&ar()!==s&&(r=jn())!==s&&ar()!==s?(41===e.charCodeAt(Sn)?(o=$e,Sn++):(o=s,0===An&&Vn(Qe)),o===s&&(o=null),o!==s?(Pn=t,t=n=Ge(r)):(Sn=t,t=s)):(Sn=t,t=s),t===s&&(t=function(){var t,n,r,o,i,a=34*Sn+15,l=In[a];return l?(Sn=l.nextPos,l.result):(t=Sn,(n=or())!==s?(40===e.charCodeAt(Sn)?(r=qe,Sn++):(r=s,0===An&&Vn(We)),r!==s&&(o=er())!==s?(41===e.charCodeAt(Sn)?(i=$e,Sn++):(i=s,0===An&&Vn(Qe)),i===s&&(i=null),i!==s?(Pn=t,t=n=Ye(n,o)):(Sn=t,t=s)):(Sn=t,t=s)):(Sn=t,t=s),In[a]={nextPos:Sn,result:t},t)}(),t===s&&(t=function(){var t,n,r,o=34*Sn+16,i=In[o];return i?(Sn=i.nextPos,i.result):(t=Sn,33===e.charCodeAt(Sn)?(n=Ze,Sn++):(n=s,0===An&&Vn(Ke)),n===s&&(e.substr(Sn,6).toLowerCase()===Xe?(n=e.substr(Sn,6),Sn+=6):(n=s,0===An&&Vn(Je))),n!==s&&ar()!==s&&(r=jn())!==s?(Pn=t,t=n=et(r)):(Sn=t,t=s),t===s&&(t=Sn,(n=Jn())!==s&&ar()!==s?(r=function(){var t,n,r=34*Sn+17,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,5).toLowerCase()===nt?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(rt)),n!==s&&(Pn=t,n=ot()),(t=n)===s&&(t=Sn,e.substr(Sn,8).toLowerCase()===it?(n=e.substr(Sn,8),Sn+=8):(n=s,0===An&&Vn(st)),n!==s&&(Pn=t,n=at()),t=n),In[r]={nextPos:Sn,result:t},t)}(),r!==s?(Pn=t,t=n=tt(n,r)):(Sn=t,t=s)):(Sn=t,t=s)),In[o]={nextPos:Sn,result:t},t)}(),t===s&&(t=Jn())===s&&(t=function(){var t,n,r,o,i=34*Sn+20,a=In[i];return a?(Sn=a.nextPos,a.result):(t=Sn,91===e.charCodeAt(Sn)?(n=At,Sn++):(n=s,0===An&&Vn(It)),n!==s&&(r=er())!==s?(93===e.charCodeAt(Sn)?(o=Rt,Sn++):(o=s,0===An&&Vn(Mt)),o!==s?(Pn=t,t=n=Dt(r)):(Sn=t,t=s)):(Sn=t,t=s),In[i]={nextPos:Sn,result:t},t)}()))),In[i]={nextPos:Sn,result:t},t)}function Jn(){var t,n,r,o,i=34*Sn+18,a=In[i];return a?(Sn=a.nextPos,a.result):(t=Sn,ar()!==s?(e.substr(Sn,9)===lt?(n=lt,Sn+=9):(n=s,0===An&&Vn(ut)),n===s&&(e.substr(Sn,4)===ct?(n=ct,Sn+=4):(n=s,0===An&&Vn(pt))),n!==s?(Pn=t,t=dt()):(Sn=t,t=s)):(Sn=t,t=s),t===s&&(t=Sn,ar()!==s?(n=function(){var t,n,r,o,i=34*Sn+19,a=In[i];return a?(Sn=a.nextPos,a.result):(t=Sn,n=function(){var t,n,r=34*Sn+22,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,4).toLowerCase()===jt?(n=e.substr(Sn,4),Sn+=4):(n=s,0===An&&Vn(Ft)),n!==s&&(Pn=t,n=zt()),(t=n)===s&&(t=Sn,e.substr(Sn,5).toLowerCase()===Bt?(n=e.substr(Sn,5),Sn+=5):(n=s,0===An&&Vn(Ht)),n!==s&&(Pn=t,n=Ut()),t=n),In[r]={nextPos:Sn,result:t},t)}(),n!==s&&(Pn=t,n=bt(n)),(t=n)===s&&(t=Sn,n=function(){var t,n,r,o=34*Sn+23,i=In[o];return i?(Sn=i.nextPos,i.result):(t=Sn,e.substr(Sn,2)===qt?(n=qt,Sn+=2):(n=s,0===An&&Vn(Wt)),n!==s&&(r=ir())!==s?(Pn=t,t=n=$t()):(Sn=t,t=s),t===s&&(t=Sn,Qt.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(Gt)),n===s&&(n=null),n!==s?(r=function(){var t,n,r,o=34*Sn+24,i=In[o];return i?(Sn=i.nextPos,i.result):(t=Sn,(n=ir())!==s?(46===e.charCodeAt(Sn)?(r=Zt,Sn++):(r=s,0===An&&Vn(Kt)),r!==s&&ir()!==s?(Pn=t,t=n=Xt()):(Sn=t,t=s)):(Sn=t,t=s),t===s&&(t=Sn,n=function(){var t,n,r=34*Sn+31,o=In[r];if(o)return Sn=o.nextPos,o.result;if(t=[],vn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(bn)),n!==s)for(;n!==s;)t.push(n),vn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(bn));else t=s;return In[r]={nextPos:Sn,result:t},t}(),n!==s?((r=ir())===s&&(r=null),r!==s?(Pn=t,t=n=Jt()):(Sn=t,t=s)):(Sn=t,t=s),t===s&&(t=Sn,48===e.charCodeAt(Sn)?(n=en,Sn++):(n=s,0===An&&Vn(tn)),n!==s&&(Pn=t,n=nn()),t=n)),In[o]={nextPos:Sn,result:t},t)}(),r!==s?(Pn=t,t=n=Yt(n,r)):(Sn=t,t=s)):(Sn=t,t=s)),In[o]={nextPos:Sn,result:t},t)}(),n!==s&&(Pn=t,n=bt(n)),(t=n)===s&&(t=Sn,(n=or())!==s&&(Pn=t,n=bt(n)),(t=n)===s&&(t=Sn,e.substr(Sn,2)===wt?(n=wt,Sn+=2):(n=s,0===An&&Vn(Ct)),n!==s&&(Pn=t,n=_t()),(t=n)===s&&(t=Sn,e.substr(Sn,2)===xt?(n=xt,Sn+=2):(n=s,0===An&&Vn(Et)),n!==s&&(Pn=t,n=_t()),(t=n)===s&&(t=Sn,39===e.charCodeAt(Sn)?(n=St,Sn++):(n=s,0===An&&Vn(Pt)),n!==s&&(r=tr())!==s?(39===e.charCodeAt(Sn)?(o=St,Sn++):(o=s,0===An&&Vn(Pt)),o!==s?(Pn=t,t=n=Ot(r)):(Sn=t,t=s)):(Sn=t,t=s),t===s&&(t=Sn,34===e.charCodeAt(Sn)?(n=Tt,Sn++):(n=s,0===An&&Vn(kt)),n!==s&&(r=tr())!==s?(34===e.charCodeAt(Sn)?(o=Tt,Sn++):(o=s,0===An&&Vn(kt)),o!==s?(Pn=t,t=n=Ot(r)):(Sn=t,t=s)):(Sn=t,t=s))))))),In[i]={nextPos:Sn,result:t},t)}(),n!==s?(Pn=t,t=ft(n)):(Sn=t,t=s)):(Sn=t,t=s),t===s&&(t=Sn,ar()!==s?(123===e.charCodeAt(Sn)?(n=ht,Sn++):(n=s,0===An&&Vn(mt)),n!==s?(r=function(){var e,t,n,r=34*Sn+25,o=In[r];if(o)return Sn=o.nextPos,o.result;if(e=Sn,t=[],(n=rr())!==s)for(;n!==s;)t.push(n),n=rr();else t=s;return t!==s&&(Pn=e,t=rn(t)),e=t,In[r]={nextPos:Sn,result:e},e}(),r!==s?(125===e.charCodeAt(Sn)?(o=gt,Sn++):(o=s,0===An&&Vn(yt)),o!==s?(Pn=t,t=vt(r)):(Sn=t,t=s)):(Sn=t,t=s)):(Sn=t,t=s)):(Sn=t,t=s))),In[i]={nextPos:Sn,result:t},t)}function er(){var t,n,r,o,i,a,l,u,c=34*Sn+21,p=In[c];if(p)return Sn=p.nextPos,p.result;if(t=Sn,(n=jn())===s&&(n=null),n!==s){for(r=[],o=Sn,(i=ar())!==s?(44===e.charCodeAt(Sn)?(a=Lt,Sn++):(a=s,0===An&&Vn(Nt)),a!==s&&(l=ar())!==s&&(u=jn())!==s?o=i=[i,a,l,u]:(Sn=o,o=s)):(Sn=o,o=s);o!==s;)r.push(o),o=Sn,(i=ar())!==s?(44===e.charCodeAt(Sn)?(a=Lt,Sn++):(a=s,0===An&&Vn(Nt)),a!==s&&(l=ar())!==s&&(u=jn())!==s?o=i=[i,a,l,u]:(Sn=o,o=s)):(Sn=o,o=s);r!==s?(Pn=t,t=n=Vt(n,r)):(Sn=t,t=s)}else Sn=t,t=s;return In[c]={nextPos:Sn,result:t},t}function tr(){var e,t,n,r=34*Sn+26,o=In[r];if(o)return Sn=o.nextPos,o.result;if(e=Sn,t=[],(n=nr())!==s)for(;n!==s;)t.push(n),n=nr();else t=s;return t!==s&&(Pn=e,t=rn(t)),e=t,In[r]={nextPos:Sn,result:e},e}function nr(){var t,n,r=34*Sn+27,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,e.substr(Sn,2)===on?(n=on,Sn+=2):(n=s,0===An&&Vn(sn)),n!==s&&(Pn=t,n=an()),(t=n)===s&&(t=Sn,e.substr(Sn,2)===ln?(n=ln,Sn+=2):(n=s,0===An&&Vn(un)),n!==s&&(Pn=t,n=cn()),(t=n)===s&&(t=Sn,pn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(dn)),n!==s&&(Pn=t,n=fn()),t=n)),In[r]={nextPos:Sn,result:t},t)}function rr(){var t,n,r=34*Sn+28,o=In[r];return o?(Sn=o.nextPos,o.result):(t=Sn,hn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(mn)),n!==s&&(Pn=t,n=fn()),t=n,In[r]={nextPos:Sn,result:t},t)}function or(){var e,t,n,r,o,i,a=34*Sn+29,l=In[a];if(l)return Sn=l.nextPos,l.result;if(e=Sn,sr()!==s){if(t=[],n=Sn,(r=ir())!==s){for(o=[],i=sr();i!==s;)o.push(i),i=sr();o!==s?n=r=[r,o]:(Sn=n,n=s)}else Sn=n,n=s;for(;n!==s;)if(t.push(n),n=Sn,(r=ir())!==s){for(o=[],i=sr();i!==s;)o.push(i),i=sr();o!==s?n=r=[r,o]:(Sn=n,n=s)}else Sn=n,n=s;t!==s?(Pn=e,e=fn()):(Sn=e,e=s)}else Sn=e,e=s;return In[a]={nextPos:Sn,result:e},e}function ir(){var t,n,r=34*Sn+30,o=In[r];if(o)return Sn=o.nextPos,o.result;if(t=[],gn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(yn)),n!==s)for(;n!==s;)t.push(n),gn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(yn));else t=s;return In[r]={nextPos:Sn,result:t},t}function sr(){var t,n,r=34*Sn+32,o=In[r];if(o)return Sn=o.nextPos,o.result;if(t=[],wn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(Cn)),n!==s)for(;n!==s;)t.push(n),wn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(Cn));else t=s;return In[r]={nextPos:Sn,result:t},t}function ar(){var t,n,r=34*Sn+33,o=In[r];if(o)return Sn=o.nextPos,o.result;for(An++,t=[],xn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(En));n!==s;)t.push(n),xn.test(e.charAt(Sn))?(n=e.charAt(Sn),Sn++):(n=s,0===An&&Vn(En));return An--,t===s&&(n=s,0===An&&Vn(_n)),In[r]={nextPos:Sn,result:t},t}function lr(e,t,n){return void 0===n&&(n=!1),t.reduce(function(e,t){return new te(t[1],e,t[3],n)},e)}if((n=l())!==s&&Sn===e.length)return n;throw n!==s&&Sn<e.length&&Vn({type:"end"}),r=kn,o=Tn<e.length?e.charAt(Tn):null,i=Tn<e.length?Nn(Tn,Tn+1):Nn(Tn,Tn),new ue(ue.buildMessage(r,o),r,o,i)}(this.patchExpression(e))}catch(e){e instanceof ue&&(this.conditionError=new ce(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e}(),de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fe=function(){function e(e,t,n,r,o){this.operand=e,this.id=t,this.onComplete=n,this.processValue=new L,this.processValue.values=r,this.processValue.properties=o}return e.prototype.run=function(e){var t=this;if(!e)return this.runValues();this.processValue.values=s.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(e){var n=t.getAsyncItemByOperand(e,t.asyncFuncList);n&&t.doAsyncFunctionReady(n)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},e.prototype.getAsyncItemByOperand=function(e,t){if(!Array.isArray(t))return null;for(var n=0;n<t.length;n++){if(t[n].operand===e)return t[n];var r=this.getAsyncItemByOperand(e,t[n].children);if(r)return r}return null},e.prototype.runAsyncItem=function(e){var t=this;e.children?e.children.forEach(function(e){return t.runAsyncItem(e)}):this.runAsyncItemCore(e)},e.prototype.runAsyncItemCore=function(e){e.operand?e.operand.evaluate(this.processValue):this.doAsyncFunctionReady(e)},e.prototype.doAsyncFunctionReady=function(e){if(e.parent&&this.isAsyncChildrenReady(e))this.runAsyncItemCore(e.parent);else{for(var t=0;t<this.asyncFuncList.length;t++)if(!this.isAsyncFuncReady(this.asyncFuncList[t]))return;this.runValues()}},e.prototype.isAsyncFuncReady=function(e){return!(e.operand&&!e.operand.isReady(this.processValue))&&this.isAsyncChildrenReady(e)},e.prototype.isAsyncChildrenReady=function(e){if(e.children)for(var t=0;t<e.children.length;t++)if(!this.isAsyncFuncReady(e.children[t]))return!1;return!0},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e,this.id),e},e}(),he=function(){function e(e){this.parser=new pe,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t,n){return void 0===t&&(t=null),this.operand?new fe(this.operand,n,this.onComplete,e,t).run(this.isAsync):(this.expression&&N.warn("Invalid expression: "+this.expression),null)},e.createExpressionExecutor=function(t){return new e(t)},e}(),me=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=he.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e,n){t.doOnComplete(e,n)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return void 0===this.variables&&(this.variables=this.expressionExecutor.getVariables()),this.variables},e.prototype.hasFunction=function(){return void 0===this.containsFunc&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(t,n){void 0===n&&(n=null);var r=e.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(r),this.expressionExecutor.run(t,n,r)},e.prototype.doOnComplete=function(e,t){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(t)},e.IdRunnerCounter=1,e}(),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return de(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(t,n){this.onRunComplete&&this.onRunComplete(1==t),e.prototype.doOnComplete.call(this,t,n)},t}(me),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return de(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(t,n){this.onRunComplete&&this.onRunComplete(t),e.prototype.doOnComplete.call(this,t,n)},t}(me),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},we=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){var e=this;if(!this.isEmpty()){var t={};return this.getNames().forEach(function(n){void 0!==e.values[n]&&(t[n]=e.values[n])}),t}},e.prototype.setJson=function(e,t){var n=this,r=this.getJson();this.values=null,e&&this.getNames().forEach(function(t){void 0!==e[t]&&(n.values||(n.values={}),n.values[t]=e[t])}),t||s.isTwoValueEquals(r,this.values)||this.onChangedJSON(r)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=M.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),Ce=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some(function(n){return n.obj===e&&n.prop===t})||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach(function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)})},e.DependenciesCount=0,e}(),_e=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},e.ComputedUpdaterType="__dependency_computed",e}(),xe=function(){function e(){this.dependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new Pe,this.bindingsValue=new we(this),C.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new Ce(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return Xt.commentSuffix},set:function(e){Xt.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),s.isValueEmpty(e)},e.prototype.equals=function(e){return!!e&&!this.isDisposed&&!e.isDisposed&&this.getType()==e.getType()&&this.equalsCore(e)},e.prototype.equalsCore=function(e){return this.name===e.name&&s.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=this,t=0;t<this.eventList.length;t++)this.eventList[t].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(t){return e.dependencies[t].dispose()}),Object.keys(this.propertyHash).forEach(function(t){var n=e.getPropertyValueCore(e.propertyHash,t);n&&n.type==_e.ComputedUpdaterType&&n.dispose()})},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new Pe;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return M.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesignModeV2",{get:function(){return Xt.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(e){return(new R).toJsonObject(this,e)},e.prototype.fromJSON=function(e,t){(new R).toObject(e,this,t),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=M.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=M.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t,n){var r=this.getPropertyValueWithoutDefault(e);if(this.isValueUndefined(r)){var o=this.localizableStrings?this.localizableStrings[e]:void 0;if(o)return o.text;if(!this.isValueUndefined(t))return t;if(n){var i=n();if(void 0!==i){if(Array.isArray(i)){var s=this.createNewArray(e);return s.splice.apply(s,be([0,0],i)),s}return this.setPropertyValueDirectly(e,i),i}}var a=this.getDefaultPropertyValue(e);if(void 0!==a)return a}return r},e.prototype.isValueUndefined=function(e){return s.isValueUndefined(e)},e.prototype.getDefaultPropertyValue=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){if(t.defaultValueFunc)return t.defaultValueFunc(this);var n=t.getDefaultValue(this);if(!this.isValueUndefined(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[e]:void 0;return r&&r.localizationName?this.getLocalizationString(r.localizationName):"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0)}},e.prototype.hasDefaultPropertyValue=function(e){return void 0!==this.getDefaultPropertyValue(e)},e.prototype.resetPropertyValue=function(e){var t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?N.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(n){return e(t.propertyHash,n)})},e.prototype.setPropertyValue=function(e,t){if(!this.isDisposedValue){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))?this.isTwoValueEquals(r,t)||this.setArrayPropertyDirectly(e,t):t!==r&&(this.setPropertyValueDirectly(e,t),this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t))}},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n,r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){var i=function(i){i&&i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r)};if(this.isInternal)i(this);else{o||(o=this);var s=this.getSurvey();s||(s=this),i(s),s!==this&&i(this)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.doBeforeAsynRun=function(e){this.asynExpressionHash||(this.asynExpressionHash={});var t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()},e.prototype.doAfterAsynRun=function(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},e.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(e.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),e.prototype.createExpressionRunner=function(e){var t=this,n=new ye(e);return n.onBeforeAsyncRun=function(e){t.doBeforeAsynRun(e)},n.onAfterAsyncRun=function(e){t.doAfterAsynRun(e)},n},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){return this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var o=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var i=void 0;r&&(i=!0===r?e:r);var s=new mt(t,n,e,i);s.onStrChanged=function(t,n){o.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(i=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(i,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyByName(t);if(n&&n.isSerializable){var r=this.getPropertyValue(t);if(r&&r.length)for(var o=0;o<r.length;o++){var i;(i=r[o])&&i.addUsedLocales&&i.addUsedLocales(e)}}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}});return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new Ee(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new Ee(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new Ee(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new Ee(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,be([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new Ee(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new Ee(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),s.checkIfValuesEqual(e,t,{ignoreOrder:!1,caseSensitive:!n,trimStrings:r,doNotConvertNumbers:!0})},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(e.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),e.prototype.getIsAnimationAllowed=function(){return Xt.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},e.prototype.blockAnimations=function(){this.animationAllowedLock--},e.prototype.releaseAnimations=function(){this.animationAllowedLock++},e.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},e.prototype.disableOnElementRerenderedEvent=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(e.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),e.prototype.afterRerender=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,{isCancel:!1})},e.currentDependencis=void 0,e}(),Ee=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},Se=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ve(t,e),t}(Se),Oe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(){function e(e,t,n,i,s){var a=this;void 0===i&&(i=null),void 0===s&&(s=function(e){queueMicrotask?queueMicrotask(e):e()}),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=i,this.delayedUpdateFunction=s,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(e){return o.getComputedStyle(e)},this.model.updateCallback=function(e){e&&(a.isInitialized=!1),setTimeout(function(){a.process()},1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(e){r.requestAnimationFrame(function(){a.process()})}),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth||e.getBoundingClientRect().width},e.prototype.calcMinDimension=function(e,t){var n;if(!t||e.iconSize&&"auto"!==e.iconSize)e.iconSize&&"number"==typeof e.iconSize&&this.recalcMinDimensionConst&&(n=e.iconSize);else{var r=t.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return e.canShrink?o+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this;if(this.container&&!this.isInitialized){var t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach(function(n,r){var o=t[r];o&&e.calcActionDimensions(o,n)})}},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e,t)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return!!this.container&&Ht(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var t=function(){var t,n=e.dotsItemSize;if(!e.dotsItemSize){var r=null===(t=e.container)||void 0===t?void 0:t.querySelector(e.dotsIconClass);n=r&&e.calcItemSize(r)||e.dotsSizeConst}e.model.fit(e.getAvailableSpace(),n)};if(this.isInitialized)t();else{var n=function(){e.container&&(e.calcItemsSizes(),e.isInitialized=!0,t())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},e}(),ke=function(e){function t(t,n,r,o,i,s){void 0===i&&(i=40);var a=e.call(this,t,n,r,o,s)||this;return a.minDimensionConst=i,a.recalcMinDimensionConst=!1,a}return Oe(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(Te),Ae=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}(),Ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Me={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},De=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return Ie(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(e){return e.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(t){e.setActionCssClasses(t)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return!1!==e.visible})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new Ae).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return Me},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),qt(e,this.cssClasses),this.actions.forEach(function(e){t.setActionCssClasses(e)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof Ze?e:new Ke(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);if(t&&!this.isActionVisible(n))return n;var r=[].concat(this.actions,n);return this.sortItems(r),this.actions=r,n},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0);var r=[];e.forEach(function(e){t&&!n.isActionVisible(e)||r.push(n.createAction(e))}),t&&this.sortItems(r),this.actions=r},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var t=0;t<e.length;t++){var n=e[t].visibleIndex;if(void 0!==n&&n>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,t){return e.visibleIndex-t.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||void 0===e.visibleIndex},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var t=this;e.isHovered=!0,this.actions.forEach(function(n){n===e&&e.popupModel&&(e.showPopupDelayed(t.subItemsShowDelay),t.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,t){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Re([b({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),Re([y({})],t.prototype,"containerCss",void 0),Re([y({defaultValue:!1})],t.prototype,"isEmpty",void 0),Re([y({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Re([y({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(xe),Le=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=o.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}(),Ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ve=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},je={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemGroupSelected:"sv-list__item--group-selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},Fe=function(e){function t(t,n,r,o,i){var s=e.call(this)||this;if(s.onSelectionChanged=n,s.allowSelection=r,s.elementId=i,s.onItemClick=function(e){if(!s.isItemDisabled(e)){s.isExpanded=!1,s.allowSelection&&(s.selectedItem=e),s.onSelectionChanged&&s.onSelectionChanged(e);var t=e.action;t&&t(e)}},s.onItemHover=function(e){s.mouseOverHandler(e)},s.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},s.isItemSelected=function(e){return s.areSameItems(s.selectedItem,e)},s.isItemFocused=function(e){return s.areSameItems(s.focusedItem,e)},s.getListClass=function(){return(new Ae).append(s.cssClasses.itemsContainer).append(s.cssClasses.itemsContainerFiltering,!!s.filterString&&s.visibleActions.length!==s.visibleItems.length).toString()},s.getItemClass=function(e){var t=s.isItemSelected(e);return(new Ae).append(s.cssClasses.item).append(s.cssClasses.itemWithIcon,!!e.iconName).append(s.cssClasses.itemDisabled,s.isItemDisabled(e)).append(s.cssClasses.itemFocused,s.isItemFocused(e)).append(s.cssClasses.itemSelected,!e.hasSubItems&&t).append(s.cssClasses.itemGroup,e.hasSubItems).append(s.cssClasses.itemGroupSelected,e.hasSubItems&&t).append(s.cssClasses.itemHovered,e.isHovered).append(s.cssClasses.itemTextWrap,s.textWrapEnabled).append(e.css).toString()},s.getItemStyle=function(e){return{"--sjs-list-item-level":(e.level||0)+1}},-1!==Object.keys(t).indexOf("items")){var a=t;Object.keys(a).forEach(function(e){switch(e){case"items":s.setItems(a.items);break;case"onFilterStringChangedCallback":s.setOnFilterStringChangedCallback(a.onFilterStringChangedCallback);break;case"onTextSearchCallback":s.setOnTextSearchCallback(a.onTextSearchCallback);break;default:s[e]=a[e]}}),s.updateActionsIds()}else s.setItems(t),s.selectedItem=o;return s}return Ne(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);var r=n.toLocaleLowerCase();return(r=Xt.comparator.normalizeTextCallback(r,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var t=e.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return t.forEach(function(e){n.push(e),e.items&&e.items.forEach(function(t){var r=new Ke(t);r.iconName||(r.iconName=e.iconName),n.push(r)})}),n}return t},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(t){return e.isItemVisible(t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=0===this.renderedActions.filter(function(t){return e.isItemVisible(t)}).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout(function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector(zt(e));r&&setTimeout(function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},t)}},t)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(t,n){void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(t){t.elementId=e.elementId+t.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return je},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector(zt(this.cssClasses.itemsContainer))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new Ke({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=function(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}(t);t&&n&&(Le.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(Le.focusElement(Le.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(Le.focusElement(Le.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){""!==this.filterString?this.filterString="":this.updateIsEmpty(),this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter(function(t){return t.visible&&e.isItemSelected(t)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=Le.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,Ve([y({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),Ve([y({defaultValue:!1})],t.prototype,"showFilter",void 0),Ve([y({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),Ve([y({defaultValue:!1})],t.prototype,"isExpanded",void 0),Ve([y({})],t.prototype,"selectedItem",void 0),Ve([y()],t.prototype,"focusedItem",void 0),Ve([y({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),Ve([y({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),Ve([y({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),Ve([y({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),Ve([y({defaultValue:!0})],t.prototype,"renderElements",void 0),Ve([y({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),Ve([y({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(De),ze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Be=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},He=function(e){function t(t,n,r,o){var i=e.call(this)||this;if(i.focusFirstInputSelector="",i.onCancel=function(){},i.onApply=function(){return!0},i.onHide=function(){},i.onShow=function(){},i.onDispose=function(){},i.onVisibilityChanged=i.addEvent(),i.onFooterActionsCreated=i.addEvent(),i.onRecalculatePosition=i.addEvent(),i.contentComponentName=t,i.contentComponentData=n,r&&"string"==typeof r)i.verticalPosition=r,i.horizontalPosition=o;else if(r){var s=r;for(var a in s)i[a]=s[a]}return i}return ze(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},t.prototype.updateDisplayMode=function(e){if(this.displayMode!==e){var t="dropdown"===e;this.setWidthByTarget=t,this.isFocusedContent=!t}switch(e){case"dropdown":this.displayMode="popup";break;case"popup":this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break;case"overlay":this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay"}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.onDispose()},Be([y()],t.prototype,"contentComponentName",void 0),Be([y()],t.prototype,"contentComponentData",void 0),Be([y({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),Be([y({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),Be([y({defaultValue:!0})],t.prototype,"showPointer",void 0),Be([y({defaultValue:!1})],t.prototype,"isModal",void 0),Be([y({defaultValue:!0})],t.prototype,"canShrink",void 0),Be([y({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),Be([y({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),Be([y({defaultValue:""})],t.prototype,"cssClass",void 0),Be([y({defaultValue:""})],t.prototype,"title",void 0),Be([y({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),Be([y({defaultValue:"popup"})],t.prototype,"displayMode",void 0),Be([y({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(xe);function Ue(e,t,n,r,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),N.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}var qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function $e(e,t,n){return t.locOwner=n,Qe(e,t,t)}function Qe(e,t,n){var r,o=t.onSelectionChanged;t.onSelectionChanged=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.hasTitle&&(a.title=e.title),o&&o(e,t)};var i=Ge(t,n);i.getTargetCallback=Ye;var s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=i.isFocusedContent||!n,i.show()}}),a=new Ke(s);return a.data=null===(r=i.contentComponentData)||void 0===r?void 0:r.model,a}function Ge(e,t){var n=new Fe(e);n.onSelectionChanged=function(t){e.onSelectionChanged&&e.onSelectionChanged(t),o.hide()};var r=t||{};r.onDispose=function(){n.dispose()};var o=new He("sv-list",{model:n},r);return o.isFocusedContent=n.showFilter,o.onShow=function(){r.onShow&&r.onShow(),n.scrollToSelectedItem()},o}function Ye(e){return null==e?void 0:e.previousElementSibling}var Ze=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.rendredIdValue=t.getNextRendredId(),n}return qe(t,e),t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||Me},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new Ae).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new Ae).append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new Ae).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var t=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){t.clearPopupTimeouts(),t.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var t,n=this;(null===(t=this.popupModel)||void 0===t?void 0:t.isVisible)?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,We([y()],t.prototype,"tooltip",void 0),We([y()],t.prototype,"showTitle",void 0),We([y()],t.prototype,"innerCss",void 0),We([y()],t.prototype,"active",void 0),We([y()],t.prototype,"pressed",void 0),We([y()],t.prototype,"popupModel",void 0),We([y()],t.prototype,"needSeparator",void 0),We([y()],t.prototype,"template",void 0),We([y({defaultValue:"large"})],t.prototype,"mode",void 0),We([y()],t.prototype,"visibleIndex",void 0),We([y()],t.prototype,"disableTabStop",void 0),We([y()],t.prototype,"disableShrink",void 0),We([y()],t.prototype,"disableHide",void 0),We([y({defaultValue:!1})],t.prototype,"needSpace",void 0),We([y()],t.prototype,"ariaChecked",void 0),We([y()],t.prototype,"ariaExpanded",void 0),We([y({defaultValue:"button"})],t.prototype,"ariaRole",void 0),We([y()],t.prototype,"iconName",void 0),We([y({defaultValue:24})],t.prototype,"iconSize",void 0),We([y()],t.prototype,"markerIconName",void 0),We([y()],t.prototype,"css",void 0),We([y({defaultValue:!1})],t.prototype,"isPressed",void 0),We([y({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(xe),Ke=function(e){function t(n){var r=e.call(this)||this;r.locTitleChanged=function(){var e=r.locTitle.renderedHtml;r.setPropertyValue("_title",e||void 0)};var o=n instanceof t?n.innerItem:n;if(r.innerItem=o,r.locTitle=o?o.locTitle:null,o)for(var i in o)"locTitle"===i||"title"===i&&r.locTitle&&r.title||(r[i]=o[i]);return r.locTitleName&&r.locTitleChanged(),r.registerFunctionOnPropertyValueChanged("_title",function(){r.raiseUpdate(!0)}),r.locStrChangedInPopupModel(),r}return qe(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.items);var t=Object.assign({},e);t.searchEnabled=!1;var n=Ge(t,{horizontalPosition:"right",showPointer:!1,canShrink:!1});n.cssClass="sv-popup-inner",this.popupModel=n},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var t=e.originalEvent?e.originalEvent:e;return this.action(this,t.isTrusted),t.preventDefault(),t.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var t=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,t)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach(function(e){e.locStrsChanged&&e.locStrsChanged()})}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=u(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,e.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},We([y()],t.prototype,"id",void 0),We([y({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),We([y({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),We([y()],t.prototype,"_enabled",void 0),We([y()],t.prototype,"action",void 0),We([y()],t.prototype,"onFocus",void 0),We([y()],t.prototype,"_component",void 0),We([y()],t.prototype,"items",void 0),We([y({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(Ze),Xe=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1},this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}(),Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Qe({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:u("more")},{items:[],allowSelection:!1}),n}return Je(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach(function(t){e<=0&&(t.removePriority?t.mode="removed":(t.mode="popup",n.push(t.innerItem))),e--}),this.hiddenItemsListModel.setItems(n)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,t){return e.removePriority||0-t.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(e){return e.disableHide}).forEach(function(t){return e-=t.minDimension});for(var t=this.getActionsToHide().map(function(e){return e.minDimension}),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter(function(e){return e.removePriority});for(o.sort(function(e,t){return e.removePriority-t.removePriority}),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var t=this;this.actions.forEach(function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}}),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach(function(e){n+=e.minDimension,r+=e.maxDimension}),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e,t){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new Te(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,t)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(t){"small"==e&&t.disableShrink?t.mode="large":t.mode=e})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(De);(function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.func=e,this.isMultiple=t,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}e.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0})})(),function(){function e(t){void 0===t&&(t=100),this.interval=t,setTimeout(e.Instance().tick,t)}e.Instance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.tick=function(){try{for(var t=[],n=0;n<e.tasks.length;n++){var r=e.tasks[n];r.execute(),r.isCompleted?"function"==typeof r.dispose&&r.dispose():t.push(r)}e.tasks=t}finally{setTimeout(e.Instance().tick,this.interval)}},e.schedule=function(t){e.tasks.push(t)},e.instance=void 0,e.tasks=[]}();var tt,nt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rt=function(){function e(){this.cancelQueue=[]}return e.prototype.getMsFromRule=function(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))},e.prototype.reflow=function(e){return e.offsetHeight},e.prototype.getAnimationsCount=function(e){var t="";return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&"none"!=t?t.split(", ").length:0},e.prototype.getAnimationDuration=function(e){for(var t=getComputedStyle(e),n=t.animationDelay.split(", "),r=t.animationDuration.split(", "),o=0,i=0;i<Math.max(r.length,n.length);i++)o=Math.max(o,this.getMsFromRule(r[i%r.length])+this.getMsFromRule(n[i%n.length]));return o},e.prototype.addCancelCallback=function(e){this.cancelQueue.push(e)},e.prototype.removeCancelCallback=function(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)},e.prototype.onAnimationEnd=function(e,t,n){var r,o=this,i=this.getAnimationsCount(e),s=function(n){void 0===n&&(n=!0),t(n),clearTimeout(r),o.removeCancelCallback(s),e.removeEventListener("animationend",a)},a=function(e){e.target==e.currentTarget&&--i<=0&&s(!1)};i>0?(e.addEventListener("animationend",a),this.addCancelCallback(s),r=setTimeout(function(){s(!1)},this.getAnimationDuration(e)+10)):t(!0)},e.prototype.afterAnimationRun=function(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)},e.prototype.beforeAnimationRun=function(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)},e.prototype.getCssClasses=function(e){return e.cssClass.replace(/\s+$/,"").split(/\s+/)},e.prototype.runAnimation=function(e,t,n){e&&(null==t?void 0:t.cssClass)?(this.reflow(e),this.getCssClasses(t).forEach(function(t){e.classList.add(t)}),this.onAnimationEnd(e,n,t)):n(!0)},e.prototype.clearHtmlElement=function(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach(function(t){e.classList.remove(t)}),this.afterAnimationRun(e,t)},e.prototype.onNextRender=function(e,t){var n=this;if(void 0===t&&(t=!1),!t&&r.isAvailable()){var o=function(){e(!0),cancelAnimationFrame(i)},i=r.requestAnimationFrame(function(){i=r.requestAnimationFrame(function(){e(!1),n.removeCancelCallback(o)})});this.addCancelCallback(o)}else e(!0)},e.prototype.cancel=function(){[].concat(this.cancelQueue).forEach(function(e){return e()}),this.cancelQueue=[]},e}(),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt(t,e),t.prototype.onEnter=function(e){var t=this,n=e.getAnimatedElement(),r=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(n,r),this.runAnimation(n,r,function(){t.clearHtmlElement(n,r)})},t.prototype.onLeave=function(e,t){var n=this,r=e.getAnimatedElement(),o=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(e){t(),n.onNextRender(function(){n.clearHtmlElement(r,o)},e)})},t}(rt),it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt(t,e),t.prototype.runGroupAnimation=function(e,t,n,r,o){var i=this,s={isAddingRunning:t.length>0,isDeletingRunning:n.length>0,isReorderingRunning:r.length>0},a=t.map(function(t){return e.getAnimatedElement(t)}),l=t.map(function(t){return e.getEnterOptions?e.getEnterOptions(t,s):{}}),u=n.map(function(t){return e.getAnimatedElement(t)}),c=n.map(function(t){return e.getLeaveOptions?e.getLeaveOptions(t,s):{}}),p=r.map(function(t){return e.getAnimatedElement(t.item)}),d=r.map(function(t){return e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,s):{}});t.forEach(function(e,t){i.beforeAnimationRun(a[t],l[t])}),n.forEach(function(e,t){i.beforeAnimationRun(u[t],c[t])}),r.forEach(function(e,t){i.beforeAnimationRun(p[t],d[t])});var f=t.length+n.length+p.length,h=function(e){--f<=0&&(o&&o(),i.onNextRender(function(){t.forEach(function(e,t){i.clearHtmlElement(a[t],l[t])}),n.forEach(function(e,t){i.clearHtmlElement(u[t],c[t])}),r.forEach(function(e,t){i.clearHtmlElement(p[t],d[t])})},e))};t.forEach(function(e,t){i.runAnimation(a[t],l[t],h)}),n.forEach(function(e,t){i.runAnimation(u[t],c[t],h)}),r.forEach(function(e,t){i.runAnimation(p[t],d[t],h)})},t}(rt),st=function(){function e(e,t,n){var r=this;this.animationOptions=e,this.update=t,this.getCurrentValue=n,this._debouncedSync=function(e){var t,n=this,r=!1,o=!1;return{run:function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o=!1,t=i,r||(r=!0,queueMicrotask(function(){o||e.apply(n,t),o=!1,r=!1}))},cancel:function(){o=!0}}}(function(e){r.cancelAnimations();try{r._sync(e)}catch(t){r.update(e)}})}return e.prototype.onNextRender=function(e,t){var n=this,o=this.animationOptions.getRerenderEvent();if(o){var i=function(){o.remove(s),n.cancelCallback=void 0},s=function(n,r){r.isCancel?t&&t():e(),i()};this.cancelCallback=function(){t&&t(),i()},o.add(s)}else{if(!r.isAvailable())throw new Error("Can't get next render");var a=r.requestAnimationFrame(function(){e(),n.cancelCallback=void 0});this.cancelCallback=function(){t&&t(),cancelAnimationFrame(a),n.cancelCallback=void 0}}},e.prototype.sync=function(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))},e.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},e.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},e}(),at=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new ot,t}return nt(t,e),t.prototype._sync=function(e){var t=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){t.animation.onEnter(t.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){t.update(e)}):this.update(e)},t}(st),lt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new it,t}return nt(t,e),t.prototype._sync=function(e){var t,n,r=this;e=[].concat(e);var o=[].concat(this.getCurrentValue()),i=null===(t=this.animationOptions.allowSyncRemovalAddition)||void 0===t||t,s=function(e,t,n){var r=new Map,o=new Map,i=new Map,s=new Map;e.forEach(function(e){var t=n(e);if(r.has(t))throw new Error("keys must be unique");r.set(n(e),e)}),t.forEach(function(e){var t=n(e);if(o.has(t))throw new Error("keys must be unique");o.set(t,e)});var a=[],l=[];o.forEach(function(e,t){r.has(t)?i.set(t,i.size):a.push(e)}),r.forEach(function(e,t){o.has(t)?s.set(t,s.size):l.push(e)});var u=[];i.forEach(function(e,t){var n=s.get(t),r=o.get(t);n!==e&&u.push({item:r,movedForward:n<e})});var c=new Array(e.length),p=0,d=Array.from(i.keys());e.forEach(function(e,t){i.has(n(e))?(c[t]=o.get(d[p]),p++):c[t]=e});var f=new Map,h=[];c.forEach(function(e){var t=n(e);o.has(t)?h.length>0&&(f.set(t,h),h=[]):h.push(e)});var m=new Array;return o.forEach(function(e,t){f.has(t)&&f.get(t).forEach(function(e){m.push(e)}),m.push(e)}),h.forEach(function(e){m.push(e)}),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:m}}(o,e,null!==(n=this.animationOptions.getKey)&&void 0!==n?n:function(e){return e});!i&&(s.reorderedItems.length>0||s.addedItems.length>0)&&(s.deletedItems=[],s.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(s);var a=s.addedItems,l=s.reorderedItems,u=s.deletedItems,c=s.mergedItems,p=function(){r.animation.runGroupAnimation(r.animationOptions,a,u,l,function(){u.length>0&&r.update(e)})};[a,u,l].some(function(e){return e.length>0})?u.length<=0||l.length>0||a.length>0?(this.onNextRender(p,function(){r.update(e)}),this.update(c)):p():this.update(e)},t}(st),ut=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.mergeValues=o,i.animation=new it,i}return nt(t,e),t.prototype._sync=function(e){var t=this,n=[].concat(this.getCurrentValue());if(n[0]!==e[0]){var r=this.mergeValues?this.mergeValues(e,n):[].concat(n,e);this.onNextRender(function(){t.animation.runGroupAnimation(t.animationOptions,e,n,[],function(){t.update(e)})},function(){return t.update(e)}),this.update(r,!0)}else this.update(e)},t}(st),ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dt=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return ct(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=M.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return Xt.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},pt([y({})],t.prototype,"hasDescription",void 0),pt([y({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(xe);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(tt||(tt={}));var ft=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r._renderedIsExpanded=!0,r._isAnimatingCollapseExpand=!1,r.animationCollapsed=new at(r.getExpandCollapseAnimationOptions(),function(e){r._renderedIsExpanded=e,r.animationAllowed&&(e?r.isAnimatingCollapseExpand=!0:r.updateElementCss(!1))},function(){return r.renderedIsExpanded}),r.onAfterRenderElement=r.addEvent(),r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],function(){r.onReadOnlyChanged()}),r.registerPropertyChangedHandlers(["errors"],function(){r.updateVisibleErrors()}),r.registerPropertyChangedHandlers(["isSingleInRow"],function(){r.updateElementCss(!1)}),r.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){r.updateRootStyle()}),r}return ct(t,e),t.getProgressInfoByElements=function(e,t){for(var n=xe.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.IsNeedScrollIntoView=function(e,t,n){var o=n?-1:e.getBoundingClientRect().top,i=o<0,s=-1;if(!i&&t&&(i=(s=e.getBoundingClientRect().left)<0),!i&&r.isAvailable()){var a=r.getInnerHeight();if(!(i=a>0&&a<o)&&t){var l=r.getInnerWidth();i=l>0&&l<s}}return i},t.ScrollIntoView=function(e,t,n){if(e.scrollIntoView(t),"function"==typeof n){var o=null,i=0,s=function(){var t=e.getBoundingClientRect().top;if(t===o){if(i++>2)return void n()}else o=t,i=0;requestAnimationFrame(s)};r.requestAnimationFrame(s)}},t.ScrollElementToTop=function(e,n,r,o){var i=Xt.environment.root;if(!e||void 0===i)return!1;var s=i.getElementById(e);return t.ScrollElementToViewCore(s,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,i){if(!e||!e.scrollIntoView)return i&&i(),!1;var s=t.IsNeedScrollIntoView(e,n,r);return s?t.ScrollIntoView(e,o,i):i&&i(),s},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e,n,r){if(!e||!o.isAvailable())return!1;var i=!n&&t.focusElementCore(e,r);return i||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),i},t.focusElementCore=function(e,n){var r=Xt.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return!(!o||o.disabled||"none"===o.style.display||null===o.offsetParent||(t.ScrollElementToViewCore(o,!0,!1),o.focus(),0))},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!this.isCollapsed},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"===this.state&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new et:new De;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses()),this.blockAnimations(),this.renderedIsExpanded=!this.isCollapsed,this.releaseAnimations()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){Xt.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return e||this.isCssValueCalculating||(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return"default"===this.state?null:this.cssClasses.titleExpandableSvg},t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.surveyValue&&this.surveyValue.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return s.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);this.prevSurvey=this.survey,"string"==typeof t&&this.getSurvey().pages.forEach(function(e){t===e.name&&(t=e)}),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&-1!==this.survey.getCss().root.indexOf("sd-root-modern")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){var e;return(null===(e=this.survey)||void 0===e?void 0:e.currentSingleElement)===this||void 0!==this.parent&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var t=!!this.isCollapsed||!!this.isExpanded;return(new Ae).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e,t={};if(this.parent&&(e=this.parent.getColumsForElement(this).reduce(function(e,t){return t.effectiveWidth+e},0),e&&100!==e&&(t.flexGrow=1,t.flexShrink=0,t.flexBasis=e+"%",t.minWidth=void 0,t.maxWidth=this.maxWidth)),0==Object.keys(t).length){var n=""+this.minWidth;if(n&&"auto"!=n){if(-1!=n.indexOf("px")&&this.survey){n=n.replace("px","");var r=parseFloat(n);isNaN(r)||(n=r*this.survey.widthScale/100,n+="px")}n="min(100%, "+n+")"}this.allowRootStyle&&this.renderWidth&&(t.flexGrow=1,t.flexShrink=1,t.flexBasis=this.renderWidth,t.minWidth=n,t.maxWidth=this.maxWidth)}this.rootStyle=t},t.prototype.isContainsSelection=function(e){var t=void 0,n=o.getDocument();if(o.isAvailable()&&n&&n.selection)t=n.selection.createRange().parentElement();else{var i=r.getSelection();if(i&&i.rangeCount>0){var s=i.getRangeAt(0);s.startOffset!==s.endOffset&&(t=s.startContainer.parentNode)}}return t==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(t){if(!t||!e.isContainsSelection(t.target))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){if(!e)return"";var t="default"!==this.state;return(new Ae).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var t=this.isPreviewStyle,n=e||this.isReadOnly;return[n&&!t,!this.isDefaultV2Theme&&(n||t)]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&"preview"===this.survey.state},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,t=function(t){e.isAnimatingCollapseExpand=!0,Gt(t)},n=function(t){e.isAnimatingCollapseExpand=!1,Yt(t)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentEnter,onBeforeRunAnimation:t,onAfterRunAnimation:function(t){n(t),e.onElementExpanded(!0)}}},getLeaveOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentLeave,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getAnimatedElement:function(){var t,n=e.isPanel?e.cssClasses.panel:e.cssClasses;if(n.content){var r=zt(n.content);if(r)return null===(t=e.getWrapperElement())||void 0===t?void 0:t.querySelector(":scope "+r)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var t=this._renderedIsExpanded;this.animationCollapsed.sync(e),this.isExpandCollapseAnimationEnabled||t||!this.renderedIsExpanded||this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,pt([y({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),pt([y({defaultValue:!1})],t.prototype,"isDragMe",void 0),pt([y({onSet:function(e,t){t.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),pt([y({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),pt([y({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),pt([y({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),pt([y()],t.prototype,"rootStyle",void 0),pt([y()],t.prototype,"_renderedIsExpanded",void 0),t}(dt),ht=function(){function e(e,t,n){var r=this;void 0===n&&(n=100),this._elements=e,this._renderedHandler=t,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(e,t){var n;null===(n=e.onAfterRenderElement)||void 0===n||n.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(e){e.onAfterRenderElement&&(e.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return e.prototype.stopWaitingForElementsRendering=function(){var e=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(t){var n;null===(n=t.onAfterRenderElement)||void 0===n||n.remove(e._elementRenderedHandler)}),this._elementsToRenderCount=0},e.prototype.visibleElementsRendered=function(){var e=this._renderedHandler;this.dispose(),"function"==typeof e&&e()},e.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},e}(),mt=function(){function e(e,t,n,r){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new Pe,this._localizationName=r,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return Xt.localization.defaultLocaleName},set:function(e){Xt.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizationName",{get:function(){return this._localizationName},set:function(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowLineBreaks",{get:function(){var e;return void 0===this._allowLineBreaks&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof dt&&(this._allowLineBreaks="text"==(null===(e=M.findProperty(this.owner.getType(),this.name))||void 0===e?void 0:e.type))),this._allowLineBreaks},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,(void 0!==this.renderedText||!this.isEmpty||this.onGetTextCallback||this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText,t=e;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf("{")>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t,e)),t},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(l.defaultLocale)),this.isValueEmpty(t)){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=this.defaultValue||""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?u(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return this.getLocaleTextCore(e)||""},e.prototype.getLocaleTextCore=function(e){return e||(e=this.defaultLoc),this.getValue(e)},e.prototype.isLocaleTextEqualsWithDefault=function(e,t){var n=this.getLocaleTextCore(e);return n===t||this.isValueEmpty(n)&&this.isValueEmpty(t)},e.prototype.clear=function(){this.setJson(void 0)},e.prototype.clearLocale=function(e){this.setLocaleText(e,void 0)},e.prototype.setLocaleText=function(e,t){if((e=this.getValueLoc(e))&&void 0===t){var n=this.getValue(e);void 0!==n&&(this.deleteValue(e),this.fireStrChanged(e,n))}else if(this.storeDefaultText||!this.isLocaleTextEqualsWithDefault(e,t)){if(Xt.localization.storeDuplicatedTranslations||this.isValueEmpty(t)||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var r=this.curLocale;e||(e=this.defaultLoc);var o=this.onStrChanged&&e===r?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,o)}}else{if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;var i=l.defaultLocale,s=this.getValue(i);i&&!this.isValueEmpty(s)&&(this.setValue(i,t),this.fireStrChanged(i,s))}},e.prototype.isValueEmpty=function(e){return null==e||!this.localizationName&&""===e},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(Xt.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();if(0==e.length){if(this.serializeCallBackText){var t=this.calcText();if(t)return t}return null}if(1==e.length&&e[0]==Xt.localization.defaultLocaleName&&!Xt.serialization.localizableStringSerializeAsObject)return this.values[e[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},e.prototype.setJson=function(e,t){if(this.sharedData)this.sharedData.setJson(e,t);else if(this.values={},this.htmlValues={},null!=e)if(t)"string"==typeof e?this.values[Xt.defaultLocaleName]=e:(this.values=e,delete this.values.pos);else{if("string"==typeof e)this.setLocaleText(null,e);else for(var n in e)this.setLocaleText(n,e[n]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&s.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return this.setHtmlValue(e,""),!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,""),!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,n),!!n},e.prototype.setHtmlValue=function(e,t){this.htmlValues[e]=t},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!Xt.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?Xt.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return Xt.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),gt=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=Xt.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=s.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||Xt.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=Xt.localization.defaultLocaleName||Xt.serialization.localizableStringSerializeAsObject?s.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}();function yt(e){return Xt&&Xt.confirmActionFunc?Xt.confirmActionFunc(e):confirm(e)}function vt(e){var t=function(t){t?e.funcOnYes():e.funcOnNo&&e.funcOnNo()};Xt&&Xt.confirmActionAsync&&Xt.confirmActionAsync(e.message,t,e)||t(yt(e.message))}function bt(){if(void 0===bt.isIEOrEdge){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");bt.isIEOrEdge=r>0||n>0||t>0}return bt.isIEOrEdge}function wt(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch(e){}}var Ct=function(e){return!!e&&!(!("host"in e)||!e.host)},_t=function(e){var t=Xt.environment.root;return"string"==typeof e?t.getElementById(e):e};function xt(e){var t=Xt.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:xt(e.parentElement):Ct(t)?t.host:t.documentElement}function Et(e){var t=Xt.environment;if(t){var n=t.root.getElementById(e);if(n){var r=xt(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function St(e){return e?["url(",e,")"].join(""):""}var Pt={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function Ot(e){var t=function(e){var t=Xt.customIcons[e];return t?Tt(t):(e=Tt(e),(t=Xt.customIcons[e])||null)}(e);return t||Tt(e)}function Tt(e){var t="icon-",n=e.replace(t,"");return t+(Pt[n]||n)}function kt(e,t,n,r,i,s){if(i){"auto"!==e&&(i.style.width=(e||t||16)+"px",i.style.height=(e||n||16)+"px");var a=i.childNodes[0],l=Ot(r);a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+l);var u=i.getElementsByTagName("title")[0];s?(u||(u=o.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),i.appendChild(u)),u.textContent=s):u&&i.removeChild(u)}}function At(e){return"function"!=typeof e?e:e()}function It(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function Rt(e){if(void 0===It(e))return e}var Mt="sv-focused--by-key";function Dt(e){var t=e.target;t&&t.classList&&t.classList.remove(Mt)}function Lt(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(Mt)&&n.classList.add(Mt)}}}function Nt(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function Vt(e,t){if(e){t||(t=function(e){return o.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.scrollHeight&&(e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px")}}function jt(e){return e.originalEvent||e}function Ft(e){e.preventDefault(),e.stopPropagation()}function zt(e){return e?e.replace(/\s*?([\w-]+)\s*?/g,".$1"):e}function Bt(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function Ht(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function Ut(e,t){if(void 0===t&&(t=!0),r.isAvailable()&&o.isAvailable()&&e.childNodes.length>0){var n=r.getSelection();if(0==n.rangeCount)return;var i=n.getRangeAt(0);i.setStart(i.endContainer,i.endOffset),i.setEndAfter(e.lastChild),n.removeAllRanges(),n.addRange(i);var s=n.toString(),a=e.innerText;s=s.replace(/\r/g,""),t&&(s=s.replace(/\n/g,""),a=a.replace(/\n/g,""));var l=s.length;for(e.innerText=a,(i=o.getDocument().createRange()).setStart(e.firstChild,0),i.setEnd(e.firstChild,0),n.removeAllRanges(),n.addRange(i);n.toString().length<a.length-l;){var u=n.toString().length;if(n.modify("extend","forward","character"),n.toString().length==u)break}(i=n.getRangeAt(0)).setStart(i.endContainer,i.endOffset)}}function qt(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),qt(r,t[n])):t[n]=r}}function Wt(e,t){var n={};qt(t.list,n),qt(e.list,n),e.list=n}function $t(e,t){r.isFileReaderAvailable()&&(e.value="",e.onchange=function(n){if(r.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var o=[],i=0;i<e.files.length;i++)o.push(e.files[i]);t(o)}},e.click())}function Qt(e,t,n){var r;void 0===n&&(n="--animation-"),e.__sv_created_properties=null!==(r=e.__sv_created_properties)&&void 0!==r?r:[],Object.keys(t).forEach(function(r){var o=""+n+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();e.style.setProperty(o,t[r]),e.__sv_created_properties.push(o)})}function Gt(e){Qt(e,function(e){if(o.isAvailable()){var t=o.getComputedStyle(e),n=t.paddingTop,r=t.paddingBottom,i=t.borderTopWidth,s=t.borderBottomWidth,a=t.marginTop,l=t.marginBottom,u=t.boxSizing,c=e.offsetHeight+"px";if("content-box"==u){var p=e.offsetHeight;[s,i,r,n].forEach(function(e){p-=parseFloat(e)}),c=p+"px"}return{paddingTop:n,paddingBottom:r,borderTopWidth:i,borderBottomWidth:s,marginTop:a,marginBottom:l,heightFrom:"0px",heightTo:c}}}(e))}function Yt(e){Array.isArray(e.__sv_created_properties)&&(e.__sv_created_properties.forEach(function(t){e.style.removeProperty(t)}),delete e.__sv_created_properties)}!function(){function e(){this._result=""}e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0})}();var Zt="undefined"!=typeof globalThis?globalThis.document:(void 0).document,Kt=Zt?{root:Zt,_rootElement:o.getBody(),get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:o.getBody()},set rootElement(e){this._rootElement=e},_popupMountContainer:o.getBody(),get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:o.getBody()},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:Zt.head,stylesSheetsMountContainer:Zt.head}:void 0,Xt={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{onBeforeRequestChoices:function(e,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return Xt.commentSuffix},set commentPrefix(e){Xt.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(e){return confirm(e)},confirmActionAsync:function(e,t,n){return function(e,t,n){void 0===n&&(n={});var r=new mt(void 0),o=Xt.showDialog({componentName:"sv-string-viewer",data:{locStr:r,locString:r,model:r},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:e||n.message,displayMode:"popup",isFocusedContent:!1,cssClass:n.cssClass||"sv-popup--confirm"},n.rootElement),i=o.footerToolbar,s=i.getActionById("apply"),a=i.getActionById("cancel");return a.title=u("cancel",n.locale),a.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=n.applyTitle||u("ok",n.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",function(e){e.width="min-content"}(o),!0}(e,t,n)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:Kt,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:function(e,t,n){return e},parseNumber:function(e,t){return t}},Jt=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equals=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new mt(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return u(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}(),en=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(Jt),nn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(Jt),rn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(Jt),on=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return en(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return this.getLocalizationString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(Jt),sn=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,null,r)||this;return o.status=t,o.response=n,o}return en(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(Jt),an=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(Jt),ln=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(Jt),un=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(Jt),cn=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(Jt),pn=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(Jt),dn=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return en(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("minRowCountError").format(this.minRowCount)},t}(Jt),fn=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(Jt),hn=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return en(t,e),t.prototype.getErrorType=function(){return"custom"},t}(Jt),mn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gn=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},yn=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return mn(t,e),Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,n=new hn(this.getErrorText(e),this.errorOwner);return n.onUpdateErrorTextCallback=function(n){return n.text=t.getErrorText(e)},n},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(xe),vn=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),r,o);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),bn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return mn(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e))return null;if(!s.isNumber(e))return new gn(null,new rn(this.text,this.errorOwner));var o=new gn(s.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(yn),wn=function(e){function t(){return e.call(this)||this}return mn(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e)?null:!this.allowDigits&&/\d+$/.test(e)?new gn(null,this.createCustomError("textNoDigitsAllow")):this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new gn(null,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return"textNoDigitsAllow"===e?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(yn),Cn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return mn(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new gn(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new gn(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(yn),_n=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return mn(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||this.isValueEmpty(e))return null;var o=this.createRegExp();if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new gn(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(yn),xn=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return mn(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new gn(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(yn),En=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return mn(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner(!1)&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,r){var o=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(n){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new gn(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return!!this.expression&&(e||!this.conditionRunner?this.conditionRunner=new ge(this.expression):this.conditionRunner.expression=this.expression,!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(yn);M.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),M.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new bn},"surveyvalidator"),M.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new wn},"surveyvalidator"),M.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new Cn},"surveyvalidator"),M.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new _n},"surveyvalidator"),M.addClass("emailvalidator",[],function(){return new xn},"surveyvalidator"),M.addClass("expressionvalidator",["expression:condition"],function(){return new En},"surveyvalidator");var Sn=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.validate=function(e){if(this.widgetJson.validate)return this.widgetJson.validate(e)},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==Pn.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),Pn=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new Se}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new Sn(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}(),On=function(){function e(){this.renderersHash={},this.defaultHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t],this.defaultHash[e]===t&&delete this.defaultHash[e]},e.prototype.registerRenderer=function(e,t,n,r){void 0===r&&(r=!1),this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n,r&&(this.defaultHash[e]=t)},e.prototype.getRenderer=function(e,t){var n=this.renderersHash[e];if(n){if(t&&n[t])return n[t];var r=this.defaultHash[e];if(r&&n[r])return n[r]}return"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}(),Tn=function(){function e(e){var t=this;this.options=e,this.onPropertyChangedCallback=function(){t.element&&(t.element.value=t.getTextValue(),t.updateElement())},this.question.registerFunctionOnPropertiesValueChanged(this.options.propertyNames,this.onPropertyChangedCallback,"__textarea")}return e.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout(function(){return Vt(e.element)},1)},e.prototype.setElement=function(e){e&&(this.element=e,this.updateElement())},e.prototype.resetElement=function(){this.element=void 0},e.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},e.prototype.onTextAreaChange=function(e){this.options.onTextAreaChange&&this.options.onTextAreaChange(e)},e.prototype.onTextAreaInput=function(e){this.options.onTextAreaInput&&this.options.onTextAreaInput(e),this.element&&this.autoGrow&&Vt(this.element)},e.prototype.onTextAreaKeyDown=function(e){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(e)},e.prototype.onTextAreaBlur=function(e){this.onTextAreaChange(e),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(e)},e.prototype.onTextAreaFocus=function(e){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(e)},Object.defineProperty(e.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertiesValueChanged(this.options.propertyNames,"__textarea"),this.resetElement()},e}(),kn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),An=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},In=function(e,t,n){this.name=e,this.canRun=t,this.doComplete=n,this.getSecondRunner=function(){}},Rn=function(e){function t(n){var r=e.call(this,n)||this;return r.customWidgetData={isNeedRender:!0},r.hasCssErrorCallback=function(){return!1},r.isReadyValue=!0,r.dependedQuestions=[],r.onReadyChanged=r.addEvent(),r.triggersInfo=[],r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.id=t.getQuestionId(),r.onCreating(),r.createNewArray("validators",function(e){e.errorOwner=r}),r.addExpressionProperty("visibleIf",function(e,t){r.visible=!0===t}),r.addExpressionProperty("enableIf",function(e,t){r.readOnly=!1===t}),r.addExpressionProperty("requiredIf",function(e,t){r.isRequired=!0===t}),r.createLocalizableString("commentText",r,!0,"otherItemText"),r.createLocalizableString("requiredErrorText",r),r.addTriggerInfo("resetValueIf",function(){return!r.isEmpty()},function(){r.startSetValueOnExpression(),r.updateValueWithDefaultsOrClear(),r.finishSetValueOnExpression()}),r.addTriggerInfo("setValueIf",function(){return!0},function(){return r.runSetValueExpression()}).getSecondRunner=function(){return r.getSetValueExpressionRunner()},r.registerPropertyChangedHandlers(["width"],function(){r.updateQuestionCss(),r.parent&&r.parent.elementWidthChanged(r)}),r.registerPropertyChangedHandlers(["isRequired"],function(){!r.isRequired&&r.errors.length>0&&r.validate(),r.locTitle.strChanged(),r.clearCssClasses()}),r.registerPropertyChangedHandlers(["indent","rightIndent"],function(){r.resetIndents()}),r.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){r.initCommentFromSurvey()}),r.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){r.updateQuestionCss()}),r.registerPropertyChangedHandlers(["_isMobile"],function(){r.onMobileChanged()}),r.registerPropertyChangedHandlers(["colSpan"],function(){var e;null===(e=r.parent)||void 0===e||e.updateColumns()}),r}return kn(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===Xt.readOnly.commentRenderMode},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var t=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=t},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(e,n){return e||n||(e=t.getDefaultTitle()),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new mt(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new Tn(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this;return{question:this,id:function(){return e.commentId},propertyNames:["comment"],className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(t){e.onCommentChange(t)},onTextAreaInput:function(t){e.onCommentInput(t)}}},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e)for(var t=this.getIsReadyDependsOn(),n=0;n<t.length;n++)if(!t[n].getIsQuestionReady()){e=!1;break}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!e[t].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var t=this.isReadyValue;this.isReadyValue=e,t!=e&&(this.getIsReadyDependends().forEach(function(e){return e.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getDependedQuestionsByValueName=function(e){return this.survey.questionsByValueName(this.getValueName())},t.prototype.getIsReadyDependendCore=function(e){var t=this;if(!this.survey)return[];var n=this.getDependedQuestionsByValueName(e),r=new Array;return n.forEach(function(e){e!==t&&r.push(e)}),e||(this.parentQuestion&&r.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(e){return r.push(e)})),r},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){void 0===e&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChangedCore(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){var e=this.getPropertyValue("isVisible");this.onVisibleChangedCore();var t=this.getPropertyValue("isVisible");void 0!==e&&e!==t&&this.notifySurveyVisibilityChanged()},t.prototype.onVisibleChangedCore=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),t=this.isVisible;e!==t&&(this.setPropertyValue("isVisible",t),t||this.onHidingContent()),t!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=this.createExpressionRunner(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(t){e.runExpressionSetValue(t)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.getSetValueExpressionRunner=function(){return this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner},t.prototype.addTriggerInfo=function(e,t,n){var r=new In(e,t,n);return this.triggersInfo.push(r),r},t.prototype.runTriggerInfo=function(e,t){var n=this[e.name];(n||e.getSecondRunner())&&!e.isRunning&&e.canRun()&&(e.runner?e.runner.expression=n:(e.runner=this.createExpressionRunner(n),e.runner.onRunComplete=function(t){!0===t&&e.doComplete(),e.isRunning=!1}),this.canExecuteTriggerByKeys(t,e.runner,e.getSecondRunner())&&(e.isRunning=!0,!n&&e.getSecondRunner()?(e.doComplete(),e.isRunning=!1):e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())))},t.prototype.canExecuteTriggerByKeys=function(e,t,n){!t&&n&&(t=n,n=void 0);var r=this.canExecuteTriggerByKeysCore(e,t);return"var"===r||(n?""!==this.canExecuteTriggerByKeysCore(e,n):"func"===r||"const"===r)},t.prototype.canExecuteTriggerByKeysCore=function(e,t){if(!t.expression)return"";var n=t.getVariables();return Array.isArray(n)&&0!==n.length?(new L).isAnyKeyChanged(e,n)?"var":"":t.hasFunction()?"func":"const"},t.prototype.runTriggers=function(e,t,n){var r=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(n||((n={})[e]=t),this.triggersInfo.forEach(function(e){r.runTriggerInfo(e,n)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==n&&this.runConditions(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(this.survey&&!this.isLoadingFromJson){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if(this.parent&&"left"===this.getTitleLocation()){var e=this.parent.getColumsForElement(this),t=e.length;if(0!==t&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var n=this.getPercentQuestionTitleWidth();if(!n&&this.parent){var r=this.parent.getQuestionTitleWidth();return r&&!isNaN(r)&&(r+="px"),r}return n/(t||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&"%"===e[e.length-1])return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return"default"!==this.errorLocation?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return Xt.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){t.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){var e;return null!==(e=this.getPropertyValue("renderedCommentPlaceholder"))&&void 0!==e?e:this.isReadOnly?void 0:this.commentPlaceHolder},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=Pn.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(function(e){var n=Xt.environment.root.getElementById(e);n&&t.commentElements.push(n)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),t},t.prototype.onCalcCssClasses=function(t){e.prototype.onCalcCssClasses.call(this,t),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t)},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){var n=this.hasCssError();return(new Ae).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(t.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(t.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(t.hasError,n).append(t.hasErrorTop,n&&"top"==this.getErrorLocation()).append(t.hasErrorBottom,n&&"bottom"==this.getErrorLocation()).append(t.small,!this.width).append(t.answered,this.isAnswered).append(t.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new Ae).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new Ae).append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new Ae).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(t.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new Ae).append(e.description).append(e.descriptionUnderInput,"underInput"==this.getDescriptionLocation()).toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new Ae).append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return(new Ae).append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return(new Ae).append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(t){this.wasRendered?(e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),e.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){!this.isLoadingFromJson&&this.survey&&(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],r=(new Ae).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=r.toString();var o=(new Ae).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=o.toString();else if("string"==typeof n||n instanceof String)e.root=o.append(n.toString()).toString();else for(var i in e.root=o.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,t){var n=this;if(void 0===e&&(e=!1),!this.isDesignMode&&this.isVisible&&this.survey){var r=this.page;if(r&&this.survey.activePage!==r)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var o=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,t,o,void 0,function(){n.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var t,n=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),r=null===(t=this.survey)||void 0===t?void 0:t.rootElement;ft.FocusElement(n,!1,r)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode,r=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||n||t||r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return void 0!==this.forceIsInputReadOnly?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||this.isClearValueOnHidden&&!this.isVisibleInSurvey||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var t=null===(e=this.parent)||void 0===e?void 0:e.visibleIndex,n=s.getNumberByIndex(this.visibleIndex,this.getStartIndex(),t);return this.survey&&(n=this.survey.getUpdatedQuestionNo(this,n)),n},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode||!this.survey||this.isLoadingFromJson||(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());s.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){void 0!==this.value&&(this.value=void 0),this.comment&&!0!==e&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:s.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(e){return!(("onHiddenContainer"!==e||this.isParentVisible)&&(this.isVisibleInSurvey||this.page&&this.page.isStartPage||this.survey&&this.survey.hasVisibleQuestionByValueName(this)))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden");var t=this.getClearIfInvisible();"none"!==t&&("onHidden"===e&&"onComplete"===t||"onHiddenContainer"===e&&t!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):"default"!==e?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.survey&&(n=this.survey.getQuestionDisplayValue(this,n)),this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach(function(e){n[e.propertyName]=t.getPlainDataCalculatedValue(e.propertyName)}),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:Xt.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=s.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),Xt.comparator.caseSensitive,!0),t=e?1:0,n=this.quizQuestionCount-t,r={result:e,correctAnswers:t,correctAnswerCount:t,incorrectAnswers:n,incorrectAnswerCount:n};return this.survey&&this.survey.onCorrectQuestionAnswer(this,r),r.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return"none"!==e&&"onComplete"!==e&&("onHidden"===e||"onHiddenContainer"===e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=this.createExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(t){e.isTwoValueEquals(e.value,t)||(e.value=t)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(t){return e(t)})},t.prototype.updateValueWithDefaultsOrClear=function(){this.isDesignMode||this.isLoadingFromJson||(this.isDefaultValueEmpty()?this.clearValue():this.setDefaultValue())},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,r,o){var i=this;void 0===r&&(r=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValueCore(e,n)};this.runDefaultValueExpression(e,r,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return s.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var t=this;this.runExpressionSetValueCore(e,function(e){t.isTwoValueEquals(t.value,e)||(t.startSetValueOnExpression(),t.value=e,t.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;null===(e=this.survey)||void 0===e||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;null===(e=this.survey)||void 0===e||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,t,n,r){var o=this;return void 0===t&&(t=null),void 0===n&&(n=null),!(!e||!this.data||(r||(r=function(e){o.runExpressionSetValue(e)}),t||(t=this.defaultValueExpression?this.data.getFilteredValues():{}),n||((n=this.defaultValueExpression?this.data.getFilteredProperties():{}).question=this),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,r(e),o.isChangingViaDefaultValue=!1},e.run(t,n)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new Ae).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")||!1},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=Xt.supportedValidators[t];if(n)for(var r=n.length-1;r>=0;r--)e.splice(0,0,n[r]);t=M.findClass(t).parentName}return e},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=[];return this.collectNestedQuestions(n,e,t),t||1!==n.length||n[0]!==this?n:[]},t.prototype.collectNestedQuestions=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),t&&!this.isVisible||this.collectNestedQuestionsCore(e,t,n)},t.prototype.collectNestedQuestionsCore=function(e,t,n){e.push(this)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new R).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.checkForErrors(!!t&&!0===t.isOnValueChanged,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n,this.errors!==n&&this.errors.forEach(function(e){return e.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&t&&e&&n.length>0&&this.expand(),n.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),t&&t.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?this.addCustomError(e):e,this.errors.push(t)}},t.prototype.addCustomError=function(e){return new hn(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var t=this.errors,n=t.indexOf(e);return-1!==n&&t.splice(n,1),-1!==n},t.prototype.checkForErrors=function(e,t){var n=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(n,e,t),n},t.prototype.canCollectErrors=function(){return!this.isReadOnly||Xt.readOnly.enableValidation},t.prototype.collectErrors=function(e,t,n){if(this.onCheckForErrors(e,t,n),!(e.length>0)&&this.canRunValidators(t)){var r=this.runValidators();if(r.length>0){e.length=0;for(var o=0;o<r.length;o++)e.push(r[o])}if(this.survey&&0==e.length){var i=this.fireSurveyValidation();i&&e.push(i)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t,n){var r=this;if((!t||this.isOldAnswered)&&this.hasRequiredError()){var o=new tn(this.requiredErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=r.requiredErrorText},e.push(o)}if(!this.isEmpty()&&this.customWidget){var i=this.customWidget.validate(this);i&&e.push(this.addCustomError(i))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new vn,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var t=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return t||N.inCorrectQuestionValue(this.name,e),t},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var t=this.value;return!(!this.isTwoValueEquals(e,t,!1,!1)||e===t&&t&&(Array.isArray(t)||"object"==typeof t))},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getExpressionValue=function(e){return e},t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.getIsInputTextUpdate()&&"text")},t.prototype.getValidName=function(e){return Mn(e)},t.prototype.updateValueFromSurvey=function(e,t){var n=this;if(void 0===t&&(t=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),this.checkIsValueCorrect(e)){var r=this.isValueEmpty(e);!r&&this.defaultValueExpression?this.setDefaultValueCore(function(t){n.updateValueFromSurveyCore(e,n.isTwoValueEquals(e,t))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),t&&r&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,t){this.isChangingViaDefaultValue=t,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),e=this.convertToCorrectValue(e);var n=this.isTwoValueEquals(this.questionValue,e);n||this.isChangingViaDefaultValue||this.isParentChangingViaDefaultValue||this.setValueChangedDirectly(!0),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return!0===(null===(e=this.data)||void 0===e?void 0:e.isChangingViaDefaultValue)},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!Xt.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!Xt.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,t){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){var o=n[r];this.isValueEmpty(t)&&s.isNumber(this[o])&&(t=0),this.updateBindingProp(o,t)}},t.prototype.updateBindingProp=function(e,t){this[e]=t},t.prototype.getComponentName=function(){return On.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,t){this.survey.processPopupVisiblityChanged(this,e,t)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){13===e.keyCode&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))},"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){void 0===e&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var n=this.getObservedElementSelector();if(!n)return;if(!e.querySelector(n))return;var o=!1,i=void 0;this.triggerResponsivenessCallback=function(r){r&&(i=void 0,t.renderAs="default",o=!1);var s=function(){var r=e.querySelector(n);!i&&t.isDefaultRendering()&&(i=r.scrollWidth),o=!(o||!Ht(r))&&t.processResponsiveness(i,Bt(r))};r?setTimeout(s,1):s()},this.resizeObserver=new ResizeObserver(function(e){r.requestAnimationFrame(function(){t.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var r=e.querySelector(n);t.processResponsiveness(i,Bt(r))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var n=this.renderAs;return e>t?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),n!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,An([y({defaultValue:!1})],t.prototype,"_isMobile",void 0),An([y()],t.prototype,"forceIsInputReadOnly",void 0),An([y()],t.prototype,"ariaExpanded",void 0),An([y({localizable:!0,onSet:function(e,t){return t.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),An([y()],t.prototype,"renderAs",void 0),An([y({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(ft);function Mn(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===Xt.expressionDisableConversionChar;)e=e.substring(1);return e}M.addClass("question",[{name:"!name",onSettingValue:function(e,t){return Mn(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return Xt.minWidth}},{name:"maxWidth",defaultFunc:function(){return Xt.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(e){return e.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(e){return!!e&&!!e.survey&&e.survey.gridLayoutEnabled}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.getDefaultTitle())}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return Mn(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),M.addAlterNativeClassName("question","questionbase");var Dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ln=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nn=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var o=e.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new mt(o,!0,"text"),o.locTextValue.onStrChanged=function(e,t){o.propertyValueChanged("text",e,t)},o.locTextValue.onGetTextCallback=function(e){return e||(s.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),t&&"object"==typeof t?o.setData(t,!0):o.setValue(t,!0),"itemvalue"!=o.getType()&&C.createProperties(o),o.data=o,o.onCreating(),o}return Dn(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return Xt.itemValueSeparator},set:function(e){Xt.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,n){e.length=0;for(var r=0;r<t.length;r++){var o=t[r],i=o&&"function"==typeof o.getType?o.getType():null!=n?n:"itemvalue",s=M.createClass(i);s.setData(o),o.originalItem&&(s.originalItem=o.originalItem),e.push(s)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.isValueEmpty(t),r=0;r<e.length;r++){if(n&&s.isValueEmpty(e[r].value))return e[r];if(s.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r]}return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,n,r,o,i){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,s,a){void 0===s&&(s=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var f=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);f||(f=n);var h=!0;f&&(h=f.run(r,o)),a&&(h=a(d,h)),t&&h&&t.push(d),h!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(h):d.setIsEnabled&&d.setIsEnabled(h))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){var n=void 0;if(!s.isValueEmpty(e)){var r=e.toString(),o=r.indexOf(Xt.itemValueSeparator);o>-1&&(e=r.slice(0,o),n=r.slice(o+1))}t?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),n&&(this.text=n),this.id=this.value},Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(Xt.serialization.itemValueSerializeAsObject||Xt.serialization.itemValueSerializeDisplayText)||1!=Object.keys(e).length?(Xt.serialization.itemValueSerializeDisplayText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=M.getProperties(this.getType());t&&0!=t.length||(t=M.getProperties("itemvalue"));for(var n=new R,r=0;r<t.length;r++){var o=t[r];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.isTwoValueEquals(this.value,this.text,!1,!0,!1)||n.valueToJson(this,e,o)}return e},t.prototype.setData=function(e,t){if(!s.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var n;n="function"==typeof e.toJSON?e.toJSON():e,(new R).toObject(n,this)}else this.setValue(e,t);t||this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.strChanged();var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new ge(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new ge(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,t=this._locOwner;return t instanceof Rn&&t.isItemSelected&&void 0===this.selectedValue&&(this.selectedValue=new _e(function(){return t.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof Rn?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},Ln([y({defaultValue:!0})],t.prototype,"_visible",void 0),Ln([y()],t.prototype,"selectedValue",void 0),Ln([y()],t.prototype,"icon",void 0),t}(Ze);xe.createItemValue=function(e,t){var n=null;return(n=t?R.metaData.createClass(t,{}):"function"==typeof e.getType?new Nn(null,void 0,e.getType()):new Nn(null)).setData(e),n},xe.itemValueLocStrChanged=function(e){Nn.locStrsChanged(e)},w.getItemValuesDefaultValue=function(e,t){var n=new Array;return Nn.setData(n,Array.isArray(e)?e:[],t),n},M.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],function(e){return new Nn(e)});var Vn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return Vn(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var o=0;o<e.length;o++){var i=e[o];i===this||r.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new ye(this.expression),this.expressionRunner.onRunComplete=function(e){s.isTwoValueEquals(e,t.value,!1,!0,!1)||t.setValue(e),t.unlocCalculation()})},t}(xe);M.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new jn},"base");var Fn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n}return Fn(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new ge(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(xe),Bn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return Fn(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(zn),Hn=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return Fn(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(zn);M.addClass("expressionitem",["expression:condition"],function(){return new zn},"base"),M.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new Bn},"expressionitem"),M.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new Hn},"expressionitem");var Un=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qn=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],o={};this.xml2Json(r,o),this.assignValue(t,r.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),Wn=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new Nn(e)},t.registerPropertyChangedHandlers(["url"],function(){t.owner&&t.owner.setPropertyValue("isUsingRestful",!!t.url)}),t}return Un(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return Xt.web.encodeUrlParams},set:function(e){Xt.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return Xt.web.onBeforeRequestChoices},set:function(e){Xt.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&Xt.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});r.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new qn).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map(function(e){return e.trim(" ")}).filter(function(e){return!!e})}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var t=this,n=this.objHash;e.onload=function(){t.beforeLoadRequest(),200===e.status?t.onLoad(t.parseResponse(e.response),n):t.onError(e.statusText,e.responseText)};var r={request:e};Xt.web.onBeforeRequestChoices&&Xt.web.onBeforeRequestChoices(this,r),this.beforeSendRequest(),r.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=M.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.getAllPropertiesNames=function(){var e=new Array;return M.getPropertiesByObj(this).forEach(function(t){return e.push(t.name)}),this.getCustomPropertiesNames().forEach(function(t){return e.push(t)}),e},t.prototype.setData=function(e){var t=this;e||(e={}),this.getAllPropertiesNames().forEach(function(n){t[n]=e[n]})},t.prototype.getData=function(){var e=this,t={},n=!1;return this.getAllPropertiesNames().forEach(function(r){var o=e[r];e.isValueEmpty(o)||o===e.getDefaultPropertyValue(r)||(t[r]=o,n=!0)}),n?t:null},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName")||""},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName")||""},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName")||""},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=M.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var a=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),l=this.createItemValue(a);this.setTitle(l,s),this.setCustomProperties(l,s),this.attachOriginalItems&&(l.originalItem=s);var u=this.getImageLink(s);u&&(l.imageLink=u),r.push(l)}}else this.allowEmptyResponse||(this.error=new an(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var o=n[r],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new sn(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.indexOf(",")>-1?this.processedPath.split(","):this.processedPath.split(".")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",r=this.getValueCore(t,n);r&&("string"==typeof r?e.text=r:e.locText.setJson(r))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(xe),$n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Un(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return Wn.EncodeParameters},set:function(e){Wn.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){Wn.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return Xt.web.onBeforeRequestChoices},set:function(e){Xt.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(Wn);M.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new Wn});var Qn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gn=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yn=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return Qn(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){var e=this,t=[];return this.columns.forEach(function(n){e.isColumnVisible(n)&&t.push(n)}),t},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t)},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var t,n=e.prototype.isVisibleCore.call(this);return n&&this.hideIfRowsEmpty?(null===(t=this.visibleRows)||void 0===t?void 0:t.length)>0:n},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),r=this.runConditionsForColumns(e,t);(n=r||n)&&(this.isClearValueOnHidden&&r&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),r&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=n?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var o=Nn.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return Nn.runEnabledConditionsForItems(this.rows,void 0,e,t),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),o},t.prototype.runConditionsForColumns=function(e,t){var n=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new ge(this.columnsVisibleIf):null;return Nn.runConditionsForItems(this.columns,void 0,n,e,t,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some(function(e){return!!e.width})},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return(new Ae).append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(null===(e=this.renderedTable)||void 0===e?void 0:e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,t){return(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase()+" "+e+", "+(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase()+" "+t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return"auto"==this.displayMode?e.prototype.getIsMobile.call(this):"list"===this.displayMode},Gn([y()],t.prototype,"verticalAlign",void 0),Gn([y()],t.prototype,"alternateRows",void 0),t}(Rn);M.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Zn=function(){},Kn=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},Xn=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,n,r){if(this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new Kn(l,!0===t);if(this.onProcess(u),u.isExists||u.canProcess&&(this.hasAllValuesOnLastRunValue=!1),u.isExists||r){s.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=s.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}}}return e},e.prototype.processValue=function(e,t){var n=new Kn(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.processText=function(e,t){return this.process(e,t)},e.prototype.processTextEx=function(e){var t={hasAllValuesOnLastRun:!0,text:e.text};return t.text=this.process(e.text,e.returnDisplayValue,e.doEncoding,e.replaceUndefinedValues),t.hasAllValuesOnLastRun=this.hasAllValuesOnLastRun,t},e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,o="",i=0;i<n;i++)if("{"==(o=e[i])&&(r=i),"}"==o){if(r>-1){var s=new Zn;s.start=r,s.end=i,this.isValidItemName(e.substring(r+1,i))&&t.push(s)}r=-1}return t},e.prototype.isValidItemName=function(e){return!!e&&e.indexOf(":")<0},e.prototype.getName=function(e){if(e)return e.trim()},e}(),Jn=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new Xn,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new L).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new L).getFirstName(e.name);var n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[t]=o[t])}e.value=(new L).getValue(e.name,r)}}},e.prototype.processText=function(e,t){var n={text:e,returnDisplayValue:t};return this.processTextEx(n).text},e.prototype.processTextEx=function(e){var t,n={hasAllValuesOnLastRun:!0,text:e.text};if(!e.runAtDesign&&(null===(t=this.survey)||void 0===t?void 0:t.isDesignMode))return n;var r=new Array;this.addTextPreProcessor(r,this.textPreProcessor),this.addTextPreProcessor(r,this.getParentTextProcessor()),this.addTextPreProcessor(r,this.survey);for(var o=0;o<r.length;o++){var i=r[o];e.text=n.text,e.doEncoding=e.doEncoding||!1;var s=i.processTextEx(e);n.text=s.text,n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&s.hasAllValuesOnLastRun}return n},e.prototype.addTextPreProcessor=function(e,t){!t||e.indexOf(t)>-1||e.push(t)},e}(),er=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tr=function(){function e(e,t){this.name=e,this.json=t;var n=this;M.addClass(e,[],function(e){return nr.Instance.createQuestion(e?e.name:"",n)},"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onUpdateQuestionCssClasses=function(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)},e.prototype.onSetQuestionValue=function(e,t){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(e,t),this.json.onValueSet&&this.json.onValueSet(e,t)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onValueChanging=function(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n},e.prototype.onGetErrorText=function(e){if(this.json.getErrorText)return this.json.getErrorText(e)},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:o})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),e.prototype.setValueToQuestion=function(e){var t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e},e.prototype.getValueFromQuestion=function(e){var t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},e.prototype.calcDynamicProperties=function(){var e=this.json.inheritBaseProps;if(!e||!this.json.questionJSON)return[];var t=this.json.questionJSON.type;if(!t)return[];if(Array.isArray(e)){var n=[];return e.forEach(function(e){var r=M.findProperty(t,e);r&&n.push(r)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return M.getDynamicPropertiesByTypes(this.name,t,r)},e}(),nr=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(M.findClass(t))throw"There is already class with name '"+t+"'";var n=new tr(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},e.prototype.remove=function(e){if(!e)return!1;var t=this.getCustomQuestionIndex(e.toLowerCase());return!(t<0||(this.removeByIndex(t),0))},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){var t=this.getCustomQuestionIndex(e);return t>=0?this.customQuestionValues[t]:void 0},e.prototype.getCustomQuestionIndex=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name===e)return t;return-1},e.prototype.removeByIndex=function(e){M.removeClass(this.customQuestionValues[e].name),this.customQuestionValues.splice(e,1)},e.prototype.clear=function(e){for(var t=this.customQuestionValues.length-1;t>=0;t--)!e&&this.customQuestionValues[t].json.internal||this.removeByIndex(t)},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new sr(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new or(e,t)},e.Instance=new e,e}(),rr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.customQuestion=n,C.createProperties(r),ft.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),ft.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return er(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?e.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.getElement()&&this.getElement().addUsedLocales(t)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return!!e&&e.needResponsiveWidth()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){e.prototype.onFirstRenderingCore.call(this);var t=this.getElement();t&&t.onFirstRendering()},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this);var t=this.getElement();t&&t.onHidingContent()},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,n){this.isSettingValOnLoading=!0,e.prototype.setSurveyImpl.call(this,t,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,t)},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.onCheckForErrors=function(t,n,r){if(e.prototype.onCheckForErrors.call(this,t,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&t.push(new hn(o,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,t);var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,n,r),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!s.isTwoValueEquals(t,n)){var r=this.getQuestionByName(e);if(r)return r.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(t,n,r){return r?this.customQuestion.getDisplayValue(t,n,r):e.prototype.getDisplayValueCore.call(this,t,n)},t}(Rn),or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return er(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(t,n,r,o,i){e.getDynamicProperty(t)&&e.propertyValueChanged(t,n,r,i)})},t.prototype.getDynamicProperty=function(e){for(var t=this.getDynamicProperties(),n=0;n<t.length;n++)if(t[n].name===e)return t[n];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.supportGoNextPageAutomatic=function(){return!!this.contentQuestion&&this.contentQuestion.supportGoNextPageAutomatic()},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):e.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(t,n,r,o){this.isValueChanging(t,n)||e.prototype.setValue.call(this,t,n,r,o)},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t);var n=this.contentQuestion;n&&n.updateCommentFromSurvey(t)},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){var e;return null===(e=this.contentQuestion)||void 0===e?void 0:e.requireUpdateCommentValue},enumerable:!1,configurable:!0}),t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.contentQuestion&&this.contentQuestion.afterRender(t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,n=null;if(t.questionJSON){this.hasJSONTitle=!!t.questionJSON.title;var r=t.questionJSON.type;if(!r||!M.findClass(r))throw"type attribute in questionJSON is empty or incorrect";(n=M.createClass(r)).fromJSON(t.questionJSON),n=this.checkCreatedQuestion(n)}else t.createQuestion&&(n=this.checkCreatedQuestion(t.createQuestion()));return this.initElement(n),n&&(n.isContentElement=!0,n.name||(n.name="question"),n.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(n,t)},n.hasCssErrorCallback=function(){return e.errors.length>0},n.setValueChangedDirectlyCallback=function(t){e.setValueChangedDirectly(t)}),n},t.prototype.checkCreatedQuestion=function(e){return e?(e.isQuestion||(e=Array.isArray(e.questions)&&e.questions.length>0?e.questions[0]:M.createClass("text"),N.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e):e},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){var n=this.contentQuestion;if(!n||t===this.getValueName())return e.prototype.convertDataName.call(this,t);var r=t.replace(n.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.getContentQuestionValue(),t)||this.setContentQuestionValue(this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():e.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(t){this.isSettingValueChanged||(this.isSettingValueChanged=!0,e.prototype.setValueChangedDirectly.call(this,t),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(t),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var t=this.getDynamicProperties();Array.isArray(t)&&M.addDynamicPropertiesIntoObj(this,e,t)}},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.setIsMobile=function(t){e.prototype.setIsMobile.call(this,t),this.contentQuestion&&this.contentQuestion.setIsMobile(t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(rr),ir=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return er(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(Jn),sr=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.customQuestion=r,o.settingNewValue=!1,o.textProcessing=new ir(o,t.ItemVariableName),o}return er(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new Ae).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.dispose=function(){this.unConnectEditingObj(),e.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e,t=this,n=null===(e=this.data)||void 0===e?void 0:e.getEditingSurveyElement();if(n){var r=n[this.getValueName()];return r&&!r.onPropertyChanged&&(r=void 0),r!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=r,r&&(this.onEditingObjPropertyChanged=function(e,n){t.setNewValueIntoQuestion(n.name,t.editingObjValue[n.name])},r.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(t)},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(t,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,t=M.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var n=this.customQuestion.json;return n.elementsJSON&&t.fromJSON({elements:n.elementsJSON}),n.createElements&&n.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach(function(t){t.setParentQuestion(e),t.onUpdateCssClassesCallback=function(n){e.onUpdateQuestionCssClasses(t,n)}}),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(t,n){void 0===n&&(n=!1),this.updateEditingObj(),e.prototype.updateValueFromSurvey.call(this,t,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.getContentPanelValue();s.isValueEmpty(t)||(this.value=t)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var o=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],o&&(n[t.ItemVariableName]=o)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);var n=t||{};this.contentPanel&&this.contentPanel.questions.forEach(function(e){e.onSurveyValueChanged(n[e.getValueName()])})},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(n,r,o,i){if(this.settingNewValue)this.setNewValueIntoQuestion(n,r);else if(!this.isValueChanging(n,r)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,a=this.contentPanel.questions.length+1;s<a&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(n,r),e.prototype.setValue.call(this,n,r,o,i),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+n,r)}},t.prototype.setComment=function(e,t,n){var r=this.getUnbindValue(this.value),o=this.getCommentName(e);if(!(!r&&!t||t&&r&&r[o]===t)){t?(r||(r={}),r[o]=t):delete r[o];var i=this.getQuestionByName(e);i&&i.comment!==t&&(i.comment=t),this.settingNewValue||(this.value=r)}},t.prototype.getComment=function(e){var t=this.getQuestionByName(e);if(t)return t.comment;var n=this.value;return!!n&&n[this.getCommentName(e)]||""},t.prototype.getCommentName=function(e){return e+Xt.commentSuffix},t.prototype.runPanelTriggers=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach(function(n){n.runTriggers(e,t)})},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,o=this.title,i=0;i<n.length;i++)e.push({name:r+"."+n[i].name,text:o+"."+n[i].title,question:n[i]})},t.prototype.collectNestedQuestionsCore=function(e,t,n){this.contentPanel&&(n&&e.push(this),this.contentPanel.questions.forEach(function(n){return n.collectNestedQuestions(e,t)}))},t.prototype.convertDataValue=function(e,t){var n=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return n||(n={}),n.getType||(n=s.getUnbindValue(n)),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,this.getContentPanelValue(n)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.getContentPanelValue()),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel&&!this.settingNewValue){e=this.getValueForContentPanel(e);var t=this.settingNewValue;this.settingNewValue=!0;for(var n=this.contentPanel.questions,r=0;r<n.length;r++){var o=n[r],i=o.getValueName(),s=this.getCommentName(i),a=e?e[i]:void 0,l=!!e&&e[s]||"";this.isTwoValueEquals(o.value,a)||void 0===a&&o.isEmpty()||(o.value=a),o.comment!==l&&(o.comment=l)}this.settingNewValue=t}},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(t){e.prototype.setIsMobile.call(this,t),this.contentPanel&&this.contentPanel.questions.forEach(function(e){e.setIsMobile(t)})},t.ItemVariableName="composite",t}(rr),ar=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){var e=u("choices_Item");return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=u("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=u("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=u("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t,n){void 0===n&&(n=!0),lr.Instance.registerElement(e,t,n)},e.prototype.registerCustomQuestion=function(e){lr.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),lr.Instance.unregisterElement(e,t)},e.prototype.clear=function(){lr.Instance.clear()},e.prototype.getAllTypes=function(){return lr.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return lr.Instance.createElement(e,t)},e.Instance=new e,e}(),lr=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t,n){void 0===n&&(n=!0),e.registerElement(t,function(e){var n=M.createClass(t);return n&&(n.name=e),n},n)}}return e.prototype.registerElement=function(e,t,n){void 0===n&&(n=!0),this.creatorHash[e]={showInToolbox:n,creator:t}},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&M.removeClass(e)},e.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},e.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];if(n&&n.creator)return n.creator(t);var r=nr.Instance.getCustomQuestionByName(e);return r?nr.Instance.createQuestion(t,r):null},e.prototype.getAllTypesCore=function(e){var t=new Array;for(var n in this.creatorHash)e&&!this.creatorHash[n].showInToolbox||t.push(n);return t.sort()},e.Instance=new e,e}(),ur=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cr=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())}),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){n.updateFormatedValue()}),n}return ur(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,t=this.createExpressionRunner(this.expression);return t.onRunComplete=function(t){e.value=e.roundValue(t),e.unlocCalculation()},t},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var n=null==t?this.defaultValue:t,r="";if(!this.isValueEmpty(n)){var o=this.getValueAsStr(n);r=this.format?this.format.format(o):o}return this.survey&&(r=this.survey.getExpressionDisplayValue(this,n,r)),r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0?e:s.isNumber(e)?parseFloat(e.toFixed(this.precision)):e},t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=i("question-expression",e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&s.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(Rn);M.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD",visibleIf:function(e){return"currency"===e.displayStyle}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1,isSerializable:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"readOnly",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1,isSerializable:!1},{name:"resetValueIf",visible:!1,isSerializable:!1},{name:"setValueIf",visible:!1,isSerializable:!1},{name:"setValueExpression",visible:!1,isSerializable:!1},{name:"defaultValueExpression",visible:!1,isSerializable:!1},{name:"defaultValue",visible:!1,isSerializable:!1},{name:"correctAnswer",visible:!1,isSerializable:!1},{name:"requiredIf",visible:!1,isSerializable:!1}],function(){return new cr("")},"question"),ar.Instance.registerQuestion("expression",function(e){return new cr(e)});var pr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function dr(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var fr={dropdown:{onCellQuestionUpdate:function(e,t,n,r){!function(e,t,n,r){dr(e,0,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.optionsCaption=n.optionsCaption)}(e,0,n,r)}},checkbox:{onCellQuestionUpdate:function(e,t,n,r){dr(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,n,r){dr(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{onCellQuestionUpdate:function(e,t,n,r){dr(e,0,n,r)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,n,r){e.renderAs=t.renderAs}},expression:{},rating:{}},hr=function(e){function t(t,n,r){var o=e.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,t,n),o}return pr(t,e),t.getColumnTypes=function(){var e=[];for(var t in fr)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return!!this.isDesignMode||this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var t=new Array,n=0;n<e.length;n++){var r=e[n];this._visiblechoices.indexOf(r.value)>-1&&t.push(r)}return t},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e),this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=fr[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():Xt.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,t,n){var r=this,o=this.getDefaultCellQuestionType(e),i=this.templateQuestion?this.templateQuestion.getType():"";o!==i&&(this.templateQuestion&&this.removeProperties(i),this.templateQuestionValue=this.createNewQuestion(o),this.templateQuestion.locOwner=this,this.addProperties(o),t&&(this.name=t),n?this.title=n:this.templateQuestion.locTitle.strChanged(),Xt.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(e,t){r.propertyValueChanged(t.name,t.oldValue,t.newValue,t.arrayChanges,t.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(e,t){r.doItemValuePropertyChanged(t.propertyName,t.obj,t.name,t.newValue,t.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return r.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=M.createClass(e);return t||(t=M.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var n=this;if(void 0===t&&(t=null),this.templateQuestion){var r=(new R).toJsonObject(this.templateQuestion,!0);if(t&&t(r),r.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,delete r.itemComponent,this.jsonObj&&"rating"===r.type&&this.isLoadingFromJson&&Object.keys(this.jsonObj).forEach(function(e){r[e]=n.jsonObj[e]}),"random"===r.choicesOrder){r.choicesOrder="none";var o=this.templateQuestion.visibleChoices;Array.isArray(o)&&(r.choices=o)}(new R).toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(n.isShowInMultipleColumns&&(!n.previousChoicesId||n.previousChoicesId===e.id)){n.previousChoicesId=e.id;var t=e.visibleChoices;n.templateQuestion.choices=t,n.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,n,r,o,i){if(e.prototype.propertyValueChanged.call(this,t,n,r,o,i),"isRequired"===t&&this.updateIsRenderedRequired(r),this.colOwner&&!this.isLoadingFromJson){if(this.isShowInMultipleColumns){if("choicesOrder"===t)return;["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}M.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,r)}},t.prototype.doItemValuePropertyChanged=function(e,t,n,r,o){M.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,o))},t.prototype.doShowInMultipleColumnsChanged=function(){null!=this.colOwner&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){null==this.colOwner||this.isDesignMode||this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return M.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){var t=this.getProperties(e);M.addDynamicPropertiesIntoObj(this,this.templateQuestion,t)},t}(xe);M.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=hr.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},{name:"isRequired:boolean",defaultFunc:function(e){var t,n=null===(t=e)||void 0===t?void 0:t.templateQuestion;return n&&M.findProperty(n.getType(),"isRequired").getDefaultValue(n)||!1}},"isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(e){return!e.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(e){return!e.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(e){return e.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(e){return e.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(e){return e.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(e){return e.hasTotal},choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(e){return e.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(e){return e.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new hr("")});var mr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gr=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function yr(e,t,n){return e+(t?"-error":"")+(n?"-detail":"")}var vr=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){var e=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(e+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),yr(e,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new Ae).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){var e;return!this.hasQuestion&&!this.isErrorsCell||!(null===(e=this.matrix)||void 0===e?void 0:e.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResponsiveTitle",{get:function(){var e;return this.hasQuestion&&(null===(e=this.matrix)||void 0===e?void 0:e.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveTitleCss",{get:function(){return(new Ae).append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var e=this.cell.column.cellHint;return e?""===e.trim()?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new Ae).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.prototype.focusIn=function(){this.question&&this.question.focusIn()},e.counter=1,e}(),br=function(e){function t(n,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.cssClasses=n,o.isDetailRow=r,o.hasEndActions=!1,o.isErrorsRow=!1,o.cells=[],o.idValue=t.counter++,o}return mr(t,e),Object.defineProperty(t.prototype,"id",{get:function(){var e;return yr((null===(e=this.row)||void 0===e?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,t;return(new Ae).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,null===(e=this.row)||void 0===e?void 0:e.hasPanel).append(this.cssClasses.expandedRow,(null===(t=this.row)||void 0===t?void 0:t.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.prototype.focusCell=function(e){if(this.rootElement){var t=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",n=this.rootElement.querySelectorAll(t)[0];n&&n.focus()}},t.counter=1,gr([y({defaultValue:!1})],t.prototype,"isGhostRow",void 0),gr([y({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),gr([y({defaultValue:!0})],t.prototype,"visible",void 0),t}(xe),wr=function(e){function t(t){var n=e.call(this,t)||this;return n.isErrorsRow=!0,n}return mr(t,e),Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new Ae).append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.visible=e.cells.some(function(e){return e.question&&e.question.hasVisibleErrors})};this.cells.forEach(function(e){e.question&&e.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t)}),t()},t}(br),Cr=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n._renderedRows=[],n.renderedRowsAnimation=new lt(n.getRenderedRowsAnimationOptions(),function(e){n._renderedRows=e},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return mr(t,e),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,t=function(e){e.querySelectorAll(":scope > td > *").forEach(function(e){Gt(e)})},n=function(e){e.querySelectorAll(":scope > td > *").forEach(function(e){Yt(e)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getEnterOptions:function(r,o){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getKey:function(e){return e.id}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.isRequireResetValue||this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},t.prototype.requireReset=function(){this.isRequireResetValue=!0},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return"top"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return"bottom"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,r=t;n&&(n="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),r&&"topBottom"!==this.matrix.getAddRowLocation()&&(r=!n),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",r)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,n),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,n=0,r=0;r<this.rows.length;r++){if(n===e){(this.rows[r].isErrorsRow||this.rows[r].isDetailRow)&&(t++,r+1<this.rows.length&&this.rows[r+1].isDetailRow&&t++);break}t++,this.rows[r].isErrorsRow||this.rows[r].isDetailRow||n++}return n<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isErrorsRow||this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&n++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&n++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,n++),this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n;this.showCellErrorsBottom&&r++;var o=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&o>-1||!t&&o<0))if(t){var i=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(r+1,0,i)}else this.rows.splice(o,1)}},t.prototype.focusActionCell=function(e,t){var n=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var r=this.getRenderedRowIndex(e);n=this.rows[r]}null==n||n.focusCell(t)},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new br(e,t)},t.prototype.createErrorRenderedRow=function(e){return new wr(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.columns.length;t++){var n=this.matrix.columns[t];n.isColumnVisible&&(this.matrix.IsMultiplyColumn(n)?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var r=this.matrix.visibleRows;for(t=0;t<r.length;t++){var o=this.createTextCell(r[t].locText);this.setHeaderCellCssClasses(o),o.row=r[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&(o=this.createTextCell(this.matrix.getFooterText()),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=(new Ae).append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var t=this.matrix.visibleTotalRow.cells,n=0;n<t.length;n++){var r=t[n];if(r.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(r.column))this.createMutlipleColumnsFooter(this.footerRow,r);else{var o=this.createEditCell(r);r.column&&this.setCellWidth(r.column,o),o.className=(new Ae).append(o.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(o)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some(function(n,r){return!t.isValueEmpty(t.getRowActions(r,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n]);return t},t.prototype.addHorizontalRow=function(e,t,n){void 0===n&&(n=-1);var r=this.createHorizontalRow(t),o=this.createErrorRow(r);if(r.row=t,n<0&&(n=e.length),this.matrix.isMobile){for(var i=[],s=0;s<r.cells.length;s++)this.showCellErrorsTop&&!o.cells[s].isEmpty&&i.push(o.cells[s]),i.push(r.cells[s]),this.showCellErrorsBottom&&!o.cells[s].isEmpty&&i.push(o.cells[s]);r.cells=i,e.splice(n,0,r)}else e.splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([n,0],this.showCellErrorsTop?[o,r]:[r,o])),n++;t.isDetailPanelShowing&&e.splice(n+1,0,this.createDetailPanelRow(t,r))},t.prototype.getRowDragCell=function(e){var t=new vr,n=this.matrix.lockedRowCount;return t.isDragHandlerCell=n<1||e>=n,t.isEmpty=!t.isDragHandlerCell,t.className=this.getActionsCellClassName(t),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(e){var t=this;void 0===e&&(e=null);var n=(new Ae).append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,null==e?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,null==e?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var r=e.item.value.actions;this.cssClasses.actionsCellPrefix&&r.forEach(function(e){n.append(t.cssClasses.actionsCellPrefix+"--"+e.id)})}return n.toString()},t.prototype.getRowActionsCell=function(e,t,n){void 0===n&&(n=!1);var r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){var o=new vr,i=this.matrix.allowAdaptiveActions?new et:new De;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(i.cssClasses=this.matrix.survey.getCss().actionBar),i.setItems(r);var s=new Nn(i);return o.item=s,o.isActionsCell=!0,o.isDragHandlerCell=!1,o.isDetailRowCell=n,o.className=this.getActionsCellClassName(o),o.row=this.matrix.visibleRows[e],o}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter(function(e){return e.location||(e.location="start"),e.location===t}):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return Xt.matrix.renderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var n=this,r=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new Ke({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:(new Ae).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:r.removeRowText,enabled:!r.isInputReadOnly,data:{row:e,question:r},action:function(){r.removeRowUI(e)}})):t.push(new Ke({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?t.unshift(new Ke({id:"show-detail-mobile",title:new _e(function(){return e.isDetailPanelShowing?n.matrix.getLocalizationString("hideDetails"):n.matrix.getLocalizationString("showDetails")}),showTitle:!0,location:"end",action:function(t){e.showHideDetailPanelClick()}})):t.push(new Ke({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var t=this.createErrorRenderedRow(this.cssClasses),n=0;n<e.cells.length;n++){var r=e.cells[n];r.hasQuestion?this.matrix.IsMultiplyColumn(r.cell.column)?r.isFirstChoice?t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0)):t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0))}return t.onAfterCreated(),t},t.prototype.createHorizontalRow=function(e){var t=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var n=this.matrix.visibleRows.indexOf(e);t.cells.push(this.getRowDragCell(n))}this.addRowActionsCell(e,t,"start"),this.matrix.hasRowText&&((i=this.createTextCell(e.locText)).row=e,t.cells.push(i),this.setCellWidth(null,i),i.className=(new Ae).append(i.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var r=0;r<e.cells.length;r++){var o=e.cells[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleEditCells(t,o);else{o.column.isShowInMultipleColumns&&o.question.visibleChoices.map(function(e){return e.hideCaption=!1});var i=this.createEditCell(o);t.cells.push(i),this.setCellWidth(o.column,i)}}return this.addRowActionsCell(e,t,"end"),t},t.prototype.addRowActionsCell=function(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var o=this.getRowActionsCell(r,n,t.isDetailRow);if(o)t.cells.push(o),t.hasEndActions=!0;else{var i=new vr;i.isEmpty=!0,i.isDetailRowCell=t.isDetailRow,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=this.matrix.isDesignMode,r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var o=new vr;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n||r.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new vr).isEmpty=!0);var s=new vr;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(n?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,r.cells.push(s),i&&(this.matrix.isMobile?this.addRowActionsCell(e,r,"end"):r.cells.push(i)),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(r),r},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];if(r.isColumnVisible)if(this.matrix.IsMultiplyColumn(r))this.createMutlipleVerticalRows(t,r,n);else{var o=this.createVerticalRow(r,n),i=this.createErrorRow(o);this.showCellErrorsTop?(t.push(i),t.push(o)):(t.push(o),t.push(i))}}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var o=0;o<r.length;o++){var i=this.createVerticalRow(t,n,r[o],o),s=this.createErrorRow(i);this.showCellErrorsTop?(e.push(s),e.push(i)):(e.push(i),e.push(s))}},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new Ae).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var u=n,c=r>=0?r:l,p=a[l].cells[t],d=n?p.question.visibleChoices:void 0;d&&c<d.length&&(u=d[c]);var f=this.createEditCell(p,u);f.item=u,f.choiceIndex=c,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var o=0;o<r.length;o++){var i=this.createEditCell(t,n?void 0:r[o]);n||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new Ae).append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new vr;return n.cell=e,n.row=e.row,n.column=e.column,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createErrorCell=function(e,t){void 0===t&&(t=void 0);var n=new vr;return n.question=e.question,n.row=e.row,n.matrix=this.matrix,n.isErrorsCell=!0,n.className=(new Ae).append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(t=e.getVisibleMultipleChoices())&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t,n){e.className=(new Ae).append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).append(n,!!n).toString()},t.prototype.createHeaderCell=function(e,t,n){void 0===t&&(t=null);var r=e?this.createTextCell(e.locTitle):this.createEmptyCell();return r.column=e,this.setHeaderCell(e,r),t||(t=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(r,t,n),r},t.prototype.setHeaderCell=function(e,t){this.setCellWidth(e,t)},t.prototype.setCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var t=new vr;return t.locTitle=e,this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(e){void 0===e&&(e=!1);var t=this.createTextCell(null);return t.isEmpty=!0,t.className=(new Ae).append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),t},gr([b({onPush:function(e,t,n){n.updateRenderedRows()},onRemove:function(e,t,n){n.updateRenderedRows()}})],t.prototype,"rows",void 0),gr([b()],t.prototype,"_renderedRows",void 0),t}(xe),_r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xr=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(t)}return e.prototype.updateCellQuestionTitleDueToAccessebility=function(e){var t=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!e||!e.getSurvey())return t.questionValue.title;var r=e.getAccessbilityText();return r?t.column.colOwner.getCellAriaLabel(r,t.questionValue.title):t.questionValue.title}},e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},C.getProperties(e.getType()).forEach(function(t){var n=t.name;void 0!==e[n]&&(o[n]=e[n])}),o},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.getQuestionWrapperClassName=function(e){return e},e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),Er=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.column=t,o.row=n,o.data=r,o.updateCellQuestion(),o}return _r(t,e),t.prototype.createQuestion=function(e,t,n){var r=M.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(t){var n=e.prototype.getQuestionWrapperClassName.call(this,t);if(!n)return n;this.question.expression&&"''"!=this.question.expression&&(n+=" "+t+"--expression");var r=this.column.totalAlignment;return"auto"===r&&"dropdown"===this.column.cellType&&(r="left"),n+" "+t+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return V.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(xr),Sr=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o.parentTextProcessor=r,o}return _r(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==Pr.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):[Pr.RowValueVariableName,Pr.RowNameVariableName].indexOf(e.name)>-1&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(Jn),Pr=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new Sr(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(r.getSurvey().isDesignMode)return!0;r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),e.prototype.isRowEnabled=function(){return!0},e.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.visibleValue},set:function(e){var t;this.visible!==e&&(this.visibleValue=e,null===(t=this.data)||void 0===t||t.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),e.prototype.isItemVisible=function(){return!0},Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+xe.commentSuffix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.getCellValue(e,r.getValueName()),i=r.comment,s=e?e[r.getValueName()+xe.commentSuffix]:"";null==s&&(s=""),r.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,r.comment))&&r.updateCommentFromSurvey(s),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){!e&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.getDataRowValue();if(!s.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName(),o=this.editingObj?M.getObjPropertyValue(this.editingObj,r):t[r];s.isValueEmpty(o)||(e[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.data?this.data.getDataFilteredValues():{},t=this.validationValues;if(t)for(var n in t)e[n]=t[n];if(e.row=this.getAllValues(),this.data){var r=this.getDataRowValue();if(r)for(var n in r)void 0===e.row[n]&&(e.row[n]=r[n])}return this.applyRowVariablesToValues(e,this.rowIndex),e},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.getDataRowValue=function(){return this.data?this.data.getRowValue(this.data.getRowIndex(this)):null},e.prototype.applyRowVariablesToValues=function(t,n){t[e.IndexVariableName]=n,t[e.RowValueVariableName]=this.rowName,t[e.RowNameVariableName]=this.rowName},e.prototype.runCondition=function(t,n,r){if(this.data){t[e.OwnerVariableName]=this.data.getFilteredData();var o=this.rowIndex;this.applyRowVariablesToValues(t,o);var i=s.createCopy(n);i[e.RowVariableName]=this;var a=o>0?this.getDataRowValue():this.value;r?(t[e.RowVariableName]=a,this.setRowsVisibleIfValues(t),this.visible=new ge(r).run(t,n)):this.visible=!0;for(var l=0;l<this.cells.length;l++)l>0&&qt(this.value,a),t[e.RowVariableName]=a,this.cells[l].runCondition(t,i);this.detailPanel&&this.detailPanel.runCondition(t,i),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},e.prototype.updateElementVisibility=function(){this.cells.forEach(function(e){return e.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},e.prototype.setRowsVisibleIfValues=function(e){},e.prototype.getNamesWithDefaultValues=function(){var e=[];return this.questions.forEach(function(t){t.isValueDefault&&e.push(t.getValueName())}),e},e.prototype.clearValue=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].clearValue(e)},e.prototype.onAnyValueChanged=function(e,t){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var n=e.RowVariableName+".";if(0===t.indexOf(n))return this.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getEditingSurveyElement=function(){},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue&&!this.isCreatingDetailPanel){this.updateQuestionsValue(t,n,r),r||this.updateSharedQuestionsValue(t,n);var o=this.value,i=r?t+xe.commentSuffix:t,s=n,a=this.getQuestionByName(t),l=this.data.onRowChanging(this,i,o);if(a&&!this.isTwoValueEquals(l,s)&&(this.isSettingValue=!0,r?a.comment=l:a.value=l,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(a)){var u=null==n&&!a||r&&!n&&!!a;this.data.onRowChanged(this,i,o,u),i&&this.runTriggers(Or.RowVariableName+"."+i,o),this.onAnyValueChanged(e.RowVariableName,"")}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var r=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(r&&o){var i=this.isTwoValueEquals(t,n?r.comment:r.value)?o:r;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.updateSharedQuestionsValue=function(e,t){var n=this.getQuestionsByValueName(e);if(n.length>1)for(var r=0;r<n.length;r++)s.isTwoValueEquals(n[r].value,t)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(t),this.isSettingValue=!1)},e.prototype.runTriggers=function(e,t,n){(e||n)&&this.questions.forEach(function(r){return r.runTriggers(e,t,n)})},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getQuestionsByValueName=function(e){for(var t=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===e&&t.push(r.question)}return this.detailPanel&&(t=t.concat(this.detailPanel.getQuestionsByValueName(e))),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(Xt.matrix.totalsSuffix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,n,r,o,i)},e.prototype.onQuestionReadOnlyChanged=function(){for(var e=this.questions,t=0;t<e.length;t++){var n=e[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},e.prototype.hasErrors=function(e,t,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=t.validationValues;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(r=s.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=a||r}return this.validationValues=void 0,r},e.prototype.updateCellOnColumnChanged=function(e,t,n){"choices"===t&&Array.isArray(n)&&0===n.length&&this.data&&(n=this.data.choices),e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===r?i:n.value,l=Nn.getItemByValue(s,a);l&&(l[r]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n],o=this.createCell(r);this.cells.push(o);var i=this.getCellValue(e,r.name);if(!s.isValueEmpty(i)){o.question.value=i;var a=r.name+xe.commentSuffix;e&&!s.isValueEmpty(e[a])&&(o.question.comment=e[a])}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?M.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new xr(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),e.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),r=0;r<n.length;r++)n[r].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.RowNameVariableName="rowName",e.idCounter=1,e}(),Or=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return _r(t,e),t.prototype.createCell=function(e){return new Er(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n,r){var o,i=0;do{o=s.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n,""),i++}while(!s.isTwoValueEquals(o,this.value)&&i<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(Pr),Tr=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],function(){n.updateColumnsAndRows()}),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){n.clearRowsAndResetRenderedTable()}),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode","displayMode"],function(){n.resetRenderedTable()}),n}return _r(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return Xt.matrix.defaultCellType},set:function(e){Xt.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=ar.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)},function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData="vertical"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(t){var n=t.parent?this.detailErrorLocation:this.cellErrorLocation;return"default"!==n?n:e.prototype.getChildErrorLocation.call(this,t)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:Xt.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return M.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(e){this.renderedTableValue&&(this.lockResetRenderedTable||this.isUpdateLocked?e&&this.renderedTableValue.requireReset():(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback)))},t.prototype.clearGeneratedRows=function(){if(this.clearVisibleRows(),this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||this.isDisposed||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new Cr(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.columns.length;n++){t.column=this.columns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",Xt.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return M.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,r,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.updateDefaultRowValue(e),this.resetTableAndRows()},t.prototype.updateDefaultRowValue=function(e){var t=this.defaultRowValue;t&&"file"===e.cellType&&t[e.name]&&(delete t[e.name],0===Object.keys(t).length&&(t=void 0),this.defaultRowValue=t)},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,r),r.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);for(var r="",o=n.length-1;o>=0&&"."!=n[o];o--)r=n[o]+r;var i=void 0,s=this.getColumnByName(r);return s?i=s.createCellQuestion(null):"none"!==this.detailPanelMode&&(i=this.detailPanel.getQuestionByName(r)),i?i.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){var t=this.generatedVisibleRows;if(t)for(var n=0;n<t.length;n++){var r=t[n];if(r.isVisible)for(var o=0;o<r.cells.length;o++)e(r.cells[o].question)}},t.prototype.runCondition=function(t,n){var r=t[Pr.RowVariableName];e.prototype.runCondition.call(this,t,n);var o,i=0;do{o=s.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),i++}while(!s.isTwoValueEquals(o,this.totalValue)&&i<3);this.updateVisibilityBasedOnRows(),t[Pr.RowVariableName]=r},t.prototype.runTriggers=function(t,n,r){e.prototype.runTriggers.call(this,t,n,r),this.runFuncForCellQuestions(function(e){e.runTriggers(t,n,r)})},t.prototype.updateElementVisibility=function(){e.prototype.updateElementVisibility.call(this);var t=this.generatedVisibleRows;t&&t.forEach(function(e){return e.updateElementVisibility()}),this.updateShowTableAndAddRow()},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){var n=this.generatedVisibleRows;if(n)for(var r=this.getRowConditionValues(e),o=0;o<n.length;o++)n[o].runCondition(r,t,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,t){var n=this;return this.columns.forEach(function(r){if(n.columnsVisibleIf){var o=new ge(n.columnsVisibleIf);e.item=r.name,r.isColumnsVisibleIf=!0===o.run(e,t)}else r.isColumnsVisibleIf=!0}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,t=0;t<this.columns.length;t++){var n=this.columns[t],r=!!n.visibleIf||n.isFilteredMultipleColumns;(r||this.columnsVisibleIf||!n.isColumnVisible)&&(e=this.isColumnVisibilityChanged(n,r)||e)}e&&this.resetRenderedTable(!0)}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var t=0;t<this.columns.length;t++){var n=this.columns[t];if(n.requiredIf&&n.isColumnVisible){for(var r=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){r=!1;break}n.updateIsRenderedRequired(r)}}},t.prototype.isColumnVisibilityChanged=function(e,t){var n=e.isColumnVisible,r=!t,o=this.generatedVisibleRows,i=t&&o,a=i&&e.isFilteredMultipleColumns,l=a?e.getVisibleChoicesInCell:[],u=new Array;if(i)for(var c=0;c<o.length;c++){var p=o[c].cells[e.index],d=null==p?void 0:p.question;if(d&&d.isVisible){if(r=!0,!a)break;this.updateNewVisibleChoices(d,u)}}return e.hasVisibleCell=r&&e.isColumnsVisibleIf,!(!a||(e.setVisibleChoicesInCell(u),s.isArraysEqual(l,u,!0,!1,!1)))||n!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,t){var n=e.visibleChoices;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r];t.indexOf(o.value)<0&&t.push(o.value)}},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=Xt.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){var n=new hr(e,t,this);return this.columns.push(n),n},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:(this.visibleRowsArray||(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows)),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;this.isUpdateLocked||this.generatedVisibleRows||this.generatedVisibleRows||(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data&&(this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.isValueChangedWithoutRows&&(this.isValueChangedWithoutRows=!1,this.runTriggersOnNewRows())),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.runTriggersOnNewRows=function(){var e=this,t=this.value;this.generatedVisibleRows.forEach(function(n){var r=e.getRowValueCore(n,t);if(!s.isValueEmpty(r)){var o=s.createCopyWithPrefix(r,Pr.RowVariableName+".");n.runTriggers("",void 0,o)}})},t.prototype.getVisibleFromGenerated=function(e){var t=[];return e?(e.forEach(function(e){e.isVisible&&t.push(e)}),t.length===e.length?e:t):t},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var o=e[r];if(!o.editingObj){var i=this.getRowValue(r),s=o.value;this.isTwoValueEquals(i,s)||(n=this.getNewValueOnRowChanged(o,"",s,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var t=this.generatedVisibleRows;if(e>=t.length)return null;var n=this.value,r=this.getRowValueCore(t[e],n);return this.isValueSurveyElement(n)?r:s.getUnbindValue(r)},t.prototype.checkIfValueInRowDuplicated=function(e,t){return!!this.generatedVisibleRows&&this.isValueInColumnDuplicated(t.name,!0,e)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new Or(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,n[i]);e&&s.title&&s.title!==i?(n[s.title]=a,delete n[i]):n[i]=a}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(e){var r={name:e.dataName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map(function(e){return e.question.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){r[t.propertyName]=e[t.propertyName]}),r}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,t){var n=[].concat(this.columns);"none"!==this.detailPanelMode&&(n=n.concat(this.detailPanel.questions));var r=!!t&&n.indexOf(t)>-1,o=!0===t||r,i=this.getConditionObjectsRowIndeces();o&&i.push(-1);for(var s=0;s<i.length;s++){var a=i[s],l=a>-1?this.getConditionObjectRowName(a):"row";if(l)for(var u=a>-1?this.getConditionObjectRowText(a):"row",c=a>-1||!0===t,p=c&&-1===a?".":"",d=(c?this.getValueName():"")+p+l+".",f=(c?this.processedTitle:"")+p+u+".",h=0;h<n.length;h++){var m=n[h];if(-1!==a||t!==m){var g={name:d+m.name,text:f+m.fullTitle,question:this};-1===a&&!0===t?g.context=this:r&&d.startsWith("row.")&&(g.context=t),e.push(g)}}}},t.prototype.onHidingContent=function(){if(e.prototype.onHidingContent.call(this),this.generatedVisibleRows){var t=[];this.collectNestedQuestions(t,!0),t.forEach(function(e){return e.onHidingContent()})}},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1,!1),e},t.prototype.collectNestedQuestionsCore=function(e,t,n){n&&e.push(this),this.collectNestedQuestonsInRows(this.visibleRows,e,t,n)},t.prototype.collectNestedQuestonsInRows=function(e,t,n,r){Array.isArray(e)&&e.forEach(function(e){e.questions.forEach(function(e){return e.collectNestedQuestions(t,n,r)})})},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.getIsRequireToGenerateRows()&&this.generateVisibleRowsIfNeeded(),this.generatedVisibleRows)return ft.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=xe.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.getIsRequireToGenerateRows=function(){return!!this.rowsVisibleIf},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(r.templateQuestion.hasInput){var o=!s.isValueEmpty(t[r.name]);!o&&r.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=r.isRequired,e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&r.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(t){e.push(t)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var o=n[r].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||r||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this,r=this.generatedVisibleRows;this.generatedVisibleRows||(r=this.visibleRows);var o=!1;if(t||(t={}),!r)return t;t.validationValues=this.getDataFilteredValues(),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<r.length;i++)r[i].isVisible&&(o=r[i].hasErrors(e,t,function(){n.raiseOnCompletedAsyncValidators()})||o);return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n],!0)||t;return t},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t].name);return e},t.prototype.isValueInColumnDuplicated=function(e,t,n){var r=this.getDuplicatedRows(e);return t&&this.showDuplicatedErrorsInRows(r,e),this.removeDuplicatedErrorsInRows(r,e),n?r.indexOf(n)>-1:r.length>0},t.prototype.getDuplicatedRows=function(e){for(var t={},n=[],r=this.generatedVisibleRows,o=0;o<r.length;o++){var i=void 0,s=r[o].getQuestionByName(e);if(s)i=s.value;else{var a=this.getRowValue(o);i=a?a[e]:void 0}this.isValueEmpty(i)||(this.isUniqueCaseSensitive||"string"!=typeof i||(i=i.toLocaleLowerCase()),t[i]||(t[i]=[]),t[i].push(r[o]))}for(var l in t)t[l].length>1&&t[l].forEach(function(e){return n.push(e)});return n},t.prototype.showDuplicatedErrorsInRows=function(e,t){var n=this;e.forEach(function(e){var r=e.getQuestionByName(t),o=n.detailPanel.getQuestionByName(t);!r&&o&&(e.showDetailPanel(),e.detailPanel&&(r=e.detailPanel.getQuestionByName(t))),r&&(o&&e.showDetailPanel(),n.addDuplicationError(r))})},t.prototype.removeDuplicatedErrorsInRows=function(e,t){var n=this;this.generatedVisibleRows.forEach(function(r){if(e.indexOf(r)<0){var o=r.getQuestionByName(t);o&&n.removeDuplicationError(r,o)}})},t.prototype.getDuplicationError=function(e){for(var t=e.errors,n=0;n<t.length;n++)if("keyduplicationerror"===t[n].getErrorType())return t[n];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new fn(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,t){t.removeError(this.getDuplicationError(t))&&0===t.errors.length&&e.editingObj&&(e.editingObj[t.getValueName()]=t.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e,t){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged)if(this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var n=this.generatedVisibleRows,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t);var o=this.visibleTotalRow;o&&o.onAnyValueChanged(e,t),this.isDoingonAnyValueChanged=!1}else e===this.getValueName()&&(this.isValueChangedWithoutRows=!0)},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){return e.getQuestionByName(t)},cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,r)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(!e[t].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return!this.isEmpty()&&this.generatedVisibleRows&&this.hasInvisibleRows?this.getFilteredDataCore():this.value},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),o=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var o=t?this.getRowObj(e):null;if(o){var i=null;n&&!r&&(i=n[t]),this.isRowChanging=!0,M.setObjPropertyValue(o,t,i),this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}this.getUniqueColumnsNames().indexOf(t)>-1&&this.isValueInColumnDuplicated(t,!!o)},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);if(r&&delete i[t],e.questions.forEach(function(e){delete i[e.getValueName()]}),n)for(var s in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[s])||(i[s]=n[s]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o=this.correctValueForMinMaxRows(o),rowValue:i}},t.prototype.correctValueForMinMaxRows=function(e){return e},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var n;return void 0===t&&(t=!1),n="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new Ae).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new Ae).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=(new Ae).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,r.toString());var o=(new Ae).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){var t=this;if(this.isDesignMode)return this.detailPanel;var n=this.createNewDetailPanel();n.readOnly=this.isReadOnly||!e.isRowEnabled(),n.setSurveyImpl(e);var r=this.detailPanel.toJSON();return(new R).toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,n),n.questions.forEach(function(e){return e.setParentQuestion(t)}),n.onSurveyLoad(),n},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+Xt.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;!this.isEmpty()&&this.isRowsFiltered()&&((null===(e=this.survey)||void 0===e?void 0:e.questionsByValueName(this.getValueName()))||[]).length<2&&(this.value=this.getFilteredData())},t.prototype.isRowsFiltered=function(){return e.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof Or?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof Or?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.onMobileChanged=function(){e.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return(new Ae).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(t){e.prototype.afterRenderQuestionElement.call(this,t),this.setRootElement(null==t?void 0:t.parentElement)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(Yn);M.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(e){return!!e&&"none"!=e.detailPanelMode}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(e){return e.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return hr.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new Tr("")},"matrixbase");var kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ar=function(e){function t(t,n,r,o){var i=e.call(this,r,o)||this;return i.name=t,i.item=n,i.buildCells(o),i}return kr(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(Pr),Ir=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return kr(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var o=0;o<n.length;o++){var i=n[o].rowName,s=t[i];if(s){if(e){var a=Nn.getTextOrHtmlByValue(this.rows,i);a&&(i=a)}r[i]=this.getRowDisplayValue(e,n[o],s)}}return r},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.isNewValueCorrect=function(e){return s.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var t={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(t[r]=n[r])}this.value=t}e.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var t=this.generatedVisibleRows;if(!t)return null;for(var n=0;n<t.length;n++)if(t[n].rowName===e)return t[n];return null},t.prototype.clearGeneratedRows=function(){var t=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(e){t.defaultValuesInRows[e.rowName]=e.getNamesWithDefaultValues()}),e.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,t){var n=e[t];if(!n)return n;var r=this.defaultValuesInRows[t];return Array.isArray(r)&&0!==r.length?(r.forEach(function(e){delete n[e]}),n):n},t.prototype.generateRows=function(){var e=new Array,t=this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++){var o=t[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.getRowValueForCreation(n,o.value)))}return e},t.prototype.createMatrixRow=function(e,t){return new Ar(e.value,e,this,t)},t.prototype.getFilteredDataCore=function(){var e={},t=this.createValueCopy();return this.generatedVisibleRows.forEach(function(n){var r=t[n.rowName];n.isVisible&&!s.isValueEmpty(r)&&(e[n.rowName]=r)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.getIsRequireToGenerateRows=function(){if(e.prototype.getIsRequireToGenerateRows.call(this))return!0;for(var t=0;t<this.rows.length;t++)if(this.rows[t].visibleIf)return!0;return!1},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){var r=t[this.rows[n].value];this.updateProgressInfoByRow(e,r||{})}},t}(Tr);M.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new Ir("")},"matrixdropdownbase"),ar.Instance.registerQuestion("matrixdropdown",function(e){var t=new Ir(e);return t.choices=[1,2,3,4,5],t.rows=ar.DefaultRows,Tr.addDefaultColumns(t),t});var Rr,Mr=!1,Dr=null;"undefined"!=typeof navigator&&navigator&&r.isAvailable()&&(Dr=navigator.userAgent||navigator.vendor||r.hasOwn("opera")),(Rr=Dr)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(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/i.test(Rr)||/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(Rr.substring(0,4)))&&(Mr=!0);var Lr=Mr||!1,Nr={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return r.isAvailable()&&(r.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},Vr=r.matchMedia;Nr.hasMouse=function(e){if(!e)return!1;if(Lr)return!1;var t=e("(pointer:fine)"),n=e("(any-hover:hover)");return!!t&&t.matches||!!n&&n.matches}(Vr);var jr=Nr.isTouch;function Fr(e){jr=e}"undefined"!=typeof window&&window.addEventListener("touchmove",function(e){zr.PreventScrolling&&e.preventDefault()},{passive:!1});var zr=function(){function e(t,n,r){var o=this;void 0===n&&(n=!0),void 0===r&&(r=!1),this.dd=t,this.longTap=n,this.fitToContainer=r,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),o.currentX=e.pageX,o.currentY=e.pageY,o.isMicroMovement||(o.returnUserSelectBack(),o.stopLongTap())},this.stopLongTap=function(e){clearTimeout(o.timeoutID),o.timeoutID=null,document.removeEventListener("pointerup",o.stopLongTap),document.removeEventListener("pointermove",o.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){o.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&o.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){o.moveShortcutElement(e),o.draggedElementShortcut.style.cursor="grabbing",o.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(o.scrollIntervalId),document.removeEventListener("pointermove",o.dragOver),document.removeEventListener("pointercancel",o.handlePointerCancel),document.removeEventListener("keydown",o.handleEscapeButton),document.removeEventListener("pointerup",o.drop),o.draggedElementShortcut.removeEventListener("pointerup",o.drop),jr&&o.draggedElementShortcut.removeEventListener("contextmenu",o.onContextMenu),o.draggedElementShortcut.parentElement.removeChild(o.draggedElementShortcut),o.dd.clear(),o.draggedElementShortcut=null,o.scrollIntervalId=null,jr&&(o.savedTargetNode.style.cssText=null,o.savedTargetNode&&o.savedTargetNode.parentElement.removeChild(o.savedTargetNode),o.insertNodeToParentAtIndex(o.savedTargetNodeParent,o.savedTargetNode,o.savedTargetNodeIndex),e.PreventScrolling=!1),o.savedTargetNode=null,o.savedTargetNodeParent=null,o.savedTargetNodeIndex=null,o.returnUserSelectBack()},this.drop=function(){o.dd.drop(),o.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"documentOrShadowRoot",{get:function(){return Xt.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rootElement",{get:function(){return Ct(Xt.environment.root)?this.rootContainer||Xt.environment.root.host:this.rootContainer||Xt.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){i.doStartDrag(e,t,n,r),o||(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n          position: absolute;\n          height: 1px!important;\n          width: 1px!important;\n          overflow: hidden;\n          clip: rect(1px 1px 1px 1px);\n          clip: rect(1px, 1px, 1px, 1px);\n        ",i.savedTargetNodeParent=i.savedTargetNode.parentElement,i.savedTargetNodeIndex=i.getNodeIndexInParent(i.savedTargetNode),i.rootElement.appendChild(i.savedTargetNode)),i.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){var t=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(e.clientY,e.clientX);var i=this.draggedElementShortcut.offsetHeight,s=this.draggedElementShortcut.offsetWidth,a=this.draggedElementShortcut.shortcutXOffset||s/2,l=this.draggedElementShortcut.shortcutYOffset||i/2;0!==document.querySelectorAll("[dir='rtl']").length&&(a=s/2,l=i/2);var u=document.documentElement.clientHeight,c=document.documentElement.clientWidth,p=e.pageX,d=e.pageY,f=e.clientX,h=e.clientY;t-=r,n-=o;var m=this.getShortcutBottomCoordinate(h,i,l);return this.getShortcutRightCoordinate(f,s,a)>=c?(this.draggedElementShortcut.style.left=c-s-t+"px",void(this.draggedElementShortcut.style.top=h-l-n+"px")):f-a<=0?(this.draggedElementShortcut.style.left=p-f-t+"px",void(this.draggedElementShortcut.style.top=h-n-l+"px")):m>=u?(this.draggedElementShortcut.style.left=f-a-t+"px",void(this.draggedElementShortcut.style.top=u-i-n+"px")):h-l<=0?(this.draggedElementShortcut.style.left=f-a-t+"px",void(this.draggedElementShortcut.style.top=d-h-n+"px")):(this.draggedElementShortcut.style.left=f-t-a+"px",void(this.draggedElementShortcut.style.top=h-n-l+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,n){return e+t-n},e.prototype.getShortcutRightCoordinate=function(e,t,n){return e+t-n},e.prototype.requestAnimationFrame=function(e){return requestAnimationFrame(e)},e.prototype.scrollByDrag=function(e,t,n){var r,o,i,s,a=this,l=100;"HTML"===e.tagName?(r=0,o=document.documentElement.clientHeight,i=0,s=document.documentElement.clientWidth):(r=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=e.getBoundingClientRect().left,s=e.getBoundingClientRect().right);var u=function(){var c=t-r<=l,p=o-t<=l,d=n-i<=l,f=s-n<=l;!c||d||f?!p||d||f?!f||c||p?!d||c||p||(e.scrollLeft-=15):e.scrollLeft+=15:e.scrollTop+=15:e.scrollTop-=15,a.scrollIntervalId=a.requestAnimationFrame(u)};this.scrollIntervalId=this.requestAnimationFrame(u)},e.prototype.doScroll=function(e,t){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(t,e);this.draggedElementShortcut.style.display=n||"block";var o=xt(r);this.scrollByDrag(o,e,t)},e.prototype.doStartDrag=function(t,n,r,o){jr&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,n,r,o),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),jr?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},e.prototype.startDrag=function(e,t,n,r,o){void 0===o&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),jr?this.startLongTapProcessing(e,t,n,r,o):this.doStartDrag(e,t,n,r)},e.prototype.getNodeIndexInParent=function(e){return function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.parentElement.childNodes).indexOf(e)},e.prototype.insertNodeToParentAtIndex=function(e,t,n){e.insertBefore(t,e.childNodes[n])},e.PreventScrolling=!1,e}(),Br=function(){function e(e,t,n,r){var o,i=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new Pe,this.onDragStart=new Pe,this.onDragEnd=new Pe,this.onDragClear=new Pe,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){i.allowDropHere=!1,i.doBanDropHere(),i.dropTarget=null,i.domAdapter.draggedElementShortcut.style.cursor="not-allowed",i.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new zr(this,n,null===(o=this.survey)||void 0===o?void 0:o.fitToContainer)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){var e;return this.surveyValue||(null===(e=this.creator)||void 0===e?void 0:e.survey)},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,n,r,o){void 0===o&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(e,t,n,r,o)},e.prototype.getRootElement=function(e,t){return t?t.rootElement:e.rootElement},e.prototype.dragInit=function(e,t,n,r){this.draggedElement=t,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,e),this.onStartDrag(e);var i=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:i,draggedElement:this.draggedElement})},e.prototype.onStartDrag=function(e){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return null==e?void 0:e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,n){var r=o.createElement("div");return r&&(r.innerText=e,r.className=this.getDraggedElementClass()),r},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!o.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(e,t);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var i=0,s=r[i];s&&s.className&&"function"==typeof s.className.indexOf&&-1!=s.className.indexOf("sv-drag-target-skipped");)s=r[++i];return s?this.findDropTargetNodeByDragOverNode(s):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach(function(e){n+=t.capitalizeFirstLetter(e)}),e.dataset[n]},e.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),n){var r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(r)||(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent,t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},e}(),Hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ur=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return Hr(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=o.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new Ae).append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=this,i=o.createElement("div");if(i){if(i.className=this.shortcutClass,t){var s=t.closest("[data-sv-drop-target-matrix-row]"),a=s.cloneNode(!0);a.style.cssText="\n        width: "+s.offsetWidth+"px;\n      ",a.classList.remove("sv-matrix__drag-drop--moveup"),a.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,i.appendChild(a);var l=t.getBoundingClientRect();i.shortcutXOffset=n.clientX-l.x,i.shortcutYOffset=n.clientY-l.y}return this.parentElement.renderedTable.rows.forEach(function(e,t){e.row===r.draggedElement&&(e.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),i}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter(function(t){return t.row&&t.row.id===e})[0].row},t.prototype.canInsertIntoThisRow=function(e){var t=this.parentElement.lockedRowCount;return t<=0||e.rowIndex>t},t.prototype.isDropTargetValid=function(e,t){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map(function(e){return e.row});return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,i,s=this.parentElement.renderedTable.rows;s.forEach(function(e,t){e.row===n.dropTarget&&(r=t),e.row===n.draggedElement&&(o=t,(i=e).isGhostRow=!0)}),s.splice(o,1),s.splice(r,0,i),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach(function(e){e.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var t=o.getBody();t&&(t.style.userSelect=this.restoreUserSelectValue||"initial"),e.prototype.clear.call(this)},t}(Br),qr=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){jr?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,o.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(o.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}(),Wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$r=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return Wr(t,e),t.prototype.getRowIndex=function(){var t=e.prototype.getRowIndex.call(this);return t>0?t:this.index+1},Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||""+e},enumerable:!1,configurable:!0}),t}(Pr),Qr=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(e,t){n.dragDropMatrixRows.startDrag(e,n.draggedRow,n,e.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){n.updateShowTableAndAddRow()}),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],function(){n.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new qr(n.startDragMatrixRow),n}return Wr(t,e),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.dragDropMatrixRows=new Ur(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName||!this.isDragHandleAreaValid(t)},t.prototype.isDragHandleAreaValid=function(e){return"icon"!==this.survey.matrixDragHandleArea||e.classList.contains(this.cssClasses.dragElementDecorator)},t.prototype.onPointerDown=function(e,t){t&&this.isRowsDragAndDrop&&!this.isDesignMode&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){return this.minRowCount<1||this.isEmpty()?e.prototype.valueFromData.call(this,t):this.correctValueForMinMaxRows(t)},t.prototype.correctValueForMinMaxRows=function(e){Array.isArray(e)||(e=[]);for(var t=e.length;t<this.minRowCount;t++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var n=this.createNewValue();if(Array.isArray(n)||!(Math.max(e,t)>=n.length)){var r=n[e];n.splice(e,1),n.splice(t,0,r),this.value=n}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!((e=s.getNumber(e))<0||e>Xt.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(t,n){e.prototype.updateBindingProp.call(this,t,n);var r=this.generatedVisibleRows;if("rowCount"===t&&Array.isArray(r)){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var i=!1,s=o.length;s<r.length;s++)i||(i=!r[s].isEmpty),o.push(r[s].value||{});i&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){var r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new Gr(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>Xt.matrix.maxRowCount&&(e=Xt.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var t=e.rowIndex-1;return!(this.lockedRowCount>0&&t<this.lockedRowCount)&&this.survey.matrixAllowRemoveRow(this,t,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(0===this.visibleRows.length)return null;for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(e){var t=this.rowCount,n=this.canAddRow,r={question:this,canAddRow:n,allow:n};if(this.survey&&this.survey.matrixBeforeRowAdded(r),(n!==r.allow?r.allow:n!==r.canAddRow?r.canAddRow:n)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var o=this.getQuestionToFocusOnAddingRow();o&&o.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var r=this.visibleRows;if(this.isValueEmpty(t)&&r.length>0){var o=r[r.length-1];this.isValueEmpty(o.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],o.value)||(n[n.length-1]=o.value,this.value=n))}}this.survey&&(r=this.visibleRows,e+1==this.rowCount&&r.length>0&&(o=r[r.length-1],this.survey.matrixRowAdded(this,o),this.onRowsChanged()))},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&((t=t||{})[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var t=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];t&&t.focus()}},t.prototype.getActionCellIndex=function(e){var t=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+t:this.visibleRows.indexOf(e)+t},t.prototype.removeRowUI=function(e){var t=this;if(e&&e.rowName){var n=this.visibleRows.indexOf(e);if(n<0)return;e=n}this.removeRow(e,void 0,function(){var e=t.visibleRows.length,r=n>=e?e-1:n,o=r>-1?t.visibleRows[r]:void 0;setTimeout(function(){o?t.renderedTable.focusActionCell(o,t.getActionCellIndex(o)):t.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t,n){var r=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var o=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t?vt({message:this.confirmDeleteText,funcOnYes:function(){r.removeRowAsync(e,o),n&&n()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):(this.removeRowAsync(e,o),n&&n())}},t.prototype.removeRowAsync=function(e,t){t&&this.survey&&!this.survey.matrixRowRemoving(this,e,t)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t))},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(e,r[o],i))}return n},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),n=0;n<Math.min(Xt.matrix.maxRowCountInCondition,t);n++)e.push(n);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n,r){e.prototype.onCheckForErrors.call(this,t,n,r),!n&&this.hasErrorInMinRows()&&t.push(new dn(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var t=e.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&t.indexOf(n)<0&&t.push(n),t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new $r(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var n=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(n.length-e.length)>1||n.length===e.length)return!1;var r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];var o=n[r];n.splice(r,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i=void 0;t&&t.editingObj===e[r]?i=t:(t=void 0,i=this.createMatrixRow(e[r])),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,r)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(t,n){if(void 0===n&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&s.isValueEmpty(t)&&!s.isValueEmpty(this.defaultRowValue)){t=[];for(var r=0;r<this.minRowCount;r++)t.push(s.createCopy(this.defaultRowValue))}e.prototype.updateValueFromSurvey.call(this,t,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],t=this.createValueCopy();if(!Array.isArray(t))return e;for(var n=this.generatedVisibleRows,r=0;r<n.length&&r<t.length;r++){var o=t[r];n[r].isVisible&&!s.isValueEmpty(o)&&e.push(o)}return e},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){if(!Array.isArray(e))return e;for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new Ae).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new Ae).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new Ae).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(Tr),Gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wr(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(Cr);M.addClass("matrixdynamic",[{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:Xt.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],function(){return new Qr("")},"matrixdropdownbase"),ar.Instance.registerQuestion("matrixdynamic",function(e){var t=new Qr(e);return t.choices=[1,2,3,4,5],Tr.addDefaultColumns(t),t});var Yr={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:Zr;return e||(e=Zr),e},getAvailableThemes:function(){return Object.keys(this).filter(function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)})}},Zr={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsContainer:"sd-paneldynamic__tabs-container",tabsContainerWithHeader:"sd-paneldynamic__tabs-container--with-header",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",number:"sd-page__num",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question",confirmDialog:"sd-popup--confirm sv-popup--confirm"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-check-16x16",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-check-16x16"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootResponsive:"sd-imagepicker--responsive",rootStatic:"sd-imagepicker--static",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-check-24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-drag-24x24",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator",page:"sd-file__page"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-check-16x16",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},Kr="defaultV2";Yr[Kr]=Zr;var Xr=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return Xt.web.surveyServiceUrl},set:function(e){Xt.web.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(e,t){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+e),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);t(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+e+"&clientId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response),t=e?e.survey:null,o=e?e.isCompleted:null;n(200==r.status,t,o,r.response)},r.send()},e.prototype.canSendResult=function(e){return!this.isSurveJSIOService||JSON.stringify(e).length<65536},Object.defineProperty(e.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf("surveyjs.io")>=0},enumerable:!1,configurable:!0}),e.prototype.sendResult=function(e,t,n,r,o){void 0===r&&(r=null),void 0===o&&(o=!1),this.canSendResult(t)?this.sendResultCore(e,t,n,r,o):n(!1,u("savingExceedSize",this.locale),void 0)},e.prototype.sendResultCore=function(e,t,n,r,o){void 0===r&&(r=null),void 0===o&&(o=!1);var i=new XMLHttpRequest;i.open("POST",this.serviceUrl+"/post/"),i.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:e,surveyResult:JSON.stringify(t)};r&&(s.clientId=r),o&&(s.isPartialCompleted=!0);var a=JSON.stringify(s);i.onload=i.onerror=function(){n&&n(200===i.status,i.response,i)},i.send(a)},e.prototype.sendFile=function(e,t,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(200==r.status,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",t),o.append("postId",e),r.send(o)},e.prototype.getResult=function(e,t,n){var r=new XMLHttpRequest,o="resultId="+e+"&name="+t;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=null,t=null;if(200==r.status)for(var o in t=[],(e=JSON.parse(r.response)).QuestionResult){var i={name:o,value:e.QuestionResult[o]};t.push(i)}n(200==r.status,e,t,r.response)},r.send()},e.prototype.isCompleted=function(e,t,n){var r=new XMLHttpRequest,o="resultId="+e+"&clientId="+t;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=null;200==r.status&&(e=JSON.parse(r.response)),n(200==r.status,e,r.response)},r.send()},Object.defineProperty(e.prototype,"serviceUrl",{get:function(){return e.serviceUrl||""},enumerable:!1,configurable:!0}),e}(),Jr={setTimeout:function(e){return Jr.safeTimeOut(e,1e3)},clearTimeout:function(e){clearTimeout(e)},safeTimeOut:function(e,t){return t<=0?(e(),0):setTimeout(e,t)},now:function(){return Date.now()}},eo=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new Pe,this.onTimer=this.onTimerTick}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimerTick.add(e),this.prevTimeInMs=Jr.now(),this.timerId<0&&(this.timerId=Jr.setTimeout(function(){t.doTimer()})),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimerTick.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(Jr.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimerTick.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=Jr.now(),n=Math.floor((t-this.prevTimeInMs)/1e3);this.prevTimeInMs=t,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=Jr.setTimeout(function(){e.doTimer()}))}},e.instanceValue=null,e}(),to=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),no=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ro=function(e){function t(t){var n=e.call(this)||this;return n.timerFunc=null,n.surveyValue=t,n.onCreating(),n}return to(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(t,n){e.doTimer(n.seconds)},this.setIsRunning(!0),this.update(),eo.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),eo.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(e){var t=this.survey.currentPage;if(t){var n=t.getMaxTimeToFinish();n>0&&n<t.timeSpent+e&&(e=n-t.timeSpent),t.timeSpent=t.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(t)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,n=t.spent,r=t.limit;r?(0==n?(this.progress=0,setTimeout(function(){e.progress=Math.floor((n+1)/r*100)/100},0)):n<=r&&(this.progress=Math.floor((n+1)/r*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new Ae).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new Ae).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),no([y()],t.prototype,"text",void 0),no([y()],t.prototype,"progress",void 0),no([y()],t.prototype,"clockMajorText",void 0),no([y()],t.prototype,"clockMinorText",void 0),no([y({defaultValue:0})],t.prototype,"spent",void 0),t}(xe),oo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),io=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},so=function(e){function t(t){var n=e.call(this)||this;return n.cssClasses=t,n.timeout=Xt.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new De,n.actionBar.updateCallback=function(e){n.actionBar.actions.forEach(function(e){return e.cssClasses={}})},n.css=n.cssClasses.root,n}return oo(t,e),t.prototype.getCssClass=function(e){return(new Ae).append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach(function(n){return n.visible=t.showActions&&t.actionsVisibility[n.id]===e})},t.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=!1),this.isDisplayed=!0,setTimeout(function(){r.updateActionsVisibility(t),r.message=e,r.active=!0,r.css=r.getCssClass(t),r.timer&&(clearTimeout(r.timer),r.timer=void 0),n||(r.timer=setTimeout(function(){r.timer=void 0,r.active=!1,r.css=r.getCssClass(t)},r.timeout))},1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t},io([y({defaultValue:!1})],t.prototype,"active",void 0),io([y({defaultValue:!1})],t.prototype,"isDisplayed",void 0),io([y()],t.prototype,"message",void 0),io([y()],t.prototype,"css",void 0),t}(xe),ao=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uo=function(){function e(e,t,n){this.cover=e,this.positionX=t,this.positionY=n}return e.prototype.calcRow=function(e){return"top"===e?1:"middle"===e?2:3},e.prototype.calcColumn=function(e){return"left"===e?1:"center"===e?2:3},e.prototype.calcAlignItems=function(e){return"left"===e?"flex-start":"center"===e?"center":"flex-end"},e.prototype.calcAlignText=function(e){return"left"===e?"start":"center"===e?"center":"end"},e.prototype.calcJustifyContent=function(e){return"top"===e?"flex-start":"middle"===e?"center":"flex-end"},Object.defineProperty(e.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return e.CLASSNAME+" "+e.CLASSNAME+"--"+this.positionX+" "+e.CLASSNAME+"--"+this.positionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){var e={};return e.gridColumn=this.calcColumn(this.positionX),e.gridRow=this.calcRow(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyle",{get:function(){var e={};return e.textAlign=this.calcAlignText(this.positionX),e.alignItems=this.calcAlignItems(this.positionX),e.justifyContent=this.calcJustifyContent(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),e.CLASSNAME="sv-header__cell",e}(),co=function(e){function t(){var t=e.call(this)||this;return t.cells=[],["top","middle","bottom"].forEach(function(e){return["left","center","right"].forEach(function(n){return t.cells.push(new uo(t,n,e))})}),t.init(),t}return ao(t,e),t.prototype.calcBackgroundSize=function(e){return"fill"===e?"100% 100%":"tile"===e?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=(new Ae).append("sv-header").append("sv-header__without-background","transparent"===this.backgroundColor&&!this.backgroundImage).append("sv-header__background-color--none","transparent"===this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&"transparent"!==this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth="survey"===this.inheritWidthFrom&&!!e&&"static"===e&&this.survey.renderedWidth,this.contentClasses=(new Ae).append("sv-header__content").append("sv-header__content--static","survey"===this.inheritWidthFrom&&!!e&&"static"===e).append("sv-header__content--responsive","container"===this.inheritWidthFrom||!!e&&"responsive"===e).toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=(new Ae).append("sv-header__background-image").append("sv-header__background-image--contain","contain"===this.backgroundImageFit).append("sv-header__background-image--tile","tile"===this.backgroundImageFit).toString()},t.prototype.fromTheme=function(t){e.prototype.fromJSON.call(this,t.header||{}),t.cssVariables&&(this.backgroundColor=t.cssVariables["--sjs-header-backcolor"],this.titleColor=t.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=t.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=St(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.survey&&!this.survey.isMobile||!this.survey?this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0:this.survey&&this.survey.isMobile&&this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var t=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(e,n){"widthMode"!=n.name&&"width"!=n.name||t.updateContentClasses()})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(t,n,r,o,i){e.prototype.propertyValueChanged.call(this,t,n,r),"backgroundColor"!==t&&"backgroundImage"!==t&&"overlapEnabled"!==t||this.updateHeaderClasses(),"inheritWidthFrom"===t&&this.updateContentClasses(),"backgroundImageFit"===t&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,t,n){var r=["top","middle","bottom"],o=r.indexOf(this.logoPositionY),i=r.indexOf(this.titlePositionY),s=r.indexOf(this.descriptionPositionY),a=["left","center","right"],l=a.indexOf(this.logoPositionX),u=a.indexOf(this.titlePositionX),c=a.indexOf(this.descriptionPositionX),p=[[0,0,0],[0,0,0],[0,0,0]];return p[o][l]=e,p[i][u]+=t,p[s][c]+=n,p.reduce(function(e,t){return e+Math.max.apply(Math,t)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var t=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=t?t.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],i=n?n.getBoundingClientRect().height:0,s=r?r.getBoundingClientRect().height:0,a=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(i,s,a)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||"transparent"!==this.backgroundColor},enumerable:!1,configurable:!0}),lo([y({defaultValue:0})],t.prototype,"actualHeight",void 0),lo([y()],t.prototype,"height",void 0),lo([y()],t.prototype,"mobileHeight",void 0),lo([y()],t.prototype,"inheritWidthFrom",void 0),lo([y()],t.prototype,"textAreaWidth",void 0),lo([y()],t.prototype,"textGlowEnabled",void 0),lo([y()],t.prototype,"overlapEnabled",void 0),lo([y()],t.prototype,"backgroundColor",void 0),lo([y()],t.prototype,"titleColor",void 0),lo([y()],t.prototype,"descriptionColor",void 0),lo([y({onSet:function(e,t){t.renderBackgroundImage=St(e)}})],t.prototype,"backgroundImage",void 0),lo([y()],t.prototype,"renderBackgroundImage",void 0),lo([y()],t.prototype,"backgroundImageFit",void 0),lo([y()],t.prototype,"backgroundImageOpacity",void 0),lo([y()],t.prototype,"logoPositionX",void 0),lo([y()],t.prototype,"logoPositionY",void 0),lo([y()],t.prototype,"titlePositionX",void 0),lo([y()],t.prototype,"titlePositionY",void 0),lo([y()],t.prototype,"descriptionPositionX",void 0),lo([y()],t.prototype,"descriptionPositionY",void 0),lo([y()],t.prototype,"logoStyle",void 0),lo([y()],t.prototype,"titleStyle",void 0),lo([y()],t.prototype,"descriptionStyle",void 0),lo([y()],t.prototype,"headerClasses",void 0),lo([y()],t.prototype,"contentClasses",void 0),lo([y()],t.prototype,"maxWidth",void 0),lo([y()],t.prototype,"backgroundImageClasses",void 0),t}(xe);M.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],function(){return new co});var po=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fo=function(e){this.type=e,this.timestamp=new Date},ho=function(e){function t(){var t=e.call(this)||this;return t.taskList=[],t.onAllTasksCompleted=t.addEvent(),t}return po(t,e),t.prototype.runTask=function(e,t){var n=this,r=new fo(e);return this.taskList.push(r),this.hasActiveTasks=!0,t(function(){return n.taskFinished(r)}),r},t.prototype.waitAndExecute=function(e){this.hasActiveTasks?this.onAllTasksCompleted.add(function(){e()}):e()},t.prototype.taskFinished=function(e){var t=this.taskList.indexOf(e);t>-1&&this.taskList.splice(t,1),this.hasActiveTasks&&0==this.taskList.length&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(xe),mo=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n},go=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.panel.removeElement(e),this.panel.addElement(t,n)},e.prototype.updateRowsOnElementAdded=function(e,t,n,r){n||((n=new mo(null,e)).target=e,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=t>0,n.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(n,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom)if(this.panel.isDesignModeV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var o=-1;n==t&&(o=t.elements.indexOf(e.target)),e.isBottom&&r++;var i=this.panel.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=r)&&r!=o&&(o>-1&&(t.elements.splice(o,1),o<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),o<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(e.target);var o=t.index;if(e.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var i=this.panel.findRowByElement(e.source);return!(i&&i.panel==r.panel&&1==i.elements.length&&i.index==o||(t.panel.rows.splice(o,0,r),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},e}(),yo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bo=function(e){function t(t,n){var r=e.call(this)||this;return r.effectiveWidth=t,r.questionTitleWidth=n,r}return yo(t,e),t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},vo([y()],t.prototype,"width",void 0),vo([y({onSet:function(e,t,n){e!==n&&(t.width=e)}})],t.prototype,"effectiveWidth",void 0),vo([y()],t.prototype,"questionTitleWidth",void 0),t}(xe);M.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(e){return new bo});var wo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Co=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_o=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},xo=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.visibleElementsAnimation=new lt(r.getVisibleElementsAnimationOptions(),function(e){r.setWidth(e),r.setPropertyValue("visibleElements",e)},function(){return r.visibleElements}),r.idValue=t.getRowId(),r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r.createNewArray("visibleElements"),r}return wo(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,t){var n=this;if(void 0===t&&(t=xt),o.isAvailable()){this._scrollableParent=t(e),this._scrollableParent===o.getDocumentElement()&&(this._scrollableParent=r.getWindow());var i=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!i,i&&(this._updateVisibility=function(){if(n.allowRendering){var t=function(e,t){if(void 0===t&&(t=0),void 0===Xt.environment||!e.offsetHeight)return!1;var n=Xt.environment.root,o=Ct(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,r.getInnerHeight())+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())}},this.lazyRenderingTimeout=setTimeout(function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()},10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),clearTimeout(this.lazyRenderingTimeout),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var t;return e.prototype.getIsAnimationAllowed.call(this)&&this.visible&&(null===(t=this.panel)||void 0===t?void 0:t.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,t=function(e){Gt(e),Qt(e,{width:Bt(e)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(e){return e.getWrapperElement()},getLeaveOptions:function(e){var n=e;return{cssClass:(e.isPanel?n.cssClasses.panel:n.cssClasses).leave,onBeforeRunAnimation:t,onAfterRunAnimation:Yt}},getEnterOptions:function(e){var n=e;return{cssClass:(e.isPanel?n.cssClasses.panel:n.cssClasses).enter,onBeforeRunAnimation:t,onAfterRunAnimation:Yt}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(!e.length)return this.visible=!1,void this.visibleElementsAnimation.cancel();this.visible=!0,this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]),(this.elements[t].isPanel||"paneldynamic"===this.elements[t].getType())&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var t,n=e.length;if(0!=n){for(var r=1===e.length,o=0,i=[],s=0;s<this.elements.length;s++)if((l=this.elements[s]).isVisible){l.isSingleInRow=r;var a=this.getElementWidth(l);a&&(l.renderWidth=this.getRenderedWidthFromWidth(a),i.push(l)),o<n-1&&!this.panel.isDefaultV2Theme&&!(null===(t=this.panel.parentQuestion)||void 0===t?void 0:t.isDefaultV2Theme)?l.rightIndent=1:l.rightIndent=0,o++}else l.renderWidth="";for(s=0;s<this.elements.length;s++){var l;!(l=this.elements[s]).isVisible||i.indexOf(l)>-1||(0==i.length?l.renderWidth=Number.parseFloat((100/n).toFixed(6))+"%":l.renderWidth=this.getRenderedCalcWidth(l,i,n))}}},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",o=0;o<t.length;o++)r+=" - "+t[o].renderWidth;var i=n-t.length;return i>1&&(r="("+r+")/"+i.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return s.isNumber(e)?e+"px":e},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new Ae).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,Co([y({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(xe),Eo=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.isQuestionsReady=!1,r.questionsValue=new Array,r._columns=void 0,r._columnsReady=!1,r.rowsAnimation=new lt(r.getRowsAnimationOptions(),function(e){r.setPropertyValue("visibleRows",e)},function(){return r.visibleRows}),r.isRandomizing=!1,r.onColumnPropertyValueChangedCallback=function(e,t,n,o,i){r._columnsReady&&(r.updateColumnWidth(r.gridLayoutColumns),r.updateRootStyle())},r.locCountRowUpdates=0,r.createNewArray("rows",function(e,t){r.onAddRow(e)},function(e){r.onRemoveRow(e)}),r.createNewArray("visibleRows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.id=t.getPanelId(),r.addExpressionProperty("visibleIf",function(e,t){r.visible=!0===t},function(e){return!r.areInvisibleElementsShowing}),r.addExpressionProperty("enableIf",function(e,t){r.readOnly=!1===t}),r.addExpressionProperty("requiredIf",function(e,t){r.isRequired=!0===t}),r.createLocalizableString("requiredErrorText",r),r.createLocalizableString("navigationTitle",r,!0).onGetTextCallback=function(e){return e||r.title||r.name},r.registerPropertyChangedHandlers(["questionTitleLocation"],function(){r.onVisibleChanged.bind(r),r.updateElementCss(!0)}),r.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){r.updateVisibleIndexes()}),r.registerPropertyChangedHandlers(["title"],function(){r.resetHasTextInTitle()}),r.dragDropPanelHelper=new go(r),r}return wo(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var t=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return t.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(t,n){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Gt,onAfterRunAnimation:Yt}},getEnterOptions:function(t,n){var r=e.cssClasses;return{cssClass:(new Ae).append(r.rowEnter).append(r.rowDelayedEnter,n.isDeletingRunning).toString(),onBeforeRunAnimation:Gt,onAfterRunAnimation:Yt}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(function(e){return e.visible}),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter(function(e){return e.visible})},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,n){this.blockAnimations(),e.prototype.setSurveyImpl.call(this,t,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(e){e.onPropertyValueChangedCallback=t.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(Xt.supportCreatorV2&&this.isPanel)&&this.showTitle&&Xt.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){void 0===e&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,t=0;t<e.length;t++){var n=e[t];n.isPanel&&n.deletePanel(),this.onRemoveElementNotifySurvey(n)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!(!this.hasTitle&&this.isDesignMode)&&(this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&Xt.designMode.showEmptyDescriptions)},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},t.prototype.getMarkdownHtml=function(t,n){return"navigationTitle"===n&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:e.prototype.getMarkdownHtml.call(this,t,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(!this.canRandomize(e)||this.isRandomizing)return!1;this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);var o=s.randomizeArray(t);return this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1,!0},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowEnter&&(t.rowEnter=e.rowEnter),e.rowLeave&&(t.rowLeave=e.rowLeave),e.rowDelayedEnter&&(t.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var t=this.questions;if(!e)return t;var n=[];return t.forEach(function(e){n.push(e),e.getNestedQuestions().forEach(function(e){return n.push(e)})}),n},t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var o=r.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);return t.length>0?t[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var t=[],n=this.questions,r=0;r<n.length;r++)n[r].getValueName()==e&&t.push(n[r]);return t},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),s.getUnbindValue(e)},t.prototype.collectValues=function(e,t){var n=this.elements;0===t&&(n=this.questions);for(var r=0;r<n.length;r++){var o=n[r];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var s=o;if(!s.isEmpty()){var a=s.getValueName();if(e[a]=s.value,this.data){var l=this.data.getComment(a);l&&(e[a+xe.commentSuffix]=l)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var o=n[r];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.data.getComment(r.getValueName());o&&(e[r.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return xe.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!this.validate(e,t,n)},t.prototype.validate=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!0!==(n=n||{fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(n.result=!1),this.hasErrorsCore(n),!n.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var t=this.questions.indexOf(e);if(!(t<0))for(var n=this.questions.length-1,r=t+5<n?t+5:n,o=t-5>0?t-5:0;o<=r;o++)if(o!==t){var i=this.questions[o];i.errors.length>0&&i.validate(!1)&&i.validate(!0)}},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.isPanel&&this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new nn(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=null,o=0;o<t.length;o++)if((n=t[o]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var i=n;i.validate(e.fireCallback,e)||(r||(r=i),e.firstErrorQuestion||(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!r&&this.errors.length>0&&(r=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=r)),e.fireCallback&&r&&(r===e.firstErrorQuestion&&e.focusOnFirstError?r.focus(!0):r.expandAllParents())},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var t=0;t<this.elements.length;t++)this.elements[t].updateElementVisibility();e.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.getFirstVisibleQuestion=function(){for(var e=this.questions,t=0;t<e.length;t++)if(e[t].isVisible)return e[t];return null},t.prototype.getFirstVisibleElement=function(){for(var e=this.elements,t=0;t<e.length;t++)if(e[t].isVisible)return e[t];return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,o){for(var i=0;i<t.length;i++){var s=t[i];n&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,n,r,o):r&&this.addElementsToListCore(e,s.getElementsInDesign(!1),n,r,o))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(t){var n=0,r=!1;t.elements.forEach(function(e){e.width&&(r=!0),n+=e.colSpan||1}),!r&&n>e&&(e=n)}),e},t.prototype.updateColumnWidth=function(e){var t,n=0,r=0;if(e.forEach(function(e){e.width?(n+=e.width,e.setPropertyValue("effectiveWidth",e.width)):r++}),r)for(var o=(t=(100-n)/r,Math.floor(100*t)/100),i=0;i<e.length;i++)e[i].width||e[i].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var t;e.prototype.updateRootStyle.call(this),null===(t=this.elements)||void 0===t||t.forEach(function(e){return e.updateRootStyle()})},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){return"left"===this.getQuestionTitleLocation()||this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){return this.elements.some(function(e){return e instanceof t?e.hasElementWithTitleLocationLeft():e instanceof Rn?"left"===e.getTitleLocation():void 0})},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),t=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)t=this.gridLayoutColumns.slice(0,e);else for(var n=this.gridLayoutColumns.length;n<e;n++){var r=new bo;r.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,t.push(r)}this._columns=t;try{this._columnsReady=!1,this.updateColumnWidth(t)}finally{this._columnsReady=!0}this.gridLayoutColumns=t},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var t=this.findRowByElement(e);if(!t||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var n=t.elements.length-1;n>=0&&t.elements[n].getPropertyValueWithoutDefault("colSpan");)n--;for(var r=t.elements.indexOf(e),o=0,i=0;i<r;i++)o+=t.elements[i].colSpan;var s=e.getPropertyValueWithoutDefault("colSpan");if(!s&&r===n){var a=0;for(i=0;i<t.elements.length;i++)i!==n&&(a+=t.elements[i].colSpan);s=this.columns.length-a}var l=this.columns.slice(o,o+(s||1));return e.setPropertyValue("effectiveColSpan",l.length),l},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return ft.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.isRunningConditions||this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows())},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new xo(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){e.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&e.updateRows()}),this.onRowsChanged())},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var t=this,n=this.findRowByElement(e),r=this.rows.indexOf(n),o=n.elements.indexOf(e);n.elements.splice(o,1),0==n.elements.length?this.rows.splice(r,1):!n.elements[0].startWithNewLine&&this.rows[r-1]?(n.elements.forEach(function(e){return t.rows[r-1].addElement(e)}),this.rows.splice(r,1)):n.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var t=this,n=this.elements.indexOf(e),r=this.elements[n+1],o=function(e){var n=t.createRowAndSetLazy(e);return t.isDesignModeV2&&n.setIsLazyRendering(!1),t.rows.splice(e,0,n),n},i=function(e,t,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=(r=e.elements).splice.apply(r,_o([t,n],o));return e.updateVisible(),s};if(r){var s=this.findRowByElement(r);if(s){var a=this.rows.indexOf(s),l=s.elements.indexOf(r);0==l?r.startWithNewLine?e.startWithNewLine||a<1?o(a).addElement(e):this.rows[a-1].addElement(e):i(s,0,0,e):e.startWithNewLine?i.apply(void 0,_o([o(a+1),0,0],[e].concat(i(s,l,s.elements.length)))):i(s,l,0,e)}}else 0==n||e.startWithNewLine?i(o(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e)},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,t){var n=this,r=this.survey,o=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),o&&(e.isPanel?r.panelAdded(e,t,this,this.root):r.questionAdded(e,t,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){n.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){n.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),this.isRandomizing||(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible(),r.visible&&!r.isNeedRender&&(r.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=this.getElementsForRows(),n=0;n<t.length;n++){var r=t[n],o=0==n||r.startWithNewLine,i=o?this.createRowAndSetLazy(e.length):e[e.length-1];o&&e.push(i),i.addElement(r)}return e.forEach(function(e){return e.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(this.blockRowsUpdates(),t.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.getAllRows=function(){var e=this,t=[];return this.rows.forEach(function(n){var r=[];n.elements.forEach(function(t){t.isPanel?r.push.apply(r,t.getAllRows()):"paneldynamic"==t.getType()&&(e.isDesignMode?r.push.apply(r,t.template.getAllRows()):t.panels.forEach(function(e){return r.push.apply(r,e.getAllRows())}))}),t.push(n),t.push.apply(t,r)}),t},t.prototype.findRowAndIndexByElement=function(e,t){if(!e)return{row:void 0,index:this.rows.length-1};t=t||this.rows;for(var n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return{row:t[n],index:n};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,t,n){void 0===t&&(t=function(){}),void 0===n&&(n=0);var r=this.getAllRows(),o=this.findRowAndIndexByElement(e,r),i=o.row,s=o.index;if(s>=0&&s<r.length){var a=[];a.push(i);for(var l=s-1;l>=s-n&&l>=0;l--)a.push(r[l]);this.forceRenderRows(a,t)}},t.prototype.forceRenderRows=function(e,t){var n=this;void 0===t&&(t=function(){});var r,o=(r=e.length,function(){--r<=0&&t()});e.forEach(function(e){return new ht(e.visibleElements,o)}),e.forEach(function(e){return n.forceRenderRow(e)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),!this.isLoadingFromJson))for(var e=this.questions,t=this.isVisible,n=0;n<e.length;n++){var r=e[n];t?r.updateValueWithDefaults():(r.clearValueIfInvisible("onHiddenContainer"),r.onHidingContent())}},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.questions.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){var t=this.getIsContentVisible(e);return this.visible&&t},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),r=n,o=0;o<this.elements.length;o++)r+=this.elements[o].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++)this.elements[n].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0)},t.prototype.insertElement=function(e,t,n){if(void 0===n&&(n="bottom"),t){this.blockRowsUpdates();var r=this.elements.indexOf(t),o=this.findRowByElement(t);"left"==n||"right"==n?"right"==n?(e.startWithNewLine=!1,r++):0==o.elements.indexOf(t)?(t.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r="top"==n?this.elements.indexOf(o.elements[0]):this.elements.indexOf(o.elements[o.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,r)}else this.addElement(e)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=ar.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=M.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){var n=this.elements.slice(),r=this.getIsPageVisible();this.isRunningConditions=!0;for(var o=0;o<n.length;o++)n[o].runCondition(e,t);this.runConditionCore(e,t);var i=this.getIsPageVisible();this.isRunningConditions=!1,r!==i&&this.childVisibilityChanged()}},t.prototype.onAnyValueChanged=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,n){this.dragDropPanelHelper.dragDropMoveElement(e,t,n)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(t){t.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(t){t.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.questionErrorLocation?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return(new Ae).append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,t=this.gridLayoutColumns.length-1;t>=0;t--)if(!this.gridLayoutColumns[t].isEmpty()){e=t;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,Co([b()],t.prototype,"gridLayoutColumns",void 0),Co([y({defaultValue:!0})],t.prototype,"showTitle",void 0),Co([y({defaultValue:!0})],t.prototype,"showDescription",void 0),Co([y()],t.prototype,"questionTitleWidth",void 0),t}(ft),So=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var e;null===(e=n.parent)||void 0===e||e.updateColumns()}),n}return wo(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t&&this.isPanel?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=s.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(t){this.isLoadingFromJson||this.locTitle.strChanged(),e.prototype.notifyStateChanged.call(this,t)},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||"default"===t.state||(e=t.name),e},n},t.prototype.beforeSetVisibleIndex=function(t){if(this.isPage)return e.prototype.beforeSetVisibleIndex.call(this,t);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=t),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"===this.showQuestionNumbers?-1:"onpanel"===this.showQuestionNumbers?0:e},t.prototype.hasParentInQuestionIndex=function(){if("onpanel"!==this.showQuestionNumbers)return!1;var e=this.questionStartIndex,t=e.indexOf(".");return t>-1&&t<e.length-1},t.prototype.isContinueNumbering=function(){return"off"!==this.showQuestionNumbers&&"onpanel"!==this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(t){if(this.isPanel&&!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){var e=this;return this.getPropertyValue("innerPaddingLeft",void 0,function(){return e.getIndentSize(e.innerIndent)})},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),e.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var t=this.survey.css;return t&&t.question&&t.question.indent?e*t.question.indent+"px":""}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof Rn||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t,n=this;if(!this.footerToolbarValue){var r=this.footerActions;this.hasEditButton&&r.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){n.cancelPreview()}}),r=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,r),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var o=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";o||(o=null===(t=this.cssClasses.panel)||void 0===t?void 0:t.footer),o&&(this.footerToolbarValue.containerCss=o),this.footerToolbarValue.setItems(r)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return"default"===this.state?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){if(this.isPage)return e.prototype.getCssError.call(this,t);var n=(new Ae).append(e.prototype.getCssError.call(this,t)).append(t.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(t){void 0===t&&(t=!0),this.forcusFirstQuestionOnExpand=t,e.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var t=this;if(this.forcusFirstQuestionOnExpand&&null!=this.survey&&!this.isLoadingFromJson){var n=this.getFirstQuestionToFocus(!1);n&&setTimeout(function(){!t.isDisposed&&t.survey&&t.survey.scrollElementToTop(n,n,null,n.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(t){return(new Ae).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,this.showPanelAsPage).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(t){var n;e.prototype.afterRenderCore.call(this,t),this.isPanel&&(null===(n=this.survey)||void 0===n||n.afterRenderPanel(this,t))},t}(Eo);M.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(e){return!!e&&e.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(e){return e.getSerializableColumnsValue()},visibleIf:function(e){return!!e&&!!e.survey&&e.survey.gridLayoutEnabled}},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],function(){return new Eo}),M.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return Xt.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(e){return e.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(e){return!!e.survey&&e.survey.gridLayoutEnabled}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(e){return e.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new So},"panelbase"),lr.Instance.registerElement("panel",function(e){return new So(e)});var Po=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new mo(e,t,n)},e.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:n=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(t),i=this.dragDropGetElementIndex(t,o);this.page.updateRowsRemoveElementFromRow(t,o);var s=[],a=[];if(!e&&o){if(this.page.isDesignModeV2){var l=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[i]&&o.panel.elements[i].startWithNewLine&&o.elements.length>1&&o.panel.elements[i]===r&&(s.push(t),a.push(o.panel.elements[i])),!(t.startWithNewLine&&o.elements.length>1)||o.panel.elements[i]&&o.panel.elements[i].startWithNewLine||a.push(t),l&&l.elements[0]===n&&l.elements[1]&&s.push(l.elements[1]),o.elements.length<=1&&s.push(t),t.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&a.push(t)}this.page.survey.startMovingQuestion(),n&&n.parent&&(o.panel==n.parent?(o.panel.dragDropMoveElement(n,t,i),i=-1):n.parent.removeElement(n)),i>-1&&o.panel.addElement(t,i),this.page.survey.stopMovingQuestion()}return s.map(function(e){e.startWithNewLine=!0}),a.map(function(e){e.startWithNewLine=!1}),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],o=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignModeV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var n=this.page.dragDropFindRow(t);if(n&&1==n.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!r&&s--,r&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}(),Oo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),To=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new Po(n),n}return Oo(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&"preview"===this.survey.state&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var t;if(!this.isStartPage){var n=null===(t=this.survey)||void 0===t?void 0:t.currentSingleElement;if(n)return n.page===this?[n]:[]}return e.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||e.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(t){this.isPageContainer?(t.parent=null,this.unregisterElementPropertiesChanged(t)):e.prototype.onRemoveElement.call(this,t)},t.prototype.getTemplate=function(){return this.isPanel?"panel":e.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.isPanel?this.cssClasses.panel.number:this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(t){e.prototype.setTitleValue.call(this,t),this.navigationLocStrChanged()},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},t.prototype.getMarkdownHtml=function(t,n){var r=e.prototype.getMarkdownHtml.call(this,t,n);return"navigationTitle"===n&&this.canShowPageNumber()&&r?this.num+". "+r:r},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(t){if(this.isPanel)return e.prototype.calcCssClasses.call(this,t);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,t.page),this.copyCssClasses(n.error,t.error),t.pageTitle&&(n.pageTitle=t.pageTitle),t.pageDescription&&(n.pageDescription=t.pageDescription),t.row&&(n.row=t.row),t.pageRow&&(n.pageRow=t.pageRow),t.rowMultiple&&(n.rowMultiple=t.rowMultiple),t.rowCompact&&(n.rowCompact=t.rowCompact),t.rowEnter&&(n.rowEnter=t.rowEnter),t.rowDelayedEnter&&(n.rowDelayedEnter=t.rowDelayedEnter),t.rowLeave&&(n.rowLeave=t.rowLeave),t.rowReplace&&(n.rowReplace=t.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?e.prototype.getCssPanelTitle.call(this):this.cssClasses.page?(new Ae).append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return!this.isPanel&&this.cssClasses.page&&this.survey?(new Ae).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){return this.isPanel?e.prototype.getCssError.call(this,t):(new Ae).append(e.prototype.getCssError.call(this,t)).append(t.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){var t;if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var n=this.elements,r=0;r<n.length;r++)n[r].isPanel&&n[r].randomizeElements(this.areQuestionsRandomized);if(this.randomizeElements(this.areQuestionsRandomized)){var o=null===(t=this.survey)||void 0===t?void 0:t.currentSingleElement;(null==o?void 0:o.page)===this&&(this.survey.currentSingleElement=this.getFirstVisibleElement())}}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id,!0,{block:"start"})},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(0!==this.timeLimit)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropPageHelper.dragDropStart(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,n)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var t=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==t&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){e.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){e.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(So);M.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new To},"panel");var ko=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ao=function(e){function t(t){var n=e.call(this)||this;return n.survey=t,n.onResize=n.addEvent(),n}return ko(t,e),t.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){void 0===e&&(e="center");var t=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(t+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(-1!==["footer","contentBottom"].indexOf(e)?"bottom":"top"),t+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(t+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(t+=" "+this.survey.css.progressButtonsFitSurveyWidth),t},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new Ae).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,t){return(new Ae).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof To||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var t=e.querySelector("."+this.survey.css.progressButtonsListContainer);return!!t&&t.scrollWidth>t.offsetWidth},t.prototype.isCanShowItemTitles=function(e){var t=e.querySelector("ul");if(!t||t.children.length<2)return!0;if(t.clientWidth>t.parentElement.clientWidth)return!1;for(var n=t.children[0].clientWidth,r=0;r<t.children.length;r++)if(Math.abs(t.children[r].clientWidth-n)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var t=e.querySelectorAll(".sd-progress-buttons__connector"),n=0;n<t.length;n++)t[n].style.width=""},t.prototype.adjustConnectors=function(e){var t=e.querySelector("ul");if(t)for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=this.showItemNumbers?36:20,o=(t.clientWidth-r)/(t.children.length-1)-r,i=0;i<n.length;i++)n[i].style.width=o+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return"defaultV2"===Yr.currentType&&"survey"===this.survey.progressBarInheritWidthFrom&&"static"==this.survey.widthMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return"defaultV2"===Yr.currentType&&this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return"defaultV2"!==Yr.currentType||this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var t="";return this.showItemNumbers&&(t+=this.survey.visiblePages.indexOf(e)+1),t},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(xe),Io=function(){function e(e,t,n){var r=this;this.model=e,this.element=t,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(e,t){if(r.viewModel.onUpdateScroller(e.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),e.showItemTitles){if(e.survey.isMobile)return r.prevWidth=t.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),void r.viewModel.onResize(r.canShowItemTitles);void 0!==r.timer&&clearTimeout(r.timer),r.timer=setTimeout(function(){(void 0===r.prevWidth||r.prevWidth<t.width&&!r.canShowItemTitles||r.prevWidth>t.width&&r.canShowItemTitles)&&(r.prevWidth=t.width,r.canShowItemTitles=e.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)}else r.model.adjustConnectors(r.element)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return e.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},e.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},e}();function Ro(e,t){return e.isDesignMode||t.focusFirstQuestion(),!0}function Mo(e){if(e.parentQuestion)return Mo(e.parentQuestion);for(var t=e.parent;t&&"page"!==t.getType()&&t.parent;)t=t.parent;return t&&"page"===t.getType()?t:null}function Do(e,t){var n=Lo(e,t),r=new Fe({items:n,searchEnabled:!1,locOwner:e});r.allowSelection=!1;var o=function(e,t){r.selectedItem=!!e&&r.actions.filter(function(t){return t.id===e.name})[0]||t};return o(e.currentPage,n[0]),e.onCurrentPageChanged.add(function(t,n){o(e.currentPage)}),e.onFocusInQuestion.add(function(e,t){o(Mo(t.question))}),e.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(Lo(e,t))},"toc"),r}function Lo(e,t){return(e.pages||[]).map(function(n){return new Ke({id:n.name,locTitle:n.locNavigationTitle,action:function(){return o.activeElementBlur(),t&&t(),n.isPage?e.tryNavigateToPage(n):n.isPanel?Ro(e,n):void 0},visible:new _e(function(){return n.isVisible&&!n.isStartPage})})})}function No(e,t){void 0===t&&(t=!1);var n=Vo.RootStyle;return t?n+" "+Vo.RootStyle+"--mobile":(n+=" "+Vo.RootStyle+"--"+(e.tocLocation||"").toLowerCase(),Vo.StickyPosition&&(n+=" "+Vo.RootStyle+"--sticky"),n)}var Vo=function(){function e(t){var n=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){n.popupModel.toggleVisibility()},this.listModel=Do(t,function(){n.popupModel.isVisible=!1}),this.popupModel=new He("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new _e(function(){return n.isMobile?"overlay":"popup"}),e.StickyPosition&&(t.onAfterRenderSurvey.add(function(e,t){return n.initStickyTOCSubscriptions(t.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return e.prototype.initStickyTOCSubscriptions=function(t){var n=this;e.StickyPosition&&t&&(t.addEventListener("scroll",function(e){n.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},e.prototype.updateStickyTOCSize=function(t){if(t){var n=t.querySelector("."+e.RootStyle);if(n&&(n.style.height="",!this.isMobile&&e.StickyPosition&&t)){var r=t.getBoundingClientRect().height,o="advanced"===this.survey.headerView?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),i=t.querySelector(o),s=i?i.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;n.style.height=r-a-1+"px"}}},Object.defineProperty(e.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerCss",{get:function(){return No(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},e.RootStyle="sv_progress-toc",e.StickyPosition=!0,e}(),jo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zo=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelValueChanged=r.addEvent(),r.onDynamicPanelItemValueChanged=r.onDynamicPanelValueChanged,r.onDynamicPanelValueChanging=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new Pe,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.nofifyQuesitonHash={},r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new ho,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(e){return"<h3>"+e+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new ro(r),r.timerModelValue.onTimerTick=function(e){r.doTimer(e)},r.createNewArray("pages",function(e){e.isReadyForCleanChangedCallback&&e.isReadyForCleanChangedCallback(),r.doOnPageAdded(e)},function(e){e.isReadyForClean?r.doOnPageRemoved(e):e.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(e),e.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(e){e.setOwner(r)}),r.createNewArray("calculatedValues",function(e){e.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(e){e.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),t&&(("string"==typeof t||t instanceof String)&&(t=JSON.parse(t)),t&&t.clientId&&(r.clientId=t.clientId),r.fromJSON(t),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new so(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(e,t){t.visible?r.onScrollCallback=function(){t.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new Ao(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(e){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(e)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var i=new Vo(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:i,processResponsiveness:function(e){return i.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return jo(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return Xt.commentSuffix},set:function(e){Xt.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,t){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,n,r){var o=this,i=this.createLocalizableString(e,this,!1,t);i.onGetLocalizationTextCallback=n,r&&(i.onGetTextCallback=function(e){return o.processHtml(e,r)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&r[o]&&r[o].add){var t=e[o];r[o].add(function(e,n){t(e,n)})}else r[o]=e[o]},r=this;for(var o in e)n();e&&e.data&&this.onValueChanged.add(function(t,n){e.data[n.name]=n.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new Ae).append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=(new Ae).append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=(new Ae).append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,Yr.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new Ae).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new Ae).append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(t){return e.processResponsiveness(t)}})},t.prototype.getNavigationCss=function(e,t){return(new Ae).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||Xt.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||Xt.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Et(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&function(e){var t=r.getLocation();e&&t&&(t.href=function(e){return e&&e.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(e):e}(e))}(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.makeRequiredErrorsInvisible(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.makeRequiredErrorsInvisible(t)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var o in n)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,Xt.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,Xt.matrix.totalsSuffix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(r=!0,delete n[o])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||l.currentLocale},set:function(e){e!==l.defaultLocale||l.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return l.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=l.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(e.prototype.locStrsChanged.call(this),this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(e){return e.locStrsChanged()});else{var t=this.activePage;t&&t.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n=this.getBuiltInRendererForString(e,t),r={element:e,name:t,renderAs:n=this.elementWrapperComponentNameCore(n,e,"string",t)};return this.onTextRenderAs.fire(this,r),r.renderAs},t.prototype.getRendererContextForString=function(e,t){return this.elementWrapperDataCore(t,e,"string")},t.prototype.getExpressionDisplayValue=function(e,t,n){var r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return mt.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,n){var r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text},t.prototype.getQuestionDisplayValue=function(e,t){var n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?It(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?Rt(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?It(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?Rt(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new Ae).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(t){return t.setIsMobile(e)}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(r.isAvailable()&&r.hasOwn("orientation")||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||Xt.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=St(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=(new Ae).append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&"fixed"===this.backgroundImageAttachment).toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e,t){if(!e)return null;var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=new ye(e),i=void 0;return o.onRunComplete=function(e){i=e,t&&t(e)},o.run(n,r)||i},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new ge(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){var t=this;e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton);var n=e.action;return e.action=function(){t.taskManager.waitAndExecute(function(){return n()})},this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(n||r)+s:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNumber.isEmpty)return t;var n={question:e,number:t,no:t};return this.onGetQuestionNumber.fire(this,n),n.no===t?n.number:n.no},t.prototype.getUpdatedPanelNo=function(e,t){if(this.onGetPanelNumber.isEmpty)return t;var n={panel:e,number:t};return this.onGetPanelNumber.fire(this,n),n.number},t.prototype.getUpdatedPageNo=function(e,t){if(this.onGetPageNumber.isEmpty)return t;var n={page:e,number:t};return this.onGetPageNumber.fire(this,n),n.number},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){!0===e&&(e="auto"),!1===e&&(e="off"),this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return Xt.legacyProgressBarView||"defaultV2"!==Yr.currentType||Bo(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&-1!==["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar||"topbottom"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return void 0===e&&(e=""),(new Ae).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||"header"==e)).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||"footer"==e)).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e,t){if(void 0===t&&(t=!1),t&&(this.valuesHash={}),e)for(var n in e){var r="string"==typeof n?n.trim():n;this.setDataValueCore(this.valuesHash,r,e[n])}this.updateAllQuestionsValue(t),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(t)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var t=e||{includePages:!1,includePanels:!1};return t.includePages||t.includePanels?this.getStructuredData(!!t.includePages,t.includePanels?-1:t.includePages?1:0):this.data},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var n={};return this.pages.forEach(function(r){if(e){var o={};r.collectValues(o,t-1)&&(n[r.name]=o)}else r.collectValues(n,t)}),n},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var n={};for(var r in e)if(this.getQuestionByValueName(r))n[r]=e[r];else{var o=this.getPageByName(r);o||(o=this.getPanelByName(r)),o&&this.collectDataFromPanel(o,n,e[r])}t?this.mergeData(n):this.data=n}},t.prototype.collectDataFromPanel=function(e,t,n){for(var r in n){var o=e.getElementByName(r);o&&(o.isPanel?this.collectDataFromPanel(o,t,n[r]):t[r]=n[r])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){M.hasOriginalProperty(t.editingObj,n.name)&&("locale"===n.name&&t.setDataCore({}),t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],n=[];if(this.getAllQuestions().forEach(function(r){var o=r.getPlainData(e);o&&(t.push(o),n.push(r.valueName||r.name))}),e.includeValues)for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var i=r[o];if(-1==n.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var n=this.getValuesKeys(),r=0;r<n.length;r++)t=n[r],e[t]=this.getDataValueCore(this.valuesHash,t);this.getAllQuestions().forEach(function(t){t.hasFilteredValue&&(e[t.getFilteredName()]=t.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=M.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?M.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?M.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPage){var r=this.currentSingleElement;if(this.isShowingPreview||!r||t===r.page){var o=this.currentPage;(this.isShowingPreview||r||this.currentPageChanging(t,o))&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(t,o))}else this.currentSingleElement=t.getFirstVisibleElement()}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var t=this.visiblePages.indexOf(e)<this.currentPageNo||!this.doServerValidation(!1,!1,e);return t&&(this.currentPage=e),t},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;if(this.canGoTroughValidation())return!0;var t=this.visiblePages.indexOf(e);if(t<0||t>=this.visiblePageCount)return!1;if(t===this.currentPageNo)return!1;if(t<this.currentPageNo||"onComplete"===this.checkErrorsMode||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var n=this.currentPageNo+1;n<t;n++){var r=this.visiblePages[n];if(!r.validate(!0,!0))return!1;r.passed=!0}return!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,"error"===e)},t.prototype.notify=function(e,t,n){void 0===n&&(n=!1),this.notifier.showActions=n,this.notifier.notify(e,t,n)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.skippedPages=[],this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;if(this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage,this.currentSingleElement)){var r=this.getSingleElements();this.currentSingleElement=r.length>0?r[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){qt(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t,n,r){var o=this.createPageChangeEventOptions(e,t,n,r);return this.currentPageChangingFromOptions(o)},t.prototype.currentPageChangingFromOptions=function(e){e.allow=!0,e.allowChanging=!0,this.onCurrentPageChanging.fire(this,e);var t=e.allowChanging&&e.allow;return t&&e.newCurrentPage!==e.oldCurrentPage&&(this.isCurrentPageRendering=!0),t},t.prototype.currentPageChanged=function(e,t){if(this.notifyQuestionsOnHidingContent(t),!t||t.isDisposed||t.passed||t.validate(!1)&&(t.passed=!0),!0===this.isCurrentPageRendered&&(this.isCurrentPageRendered=!1),!this.currentSingleElement){var n=this.createPageChangeEventOptions(e,t);this.onCurrentPageChanged.fire(this,n)}},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,t,n,r){var o=e&&t?e.visibleIndex-t.visibleIndex:0,i=o;return 0===i&&r&&n&&(i=e.elements.indexOf(n)-e.elements.indexOf(r)),{oldCurrentQuestion:r,newCurrentQuestion:n,oldCurrentPage:t,newCurrentPage:e,isNextPage:1===o,isPrevPage:-1===o,isGoingForward:i>0,isGoingBackward:i<0,isAfterPreview:!0===this.changeCurrentPageFromPreview}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,n=t.indexOf(this.currentPage);return Math.ceil(100*n/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.activePage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode&&!this.isDesignMode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=o.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&o.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&o.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return this.currentSingleElement?this.performNext():!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleElement;if(!e)return this.nextPage();if(this.validationEnabled&&!e.validate(!0))return!1;var t=this.getSingleElements(),n=t.indexOf(e);if(n<0||n===t.length-1)return!1;var r={};return e.isQuestion?r[e.name]=e.value:e.isPanel&&(r=e.getValue()),this.checkTriggers(r,!0,!1,!0,e.name),e===this.currentSingleElement&&(this.currentSingleElement=t[n+1]),!0},t.prototype.performPrevious=function(){return this.prevPage()},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.canGoTroughValidation())return!1;var n=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,r=function(r){r&&!n||t.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?!!this.isLastPage&&!0!==this.validate(!0,this.focusOnFirstError,r,!0)&&!n:!0!==this.validateCurrentPage(r)&&!n},t.prototype.canGoTroughValidation=function(){return!this.isEditMode||!this.validationEnabled},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var r=function(){if(e[i].isRunningValidators){var r=e[i];r.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(r,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)r();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var r=this.currentPage.questions,o=0;o<r.length;o++)if(r[o]!==e&&r[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var n=this.validatePage(e,t);return void 0===n?n:!n},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,function(e){return t(e)})||void 0)},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.validate(e,t,n);return void 0===r?r:!r},t.prototype.validate=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var o=this.visiblePages,i=!0,s={fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1},a=0;a<o.length;a++)o[a].validate(e,t,s)||(i=!1);return s.firstErrorQuestion&&(t||r)&&(t?s.firstErrorQuestion.focus(!0):this.currentPage=s.firstErrorQuestion.page),i&&n?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(e){return n(e)})||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPageByName(e)})},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPanelByName(e)})},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getQuestionByName(e)})},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),n+ ++r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n;return n=this.currentSingleElement?!this.currentSingleElement.validate(!0):!e.validate(!0,t),this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=this.getNestedQuestionsByQuestionArray(e.questions,!0),n=new Array,r=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){n.push(i);for(var s=0;s<i.errors.length;s++)r.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var e=this.currentSingleElement;if(this.doSkipOnPrevPage(e))return!0;if(e)return this.prevPageSingleElement(e);var t=this.visiblePages,n=t.indexOf(this.currentPage);return this.currentPage=t[n-1],!0},t.prototype.doSkipOnPrevPage=function(e){var t=e||this.currentPage,n=this.skippedPages.find(function(e){return e.to===t}),r=void 0;if(n){this.skippedPages.splice(this.skippedPages.indexOf(n),1);var o=n.from;!o.isDisposed&&o.isVisible&&(r=o)}return r&&(e?this.currentSingleElement=r:this.currentPage=r),!!r},t.prototype.prevPageSingleElement=function(e){var t=this.getSingleElements(),n=t.indexOf(e);return!(n<=0||(this.currentSingleElement=t[n-1],0))},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return(!this.mouseDownPage||this.mouseDownPage===this.activePage)&&(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){if(this.resetNavigationButton(),!this.isValidateOnComplete){if(this.hasErrorsOnNavigate(!0))return!1;if(this.doServerValidation(!0,!0))return!1}return this.showPreviewCore(),this.isShowingPreview},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){var t;if(void 0===e&&(e=null),this.isShowingPreview){this.gotoPageFromPreview=e,this.isShowingPreview=!1;var n=null===(t=this.currentSingleElement)||void 0===t?void 0:t.page;n&&(n.updateRows(),this.currentPage=n)}},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return"questionPerPage"===e||"questionOnPage"===e},Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,t){var n=M.createClass("page");return n.name=e,n.isPageContainer=!0,t.forEach(function(e){e.isStartPage||n.addElement(e)}),n},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue;[].concat(e.elements).forEach(function(t){return e.removeElement(t)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(e){return e.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="preview-page",t=void 0;if(this.isSinglePage){var n=this.pageContainerValue;n&&n.name===e?(t=n.elements[0],this.disposeContainerPage()):t=this.createRootPage("single-page",this.pages)}if(this.isShowingPreview&&(t=this.createRootPage(e,t?[t]:this.pages)),t&&(t.setSurveyImpl(this),this.pageContainerValue=t,this.currentPage=t,this.currentSingleElementValue&&this.visiblePages.forEach(function(e){return e.updateRows()})),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var r=this.gotoPageFromPreview;this.gotoPageFromPreview=null,s.isValueEmpty(r)&&this.visiblePageCount>0&&(r=this.visiblePages[this.visiblePageCount-1]),r&&(this.changeCurrentPageFromPreview=!0,this.currentPage=r,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.isShowingPreview&&this.pages.forEach(function(e){e.onFirstRendering()}),this.pages.forEach(function(e){e.wasRendered&&e.updateElementCss(!0)}),this.updateButtonsVisibility()}},t.prototype.getSingleElements=function(e){for(var t=new Array,n=this.pages,r=function(){var r=n[o];if(!r.isStartPage&&r.isVisible){var i=[];r.elements.forEach(function(e){return i.push(e)}),i.forEach(function(n){(n===e||n.isVisible)&&t.push(n)})}},o=0;o<n.length;o++)r();return t},Object.defineProperty(t.prototype,"currentSingleElement",{get:function(){return this.isShowingPreview?void 0:this.currentSingleElementValue},set:function(e){var t,n=this.currentSingleElement;if(e!==n&&!this.isCompleted){var r=(null==e?void 0:e.isQuestion)?e:void 0,o=(null==n?void 0:n.isQuestion)?n:void 0,i=null===(t=e)||void 0===t?void 0:t.page,s=i&&n?this.createPageChangeEventOptions(i,n.page,r,o):void 0;if(s&&!this.currentPageChangingFromOptions(s))return;this.currentSingleElementValue=e,e?(i.updateRows(),i!==this.currentPage?this.currentPage=i:r&&this.focusFirstQuestionAutomatic&&r.focus(),this.updateButtonsVisibility(),s&&this.onCurrentPageChanged.fire(this,s)):this.visiblePages.forEach(function(e){return e.updateRows()})}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){var e=this.currentSingleElement;return e&&e.isQuestion?e:void 0},set:function(e){this.currentSingleElement=e},enumerable:!1,configurable:!0}),t.prototype.changeCurrentSingleElementOnVisibilityChanged=function(){var e=this.currentSingleElement;if(e&&!e.isVisible){var t=this.getSingleElements(e),n=t.indexOf(e),r=n>0?t[n-1]:n<t.length-1?t[n+1]:void 0;this.currentSingleElement=r}},t.prototype.onQuestionsOnPageModeChanged=function(e){if(!this.isShowingPreview&&!this.isDesignMode&&(this.skippedPages=[],this.currentSingleElement=void 0,"singlePage"===e&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var t=this.getSingleElements();t.length>0&&(this.currentSingleElement=t[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage,t=void 0,n=void 0,r=this.currentSingleElement;if(r){var o=this.getSingleElements(),i=o.indexOf(r);i>=0&&(t=0===i,n=i===o.length-1)}this.setPropertyValue("isFirstPage",!(!e||e!==this.firstVisiblePage||r&&!0!==t)),this.setPropertyValue("isLastPage",!(!e||e!==this.lastVisiblePage||r&&!0!==n)),this.setPropertyValue("isFirstElement",t),this.setPropertyValue("isLastElement",n)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return void 0!==this.isLastElement?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return void 0!==this.isFirstElement?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||"running"!==this.state)return!1;if(void 0!==this.isFirstElement)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(1===this.visiblePageCount)return this.visiblePages[0];for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(1===this.visiblePageCount)return this.visiblePages[0];for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,t){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,t)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,t){var n=this;void 0===e&&(e=!1);var r=this.hasCookie,o=function(e){l=!0,n.setCompletedState("saving",e)},i=function(e){n.setCompletedState("error",e)},s=function(e){n.setCompletedState("success",e),n.navigateTo()},a=function(e){n.setCompletedState("","")},l=!1,u={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:o,showSaveError:i,showSaveSuccess:s,clearSaveMessages:a,showDataSaving:o,showDataSavingError:i,showDataSavingSuccess:s,showDataSavingClear:a};this.onComplete.fire(this,u),!r&&this.surveyPostId&&this.sendResult(),l||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,t){var n={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,n),n.allowComplete&&n.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&(this.isCurrentPageRendering=!0,!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPageNo=0,this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t,n){var r=this,o={data:{},errors:{},survey:this,complete:function(){r.completeServerValidation(o,t,n)}};if(e&&this.isValidateOnComplete)o.data=this.data;else for(var i=this.activePage.questions,s=0;s<i.length;s++){var a=i[s];if(a.visible){var l=this.getValue(a.getValueName());this.isValueEmpty(l)||(o.data[a.getValueName()]=l)}}return o},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t,n){var r=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var o="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=o?1:this.onServerValidateQuestions.length,o?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t,n)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return r.createServerValidationOptions(e,t,n)}),!0},t.prototype.completeServerValidation=function(e,t,n){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var r=e.survey,o=!1;if(e.errors){var i=this.focusOnFirstError;for(var s in e.errors){var a=r.getQuestionByName(s);a&&a.errors&&(o=!0,a.addError(new hn(e.errors[s],this)),i&&(i=!1,a.page&&(this.currentPage=a.page),a.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}o||(t?this.showPreviewCore():n?this.currentPage=n:r.isLastPage?r.doComplete():r.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,t){var n;if(Xt.triggers.changeNavigationButtonsOnComplete){var r=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]={trigger:e,pageId:null===(n=this.currentPage)||void 0===n?void 0:n.id}:delete this.completedByTriggers[e.id],r!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var t=Object.keys(this.completedByTriggers);if(0===t.length)return!1;var n=null===(e=this.currentPage)||void 0===e?void 0:e.id;if(!n)return!0;for(var r=0;r<t.length;r++)if(n===this.completedByTriggers[t[r]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return ft.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||this.isShowingPreview||e&&"pages"==this.progressBarType&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onGetProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",n,e.questionCount)}var r=this.isDesignMode?this.pages:this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,r.length)},t.prototype.getRootCss=function(){return(new Ae).append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!Xt.animationEnabled).append(this.css.rootReadOnly,"display"===this.mode&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=ft.GetFirstNonTextElement(e));var n=e,i=this.css.variables;if(i){var s=Number.parseFloat(o.getComputedStyle(n).getPropertyValue(i.mobileWidth));if(s){var a=!1;this.resizeObserver=new ResizeObserver(function(e){r.requestAnimationFrame(function(){a=!(a||!Ht(n))&&t.processResponsiveness(n.offsetWidth,s,n.offsetHeight)})}),this.resizeObserver.observe(n)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,t,n){var r=e<t,o=this.isMobile!==r;this.setIsMobile(r),this.layoutElements.forEach(function(t){return t.processResponsiveness&&t.processResponsiveness(e)});var i={height:n,width:e};return this.onResize.fire(this,i),o},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(t){t.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var n=!1===this.isCurrentPageRendered;setTimeout(function(){return t.scrollToTopOnPageChange(n)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId,r=Xt.environment.root;if(n&&(!t||t.id!==n)&&void 0!==r){var o=r.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,n){var r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var o=0;o<r.length;o++){var i=r[o].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,r),r.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,t,n,r){var o={question:e,rowIndex:t,row:n,visible:r,detailPanel:n.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,o)},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onAfterRenderMatrixCell.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return"onComplete"===this.checkErrorsMode||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new hn(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,n,r){!this.isLoadingFromJson&&r&&this.updateVisibleIndexes(e.page),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})},t.prototype.dynamicPanelRemoved=function(e,t,n,r){for(var o=n?n.questions:[],i=0;i<o.length;i++)o[i].clearOnDeletingContainer();r&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelRemoving=function(e,t,n){var r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelValueChanged.fire(this,t)},t.prototype.dynamicPanelItemValueChanging=function(e,t){t.question=e,this.onDynamicPanelValueChanging.fire(this,t)},t.prototype.dynamicPanelGetTabTitle=function(e,t){t.question=e,this.onGetDynamicPanelTabTitle.fire(this,t)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,t){t.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,n){var r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getTitleActionsResult=function(e,t){return e!=t.actions?t.actions:e!=t.titleActions?t.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,actions:t,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),this.getTitleActionsResult(t,n)},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,actions:t,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),this.getTitleActionsResult(t,n)},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,actions:t,titleActions:t};return this.onGetPageTitleActions.fire(this,n),this.getTitleActionsResult(t,n)},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions},t.prototype.scrollElementToTop=function(e,t,n,r,o,i,s,a){var l=this,u={element:e,question:t,page:n,elementId:r,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,u),!u.cancel&&u.allow){var c=this.getPageByElement(e);if(this.isLazyRendering&&c){var p=1,d=Xt.environment.rootElement,f=this.rootElement||s||d;this.skeletonHeight&&f&&"function"==typeof f.getBoundingClientRect&&(p=f.getBoundingClientRect().height/this.skeletonHeight-1),c.forceRenderElement(e,function(){l.suspendLazyRendering(),ft.ScrollElementToTop(u.elementId,o,i,function(){l.releaseLazyRendering(),Et(c.id),a&&a()})},p)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var h=this.rootElement.querySelector(zt(this.css.rootWrapper));ft.ScrollElementToViewCore(h,!1,o,i,a)}else ft.ScrollElementToTop(u.elementId,o,i,a)}},t.prototype.chooseFiles=function(e,t,n){this.onOpenFileChooser.isEmpty?$t(e,t):this.onOpenFileChooser.fire(this,{input:e,element:n&&n.element||this.survey,elementType:n&&n.elementType,item:n&&n.item,propertyName:n&&n.propertyName,callback:t,context:n})},t.prototype.uploadFiles=function(e,t,n,r){var o=this;this.onUploadFiles.isEmpty?r("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(i){o.onUploadFiles.fire(o,{question:e,name:t,files:n||[],callback:function(e,t){r(e,t),i()}})}),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r("skipped",n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})},t.prototype.clearFiles=function(e,t,n,r,o){this.onClearFiles.isEmpty&&o&&o("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new Xr},t.prototype.uploadFilesCore=function(e,t,n){var r=this,o=[];t.forEach(function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,function(r,i){r?(o.push({content:i,file:e}),o.length===t.length&&n&&n("success",o)):n&&n("error",{response:i,file:e})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getQuestionByName(e[r],t);o&&n.push(o)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),n&&(t=!1,(e?this.visiblePages:this.pages).forEach(function(e){return e.onFirstRendering()}));for(var r=[],o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(r,e,t);return n?this.getNestedQuestionsByQuestionArray(r,e):r},t.prototype.getNestedQuestionsByQuestionArray=function(e,t){var n=[];return e.forEach(function(e){e.getNestedQuestions(t,!0).forEach(function(e){return n.push(e)})}),n},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var o=n[r];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var o=n[r].name;if(t&&(o=o.toLowerCase()),o==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){var t=M.createClass("page");return t.name=e,t},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,t,n){if(this.editingObj){var r=M.findProperty(this.editingObj.getType(),e);r&&(t=r.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var o={name:e,question:this.getQuestionByValueName(n||e),value:this.getUnbindValue(t),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,o),o.value},t.prototype.getLocNotification=function(e,t,n){return e||s.isTwoValueEquals(t,n,!1,!0,!1)},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&n[r].updateValueFromSurvey(t,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=!1,o=0;o<n.length;o++){var i=n[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(r=!0),r=r||i.errors.length>0}return r},t.prototype.fireOnValueChanged=function(e,t,n){this.onValueChanged.fire(this,{name:e,question:n,value:t,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,t,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var i=r[o];this.checkQuestionErrorOnValueChanged(i),i.onSurveyValueChanged(t)}this.updateProgressText(!0),this.fireOnValueChanged(e,t,n?this.getQuestionByName(n):void 0),this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e,n))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,t){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var n=0;n<this.pages.length;n++)this.pages[n].onAnyValueChanged(e,t);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var t=this.getAllQuestions(),n=0;n<t.length;n++){var r=t[n],o=r.getValueName();r.updateValueFromSurvey(this.getValue(o),e),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(o))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var o=t[r].getValueName();n[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var o=n.questions[r];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,n,r,o){if(void 0===n&&(n=!1),void 0===r&&(r=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var i in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[i]=e[i];else{var s=!1;if(!n&&o&&this.hasRequiredValidQuestionTrigger){var a=this.getQuestionByValueName(o);s=a&&!a.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var l=this.getFilteredProperties(),u=this.canBeCompletedByTrigger,c=0;c<this.triggers.length;c++){var p=this.triggers[c];if(!s||!p.requireValidQuestion){var d={isOnNextPage:t,isOnComplete:n,isOnNavigation:r,keys:this.triggerKeys,values:this.triggerValues,properties:l};p.checkExpression(d)}}u!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,t,n){var r={};r[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(r,!1,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<Xt.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.questionTriggersKeys||(this.questionTriggersKeys={}),this.questionTriggersKeys[e]=t,this.isRunningConditions?this.isValueChangedOnRunningCondition=!0:(this.runConditions(),this.runQuestionsTriggers(e,t),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(t){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,t);e.prototype.runConditionCore.call(this,this.conditionValues,t);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,t)},t.prototype.runQuestionsTriggers=function(e,t){var n=this;this.isDisplayMode||this.isDesignMode||this.getAllQuestions().forEach(function(r){r.runTriggers(e,t,n.questionTriggersKeys)})},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){var r=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var o=this.createSurveyService();o.locale=this.getLocale();var i=this.surveyShowDataSaving||!n&&o.isSurveJSIOService;i&&this.setCompletedState("saving",""),o.sendResult(e,this.data,function(e,t,n){(i||o.isSurveJSIOService)&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t));var s={success:e,response:t,request:n};r.onSendResult.fire(r,s)},this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,function(e,t,r,o){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:o})})},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(e,t,r,o){e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t)),n.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(e,t,r){e&&n.loadSurveyFromServiceJson(t),n.isLoading=!1})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){this.isLoadingFromJson||this.isEndLoadingFromJson||(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty?this.conditionUpdateVisibleIndexes=!0:this.isRunningElementsBindings?this.updateVisibleIndexAfterBindings=!0:(this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)))},t.prototype.updatePageElementsVisibleIndexes=function(e){if("onPage"==this.showQuestionNumbers)for(var t=e?[e]:this.visiblePages,n=0;n<t.length;n++)t[n].setVisibleIndex(0);else for(var r=this.getStartVisibleIndex(),o=0;o<this.pages.length;o++)r+=this.pages[o].setVisibleIndex(r)},t.prototype.getStartVisibleIndex=function(){return"on"==this.showQuestionNumbers?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,t=0;t<this.pages.length;t++){var n=this.pages[t],r=n.isVisible&&(t>0||!n.isStartPage);n.visibleIndex=r?e++:-1,n.num=r?n.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,t){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var n=new R;n.toObject(e,this,t),n.errors.length>0&&(this.jsonErrors=n.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&Xt.version&&s.compareVerions(this.sjsVersion,Xt.version)>0&&N.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+Xt.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&t.locale&&(this.locale=t.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new De;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",n=new Ke({id:"sv-nav-start",visible:new _e(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),r=new Ke({id:"sv-nav-prev",visible:new _e(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:t}),o=new Ke({id:"sv-nav-next",visible:new _e(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new Ke({id:"sv-nav-preview",visible:new _e(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),s=new Ke({id:"sv-nav-complete",visible:new _e(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:t});return this.updateNavigationItemCssCallback=function(){n.innerCss=e.cssNavigationStart,r.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,s.innerCss=e.cssNavigationComplete},[n,r,o,i,s]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var n=this.getBuiltInVariableValue(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:l.defaultLocale);var r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new L).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var n=new L,r=n.getFirstName(e.name);if(r!==e.name){var o={},i=this.getValue(r);s.isValueEmpty(i)&&(i=this.getVariable(r)),s.isValueEmpty(i)||(o[r]=i,e.value=n.getValue(e.name,o),e.isExists=n.hasValue(e.name,o))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var r=Math.max(t,n);return e.substring(0,r)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var t=e,n=this.getQuestionsByValueName(t.getValueName());if(!Array.isArray(n)||n.length<2)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o!==t&&o.isVisible&&o.isParentVisible&&!o.parentQuestion&&o.parentQuestion===t.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){return this.getQuestionsByValueName(e)||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new L).hasValue(e,this.variablesHash)?(new L).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){if(e){var n=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),s.isTwoValueEquals(n,t)||(this.checkTriggersAndRunConditions(e,t,n),this.onVariableChanged.fire(this,{name:e,value:t}))}},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:s.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=!0);var i=t;if(r&&(i=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,i))&&(this.editingObj||!this.isValueEqual(e,i)||!this.isTwoValueEquals(i,t))){var s=this.getValue(e);this.isValueEmpyOnSetValue(e,i)?this.deleteDataValueCore(this.valuesHash,e):(i=this.getUnbindValue(i),this.setDataValueCore(this.valuesHash,e,i)),n=this.getLocNotification(n,i,s),this.updateOnSetValue(e,i,s,n,r,o)}},t.prototype.isValueEmpyOnSetValue=function(e,t){return!(!this.isValueEmpty(t,!1)||this.editingObj&&null!=t&&this.editingObj.getDefaultPropertyValue(e)!==t)},t.prototype.updateOnSetValue=function(e,t,n,r,o,i){void 0===r&&(r=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0===r||this.isDisposed||this.isRunningElementsBindings||(i=i||e,this.nofifyQuesitonHash[e]=!0,this.checkTriggersAndRunConditions(e,t,n),this.nofifyQuesitonHash[e]&&(o&&this.notifyQuestionOnValueChanged(e,t,i),"text"!==r&&this.tryGoNextPageAutomatic(e),delete this.nofifyQuesitonHash[e]))},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),this.runningPages||(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var o=1;n[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){var t=this;if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var n=this.getQuestionByValueName(e);if(n&&(!n||n.visible&&n.supportGoNextPageAutomatic())&&(n.validate(!1)||n.supportGoNextPageError())){if(this.currentSingleElement){var r=this.currentSingleElement;Jr.safeTimeOut(function(){r===t.currentSingleElement&&(t.isLastElement?t.allowCompleteSurveyAutomatic&&t.tryCompleteOrShowPreview():t.performNext())},Xt.autoAdvanceDelay)}var o=this.getCurrentPageQuestions();if(!(o.indexOf(n)<0)){for(var i=0;i<o.length;i++)if(o[i].hasInput&&o[i].isEmpty())return;if((!this.isLastPage||!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic)&&!this.checkIsCurrentPageHasErrors(!1)){var s=this.currentPage;Jr.safeTimeOut(function(){s===t.currentPage&&(t.isLastPage?t.tryCompleteOrShowPreview():t.nextPage())},Xt.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentSuffix;t=this.questionOnValueChanging(r,t,e),n=this.getLocNotification(n,t,this.getComment(e)),this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);n||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByValueName(e);s&&(this.fireOnValueChanged(r,t,s),s.comment=t,s.comment!=t&&(s.comment=t))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":"default"!==e?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,t,n){n&&this.updateVisibleIndexes(e.page),t||this.changeCurrentSingleElementOnVisibilityChanged(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){if(!this.isLoadingFromJson){(t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),t||this.changeCurrentSingleElementOnVisibilityChanged();var n=this.currentSingleElement,r=this.currentPage;n&&r&&n.page!==r&&(this.currentSingleElement=r.getFirstVisibleElement()),this.onPageVisibleChanged.fire(this,{page:e,visible:t})}},t.prototype.panelVisibilityChanged=function(e,t){e.page&&(this.updateVisibleIndexes(e.page),t||this.changeCurrentSingleElementOnVisibilityChanged()),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!Xt.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r;(r=e[n])?(r=e[n]).indexOf(t)<0&&r.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var o=r.indexOf(t);o>-1&&r.splice(o,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new hn(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new hn(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx({text:e,returnDisplayValue:t,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var t=void 0===e.doEncoding?Xt.web.encodeUrlParams:e.doEncoding,n=e.text;!e.runAtDesign&&this.isDesignMode||(n=this.textPreProcessor.process(n,!0===e.returnDisplayValue,t,e.replaceUndefinedValues));var r={text:n,hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new Xn,this.textPreProcessorValue.onProcess=function(t){e.getProcessedTextValue(t)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r=0;r<t.length;r++){var o=t[r],i=o.correctAnswerCount;n+=e?i:o.quizQuestionCount-i}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer="none"!==e,this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&"top"===this.timerLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&"bottom"===this.timerLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return"all"===e?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return"combined"===e?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new _e(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach(function(t){t.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e="static"==this.getPropertyValue("calculatedWidthMode"),t=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var n=this.responsiveStartWidth;try{t=t||this.staticStartWidth,n=isNaN(t)?parseFloat(t.toString().replace("px","")):t}catch(e){}return(e?n:this.responsiveStartWidth)*this.widthScale/100+"px"}return t&&!isNaN(t)&&(t+="px"),e&&t||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var n=this.getTimerInfo(),r=n.spent,o=n.limit,i=n.minorSpent,s=n.minorLimit;e=o>0?this.getDisplayClockTime(o-r):this.getDisplayClockTime(r),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new mt(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,n=this.timeSpent,r=e.getMaxTimeToFinish(),o=this.timeLimit;return"page"==this.timerInfoMode?{spent:t,limit:r}:"survey"==this.timerInfoMode?{spent:n,limit:o}:r>0&&o>0?{spent:t,limit:r,minorSpent:n,minorLimit:o}:r>0?{spent:t,limit:r,minorSpent:n}:o>0?{spent:n,limit:o,minorSpent:t}:{spent:t,minorSpent:n}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=e.getMaxTimeToFinish(),o=this.getDisplayTime(r),i=this.getDisplayTime(this.timeLimit);return"page"==this.timerInfoMode?this.getTimerInfoPageText(e,t,o):"survey"==this.timerInfoMode?this.getTimerInfoSurveyText(n,i):"combined"==this.timerInfoMode?r<=0&&this.timeLimit<=0?this.getLocalizationFormatString("timerSpentAll",t,n):r>0&&this.timeLimit>0?this.getLocalizationFormatString("timerLimitAll",t,o,n,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",t,n):this.getLocalizationFormatString("timerSpentPage",t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){var n=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(n,e,t)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r="0"+r),t+":"+r},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocalizationString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){this.showTimer&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var t=e.getMaxTimeToFinish();t>0&&t==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),r)r.value=t;else{var o=new L,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,t,n){var r;e&&t&&(r=n?this.processText("{"+t+"}",!0):(new L).getValue(t,this.getFilteredValues()),this.setTriggerValue(e,s.getUnbindValue(r),!1))},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,t){var n;if(void 0===t&&(t=!1),!e||!e.isVisible||!e.page)return!1;if((null===(n=this.focusingQuestionInfo)||void 0===n?void 0:n.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t};var r=this.currentSingleElement;this.skippedPages.push({from:r||this.currentPage,to:r?e:e.page});var o=this.activePage!==e.page&&!e.page.isStartPage;return o&&(this.currentPage=e.page),this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleElement=e),o||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,t=null===(e=this.focusingQuestionInfo)||void 0===e?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,t){var n=this.enterKeyAction||Xt.enterKeyAction;if("loseFocus"==n&&t.target.blur(),"moveToNextEditor"==n){var r=this.currentPage.questions,o=r.indexOf(e);o>-1&&o<r.length-1?r[o+1].focus():t.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,t,n,r,o){if(this.onElementWrapperComponentName.isEmpty)return e;var i={componentName:e,element:t,wrapperName:n,reason:r,item:o};return this.onElementWrapperComponentName.fire(this,i),i.componentName},t.prototype.elementWrapperDataCore=function(e,t,n,r,o){if(this.onElementWrapperComponentData.isEmpty)return e;var i={data:e,element:t,wrapperName:n,reason:r,item:o};return this.onElementWrapperComponentData.fire(this,i),i.data},t.prototype.getElementWrapperComponentName=function(e,n){var r="logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,e,"component",t)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,t,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var t=e.question;return this.elementWrapperDataCore(t,t,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.findLayoutElement=function(e){var t=this.layoutElements.filter(function(t){return t.id===e})[0];return t},t.prototype.removeLayoutElement=function(e){var t=this.findLayoutElement(e);if(t){var n=this.layoutElements.indexOf(t);this.layoutElements.splice(n,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],n=0,r=this.layoutElements;n<r.length;n++){var o=r[n];if("display"!==this.mode&&Bo(o.id,"timerpanel"))"header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o);else if("running"===this.state&&Bo(o.id,this.progressBarComponentName)){if("singlePage"!=this.questionsOnPageMode||"questions"==this.progressBarType){var i=this.findLayoutElement("advanced-header"),s=i&&i.data,a=!s||s.hasBackground;Bo(this.showProgressBar,"aboveHeader")&&(a=!1),Bo(this.showProgressBar,"belowHeader")&&(a=!0),"header"!==e||a||(o.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"center"===e&&a&&(o.index&&delete o.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"footer"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)}}else Bo(o.id,"buttons-navigation")?("contentTop"===e&&this.isNavigationButtonsShowingOnTop&&t.push(o),"contentBottom"===e&&this.isNavigationButtonsShowingOnBottom&&t.push(o)):"running"===this.state&&Bo(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):Bo(o.id,"advanced-header")?("running"===this.state||"starting"===this.state||!0===this.showHeaderOnCompletePage&&"completed"===this.state)&&o.container===e&&t.push(o):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t.sort(function(e,t){return(e.index||0)-(t.index||0)}),t},t.prototype.processPopupVisiblityChanged=function(e,t,n){this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:n})},t.prototype.processOpenDropdownMenu=function(e,t){var n=Object.assign({question:e},t);this.onOpenDropdownMenu.fire(this,n),t.menuType=n.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var t=this;if(e){if(Object.keys(e).forEach(function(n){"header"!==n&&("isPanelless"===n?t.isCompact=e[n]:t[n]=e[n])}),"advanced"===this.headerView||"header"in e){this.removeLayoutElement("advanced-header");var n=new co;n.fromTheme(e),this.insertAdvancedHeader(n)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(t){return t.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var t=0;t<this.layoutElements.length;t++)this.layoutElements[t].data&&this.layoutElements[t].data!==this&&this.layoutElements[t].data.dispose&&this.layoutElements[t].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(this.currentPage=null,t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var t=this.rootElement.querySelector(e);return!!t&&this.rootElement.scrollTop>0&&t.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")),this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e,t=this;this.scrollHandler=function(){t.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",Fo([y()],t.prototype,"completedCss",void 0),Fo([y()],t.prototype,"completedBeforeCss",void 0),Fo([y()],t.prototype,"loadingBodyCss",void 0),Fo([y()],t.prototype,"containerCss",void 0),Fo([y({onSet:function(e,t){t.updateCss()}})],t.prototype,"fitToContainer",void 0),Fo([y({onSet:function(e,t){if("advanced"===e){if(!t.findLayoutElement("advanced-header")){var n=new co;n.logoPositionX="right"===t.logoPosition?"right":"left",n.logoPositionY="middle",n.titlePositionX="right"===t.logoPosition?"left":"right",n.titlePositionY="middle",n.descriptionPositionX="right"===t.logoPosition?"left":"right",n.descriptionPositionY="middle",t.insertAdvancedHeader(n)}}else t.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),Fo([y()],t.prototype,"showBrandInfo",void 0),Fo([y()],t.prototype,"enterKeyAction",void 0),Fo([y()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),Fo([y({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),Fo([y({defaultValue:{}})],t.prototype,"cssVariables",void 0),Fo([y()],t.prototype,"_isMobile",void 0),Fo([y()],t.prototype,"_isCompact",void 0),Fo([y({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImage",void 0),Fo([y()],t.prototype,"renderBackgroundImage",void 0),Fo([y()],t.prototype,"backgroundImageFit",void 0),Fo([y({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),Fo([y()],t.prototype,"backgroundImageStyle",void 0),Fo([y()],t.prototype,"wrapperFormCss",void 0),Fo([y({getDefaultValue:function(e){return"buttons"===e.progressBarType}})],t.prototype,"progressBarShowPageTitles",void 0),Fo([y()],t.prototype,"progressBarShowPageNumbers",void 0),Fo([y()],t.prototype,"progressBarInheritWidthFrom",void 0),Fo([y({defaultValue:!0})],t.prototype,"validationEnabled",void 0),Fo([y()],t.prototype,"rootCss",void 0),Fo([y({onSet:function(e,t){t.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),Fo([y()],t.prototype,"calculatedWidthMode",void 0),Fo([y({defaultValue:100,onSet:function(e,t,n){t.pages.forEach(function(e){return e.updateRootStyle()})}})],t.prototype,"widthScale",void 0),Fo([y()],t.prototype,"staticStartWidth",void 0),Fo([y()],t.prototype,"responsiveStartWidth",void 0),Fo([b()],t.prototype,"layoutElements",void 0),t}(dt);function Bo(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}M.addClass("survey",[{name:"locale",choices:function(){return l.getLocales(!0)},onGetValue:function(e){return e.locale==l.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(e){return e.originalPages||e.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage("");n.toObject({questions:t},r,null==n?void 0:n.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(e){return"off"!==e.showProgressBar}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(e){return!!e&&e.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=s.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(e){return!0===e.goNextPageAutomatic}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(e){return"onValueChanged"===e.checkErrorsMode}},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(e){return e.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(e){return"none"!==e.showNavigationButtons&&e.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(e){return e.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(e){return e.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(e){return e.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(e){return e.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(e){return"static"===e.widthMode}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}]);var Ho=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qo=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new Nn("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new lt(n.getRenderedChoicesAnimationOptions(),function(e){n._renderedChoices=e,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.noneItemValue=n.createDefaultItem(Xt.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(Xt.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(Xt.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],function(){n.filterItems()||n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){n.onVisibleChanged()}),n.createNewArray("visibleChoices",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n}return Ho(t,e),Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);var t=this.getQuestionWithChoices();t&&t.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new Tn(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this;return{question:this,id:function(){return e.otherId},propertyNames:["otherValue","comment"],className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(t){e.onOtherValueChange(t)},onTextAreaInput:function(t){e.onOtherValueInput(t)}}},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var n=M.createClass(this.getItemValueType(),{value:e});return n.locOwner=this,t&&(n.text=t),n},t.prototype.hasErrors=function(t,n){return void 0===t&&(t=!0),void 0===n&&(n=null),n&&!0===n.isOnValueChanged||this.clearIncorrectValues(),e.prototype.hasErrors.call(this,t,n)},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,t){var n=e?"select":t?"array":void 0;this.setPropertyValue("carryForwardQuestionType",n)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(Nn.locStrsChanged(this.choicesFromUrl),Nn.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&Nn.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var t=this.otherValue;e!==t&&(this.prevOtherErrorValue=t)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,t,n){var r=new Nn(e),o=this.createLocalizableString(t,r,!0,n);return r.locOwner=this,r.setLocText(o),r},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n),this.choices.forEach(function(e){e.runConditionCore(t,n)})},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var t=this.comment;e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&t!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),Nn.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,function(e,t){return t&&n.onEnableItemCallBack(e)})&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.survey)||void 0===t||t.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=Nn.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e&&this.value==e.id||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new ge(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new ge(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,n){return e.survey.getChoiceItemVisibility(e,t,n)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var n=this.changeItemVisibility();return Nn.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,function(e,t){return n?n(e,t):t})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new Wn},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.updatePrevOtherErrorValue(t),this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.getValueOnSettingOther(e)),this.isSettingComment=!1)},t.prototype.getValueOnSettingOther=function(e){var t=this.rendredValueToData(this.renderedValue);if(this.showCommentArea||this.getStoreOthersAsComment())return t;var n=Nn.getItemByValue(this.visibleChoices,e);if(!n||n===this.otherItem)return t;if(this.otherValueCore="",!Array.isArray(t))return e;var r=t.indexOf(this.otherItem.value);return r>-1&&t.splice(r,1),t.indexOf(e)<0&&t.push(e),t},t.prototype.clearValue=function(t){e.prototype.clearValue.call(this,t),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.isReadOnlyAttr||(this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e))},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&r)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(t){e.prototype.setValueCore.call(this,t),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=Nn.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!this.waitingGetChoiceDisplayValueResponse&&this.survey&&!this.isEmpty()){var t=this.value,n=Array.isArray(t)?t:[t];n.some(function(t){return!Nn.getItemByValue(e.choices,t)})&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:n,setItems:function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(e.waitingGetChoiceDisplayValueResponse=!1,r&&r.length){var s=r.map(function(t,r){return e.createItemValue(n[r],t)});e.setCustomValuesIntoItems(s,o),Array.isArray(t)?e.selectedItemValues=s:e.selectedItemValues=s[0],e.updateIsReady()}else e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,t){Array.isArray(t)&&0!==t.length&&t.forEach(function(t){var n=t.values,r=t.propertyName;if(Array.isArray(n))for(var o=0;o<e.length&&o<n.length;o++)e[o][r]=n[o]})},t.prototype.hasUnknownValue=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,t,n,r);for(var o=0;o<e.length;o++)if(this.hasUnknownValueItem(e,t,n,r))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!r&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.showNoneItem&&e==this.noneItem.value)return!1;if(this.showRefuseItem&&e==this.refuseItem.value)return!1;if(this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var o=n?this.getFilteredChoices():this.activeChoices;return null==Nn.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=Nn.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&(t.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson&&!this.isDisposed){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);var r=this.visibleChoices;this.isTwoValueEquals(r,e)&&!this.choicesLazyLoadEnabled||(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!(this.isAddDefaultItems||this.showNoneItem||this.showRefuseItem||this.showDontKnowItem||this.hasOther||"none"!=this.choicesOrder)},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,t);var n=new Array;this.addNonChoicesItems(n,t),n.sort(function(e,t){return e.index===t.index?0:e.index<t.index?-1:1});for(var r=0;r<n.length;r++){var o=n[r];o.index<0?(e.splice(r,0,o.item),this.headItemsCount++):(e.push(o.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,t){var n=this;t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){n.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,t,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,t){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,t,this.showNoneItem,Xt.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,t,this.showRefuseItem,Xt.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,t,this.showDontKnowItem,Xt.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,t,this.hasOther,Xt.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,t,n,r,o){this.canShowOptionItem(t,n,r)&&o.forEach(function(n){return e.push({index:n,item:t})})},t.prototype.canShowOptionItem=function(e,t,n){var r=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||n;return this.canSurveyChangeItemVisibility()?this.changeItemVisibility()(e,r):r},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return Xt.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(e,r){var o=Nn.getItemByValue(n.visibleChoices,e),i={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach(function(e){i[e.propertyName]=o[e.propertyName]}),n.isOtherSelected&&n.otherItemValue===o&&(i.isOther=!0,i.displayValue=n.otherValue),i}))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,t):t},t.prototype.getDisplayValueEmpty=function(){return Nn.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var n=this.getSingleSelectedItem();if(n&&this.isTwoValueEquals(n.value,t))return n.locText.textOrHtml;var r=Nn.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,n){for(var r=this,o=this.visibleChoices,i=[],a=[],l=0;l<t.length;l++)a.push(n?n(l):t[l]);if(s.isTwoValueEquals(this.value,a)&&this.getMultipleSelectedItems().forEach(function(e,t){return i.push(r.getItemDisplayValue(e,a[t]))}),0===i.length)for(l=0;l<a.length;l++){var u=this.getChoicesDisplayValue(o,a[l]);u&&i.push(u)}return i.join(Xt.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,t){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&t)return t;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return"select"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):"array"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var t=this.findCarryForwardQuestion(e),n=this.getQuestionWithChoicesCore(t),r=n?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!n,!!r),n||r?t:null},t.prototype.getIsReadyDependsOn=function(){var t=e.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&t.push(this.carryForwardQuestion),t},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){var t;return e||(e=this.data||(null===(t=this.parentQuestion)||void 0===t?void 0:t.data)),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&M.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isInDesignMode)return[];var t=e.value;if(!Array.isArray(t))return[];for(var n=[],r=0;r<t.length;r++){var o=t[r];if(s.isValueObject(o)){var i=this.getValueKeyName(o);if(i&&!this.isValueEmpty(o[i])){var a=this.choiceTextsFromQuestion?o[this.choiceTextsFromQuestion]:void 0;n.push(this.createItemValue(o[i],a))}}}return n},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var t=Object.keys(e);return t.length>0?t[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,r=e.visibleChoices,o=0;o<r.length;o++)if(!e.isBuiltInChoice(r[o]))if(void 0!==n){var i=e.isItemSelected(r[o]);(i&&n||!i&&!n)&&t.push(this.copyChoiceItem(r[o]))}else t.push(this.copyChoiceItem(r[o]));return"selected"===this.choicesFromQuestionMode&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,n,r){var o=this;if(e.prototype.onCheckForErrors.call(this,t,n,r),this.hasOther&&this.isOtherSelected&&!this.otherValue&&(!n||this.prevOtherErrorValue)){var i=new ln(this.otherErrorText,this);i.onUpdateErrorTextCallback=function(e){e.text=o.otherErrorText},t.push(i)}},t.prototype.setSurveyImpl=function(t,n){this.isRunningChoices=!0,e.prototype.setSurveyImpl.call(this,t,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||this.hasChoicesUrl&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),t!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;t&&r&&(t===r||n===r)&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues())},t.prototype.updateValueFromSurvey=function(t,n){var r="";this.hasOther&&this.activeChoices.length>0&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(r=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):this.data&&(r=this.data.getComment(this.getValueName()))),e.prototype.updateValueFromSurvey.call(this,t,n),!this.isRunningChoices&&!this.choicesByUrl.isRunning||this.isEmpty()||(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices&&!this.isInDesignModeV2){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==Xt.web.disableQuestionWhileLoadingChoices||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var t=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error);var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,Nn.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;this.setChoicesFromUrl(n,t,o)},t.prototype.canAvoidSettChoicesFromUrl=function(e){return!this.isFirstLoadChoicesFromUrl&&!((!e||Array.isArray(e)&&0===e.length)&&!this.isEmpty())&&s.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,t,n){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var r=this.updateCachedValueForUrlRequests(n,e);if(r&&!this.isReadOnly){var o=!this.isTwoValueEquals(this.value,r.value);try{this.isValueEmpty(r.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=o,o?this.value=r.value:this.setQuestionValue(r.value)}finally{this.allowNotifyValueChanged=!0}}}this.isReadOnly||e||this.isFirstLoadChoicesFromUrl||(this.value=null),this.errors=t,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var o=this.updateCachedValueForUrlRequests(e[r],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=Nn.getItemByValue(t,o.value))&&(i=s.value),n.push(i)}}return{value:n}}var s,a=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=Nn.getItemByValue(t,a))&&(a=s.value),{value:a}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort(function(e,n){return s.compareStrings(e.calculatedText,n.calculatedText)*t})},t.prototype.randomizeArray=function(e){return s.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&this.canClearIncorrectValues()&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||0==this.choicesFromUrl.length))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new Ae).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var n=(new Ae).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.hasCssError()),r=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),o=r[0],i=r[1],s=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,a=!(i||s||this.survey&&this.survey.isDesignMode),l=e===this.noneItem;return t.isDisabled=i||o,t.isChecked=s,t.isNone=l,n.append(this.cssClasses.itemDisabled,i).append(this.cssClasses.itemReadOnly,o).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,s).append(this.cssClasses.itemHover,a).append(this.cssClasses.itemNone,l).toString()},t.prototype.getLabelClass=function(e){return(new Ae).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new Ae).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(t){return t!=e.newItemValue?t.value:e.newItemValue},getLeaveOptions:function(t){var n=e.cssClasses.itemLeave;if(e.hasColumns){var r=e.bodyItems.indexOf(t);-1!==r&&r!==e.bodyItems.length-1&&(n="")}return{cssClass:n,onBeforeRunAnimation:Gt,onAfterRunAnimation:Yt}},getAnimatedElement:function(e){return e.getRootElement()},getEnterOptions:function(t){var n=e.cssClasses.itemEnter;if(e.hasColumns){var r=e.bodyItems.indexOf(t);-1!==r&&r!==e.bodyItems.length-1&&(n="")}return{cssClass:n,onBeforeRunAnimation:function(n){if(0==e.getCurrentColCount()&&e.bodyItems.indexOf(t)>=0){var r=n.parentElement.firstElementChild.offsetLeft;n.offsetLeft>r&&Qt(n,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Gt(n)},onAfterRunAnimation:Yt}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,t=[],n=0;n<e;n++)this.renderedChoices[n]&&t.push(this.renderedChoices[n]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,t=[],n=this.renderedChoices,r=0;r<e;r++)this.renderedChoices[n.length-e+r]&&t.push(this.renderedChoices[n.length-e+r]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(t){return!e.isBuiltInChoice(t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var n=this.separateSpecialChoices||this.isInDesignMode?this.dataChoices:this.renderedChoices;if("column"==Xt.showItemsInOrder)for(var r=0,o=n.length%t,i=0;i<t;i++){for(var s=[],a=r;a<r+Math.floor(n.length/t);a++)s.push(n[a]);o>0&&(o--,s.push(n[a]),a++),r=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<n.length;a+=t)s.push(n[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(e){return e.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):zo.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new Ae).append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.focusOtherComment=function(){var e;ft.FocusElement(this.otherId,!1,null===(e=this.survey)||void 0===e?void 0:e.rootElement)},t.prototype.onItemSelected=function(e){this.isOtherItem(e)&&this.focusOtherComment()},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),Uo([y({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),Uo([y()],t.prototype,"separateSpecialChoices",void 0),Uo([y({localizable:!0})],t.prototype,"otherPlaceholder",void 0),Uo([b()],t.prototype,"_renderedChoices",void 0),t}(Rn),Wo=function(e){function t(t){return e.call(this,t)||this}return Ho(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(qo);function $o(e,t){var n;if(!e)return!1;if(e.templateQuestion){var r=null===(n=e.colOwner)||void 0===n?void 0:n.data;if(!(e=e.templateQuestion).getCarryForwardQuestion(r))return!1}return e.carryForwardQuestionType===t}M.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return $o(e,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return $o(e,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return $o(e,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(e){return!e.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(e){return!e.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(e){return e.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(e){return e.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),M.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Qo=function(){function e(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),e}(),Go=function(){function e(){}return e.calculatePosition=function(e,t,n,r,o,i){void 0===i&&(i="flex");var s=e.left,a=e.top;return"flex"===i&&(s="center"==o?(e.left+e.right-n)/2:"left"==o?e.left-n:e.right),a="middle"==r?(e.top+e.bottom-t)/2:"top"==r?e.top-t:e.bottom,"center"!=o&&"middle"!=r&&("top"==r?a+=e.height:a-=e.height),{left:Math.round(s),top:Math.round(a)}},e.getCorrectedVerticalDimensions=function(t,n,r,o,i,s){var a;void 0===i&&(i=!0),void 0===s&&(s={top:0,bottom:0});var l=r-e.bottomIndent;if("top"===o&&(a={height:n,top:t}),t<-s.top)a={height:i?n+t:n,top:-s.top};else if(n+t>r){var u=Math.min(n,l-t);a={height:i?u:n,top:i?t:t-(n-u)}}return a&&(a.height=Math.min(a.height,l),a.top=Math.max(a.top,-s.top)),a},e.updateHorizontalDimensions=function(e,t,n,r,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===r&&("fixed"===o?(e+t>n&&(s=n-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,n)):t+e>n&&(a=n-t,a=Math.max(a,i.left),s=Math.min(t,n))),"left"===r&&e<0&&(a=i.left,s=Math.min(t,n)),"right"===r&&t+e>n&&(s=n-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,n,r,o){if("middle"===r)return r;var i=t-(e.top+("center"!==n?e.height:0)),s=t+e.bottom-("center"!==n?e.height:0)-o;return i>0&&s<=0&&"top"==r?r="bottom":s>0&&i<=0&&"bottom"==r?r="top":s>0&&i>0&&(r=i<s?"top":"bottom"),r},e.updateHorizontalPosition=function(e,t,n,r){if("center"===n)return n;var o=t-e.left,i=t+e.right-r;return o>0&&i<=0&&"left"==n?n="right":i>0&&o<=0&&"right"==n?n="left":i>0&&o>0&&(n=o<i?"left":"right"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,r,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=r&&(a.top=e[r],a.left=e.left+e.width/2),a.left=Math.round(a.left-n),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}(),Yo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ko='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',Xo=function(e){function t(t){var n=e.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new at(n,function(e){n._isVisible!==e&&(e?(n.updateBeforeShowing(),n.updateIsVisible(e)):(n.updateOnHiding(),n.updateIsVisible(e),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new Pe,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=t,n.locale=n.model.locale,n}return Yo(t,e),t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return"overlay"!==this.model.displayMode&&Xt.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return null===(e=this.container)||void 0===e?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new Ae).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new De,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach(function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){this.top="",this.left="",this.height="",this.width="",this.minWidth=""},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(Ko),n=t[0],r=t[t.length-1];e.shiftKey?Xt.environment.root.activeElement===n&&(r.focus(),e.preventDefault()):Xt.environment.root.activeElement===r&&(n.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=Xt.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);null==e||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||Ko);t?t.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),null==e||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=o.createElement("div");this.createdContainer=e,_t(Xt.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,t){for(var n=e.target;n!==this.container;){if("auto"===o.getComputedStyle(n).overflowY&&n.scrollHeight!==n.offsetHeight){var r=n.scrollHeight,i=n.scrollTop,s=n.clientHeight;if(!(t>0&&Math.abs(r-s-i)<1||t<0&&i<=0))return}n=n.parentElement}e.cancelable&&e.preventDefault()},Zo([y({defaultValue:"0px"})],t.prototype,"top",void 0),Zo([y({defaultValue:"0px"})],t.prototype,"left",void 0),Zo([y({defaultValue:"auto"})],t.prototype,"height",void 0),Zo([y({defaultValue:"auto"})],t.prototype,"width",void 0),Zo([y({defaultValue:"auto"})],t.prototype,"minWidth",void 0),Zo([y({defaultValue:!1})],t.prototype,"_isVisible",void 0),Zo([y()],t.prototype,"locale",void 0),t}(xe),Jo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ei=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function ti(e,t){var n=e||r.getInnerWidth(),o=t||r.getInnerHeight();return Math.min(n,o)>=ni.tabletSizeBreakpoint}var ni=function(e){function t(t){var n=e.call(this,t)||this;return n.scrollEventCallBack=function(e){if(n.isOverlay&&jr)return e.stopPropagation(),void e.preventDefault();n.hidePopup()},n.resizeEventCallback=function(){if(r.isAvailable()){var e=r.getVisualViewport(),t=o.getDocumentElement();t&&e&&t.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,"vue"===zo.platform||"vue3"===zo.platform||"react"==zo.platform)},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(e){n.clientY=e.touches[0].clientY},n.touchMoveEventCallback=function(e){n.preventScrollOuside(e,n.clientY-e.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return Jo(t,e),t.prototype.calculateIsTablet=function(e,t){this.isTablet=ti(e,t)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var t=e.getBoundingClientRect();return new Qo(t.x,t.y,t.width,t.height)}return new Qo(0,0,r.getInnerWidth(),r.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,t=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!t&&(t=e.parentElement),!t)return null;var n=t.getBoundingClientRect(),r=this.getAvailableAreaRect();return new Qo(n.left-r.left,n.top-r.top,n.width,n.height)},t.prototype._updatePosition=function(){var e,t,n,i=this.getTargetElementRect();if(i){var s=this.getAvailableAreaRect(),a=null===(e=this.container)||void 0===e?void 0:e.querySelector(this.containerSelector);if(a){var l=null===(t=this.container)||void 0===t?void 0:t.querySelector(this.fixedPopupContainer),u=a.querySelector(this.scrollingContentSelector),c=o.getComputedStyle(a),p=parseFloat(c.marginLeft)||0,d=parseFloat(c.marginRight)||0,f=parseFloat(c.marginTop)||0,h=parseFloat(c.marginBottom)||0,m=a.offsetHeight-u.offsetHeight+u.scrollHeight,g=a.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=i.width+"px");var y=this.model.verticalPosition,v=this.getActualHorizontalPosition();if(r.isAvailable()){var b=[m,.9*r.getInnerHeight(),null===(n=r.getVisualViewport())||void 0===n?void 0:n.height];m=Math.ceil(Math.min.apply(Math,b.filter(function(e){return"number"==typeof e}))),y=Go.updateVerticalPosition(i,m,this.model.horizontalPosition,this.model.verticalPosition,s.height),v=Go.updateHorizontalPosition(i,g,v,s.width)}this.popupDirection=Go.calculatePopupDirection(y,v);var w=Go.calculatePosition(i,m,g+p+d,y,v,this.model.positionMode);if(r.isAvailable()){var C=Go.getCorrectedVerticalDimensions(w.top,m,s.height,y,this.model.canShrink,{top:f,bottom:h});if(C&&(this.height=C.height+"px",w.top=C.top),this.model.setWidthByTarget)this.width=i.width+"px",w.left=i.left;else{var _=Go.updateHorizontalDimensions(w.left,g,r.getInnerWidth(),v,this.model.positionMode,{left:p,right:d});_&&(this.width=_.width?_.width+"px":void 0,w.left=_.left)}}if(l){var x=l.getBoundingClientRect();w.top-=x.top,w.left-=x.left}w.left+=s.left,w.top+=s.top,this.left=w.left+"px",this.top=w.top+"px",this.showHeader&&(this.pointerTarget=Go.calculatePointerTarget(i,w.top,w.left,y,v,p,d),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return o.isAvailable()&&"rtl"==o.getComputedStyle(o.getBody()).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){var t=this.model.overlayDisplayMode;return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&"plain"!==t).append("sv-popup--tablet",this.isOverlay&&("tablet-dropdown-overlay"==t||"auto"==t&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||"top"==this.popupDirection||"bottom"==this.popupDirection))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(t){e.prototype.setComponentElement.call(this,t)},t.prototype.resetComponentElement=function(){e.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=Xt.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),r.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(r.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),r.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!r.getVisualViewport()&&this.isOverlay&&jr},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var n=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout(function(){n._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),r.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(r.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),r.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(t){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(e,t){n.isOverlay||n.updatePosition(t.isResetHeight)}),e.prototype.onModelChanging.call(this,t),t.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,ei([y()],t.prototype,"isTablet",void 0),ei([y({defaultValue:"left"})],t.prototype,"popupDirection",void 0),ei([y({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(Xo),ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oi=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ii=function(e){function t(t,n){var r=e.call(this)||this;r.question=t,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.listModelFilterStringChanged=function(e){r.filterString!==e&&(r.filterString=e)},r.questionPropertyChangedHandler=function(e,t){r.onPropertyChangedHandler(e,t)},r.htmlCleanerElement=o.createElement("div"),t.onPropertyChanged.add(r.questionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setInputPlaceholder(r.question.placeholder),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings();var i=t.cssClasses;return r.updateCssClasses(i.popup,i.list),r}return ri(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return jr?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var t=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(n,r){t.setItems(n||[],r||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var t=this,n=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!n||(this.resetTimer(),this.filterString&&Xt.dropdownSearchDelay>0?this.timer=setTimeout(function(){t.loadQuestionChoices(e)},Xt.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=r.getInnerWidth(),t=r.getInnerHeight(),n=ti(e,t),o="dropdown",i="desktop";return jr&&(o=n?"popup":"overlay",i=n?"tablet":"mobile"),{menuType:o,deviceType:i,hasTouchScreen:jr,screenHeight:t,screenWidth:e}},t.prototype.createPopup=function(){var e=this;this._popupModel=new He("sv-list",{model:this.listModel},{verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1}),this._popupModel.displayMode=jr?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=jr,this._popupModel.setWidthByTarget=!jr,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(t,n){if(n.isVisible&&(e.listModel.renderElements=!0),n.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),n.isVisible){e.updatePopupFocusFirstInputSelector();var r=e.getDropdownMenuOptions(),o=r.menuType;e.question.processOpenDropdownMenu(r),o!==r.menuType&&(e._popupModel.updateDisplayMode(r.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&"dropdown"!==r.menuType)),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}n.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=n.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,n.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter(function(e){return e.id==t.question.selectedItem.value})[0],void(this.listModel.filterString&&this.listModel.actions.map(function(e){return e.selectedValue=!1}));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout(function(){t.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var t=this;e.setOnTextSearchCallback(function(e,n){if(t.filteredItems)return t.filteredItems.indexOf(e)>=0;var r=e.text.toLocaleLowerCase(),o=(r=Xt.comparator.normalizeTextCallback(r,"filter")).indexOf(n.toLocaleLowerCase());return"startsWith"==t.question.searchMode?0==o:o>-1})},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t){e.question.value=t.id,e.question.onItemSelected&&e.question.onItemSelected(t),e.question.searchEnabled&&e.applyInputString(t),e.popupModel.hide()});var r={items:t,onSelectionChanged:n,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},o=new Fe(r);return this.setOnTextSearchCallbackForListModel(o),o.renderElements=!1,o.forceShowFilter=!0,o.areSameItemsCallback=function(e,t){return e===t},o},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.onPropertyChanged.add(function(e,n){"hasVerticalScroller"==n.name&&(t.hasScroll=n.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(e){return e.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new Ae).append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,this.filterString||this.popupModel.isVisible){var t={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,t),this.filteredItems=t.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var n=function(){e.setFilterStringToListModel(e.filterString),e.filterString&&e.applyHintString(),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(n)):n()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(null==e?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(){var e=this.listModel.focusedItem||this.question.selectedItem;(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e||(this.hintString="")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString||this.question.readOnly||!this.question.isEmpty()?"":this.inputPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&!(!this.hintStringLC&&!this.inputStringLC)||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintStringLC.indexOf(this.inputStringLC)>=0?this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return jr?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(jr&&e),this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.setInputPlaceholder=function(e){this.inputPlaceholder=e},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,t){"value"==t.name&&(this.showInputFieldComponent=this.question.showInputFieldComponent),"textWrapEnabled"==t.name&&this.setTextWrapEnabled(t.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,n=this.listModel.focusedItem;!n&&this.question.selectedItem?Nn.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):40===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),9===e.keyCode)this.popupModel.hide();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Lt(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof li&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else 32===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),13===e.keyCode&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.focused=!1,this.popupModel.isVisible&&"overlay"==this.popupModel.displayMode||(Dt(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation())},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},oi([y({defaultValue:!1})],t.prototype,"focused",void 0),oi([y({defaultValue:!0})],t.prototype,"searchEnabled",void 0),oi([y({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),oi([y({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),oi([y({})],t.prototype,"showInputFieldComponent",void 0),oi([y()],t.prototype,"ariaActivedescendant",void 0),oi([y()],t.prototype,"inputPlaceholder",void 0),oi([y({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener(function(e){t.onScroll(e)}):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),oi([y({defaultValue:""})],t.prototype,"hintString",void 0),t}(xe),si=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ai=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},li=function(e){function t(t){var n=e.call(this,t)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.getSingleSelectedItem(),n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return si(t,e),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),this.updateInputPlaceholder(this.placeholder)},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.calculateReadOnlyText()},t.prototype.updateInputPlaceholder=function(e){this.dropdownListModelValue&&this.dropdownListModel.setInputPlaceholder(e)},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||Xt.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e),this.updateInputPlaceholder(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r));return n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.calculateReadOnlyText=function(){if("select"==this.renderAs){if(this.isOtherSelected)return this.otherText;if(this.isNoneSelected)return this.noneText;if(this.selectedItem)return this.selectedItemText}return this.selectedItem?this.selectedItemText:this.placeholder},t.prototype.getControlClass=function(){return(new Ae).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},t.prototype.updateCssClasses=function(t,n){e.prototype.updateCssClasses.call(this,t,n),this.useDropdownList&&Wt(t,n)},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDropdownList",{get:function(){return"select"!==this.renderAs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.isDisposed||!this.useDropdownList||this.dropdownListModelValue||(this.dropdownListModelValue=new ii(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(t){var n;null===(n=this.dropdownListModelValue)||void 0===n||n.setInputStringFromSelectedItem(t),e.prototype.onSelectedItemValuesChangedHandler.call(this,t)},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(t){var n;e.prototype.clearValue.call(this,t),this.lastSelectedItemValue=null,null===(n=this.dropdownListModelValue)||void 0===n||n.clear()},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(t){this.dropdownListModel.onBlur(t),e.prototype.onBlurCore.call(this,t)},t.prototype.onFocusCore=function(t){this.dropdownListModel.onFocus(t),e.prototype.onFocusCore.call(this,t)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},ai([y()],t.prototype,"allowClear",void 0),ai([y({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),ai([y()],t.prototype,"searchMode",void 0),ai([y()],t.prototype,"textWrapEnabled",void 0),ai([y({defaultValue:!1})],t.prototype,"inputHasValue",void 0),ai([y({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),ai([y()],t.prototype,"choicesLazyLoadPageSize",void 0),ai([y()],t.prototype,"suggestedItem",void 0),t}(qo);M.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:Xt.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new li("")},"selectbase"),ar.Instance.registerQuestion("dropdown",function(e){var t=new li(e);return t.choices=ar.DefaultChoices,t});var ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.item=t,i.fullName=n,i.data=r,i.setValueDirectly(o),i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],function(){i.data&&i.data.onMatrixRowChanged(i)}),i.data&&i.data.hasErrorInRow(i)&&(i.hasError=!0),i}return ui(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return(new Ae).append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return(new Ae).append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(xe),pi=function(e){function t(t){var n=e.call(this)||this;return n.cellsOwner=t,n.values={},n.locs={},n}return ui(t,e),t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,t){return this.getCellLocCore(e,t)},t.prototype.getCellLocCore=function(e,t){var n=this;if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),s.isValueEmpty(e)||s.isValueEmpty(t))return null;this.locs[e]||(this.locs[e]={});var r=this.locs[e][t];return r||((r=this.createString()).setJson(this.getCellLocData(e,t)),r.onGetTextCallback=function(e){if(!e){var r=Nn.getItemByValue(n.columns,t);if(r)return r.locText.getJson()||r.value}return e},r.onStrChanged=function(r,o){n.updateValues(e,t,o)},this.locs[e][t]=r),r},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return Xt.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,t){return this.getCellLocDataFromValue(e,t)||this.getCellLocDataFromValue(this.defaultRowValue,t)},t.prototype.getCellLocDataFromValue=function(e,t){return this.values[e]&&this.values[e][t]?this.values[e][t]:null},t.prototype.getCellText=function(e,t){var n=this.getCellLocCore(e,t);return n?n.calculatedText:null},t.prototype.setCellText=function(e,t,n){var r=this.getCellLocCore(e,t);r&&(r.text=n)},t.prototype.updateValues=function(e,t,n){n?(this.values[e]||(this.values[e]={}),this.values[e][t]=n,this.valuesChanged()):this.values[e]&&this.values[e][t]&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var t=this.getCellLocCore(this.defaultRowValue,e);return t?t.calculatedText:null},t.prototype.setDefaultCellText=function(e,t){this.setCellText(this.defaultRowValue,e,t)},t.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],t={};for(var n in this.values){var r={},o=this.values[n];for(var i in o)if(n===this.defaultRowValue||!e||e[i]!==o[i]){var s=this.getCellLocCore(n,i);r[i]=s?s.getJson():o[i]}t[n]=r}return t},t.prototype.setJson=function(e,t){var n=this;if(this.values={},e)for(var r in e)if("pos"!=r){var o=e[r];for(var i in this.values[r]={},o)"pos"!=i&&(this.values[r][i]=o[i])}this.locNotification=!0,this.runFuncOnLocs(function(e,t,r){return r.setJson(n.getCellLocData(e,t))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,t,n){return n.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var t in this.locs){var n=this.locs[t];for(var r in n)e(t,r,n[r])}},t.prototype.createString=function(){return new mt(this.cellsOwner,!0)},t}(xe),di=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new mt(n),n.cellsValue=new pi(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],function(){n.onColumnsChanged()}),n.registerPropertyChangedHandlers(["rows"],function(){n.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return ui(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new Nn(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,o=!n&&!r,i=this.hasCellText,s=this.cssClasses;return(new Ae).append(s.cell,i).append(i?s.cellText:s.label).append(s.itemOnError,!i&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(i?s.cellTextSelected:s.itemChecked,n).append(i?s.cellTextDisabled:s.itemDisabled,this.isDisabledStyle).append(i?s.cellTextReadOnly:s.itemReadOnly,this.isReadOnlyStyle).append(i?s.cellTextPreview:s.itemPreview,this.isPreviewStyle).append(s.itemHover,o&&!i).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.runCondition=function(t,n){Nn.runEnabledConditionsForItems(this.rows,void 0,t,n),e.prototype.runCondition.call(this,t,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new ge(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),e.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows||this.rows,r=0;r<n.length;r++){var o=n[r];if(!this.isValueEmpty(o.value)){var i=this.id+"_"+o.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(o,i,t[o.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?s.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return s.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n,r){if(e.prototype.onCheckForErrors.call(this,t,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&t.push(new cn(null,this)),o.isNotUnique&&t.push(new pn(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,t,n){var r=this,o=this.generatedVisibleRows;if(o||(o=this.visibleRows),o){var i=this.isAllRowRequired||n,s=this.eachRowUnique;if(t.noValue=!1,t.isNotUnique=!1,e&&(this.errorsInRow=void 0),i||s){for(var a={},l=0;l<o.length;l++){var u=o[l].value,c=this.isValueEmpty(u),p=s&&!c&&!0===a[u];c=c&&i,e&&(c||p)&&this.addErrorIntoRow(o[l]),c||(a[u]=!0),t.noValue=t.noValue||c,t.isNotUnique=t.isNotUnique||p}e&&o.forEach(function(e){e.hasError=r.hasErrorInRow(e)})}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new ci(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=r[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].setValueDirectly(i)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?Nn.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var i=Nn.getTextOrHtmlByValue(this.columns,t[r]);i||(i=t[r]),n[o]=i}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(e){var r=n.rows.filter(function(t){return t.value===e})[0],i={name:e,title:r?r.text:"row",value:o[e],displayValue:Nn.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},s=Nn.getItemByValue(n.visibleColumns,o[e]);return s&&(t.calculations||[]).forEach(function(e){i[e.propertyName]=s[e.propertyName]}),i})}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=new li(n);r.choices=this.columns;var o=(new R).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),e.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,t,n){if(!this.isEmpty()){for(var r=this.getUnbindValue(this.value),o={},i=this.rows,s=0;s<i.length;s++){var a=i[s].value;r[a]&&(e&&!i[s].isVisible||t&&!this.getVisibleColumnByValue(r[a])?delete r[a]:o[a]=r[a])}n&&(r=o),this.isTwoValueEquals(r,this.value)||(this.value=r)}},t.prototype.getVisibleColumnByValue=function(e){var t=Nn.getItemByValue(this.columns,e);return t&&t.isVisible?t:null},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(Yn);M.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],function(){return new di("")},"matrixbase"),ar.Instance.registerQuestion("matrix",function(e){var t=new di(e);return t.rows=ar.DefaultRows,t.columns=ar.DefaultColums,t});var fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hi=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.getRemainingCharacterCounterText(e,t)},hi([y()],t.prototype,"remainingCharacterCounter",void 0),t}(xe),gi=function(e){function t(t){var n=e.call(this,t)||this;return n.characterCounter=new mi,n}return fi(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return"default"==this.textUpdateMode?e.prototype.getIsInputTextUpdate.call(this):"onTyping"==this.textUpdateMode},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this;return this.getPropertyValue("renderedPlaceholder",void 0,function(){return e.hasPlaceholder()?e.placeHolder:void 0})},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateRemainingCharacterCounter(t)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return(new Ae).append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),hi([y({localizable:!0,onSet:function(e,t){return t.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(Rn);M.addClass("textbase",[],function(){return new gi("")},"question");var yi=function(){function e(e,t,n){var r=this;this.inputMaskInstance=e,this.inputElement=t,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(e,t){if("saveMaskedValue"!==t.name){var n=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.setInputValue(n)}},this.clickHandler=function(e){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(e){var t=r.createArgs(e),n=r.inputMaskInstance.processInput(t);r.setInputValue(n.value),r.inputElement.setSelectionRange(n.caretPosition,n.caretPosition),n.cancelPreventDefault||e.preventDefault()},this.changeHandler=function(e){var t=r.inputMaskInstance.processInput({prevValue:"",insertedChars:e.target.value,selectionStart:0,selectionEnd:0});r.setInputValue(t.value)};var o=n;null==o&&(o=""),this.setInputValue(e.saveMaskedValue?o:e.getMaskedValue(o)),this.prevUnmaskedValue=o,e.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return e.prototype.setInputValue=function(e){this.inputElement.maxLength>=0&&this.inputElement.maxLength<e.length&&(e=e.slice(0,this.inputElement.maxLength)),this.inputElement.value=e},e.prototype.createArgs=function(e){var t={insertedChars:e.data,selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd,prevValue:e.target.value,inputDirection:"forward"};return"deleteContentBackward"===e.inputType&&(t.inputDirection="backward",t.selectionStart===t.selectionEnd&&(t.selectionStart=Math.max(t.selectionStart-1,0))),"deleteContentForward"===e.inputType&&t.selectionStart===t.selectionEnd&&(t.selectionEnd+=1),t},e.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},e.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},e.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},e}(),vi=/[0-9]/;function bi(){var e=(M.getChildrenClasses("masksettings")||[]).map(function(e){var t=e.name;return-1!==e.name.indexOf("mask")&&(t=t.slice(0,t.indexOf("mask"))),t});return e.unshift("none"),e}var wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ci=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_i=function(e){function t(t){var n=e.call(this,t)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(e){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(e)},1),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyUp=function(e){n.updateDateValidationMessage(e),n.isInputTextUpdate?n._isWaitingForEnter&&13!==e.keyCode||(n.updateValueOnEvent(e),n._isWaitingForEnter=!1):13===e.keyCode&&n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.readOnlyBlocker=function(e){if(n.isReadOnlyAttr&&["color","range"].indexOf(n.inputType)>-1)return e.preventDefault(),!0},n.onKeyDown=function(e){n.readOnlyBlocker(e)||(n.onKeyDownPreprocess&&n.onKeyDownPreprocess(e),n.isInputTextUpdate&&(n._isWaitingForEnter=229===e.keyCode),n.onTextKeyDownHandler(e))},n.onChange=function(e){n.updateDateValidationMessage(e),e.target===Xt.environment.root.activeElement?n.isInputTextUpdate&&n.updateValueOnEvent(e):n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new gt(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return wi(t,e),t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new yi(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return"none"===this.maskType;default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=this.maskType&&"none"!==this.maskType?this.maskType+"mask":"masksettings";M.findClass(e)||(e="masksettings");var t=M.createClass(e);return t.owner=this.survey,t},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?e.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.getDisplayValueCore=function(t,n){return this.maskTypeIsEmpty||s.isValueEmpty(n)?e.prototype.getDisplayValueCore.call(this,t,n):this.maskInstance.getMaskedValue(n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return Ei(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return this._inputValue||this.maskTypeIsEmpty?this._inputValue:this.maskInstance.getMaskedValue("")},set:function(e){var t=e;this._inputValue=e,this.maskTypeIsEmpty||(t=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(t),t&&this.maskSettings.saveMaskedValue&&(t=this._inputValue)),this.value=t},enumerable:!1,configurable:!0}),t.prototype.getExpressionValue=function(e){return!this.maskTypeIsEmpty&&this.maskSettings.saveMaskedValue?this.maskInstance.getUnmaskedValue(e):e},t.prototype.convertToCorrectValue=function(t){return null!=t&&"string"!=typeof t&&!this.maskTypeIsEmpty&&this.maskSettings.saveMaskedValue?this.maskInstance.getMaskedValue(t):e.prototype.convertToCorrectValue.call(this,t)},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.updateInputValue()},t.prototype.updateInputValue=function(){var e=this.value;this.maskTypeIsEmpty?this._inputValue=e:this.maskSettings.saveMaskedValue?this._inputValue=null!=e?e:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(e)},t.prototype.hasToConvertToUTC=function(e){return Xt.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return i("question-text",e)},t.prototype.valueForSurveyCore=function(t){return this.hasToConvertToUTC(t)&&(t=this.createDate(t).toISOString()),e.prototype.valueForSurveyCore.call(this,t)},t.prototype.valueFromDataCore=function(t){if(this.hasToConvertToUTC(t)){var n=this.createDate(t),r=this.createDate(n.getTime()-60*n.getTimezoneOffset()*1e3).toISOString();t=r.substring(0,r.length-2)}return e.prototype.valueFromDataCore.call(this,t)},t.prototype.onCheckForErrors=function(t,n,r){var o=this;if(e.prototype.onCheckForErrors.call(this,t,n,r),!n){if(this.isValueLessMin){var i=new hn(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);i.onUpdateErrorTextCallback=function(e){e.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},t.push(i)}if(this.isValueGreaterMax){var s=new hn(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);s.onUpdateErrorTextCallback=function(e){e.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},t.push(s)}this.dateValidationMessage&&t.push(new hn(this.dateValidationMessage,this));var a=this.getValidatorTitle(),l=new xn;if(l.errorOwner=this,"email"===this.inputType&&!this.validators.some(function(e){return"emailvalidator"===e.getType()})){var u=l.validate(this.value,a);u&&u.error&&t.push(u.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var t=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return s.convertValToQuestionVal(e,t)},t.prototype.getMinMaxErrorText=function(e,t){if(s.isValueEmpty(t))return e;var n=t.toString();return"date"===this.inputType&&t.toDateString&&(n=t.toDateString()),e.replace("{0}",n)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return"datetime-local"===this.inputType},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(e){!e&&n.isDateInputType&&Xt.minDate&&(e=Xt.minDate),n.setPropertyValue("renderedMin",e)},e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(e){!e&&n.isDateInputType&&(e=Xt.maxDate?Xt.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)},e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return!!this.maskTypeIsEmpty&&e.prototype.getIsInputTextUpdate.call(this)},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.setNewValue=function(t){(t=this.correctValueType(t))&&(this.dateValidationMessage=void 0),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){if(!e)return e;if("number"===this.inputType||"range"===this.inputType)return s.isNumber(e)?s.getNumber(e):"";if("month"===this.inputType){var t=this.createDate(e),n=0==t.toISOString().indexOf(e)&&-1==e.indexOf("T"),r=(n?t.getUTCMonth():t.getMonth())+1;return(n?t.getUTCFullYear():t.getFullYear())+"-"+(r<10?"0":"")+r}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.getControlCssClassBuilder=function(){var t=this.getMaxLength();return e.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!t).append(this.cssClasses.characterCounterBig,t>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===Xt.readOnly.textRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){"auto"!==this.inputTextAlignment?e.textAlign=this.inputTextAlignment:this.maskTypeIsEmpty||"auto"===this.maskSettings.getTextAlignment()||(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var t=e.target.value;this.isTwoValueEquals(this.value,t)||(this.inputValue=t)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(t){this.updateDateValidationMessage(t),this.updateValueOnEvent(t),this.updateRemainingCharacterCounter(t.target.value),e.prototype.onBlurCore.call(this,t)},t.prototype.onFocusCore=function(t){this.updateRemainingCharacterCounter(t.target.value),e.prototype.onFocusCore.call(this,t)},t.prototype.afterRenderQuestionElement=function(t){t&&(this.input=t instanceof HTMLInputElement?t:t.querySelector("input"),this.createMaskAdapter()),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},Ci([y({onSet:function(e,t){t.onSetMaskType(e)}})],t.prototype,"maskType",void 0),Ci([y()],t.prototype,"inputTextAlignment",void 0),Ci([y()],t.prototype,"_inputValue",void 0),t}(gi),xi=["number","range","date","datetime-local","month","time","week"];function Ei(e){var t=e?e.inputType:"";return!!t&&xi.indexOf(t)>-1}function Si(e,t){var n=e.split(t);return 2!==n.length?-1:s.isNumber(n[0])&&s.isNumber(n[1])?60*parseFloat(n[0])+parseFloat(n[1]):-1}function Pi(e,t,n,r){var o=r?n:t;if(!Ei(e))return o;if(s.isValueEmpty(t)||s.isValueEmpty(n))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var a="month"===e.inputType,l="question-text-minmax",u=i(l,a?t+"-01":t),c=i(l,a?n+"-01":n);if(!u||!c)return o;if(u>c)return r?t:n}if("week"===e.inputType||"time"===e.inputType)return function(e,t,n){var r=Si(e,n),o=Si(t,n);return!(r<0||o<0)&&r>o}(t,n,"week"===e.inputType?"-W":":")?r?t:n:o;if("number"===e.inputType){if(!s.isNumber(t)||!s.isNumber(n))return o;if(s.getNumber(t)>s.getNumber(n))return r?t:n}return"string"==typeof t||"string"==typeof n?o:t>n?r?t:n:o}function Oi(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}M.addClass("text",[{name:"inputType",default:"text",choices:Xt.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:Xt.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return Ei(e)},onPropertyEditorUpdate:function(e,t){Oi(e,t)},onSettingValue:function(e,t){return Pi(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return Ei(e)},onSettingValue:function(e,t){return Pi(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){Oi(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Ei(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Ei(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return Ei(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return Ei(e)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType},choices:function(e){return bi()}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],function(){return new _i("")},"textbase"),ar.Instance.registerQuestion("text",function(e){return new _i(e)});var Ti=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ki=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ti(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(_i),Ii=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(t),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(e,t){"maskSettings"!==t.name&&r.onPropertyChanged.fire(r,t)}),r}return Ti(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new Ai(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return s.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(xe),Ri=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(e){e.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,e)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return Ti(t,e),t.addDefaultItems=function(e){for(var t=ar.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map(function(t,n){return t.editor.id=e+"_"+n}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),s.isValueEmpty(this.rows)||this.calcVisibleRows()},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor(function(e){e.editor.updateValueFromSurvey(e.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor(function(e){e.editor.onSurveyValueChanged(e.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.getElementsInDesign=function(t){return void 0===t&&(t=!1),e.prototype.getElementsInDesign.call(this,t).concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,t,n){n&&e.push(this),this.items.forEach(function(n){return n.editor.collectNestedQuestions(e,t)})},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=this.getItemByName(n);if(!r)return null;var o=(new R).toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.itemErrorLocation?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return"top"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return"bottom"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return s.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e,t,n=this.colCount,r=this.items,o=0,i=[],s=0;s<r.length;s++)0==o&&(e=this.onRowCreated(new Mi),t=this.onRowCreated(new Di),this.showItemErrorOnTop?(i.push(t),i.push(e)):(i.push(e),i.push(t))),e.cells.push(new Li(r[s],this)),t.cells.push(new Ni(r[s],this)),(++o>=n||s==r.length-1)&&(o=0,t.onAfterCreated());this.rows=i},t.prototype.getRows=function(){return s.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new Ii(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.items.forEach(function(e){return e.editor.runCondition(t,n)})},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,n)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return ft.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var o=this.items[r],i=t[o.name];if(!s.isValueEmpty(i)){var a=o.name;e&&o.title&&(a=o.title),n[a]=o.editor.getDisplayValue(e,i)}}return n},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return(new Ae).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return(new Ae).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new Ae).append(this.cssClasses.itemTitle).toString()},ki([b()],t.prototype,"rows",void 0),t}(Rn),Mi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isVisible=!0,t.cells=[],t}return Ti(t,e),ki([y()],t.prototype,"isVisible",void 0),ki([b()],t.prototype,"cells",void 0),t}(xe),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ti(t,e),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.isVisible=e.cells.some(function(e){var t,n;return(null===(t=e.item)||void 0===t?void 0:t.editor)&&(null===(n=e.item)||void 0===n?void 0:n.editor.hasVisibleErrors)})};this.cells.forEach(function(e){var n,r;(null===(n=e.item)||void 0===n?void 0:n.editor)&&(null===(r=e.item)||void 0===r||r.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t))}),t()},t}(Mi),Li=function(){function e(e,t){this.item=e,this.question=t,this.isErrorsCell=!1}return e.prototype.getClassName=function(){return(new Ae).append(this.question.cssClasses.cell).toString()},Object.defineProperty(e.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),e}(),Ni=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isErrorsCell=!0,t}return Ti(t,e),t.prototype.getClassName=function(){return(new Ae).append(e.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(Li);M.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:Xt.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType},choices:function(e){return bi()}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Ei(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Ei(e)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Ii("")}),M.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],function(){return new Ri("")},"question"),ar.Instance.registerQuestion("multipletext",function(e){var t=new Ri(e);return Ri.addDefaultItems(t),t});var Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ji=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return Vi(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,o=null;null!==(o=t.exec(n));){o.index>r&&(e.push(n.substring(r,o.index)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substring(r,o.index+o[0].length)),r=o.index+o[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||!r.isAvailable())return!1;var n=r.getSelection();if(n.getRangeAt&&n.rangeCount){var o=n.getRangeAt(0);o.deleteContents();var i=new Text(e);if(o.insertNode(i),this.getContent){var s=this.getContent(t);this.content=s}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(So);M.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new ji},"panel");var Fi=function(){function e(){}return e.getIconCss=function(e,t){return(new Ae).append(e.icon).append(e.iconExpanded,!t).toString()},e}(),zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bi=function(e){function t(t){return e.call(this,t)||this}return zi(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Rn);M.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new Bi("")},"question");var Hi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ui=function(e){function t(t){return e.call(this,t)||this}return Hi(t,e),t.prototype.getType=function(){return"empty"},t}(Rn);M.addClass("empty",[],function(){return new Ui("")},"question");var qi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wi=function(e){function t(t){var n=e.call(this,t)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new Nn(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return qi(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var n=this.value;if(Array.isArray(n)&&t<n.length)return this}return null},t.prototype.getDependedQuestionsByValueName=function(t){return t&&this.valuePropertyName?[]:e.prototype.getDependedQuestionsByValueName.call(this,t)},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){if(this.isNoneItemsSelected())return!1;var e=this.getVisibleEnableItems();if(0===e.length)return!1;var t=this.value;if(!t||!Array.isArray(t)||0===t.length)return!1;if(t.length<e.length)return!1;for(var n=[],r=0;r<t.length;r++)n.push(this.getRealValue(t[r]));for(r=0;r<e.length;r++)if(n.indexOf(e[r].value)<0)return!1;return!0},t.prototype.isNoneItemsSelected=function(){for(var e=this.getNoneItems(),t=0;t<e.length;t++)if(this.isItemSelected(e[t]))return!0;return!1},t.prototype.selectAll=function(){for(var e=[],t=this.getVisibleEnableItems(),n=0;n<t.length;n++)e.push(t[n].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,t){if(!this.isReadOnlyAttr){if(e===this.selectAllItem)!0===t||!1===t?this.isAllSelected=t:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=t?[e.value]:[];else{var n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n}t&&this.onItemSelected(e)}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(t,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!1);var i=this.valuePropertyName;return i&&"object"==typeof t&&void 0!==t[i]&&(t=t[i]),e.prototype.hasUnknownValueItem.call(this,t,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(t){var n=this;if(this.valuePropertyName&&Array.isArray(t)&&t.length>0){var r=[];t.forEach(function(e){var t="object"==typeof e,o=t?e:{};t||(o[n.valuePropertyName]=e),r.push(o)}),t=r}return e.prototype.convertDefaultValue.call(this,t)},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,t=this.visibleChoices,n=this.selectedItemValues;if(this.isEmpty())return[];var r=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,t):t,o=e.map(function(e){return Nn.getItemByValue(r,e)}).filter(function(e){return!!e});return o.length||n||this.updateSelectedItemValues(),this.validateItemValues(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var t=e.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(t+="-unwrapped"),t},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:e.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var t=this;if(e.length)return e;var n=this.selectedItemValues;return n&&n.length?(this.defaultSelectedItemValues=[].concat(n),n):this.renderedValue.map(function(e){return t.createItemValue(e)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(t,n,r){if(e.prototype.onCheckForErrors.call(this,t,n,r),!n&&this.checkMinSelectedChoicesUnreached()){var o=new hn(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);t.push(o)}},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){this.updateSelectAllItemProps(),this.maxSelectedChoices<1?this.otherItem.setIsEnabled(!0):this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;var e=this.getVisibleEnableItems().length,t=this.maxSelectedChoices;return!(t>0&&t<e)&&e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n];r.isEnabled&&!this.isBuiltInChoice(r)&&e.push(r)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,t=Array.isArray(e)?e.length:0;return(1!==t||!this.isNoneItemsSelected())&&t<this.minSelectedChoices},t.prototype.getItemClassCore=function(t,n){return this.value,n.isSelectAllItem=t===this.selectAllItem,(new Ae).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=this.getRealValue(t[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!s.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var n=this.value;t||(t=[]),n||(n=[]),this.isTwoValueEquals(n,t)||(this.removeNoneItemsValues(n,t),e.prototype.setNewValue.call(this,t))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.getStoreOthersAsComment=function(){return!this.valuePropertyName&&e.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);if(t<0)return e;var n=this.otherItem.value,r=this.valuePropertyName;if(r){var o={};o[r]=n,n=o}return e.splice(t,1,n),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValueItem(e[t],!1,!1))return t;return-1},t.prototype.removeNoneItemsValues=function(e,t){var n=[];if(this.showNoneItem&&n.push(this.noneItem.value),this.showRefuseItem&&n.push(this.refuseItem.value),this.showDontKnowItem&&n.push(this.dontKnowItem.value),n.length>0){var r=this.noneIndexInArray(e,n),o=this.noneIndexInArray(t,n);if(r.index>-1)if(r.val===o.val)t.length>0&&t.splice(o.index,1);else{var i=this.noneIndexInArray(t,[r.val]);i.index>-1&&i.index<t.length-1&&t.splice(i.index,1)}else if(o.index>-1&&t.length>1){var s=this.convertValueToObject([o.val])[0];t.splice(0,t.length,s)}}},t.prototype.noneIndexInArray=function(e,t){if(!Array.isArray(e))return{index:-1,val:void 0};for(var n=e.length-1;n>=0;n--){var r=t.indexOf(this.getRealValue(e[n]));if(r>-1)return{index:n,val:t[r]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(t,n){e.prototype.addNonChoicesItems.call(this,t,n),this.supportSelectAll()&&this.addNonChoiceItem(t,this.selectAllItem,n,this.hasSelectAll,Xt.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(t){return t===this.selectAllItem||e.prototype.isBuiltInChoice.call(this,t)},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueEmpty=function(){var e=this;return Nn.getTextOrHtmlByValue(this.visibleChoices.filter(function(t){return t!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);var r=this.valuePropertyName;return this.getDisplayArrayValue(t,n,function(e){var t=n[e];return r&&t[r]&&(t=t[r]),t})},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknown(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(n=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<r.length;i++)o.push(r[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue(!0):this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n];if(r!==this.selectAllItem){var o=t[n].value;s.isTwoValueEquals(o,this.invisibleOldValues[o])&&(this.isItemSelected(r)||e.push(o),delete this.invisibleOldValues[o])}}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this,t,n);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return s.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var o=Nn.getItemByValue(this.visibleChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?s.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(t=this.data.getValue(this.getValueName())),s.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var n=e.slice();return n[t]=this.otherValue,n}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]!==this.otherItem.value&&t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Wo);M.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var n=e.minSelectedChoices;return n>0&&t<n?n:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var n=e.maxSelectedChoices;return n>0&&t>n?n:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new Wi("")},"checkboxbase"),ar.Instance.registerQuestion("checkbox",function(e){var t=new Wi(e);return t.choices=ar.DefaultChoices,t});var $i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qi=function(e){function t(t){var n=e.call(this,t)||this;return n.onItemClick=function(e){n.isItemDisabled(e)||(n.isExpanded=!1,n.isItemSelected(e)?(n.selectedItems.splice(n.selectedItems.indexOf(e),1)[0],n.onSelectionChanged&&n.onSelectionChanged(e,"removed")):(n.selectedItems.push(e),n.onSelectionChanged&&n.onSelectionChanged(e,"added")))},n.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},n.isItemSelected=function(e){return!!n.allowSelection&&n.selectedItems.filter(function(t){return n.areSameItems(t,e)}).length>0},n.setSelectedItems(t.selectedItems||[]),n}return $i(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(t){var n=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!n})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter(function(t){return e.isItemVisible(t)}).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y()],t.prototype,"hideSelectedItems",void 0),t}(Fe),Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yi=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zi=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.setHideSelectedItems(t.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=t.closeOnSelect,r}return Gi(t,e),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter(function(e){return e.selected})},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&jr&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t,n){e.resetFilterString(),"selectall"===t.id?e.selectAllItems():"added"===n&&t.value===Xt.noneItemValue?e.selectNoneItem():"added"===n?e.selectItem(t.value):"removed"===n&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var r={items:t,onSelectionChanged:n,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},o=new Qi(r);return this.setOnTextSearchCallbackForListModel(o),o.forceShowFilter=!0,o},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return jr&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(e,n){t.shouldResetAfterCancel&&n.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new _e(function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(e,n){t.shouldResetAfterCancel&&n.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))}),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[Xt.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(t,n){e.prototype.onPropertyChangedHandler.call(this,t,n),"value"!==n.name&&"renderedValue"!==n.name&&"placeholder"!==n.name||this.syncFilterStringPlaceholder()},Yi([y({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),Yi([y({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),Yi([y()],t.prototype,"previousValue",void 0),Yi([y({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(ii),Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xi=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ji=function(e){function t(t){var n=e.call(this,t)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return Ki(t,e),t.prototype.locStrsChanged=function(){var t;e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),null===(t=this.dropdownListModelValue)||void 0===t||t.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.isDisposed||this.dropdownListModelValue||(this.dropdownListModelValue=new Zi(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e),this.dropdownListModelValue&&this.dropdownListModel.setInputPlaceholder(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new Ae).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.updateCssClasses=function(t,n){e.prototype.updateCssClasses.call(this,t,n),Wt(t,n)},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,n,r,o){return void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!1),!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var n=this.renderedValue;if(e.length&&e.length===n.length)return e;var r=this.selectedItemValues;if(!e.length&&r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=e.map(function(e){return e.value});return n.filter(function(e){return-1===o.indexOf(e)}).forEach(function(n){var r=t.getItemIfChoicesNotContainThisValue(n,t.itemDisplayNameMap[n]);r&&e.push(r)}),e.sort(function(e,t){return n.indexOf(e.value)-n.indexOf(t.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(t){this.dropdownListModel.onBlur(t),e.prototype.onBlurCore.call(this,t)},t.prototype.onFocusCore=function(t){this.dropdownListModel.onFocus(t),e.prototype.onFocusCore.call(this,t)},t.prototype.allElementsSelected=function(){var t=e.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(t),t},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(t){var n;e.prototype.clearValue.call(this,t),null===(n=this.dropdownListModelValue)||void 0===n||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||Xt.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Xi([y()],t.prototype,"searchMode",void 0),Xi([y()],t.prototype,"allowClear",void 0),Xi([y({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Xi([y({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),Xi([y({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Xi([y()],t.prototype,"choicesLazyLoadPageSize",void 0),Xi([y({getDefaultValue:function(){return Xt.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),Xi([y()],t.prototype,"textWrapEnabled",void 0),t}(Wi);M.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],function(){return new Ji("")},"checkbox"),ar.Instance.registerQuestion("tagbox",function(e){var t=new Ji(e);return t.choices=ar.DefaultChoices,t});var es=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return es(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,n);var r=o.createElement("div");if(r){r.className="sv-drag-drop-choices-shortcut";var i=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);i.classList.add("sv-drag-drop-choices-shortcut__content"),i.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",i.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",i.classList.remove("svc-item-value--moveup"),i.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(i);var s=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-s.x,r.shortcutYOffset=n.clientY-s.y,this.isBottom=null,"function"==typeof this.onShortcutCreated&&this.onShortcutCreated(r),r}},t.prototype.createImagePickerShortcut=function(e,t,n,r){var i=o.createElement("div");if(i){i.style.cssText=" \n      cursor: grabbing;\n      position: absolute;\n      z-index: 10000;\n      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n      background-color: var(--sjs-general-backcolor, var(--background, #fff));\n      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n    ";var s=n.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=s.querySelector(".svc-image-item-value-controls");var a=s.querySelector(".sd-imagepicker__image-container"),l=s.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",i.appendChild(l),i}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter(function(t){return""+t.value==e})[0]},t.prototype.getChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.selectToRankEnabled?e.unRankingChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var n=this.getChoices();if("imagepicker"!==this.parentElement.getType()){var r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==n.indexOf(e)},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,t){var n=t.getBoundingClientRect();return e>=n.y+n.height/2},t.prototype.afterDragOver=function(t){var n=this.getChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&!0===this.isBottom)n.splice(o,1),n.splice(r,0,this.draggedElement);else{if(!(o>r&&!1===this.isBottom))return;n.splice(r,1),n.splice(o,0,this.dropTarget)}"imagepicker"!==this.parentElement.getType()&&(o!==r&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getChoices().filter(function(t){return-1!==e.indexOf(t)}),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(Br),ns=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.reorderRankedItem=function(e,n,r){if(n!=r){var o=e.rankingChoices,i=o[n];e.isValueSetByUser=!0,o.splice(n,1),o.splice(r,0,i),t.updateDraggedElementShortcut(r+1)}},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:(t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed",jr&&t.parentElement.updateRankingChoices(!0))},t}return ns(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=o.createElement("div");if(r){r.className=this.shortcutClass+" sv-ranking-shortcut";var i=t.cloneNode(!0);r.appendChild(i);var s=t.getBoundingClientRect();r.style.left=s.x,r.style.top=s.y,this.domAdapter.rootElement.append(r);var a=r.offsetHeight,l=n.clientY;return l>s.y+a&&(l=s.y+a-10),r.shortcutXOffset=n.clientX-s.x,r.shortcutYOffset=l-s.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+"px",r.style.height=t.offsetHeight+"px"),r}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new Ae).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,Lr).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){return-1!==this.parentElement.rankingChoices.indexOf(e)},t.prototype.calculateIsBottom=function(t,n){return this.dropTarget instanceof Nn&&this.draggedElement!==this.dropTarget&&e.prototype.calculateIsBottom.call(this,t,n)},t.prototype.getIndices=function(e,t,n){var r=t.indexOf(this.draggedElement),o=n.indexOf(this.dropTarget);return r<0&&this.draggedElement&&(this.draggedElement=Nn.getItemByValue(t,this.draggedElement.value)||this.draggedElement,r=t.indexOf(this.draggedElement)),-1===o?o=e.value.length:t==n?(!this.isBottom&&r<o&&o--,this.isBottom&&r>o&&o++):t!=n&&this.isBottom&&o++,{fromIndex:r,toIndex:o}},t.prototype.afterDragOver=function(e){var t=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),n=t.fromIndex,r=t.toIndex;this.reorderRankedItem(this.parentElement,n,r)},t.prototype.updateDraggedElementShortcut=function(e){var t;if(null===(t=this.domAdapter)||void 0===t?void 0:t.draggedElementShortcut){var n=null!==e?e+"":"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=n}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(ts),os=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),is=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectToRank=function(e,n,r){var o=[].concat(e.rankingChoices),i=e.unRankingChoices[n];o.splice(r,0,i),t.updateChoices(e,o)},t.unselectFromRank=function(e,n,r){var o=[].concat(e.rankingChoices);o.splice(n,1),t.updateChoices(e,o)},t}return os(t,e),t.prototype.findDropTargetNodeByDragOverNode=function(t){if("from-container"===t.dataset.ranking||"to-container"===t.dataset.ranking)return t;var n=t.closest("[data-ranking='to-container']"),r=t.closest("[data-ranking='from-container']");return 0===this.parentElement.unRankingChoices.length&&r?r:0===this.parentElement.rankingChoices.length&&n?n:e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(t,n){return"to-container"===t.dataset.ranking?"to-container":"from-container"===t.dataset.ranking||t.closest("[data-ranking='from-container']")?"from-container":e.prototype.getDropTargetByNode.call(this,t,n)},t.prototype.isDropTargetValid=function(t,n){return"to-container"===t||"from-container"===t||e.prototype.isDropTargetValid.call(this,t,n)},t.prototype.afterDragOver=function(e){var t=this.parentElement,n=t.rankingChoices,r=t.unRankingChoices;this.isDraggedElementUnranked&&this.isDropTargetRanked?this.doRankBetween(e,r,n,this.selectToRank):this.isDraggedElementRanked&&this.isDropTargetRanked?this.doRankBetween(e,n,n,this.reorderRankedItem):!this.isDraggedElementRanked||this.isDropTargetRanked||this.doRankBetween(e,n,r,this.unselectFromRank)},t.prototype.doRankBetween=function(e,t,n,r){var o=this.parentElement,i=this.getIndices(o,t,n);r(o,i.fromIndex,i.toIndex,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return-1!==this.parentElement.rankingChoices.indexOf(this.draggedElement)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return"to-container"===this.dropTarget||-1!==this.parentElement.rankingChoices.indexOf(this.dropTarget)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,t){e.isValueSetByUser=!0,e.rankingChoices=t,e.updateUnRankingChoices(t)},t}(rs),ss=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),as=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ls=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),!n.carryForwardStartUnranked||n.isValueSetByUser||n.selectToRankEnabled||n.defaultValue||(n.value=[]),1===n.visibleChoices.length&&!n.selectToRankEnabled)return n.value=[],n.value.push(n.visibleChoices[0].value),void n.updateRankingChoices();n.isEmpty()||n.selectToRankEnabled||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new lt(n.getChoicesAnimationOptions(!0),function(e){n._renderedRankingChoices=e},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new lt(n.getChoicesAnimationOptions(!1),function(e){n._renderedUnRankingChoices=e},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(e,t,r){var o=e.target;n.isDragStartNodeValid(o)&&n.isAllowStartDrag(o,t)&&(n.draggedChoiceValue=t.value,n.draggedTargetNode=r,n.dragOrClickHelper.onPointerDown(e))},n.startDrag=function(e){var t=Nn.getItemByValue(n.visibleChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(e,t,n,n.draggedTargetNode)},n.handlePointerUp=function(e,t,r){if(n.selectToRankEnabled){var o=e.target;n.isAllowStartDrag(o,t)&&n.handleKeydownSelectToRank(e,t," ",!1)}},n.handleKeydown=function(e,t){if(!n.isReadOnlyAttr&&!n.isDesignMode){var r=e.key,o=n.rankingChoices.indexOf(t);if(n.selectToRankEnabled)return void n.handleKeydownSelectToRank(e,t);if("ArrowUp"===r&&o||"ArrowDown"===r&&o!==n.rankingChoices.length-1){var i="ArrowUp"==r?o-1:o+1;n.dragDropRankingChoices.reorderRankedItem(n,o,i),n.setValueAfterKeydown(i,"",!0,e)}}},n.focusItem=function(e,t){if(n.domNode)if(n.selectToRankEnabled&&t){var r="[data-ranking='"+t+"']";n.domNode.querySelectorAll(r+" ."+n.cssClasses.item)[e].focus()}else n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.isValueSetByUser=!1,n.setValue=function(){var e=[];n.rankingChoices.forEach(function(t){e.push(t.value)}),n.value=e,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new qr(n.startDrag),n}return ss(t,e),t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!this.isDesignMode&&!e.disabled)return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new Ae).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===Xt.rankingDragHandleArea).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&"horizontal"===this.renderedSelectToRankAreasLayout).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&"vertical"===this.renderedSelectToRankAreasLayout).append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&"horizontal"===this.renderedSelectToRankAreasLayout&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(t){return!this.selectToRankEnabled||e.prototype.isItemSelectedCore.call(this,t)},t.prototype.getItemClassCore=function(t,n){return(new Ae).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).toString()},t.prototype.getContainerClasses=function(e){var t=!1,n="to"===e,r="from"===e;return n?t=0===this.renderedRankingChoices.length:r&&(t=0===this.renderedUnRankingChoices.length),(new Ae).append(this.cssClasses.container).append(this.cssClasses.containerToMode,n).append(this.cssClasses.containerFromMode,r).append(this.cssClasses.containerEmptyMode,t).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var t;return t=this.selectToRankEnabled?-1!==this.unRankingChoices.indexOf(e):this.isEmpty(),(new Ae).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return s.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),t&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(t){-1===e.indexOf(t.value)&&e.push(t.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,n=this.value.length-1;n>=0;n--)Nn.getItemByValue(t,this.value[n])||e.splice(n,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var t=this;return{getKey:function(e){return e.value},getRerenderEvent:function(){return t.onElementRerendered},isAnimationEnabled:function(){return t.animationAllowed&&!t.isDesignMode&&t.isVisible&&!!t.domNode},getReorderOptions:function(e,n){var r="";return e!==t.currentDropTarget&&(r=n?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:r}},getLeaveOptions:function(n){var r=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==r.length&&r.indexOf(n)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")}}},getEnterOptions:function(n){var r=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==r.length&&r.indexOf(n)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")}}},getAnimatedElement:function(n){var r,o=t.cssClasses,i="";t.selectToRankEnabled&&(!e&&o.containerFromMode?i=zt(o.containerFromMode):e&&o.containerToMode&&(i=zt(o.containerToMode)));var s=e?t.renderedRankingChoices.indexOf(n):t.renderedUnRankingChoices.indexOf(n);return null===(r=t.domNode)||void 0===r?void 0:r.querySelector(i+" [data-sv-drop-target-ranking-item='"+s+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var t=this;if(void 0===e&&(e=!1),this.selectToRankEnabled)this.updateRankingChoicesSelectToRankMode(e);else{var n=[];e&&(this.rankingChoices=[]),this.isEmpty()?this.rankingChoices=this.visibleChoices:(this.value.forEach(function(e){t.visibleChoices.forEach(function(t){t.value===e&&n.push(t)})}),this.rankingChoices=n)}},t.prototype.updateUnRankingChoices=function(e){var t=[];this.visibleChoices.forEach(function(e){t.push(e)}),e.forEach(function(e){t.forEach(function(n,r){n.value===e.value&&t.splice(r,1)})}),this.unRankingChoices=t},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var t=this,n=[];this.isEmpty()||this.value.forEach(function(e){t.visibleChoices.forEach(function(t){t.value===e&&n.push(t)})}),this.updateUnRankingChoices(n),this.rankingChoices=n},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new is(this.survey,null,this.longTap):new rs(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==Xt.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},t.prototype.isAllowStartDrag=function(e,t){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(t)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){return!this.selectToRankEnabled||!e.closest("[data-ranking='from-container']")||this.checkMaxSelectedChoicesUnreached()},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){this.domNode=void 0,e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,t,n,r){if(void 0===r&&(r=!0),!this.isDesignMode){var o=e.key;if(n&&(o=n)," "===o||"ArrowUp"===o||"ArrowDown"===o){var i=this.dragDropRankingChoices,s=this.rankingChoices,a=-1!==s.indexOf(t),l=(a?s:this.unRankingChoices).indexOf(t);if(!(l<0)){var u;if(" "===o&&!a){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(t))return;return u=this.value.length,i.selectToRank(this,l,u),void this.setValueAfterKeydown(u,"to-container",r,e)}if(a){if(" "===o)return i.unselectFromRank(this,l),u=this.unRankingChoices.indexOf(t),void this.setValueAfterKeydown(u,"from-container",r,e);var c="ArrowUp"===o?-1:"ArrowDown"===o?1:0;0!==c&&((u=l+c)<0||u>=s.length||(i.reorderRankedItem(this,l,u),this.setValueAfterKeydown(u,"to-container",r,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,t,n,r){var o=this;void 0===n&&(n=!0),this.setValue(),n&&setTimeout(function(){o.focusItem(e,t)},1),r&&r.preventDefault()},t.prototype.getIconHoverCss=function(){return(new Ae).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new Ae).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return Lr},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),as([b({onSet:function(e,t){return t.updateRenderedRankingChoices()},onRemove:function(e,t,n){return n.updateRenderedRankingChoices()},onPush:function(e,t,n){return n.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),as([b({onSet:function(e,t){return t.updateRenderedUnRankingChoices()},onRemove:function(e,t,n){return n.updateRenderedUnRankingChoices()},onPush:function(e,t,n){return n.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),as([b()],t.prototype,"_renderedRankingChoices",void 0),as([b()],t.prototype,"_renderedUnRankingChoices",void 0),as([y({defaultValue:null})],t.prototype,"currentDropTarget",void 0),as([y({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),as([y({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),as([y({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(Wi);M.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new ls("")},"checkbox"),ar.Instance.registerQuestion("ranking",function(e){var t=new ls(e);return t.choices=ar.DefaultChoices,t});var us=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cs=function(e){function t(t){return e.call(this,t)||this}return us(t,e),Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new Tn(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,t=this;return{question:this,id:function(){return e.inputId},propertyNames:["value"],className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(e){var n;n=e.target.value,s.isTwoValueEquals(t.value,n,!1,!0,!1)||(t.value=n)},onTextAreaInput:function(t){e.onInput(t)},onTextAreaKeyDown:function(t){e.onKeyDown(t)},onTextAreaFocus:function(t){e.onFocus(t)},onTextAreaBlur:function(t){e.onBlur(t)}}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return void 0===e&&this.survey?this.survey.autoGrowComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){var e=this.allowResize;return void 0===e&&this.survey?this.survey.allowResizeComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var n=Xt.environment.root;this.element=n.getElementById(this.inputId)||t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(t){e.prototype.onBlurCore.call(this,t)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},t.prototype.getValueSeparator=function(){return"\n"},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(gi);M.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new cs("")},"textbase"),ar.Instance.registerQuestion("comment",function(e){return new cs(e)});var ps="environment",ds="user",fs=function(){function e(){this.canFlipValue=void 0}return e.clear=function(){e.cameraList=void 0,e.cameraIndex=-1},e.setCameraList=function(t){var n=function(e){var t=e.label.toLocaleLowerCase();return t.indexOf(ds)>-1?ds:t.indexOf(ps)>-1?ps:t.indexOf("front")>-1?ds:t.indexOf("back")>-1?ps:""};e.clear(),Array.isArray(t)&&t.length>0&&(e.cameraIndex=-1,t.sort(function(e,r){if(e===r)return 0;if(e.label!==r.label){var o=n(e),i=n(r);if(o!==i){if(o===ds)return-1;if(i===ds)return 1;if(o===ps)return-1;if(i===ps)return 1}}return t.indexOf(e)<t.indexOf(r)?-1:1})),e.cameraList=t},e.prototype.hasCamera=function(t){var n=this;void 0===e.cameraList?e.mediaDevicesCallback?e.mediaDevicesCallback(function(e){n.setVideoInputs(e),n.hasCameraCallback(t)}):"undefined"!=typeof navigator&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(e){n.setVideoInputs(e),n.hasCameraCallback(t),n.updateCanFlipValue()}).catch(function(r){e.cameraList=null,n.hasCameraCallback(t)}):(e.cameraList=null,this.hasCameraCallback(t)):this.hasCameraCallback(t)},e.prototype.getMediaConstraints=function(t){var n=e.cameraList;if(Array.isArray(n)&&!(n.length<1)){e.cameraIndex<0&&(e.cameraIndex=0);var r=n[e.cameraIndex],o={};return r&&r.deviceId?o.deviceId={exact:r.deviceId}:o.facingMode=e.cameraFacingMode,t&&((null==t?void 0:t.height)&&(o.height={ideal:t.height}),(null==t?void 0:t.width)&&(o.width={ideal:t.width})),{video:o,audio:!1}}},e.prototype.startVideo=function(t,n,r,o){var i=this;if(t){t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:r,height:o});navigator.mediaDevices.getUserMedia(s).then(function(r){var o;t.srcObject=r,!(null===(o=e.cameraList[e.cameraIndex])||void 0===o?void 0:o.deviceId)&&r.getTracks()[0].getCapabilities().facingMode&&(e.canSwitchFacingMode=!0,i.updateCanFlipValue()),t.play(),n(r)}).catch(function(e){n(void 0)})}else n(void 0)},e.prototype.getImageSize=function(e){return{width:e.videoWidth,height:e.videoHeight}},e.prototype.snap=function(e,t){if(!e)return!1;if(!o.isAvailable())return!1;var n=o.getDocument().createElement("canvas"),r=this.getImageSize(e);n.height=r.height,n.width=r.width;var i=n.getContext("2d");return i.clearRect(0,0,n.width,n.height),i.drawImage(e,0,0,n.width,n.height),n.toBlob(t,"image/png"),!0},e.prototype.updateCanFlipValue=function(){var t=e.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||e.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},e.prototype.canFlip=function(e){return void 0===this.canFlipValue&&this.updateCanFlipValue(),e&&(this.onCanFlipChangedCallback=e),this.canFlipValue},e.prototype.flip=function(){this.canFlip()&&(e.canSwitchFacingMode?e.cameraFacingMode=e.cameraFacingMode===ds?"environment":ds:e.cameraIndex>=e.cameraList.length-1?e.cameraIndex=0:e.cameraIndex++)},e.prototype.hasCameraCallback=function(t){t(Array.isArray(e.cameraList))},e.prototype.setVideoInputs=function(t){var n=[];t.forEach(function(e){"videoinput"===e.kind&&n.push(e)}),e.setCameraList(n.length>0?n:null)},e.cameraIndex=-1,e.cameraFacingMode=ds,e.canSwitchFacingMode=!1,e}(),hs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ms=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isUploading=!1,t.onUploadStateChanged=t.addEvent(),t.onStateChanged=t.addEvent(),t}return hs(t,e),t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(t){this.clearOnDeletingContainer(),e.prototype.clearValue.call(this,t)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(t,n,r){e.prototype.onCheckForErrors.call(this,t,n,r),this.isUploading&&this.waitForUpload&&t.push(new un(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var t=this;this.survey&&(this.errors=[],this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(e,n){Array.isArray(e)&&(t.setValueFromResult(e),Array.isArray(n)&&(n.forEach(function(e){return t.errors.push(new un(e,t))}),t.stateChanged("error"))),"success"===e&&Array.isArray(n)&&t.setValueFromResult(n),"error"===e&&("string"==typeof n&&t.errors.push(new un(n,t)),Array.isArray(n)&&n.length>0&&n.forEach(function(e){return t.errors.push(new un(e,t))}),t.stateChanged("error")),t.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),ms([y()],t.prototype,"isUploading",void 0),ms([y({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(Rn),ys=function(e){function t(n,r){var o=e.call(this)||this;return o.question=n,o.index=r,o.id=t.getId(),o}return hs(t,e),t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,ms([b({})],t.prototype,"items",void 0),t}(xe),vs=function(e){function t(t){var n=e.call(this,t)||this;return n.isDragging=!1,n.fileNavigator=new De,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new ut(n.getPagesAnimationOptions(),function(e){n._renderedPages=e},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r},n.dragCounter=0,n.onDragEnter=function(e){n.canDragDrop()&&(e.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(e){if(!n.canDragDrop())return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.canDragDrop()&&(n.dragCounter--,0===n.dragCounter&&(n.isDragging=!1))},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(){n.needConfirmRemoveFile?vt({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog}):n.clearFilesCore()},n.doDownloadFileFromContainer=function(e){e.stopPropagation();var t=e.currentTarget;if(t&&t.getElementsByTagName){var n=t.getElementsByTagName("a")[0];null==n||n.click()}},n.doDownloadFile=function(e,t){e.stopPropagation(),bt()&&(e.preventDefault(),wt(t.content,t.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new De,n.actionsContainer.locOwner=n,n.fileIndexAction=new Ke({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new Ke({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new Ke({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new Ke({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new _e(function(){return(new Ae).append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new Ke({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new _e(function(){return(new Ae).append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new Ke({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new _e(function(){return(new Ae).append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new _e(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new Ke({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new Ke({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new _e(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new Ke({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new _e(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(e){e.cssClasses={}}),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],function(){n.updateActionsVisibility()}),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return hs(t,e),Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,n=this.containsMultiplyFiles,r=this.pageSize<this.previewValue.length;return!e&&!t&&n&&r&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,n=this.isDefaultV2Theme;return!e&&!t&&n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return"file"!==this.currentMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return"camera"!==this.currentMode},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;"file"===this.currentMode||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return null===(e=this.rootElement)||void 0===e?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(t){e.videoStream=t,t||e.stopVideo()},It(this.imageWidth),It(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;this.isPlayingVideo&&(this.camera.snap(this.videoHtmlElement,function(t){if(t){var n=new File([t],"snap_picture.png",{type:"image/png"});e.loadFiles([n])}}),this.stopVideo())},t.prototype.canFlipCamera=function(){var e=this;return void 0===this.canFlipCameraValue&&(this.canFlipCameraValue=this.camera.canFlip(function(t){e.canFlipCameraValue=t})),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach(function(e){e.stop()}),this.videoStream=void 0)},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e,t=this;this.blockAnimations(),this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(n,r){r%t.pageSize==0&&(e=new ys(t,t.pages.length),t.pages.push(e)),e.items.push(n)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(function(){e.processResponsiveness(0,e._width)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.isLoadingFromJson||this.loadPreview(t)},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var t=this;if(this.rootElement){var n=this.rootElement.querySelector("#"+this.inputId);n&&(e.preventDefault(),e.stopImmediatePropagation(),n&&(this.survey?this.survey.chooseFiles(n,function(e){return t.loadFiles(e)},{element:this,elementType:this.getType(),propertyName:this.name}):n.click()))}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return void 0===this.locRenderedPlaceholderValue&&(this.locRenderedPlaceholderValue=new _e(function(){var t=e.isReadOnly,n=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&"camera"!=e.sourceType,r=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&"file"!=e.sourceType;return t?e.locNoFileChosenCaption:n&&r?e.locFileOrPhotoPlaceholder:n?e.locFilePlaceholder:e.locPhotoPlaceholder})),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;!this.isDesignMode&&this.survey&&("file"!==this.sourceType?this.camera.hasCamera(function(t){e.setPropertyValue("currentMode",t&&e.isDefaultV2Theme?e.sourceType:"file")}):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&"camera"!==this.sourceType,this.startCameraAction.visible=!e&&this.hasVideoUI||e&&"file"!==this.sourceType,this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(n,r){"success"===n&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,t=this.showLoadingIndicator;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDragAreaPlaceholder",{get:function(){return!this.isAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,t=this.isPlayingVideo;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,t=this.isReadOnly,n=this.isEmpty();return!(t||n||e||this.isDefaultV2Theme)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=(new Ae).append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(t){return t.name===e})[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(n,r){if("success"===n){var o=t.value;Array.isArray(o)?t.value=o.filter(function(t){return!s.isTwoValueEquals(t,e,!0,!1,!1)}):t.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=function(){t.stateChanged("loading");var n=[];t.storeDataAsText?e.forEach(function(r){var o=new FileReader;o.onload=function(i){(n=n.concat([{name:r.name,type:r.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)}):t.uploadFiles(e)};this.allowMultiple?n():this.clear(n)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new fs),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if((!this.showPreview||this.prevLoadedPreviewValue!==e)&&(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e)){this.prevLoadedPreviewValue=e;var n=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(n.forEach(function(e){var n=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:n})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new bs(this,function(e,n){"error"!==e&&(n.forEach(function(e){t.previewValue.push(e)}),t.previewValueChanged()),t.isFileLoading=!1,t._previewLoader.dispose(),t._previewLoader=void 0}),this._previewLoader.load(n))}},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach(function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new on(t.maxSize,t))}),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return(new Ae).append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return(new Ae).append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return(new Ae).append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new Ae).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new Ae).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new Ae).append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return(new Ae).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(r.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,o=0;o<n;o++)t.push(e.files[o]);e.value="",this.loadFiles(t)}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.actionsContainer.cssClasses=t.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return zt(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return zt(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(t){var n=e.cssClasses.page;return{cssClass:n?(new Ae).append(n+"--enter-from-left","left"==e.navigationDirection||"left-delete"==e.navigationDirection).append(n+"--enter-from-right","right"==e.navigationDirection).toString():""}},getLeaveOptions:function(t){var n=e.cssClasses.page;return{cssClass:n?(new Ae).append(n+"--leave-to-left","right"==e.navigationDirection).append(n+"--leave-to-right","left"==e.navigationDirection).toString():""}},getAnimatedElement:function(t){var n;return null===(n=e.rootElement)||void 0===n?void 0:n.querySelector("#"+t.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(t){t&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),e.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,t){if(this._width=t,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var n=this.getFileListSelector()?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(n){var r=n.querySelector(zt(this.cssClasses.page));if(r){var i=r.querySelector(zt(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(o.getComputedStyle(r).gap)),i&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(o.getComputedStyle(i).width)))}}}return!(!this.calculatedGapBetweenItems||!this.calculatedItemWidth||(this.pageSize=Math.max(this.calcAvailableItemsCount(t,this.calculatedItemWidth,this.calculatedGapBetweenItems),1),0))},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&"camera"!==this.currentMode&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(t){e.prototype.afterRenderQuestionElement.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.stopVideo(),this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,t){var n=this;t.stopPropagation(),this.needConfirmRemoveFile?vt({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){n.removeFileCore(e)},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),e.prototype.dispose.call(this)},ms([y()],t.prototype,"isDragging",void 0),ms([b({})],t.prototype,"previewValue",void 0),ms([b({})],t.prototype,"pages",void 0),ms([y({defaultValue:0,onSet:function(e,t){t.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),ms([y({defaultValue:1,onSet:function(e,t){t.updateFileNavigator()}})],t.prototype,"pageSize",void 0),ms([y({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),ms([y()],t.prototype,"allowCameraAccess",void 0),ms([y({onSet:function(e,t){t.isLoadingFromJson||t.updateCurrentMode()}})],t.prototype,"sourceType",void 0),ms([y()],t.prototype,"canFlipCameraValue",void 0),ms([y({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),ms([y({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),ms([y({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),ms([y({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),ms([y({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),ms([y({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),ms([y({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),ms([y({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),ms([y({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),ms([y({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),ms([y({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),ms([y()],t.prototype,"locRenderedPlaceholderValue",void 0),ms([b()],t.prototype,"_renderedPages",void 0),t}(gs);M.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(e){return!!e.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return Xt.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return Xt.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return Xt.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return Xt.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new vs("")},"question"),ar.Instance.registerQuestion("file",function(e){return new vs(e)});var bs=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this,n=0;this.loaded=new Array(e.length),e.forEach(function(r,o){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,function(i,s){t.fileQuestion&&t.callback&&("error"!==i?(t.loaded[o]={content:s,name:r.name,type:r.type},++n===e.length&&t.callback(i,t.loaded)):t.callback("error",t.loaded))})})},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}(),ws=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cs=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(e):e},n}return ws(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return(new Ae).append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(Bi);M.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],function(){return new Cs("")},"nonvalue"),ar.Instance.registerQuestion("html",function(e){return new Cs(e)});var _s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xs=function(e){function t(t){return e.call(this,t)||this}return _s(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&!this.isOtherSelected},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this,t,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(t){this.isMouseDown=!0,e.prototype.setNewComment.call(this,t),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value,this.onItemSelected(e))},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var n=new Ke({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new _e(function(){return e.canShowClearButton})});t.push(n)}return t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(Wo);M.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new xs("")},"checkboxbase"),ar.Instance.registerQuestion("radiogroup",function(e){var t=new xs(e);return t.choices=ar.DefaultChoices,t});var Es=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ss=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function Ps(e){if("function"==typeof getComputedStyle){var t=getComputedStyle(o.getDocumentElement());return t.getPropertyValue&&t.getPropertyValue(e)}return""}function Os(e,t,n){var r=!!e&&e[t];if(r||(r=Ps(n)),!r)return null;var i=o.createElement("canvas");if(!i)return null;var s=i.getContext("2d");s.fillStyle=r,"#000000"==s.fillStyle&&(s.fillStyle=Ps(n));var a=s.fillStyle;if(a.startsWith("rgba"))return a.substring(5,a.length-1).split(",").map(function(e){return+e.trim()});var l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return l?[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16),1]:null}var Ts=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.itemValue=t,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return Es(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),Ss([y({defaultValue:""})],t.prototype,"highlight",void 0),Ss([y({defaultValue:""})],t.prototype,"text",void 0),Ss([y()],t.prototype,"style",void 0),t}(xe),ks=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.description=r,o}return Es(t,e),t}(Nn),As=function(e){function t(t){var n=e.call(this,t)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=0==n.rateValues.length,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){n.autoGenerate||0!==n.rateValues.length||n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(e,t){n.hasMinRateDescription=!e.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(e,t){n.hasMaxRateDescription=!e.isEmpty}),n.createLocalizableString("readOnlyText",n,!0),n.registerPropertyChangedHandlers(["value","renderAs","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n.initPropertyDependencies(),n}return Es(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map(function(t){return t.icon=e.getItemSmiley(t)})},t.prototype.locStrsChanged=function(){var t;e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),null===(t=this.dropdownListModelValue)||void 0===t||t.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,t){var n=this;this.registerFunctionOnPropertiesValueChanged(e,function(){n._syncPropertiesChanging||(n._syncPropertiesChanging=!0,t(),n._syncPropertiesChanging=!1)})},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new Nn(u("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)}),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],function(){e.updateRateCount()})},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e,t=this;return!this.readOnly&&(null===(e=this.visibleRateValues.filter(function(e){return e.value==t.value})[0])||void 0===e?void 0:e.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){"monochrome"!==this.colorMode&&o.isAvailable()&&(t.colorsCalculated||(t.badColor=Os(e,"--sjs-special-red","--sd-rating-bad-color"),t.normalColor=Os(e,"--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=Os(e,"--sjs-special-green","--sd-rating-good-color"),t.badColorLight=Os(e,"--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=Os(e,"--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=Os(e,"--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()))},t.prototype.getDisplayValueCore=function(t,n){return this.useRateValues?Nn.getTextOrHtmlByValue(this.visibleRateValues,n)||n:e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return"dropdown"===this.renderAs},t.prototype.itemValuePropertyChanged=function(t,n,r,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,n,r,o)},t.prototype.runConditionCore=function(t,n){e.prototype.runConditionCore.call(this,t,n),this.runRateItesmCondition(t,n)},t.prototype.runRateItesmCondition=function(e,t){var n;if(this.useRateValues()){var r=!1;if((null===(n=this.survey)||void 0===n?void 0:n.areInvisibleElementsShowing)?this.rateValues.forEach(function(e){r=r||!e.isVisible,e.setIsVisible(e,!0)}):r=Nn.runConditionsForItems(this.rateValues,void 0,void 0,e,t,!0),r&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var o=Nn.getItemByValue(this.rateValues,this.value);o&&!o.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(t){t.isVisible&&e.push(t)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return"smileys"==this.rateType&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,t=this.calculateRateValues();return t.map(function(n,r){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==r&&(o=new Ts(n,e.minRateDescription&&e.locMinRateDescription||n.locText)),r==t.length-1&&(o=new Ts(n,e.maxRateDescription&&e.locMaxRateDescription||n.locText))),o||(o=new Ts(n)),o})},t.prototype.calculateVisibleChoices=function(){var e=this;return this.calculateRateValues().map(function(t,n){return e.getRatingItemValue(t,n)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],t=this.rateMin,n=this.rateStep;t<=this.rateMax&&e.length<Xt.ratingMaximumRateValueCount;){var r=new Nn(t);r.locOwner=this,r.ownerPropertyName="rateValues",e.push(r),t=this.correctValue(t+n,n)}return e},t.prototype.getRatingItemValue=function(e,t){if(!e)return null;var n,r=e.value;0===t&&(n=this.minRateDescription&&this.locMinRateDescription),t===this.rateCount-1&&(n=this.maxRateDescription&&this.locMaxRateDescription);var o=new ks(r,e.text,n);return o.locOwner=e.locOwner,o.ownerPropertyName=e.ownerPropertyName,o},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown||"dropdown"===this.renderAs},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(t){var n=e.prototype.getPlainDataCalculatedValue.call(this,t);if(void 0!==n||!this.useRateValues||this.isEmpty())return n;var r=Nn.getItemByValue(this.visibleRateValues,this.value);return r?r[t]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||"dropdown"===this.renderAs)&&(this.renderAs="default"):(e||"auto"!==this.displayMode)&&(this.renderAs="dropdown"===this.displayMode?"dropdown":"default")},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),"dropdown"===this.renderAs&&"auto"===this.displayMode?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"dropdown"==this.renderAs?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=Nn.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===("string"==typeof this.value?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!jr&&!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,n=null!=this.value;if("stars"===this.rateType)for(var r=0;r<this.renderedRateItems.length;r++)this.renderedRateItems[r].highlight=(t&&!n?"highlighted":!t&&n&&"unhighlighted")||"none",this.renderedRateItems[r]==e&&(t=!1),this.renderedRateItems[r].itemValue.value==this.value&&(n=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){jr||this.renderedRateItems.forEach(function(e){return e.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==Xt.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=this.hasMaxLabel||this.hasMinLabel;return(new Ae).append(this.cssClasses.root).append(this.cssClasses.rootWrappable,"buttons"==this.displayMode||!!this.survey&&this.survey.isDesignMode||"auto"==this.displayMode&&!this.supportResponsiveness()).append(this.cssClasses.rootLabelsTop,e&&"top"==this.rateDescriptionLocation).append(this.cssClasses.rootLabelsBottom,e&&"bottom"==this.rateDescriptionLocation).append(this.cssClasses.rootLabelsDiagonal,e&&"topBottom"==this.rateDescriptionLocation).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,n=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter(function(e){return-1!=n.indexOf(e)});return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=n?t.normalColorLight:t.normalColor;if(e<i?o=s:(r=s,e-=i),!r||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=r[l]+(o[l]-r[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode||this.isPreviewStyle||this.isReadOnlyStyle)return{};var n=this.visibleRateValues.indexOf(e),r=this.getRenderedItemColor(n,!1),o="highlighted"==t&&"colored"===this.scaleColorMode&&this.getRenderedItemColor(n,!0);return o?{"--sd-rating-item-color":r,"--sd-rating-item-color-light":o}:{"--sd-rating-item-color":r}},t.prototype.getItemClass=function(e,t){var n=this;void 0===t&&(t="none");var r=this.value==e.value;this.isStar&&(r=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter(function(e){return e.value==n.value})[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter(function(t){return t.itemValue==e})[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,c=this.cssClasses.itemDisabled,p=this.cssClasses.itemReadOnly,d=this.cssClasses.itemPreview,f=this.cssClasses.itemHover,h=this.cssClasses.itemOnError,m=null,g=null,y=null,v=null,b=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,c=this.cssClasses.itemStarDisabled,p=this.cssClasses.itemStarReadOnly,d=this.cssClasses.itemStarPreview,f=this.cssClasses.itemStarHover,h=this.cssClasses.itemStarOnError,m=this.cssClasses.itemStarHighlighted,g=this.cssClasses.itemStarUnhighlighted,b=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,c=this.cssClasses.itemSmileyDisabled,p=this.cssClasses.itemSmileyReadOnly,d=this.cssClasses.itemSmileyPreview,f=this.cssClasses.itemSmileyHover,h=this.cssClasses.itemSmileyOnError,m=this.cssClasses.itemSmileyHighlighted,y=this.cssClasses.itemSmileyScaleColored,v=this.cssClasses.itemSmileyRateColored,b=this.cssClasses.itemSmileySmall);var w=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new Ae).append(l).append(u,r).append(c,this.isDisabledStyle).append(p,this.isReadOnlyStyle).append(d,this.isPreviewStyle).append(f,o).append(m,s).append(y,"colored"==this.scaleColorMode).append(v,"scale"==this.rateColorMode&&r).append(g,a).append(h,this.hasCssError()).append(b,this.itemSmallMode).append(this.cssClasses.itemFixedSize,w).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new Ae).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)},t.prototype.supportResponsiveness=function(){return!this.inMatrixMode},t.prototype.onBeforeSetCompactRenderer=function(){this.isDisposed||this.dropdownListModelValue||(this.dropdownListModelValue=new ii(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"dropdown"===this.renderAs&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(t){var n;null===(n=this.dropdownListModel)||void 0===n||n.onBlur(t),e.prototype.onBlurCore.call(this,t)},t.prototype.updateCssClasses=function(t,n){e.prototype.updateCssClasses.call(this,t,n),Wt(t,n)},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,Ss([y({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Ss([y()],t.prototype,"autoGenerate",void 0),Ss([y()],t.prototype,"rateCount",void 0),Ss([y({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),Ss([y({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),Ss([y()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),Ss([y()],t.prototype,"displayMode",void 0),Ss([y()],t.prototype,"rateDescriptionLocation",void 0),Ss([y()],t.prototype,"rateType",void 0),Ss([y()],t.prototype,"scaleColorMode",void 0),Ss([y()],t.prototype,"rateColorMode",void 0),t}(Rn);M.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(e,t){return t<2?2:t>Xt.ratingMaximumRateValueCount&&t>e.rateValues.length?Xt.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(e){return"labels"==e.rateType}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(e){return e?(e.getOriginalObj&&(e=e.getOriginalObj()),e.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new As("")},"question"),ar.Instance.registerQuestion("rating",function(e){return new As(e)});var Is=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rs=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ms=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return Is(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if("indeterminate"!==e&&null!=e)return"true"==e?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue&&void 0!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;"indeterminate"!==e&&null!=e||this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new Ae).append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new Ae).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(t,n){void 0===n&&(n=!1),e.prototype.updateValueFromSurvey.call(this,t,n)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"!==t&&null!==t||(t=void 0),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Ft(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var n=!1;o.isAvailable()&&(n="rtl"==o.getComputedStyle(e.target).direction),this.booleanValue=n?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Ft(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.stopPropagation(),this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key)),!0},t.prototype.getRadioItemClass=function(e,t){var n=void 0;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(n=(n?n+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(n+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(n+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(n+=" "+e.radioItemPreview),n},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),Rs([y()],t.prototype,"booleanValueRendered",void 0),Rs([y()],t.prototype,"showTitle",void 0),Rs([y({localizable:!0})],t.prototype,"label",void 0),Rs([y({defaultValue:!1})],t.prototype,"swapOrder",void 0),Rs([y()],t.prototype,"valueTrue",void 0),Rs([y()],t.prototype,"valueFalse",void 0),t}(Rn);M.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],function(){return new Ms("")},"question"),ar.Instance.registerQuestion("boolean",function(e){return new Ms(e)});var Ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ls=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ns=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return Ds(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof Vs&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof Vs&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Ls([y({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Ls([y({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(Nn),Vs=function(e){function t(t){var n=e.call(this,t)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var r=t.target;"video"==n.contentMode?e.aspectRatio=r.videoWidth/r.videoHeight:e.aspectRatio=r.naturalWidth/r.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.gridColCount=void 0,n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){n._width&&n.processResponsiveness(0,n._width)}),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){n.calcIsResponsive()}),n.calcIsResponsive(),n}return Ds(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?s.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,n=e;if(this.isValueEmpty(t))return!1;if(!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var n=t;return!(!n.imageLink||n.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue(!0);for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue(!0):this.value=n}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,n){return this.multiSelect||Array.isArray(n)?this.getDisplayArrayValue(t,n):e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale)||150*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale)||200*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,t){this.addNewItemToVisibleChoices(e,t)},t.prototype.getSelectBaseRootCss=function(){var t=this.isResponsive;return(new Ae).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootResponsive,t).append(this.cssClasses.rootStatic,!t).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(t){return void 0!==e[t]&&null!==e[t]})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return zt(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.getContainerStyle=function(){return this.isResponsive?{gridAutoFlow:this.gridColCount?null:"column",gridTemplateColumns:this.gridColCount?"repeat("+this.gridColCount+", 1fr)":null}:{}},t.prototype.processResponsiveness=function(e,t){if(this._width=t=Math.floor(t),this.isResponsive){var n,r=this.choices.length+(this.isDesignMode?1:0),o=(this.gapBetweenItems||0)*this.imageScale,i=this.minImageWidth*this.imageScale,s=this.maxImageWidth*this.imageScale,a=this.maxImageHeight*this.imageScale,l=this.minImageHeight*this.imageScale,u=this.colCount,c=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r}(t,i,o);0===u?(n=(o+i)*r-o>t?Math.floor((t-o*(c-1))/c):Math.floor((t-o*(r-1))/r),this.gridColCount=Math.max(Math.min(r,c),1)):(c<u?(this.responsiveColCount=Math.max(c,1),u=this.responsiveColCount):this.responsiveColCount=u,this.gridColCount=this.responsiveColCount,n=Math.floor((t-o*(u-1))/u)),n=Math.max(i,Math.min(n,s));var p=Number.MIN_VALUE;this.choices.forEach(function(e){var t=n/e.aspectRatio;p=t>p?t:p}),p>a?p=a:p<l&&(p=l);var d=this.responsiveImageWidth,f=this.responsiveImageHeight;return this.responsiveImageWidth=n,this.responsiveImageHeight=p,d!==this.responsiveImageWidth||f!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(t){void 0===t&&(t=!0),t&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),e.prototype.triggerResponsiveness.call(this,t)},t.prototype.afterRender=function(t){var n=this;e.prototype.afterRender.call(this,t);var r=this.getObservedElementSelector(),i=t&&r?t.querySelector(r):void 0;i&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(o.getComputedStyle(i).gap))||16},this.reCalcGapBetweenItemsCallback())},Ls([y({})],t.prototype,"responsiveImageHeight",void 0),Ls([y({})],t.prototype,"responsiveImageWidth",void 0),Ls([y({})],t.prototype,"isResponsiveValue",void 0),Ls([y({})],t.prototype,"maxImageWidth",void 0),Ls([y({})],t.prototype,"minImageWidth",void 0),Ls([y({})],t.prototype,"maxImageHeight",void 0),Ls([y({})],t.prototype,"minImageHeight",void 0),Ls([y({})],t.prototype,"responsiveColCount",void 0),Ls([y()],t.prototype,"gridColCount",void 0),t}(Wo);M.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(e){return new Ns(e)},"itemvalue"),M.addClass("responsiveImageSize",[],void 0,"number"),M.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return Xt.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return Xt.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return Xt.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return Xt.supportCreatorV2}}],function(){return new Vs("")},"checkboxbase"),M.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),M.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),M.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),M.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),ar.Instance.registerQuestion("imagepicker",function(e){return new Vs(e)});var js=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fs=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],zs="embed",Bs=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1).onGetTextCallback=function(e){return function(e,t){if(!e||!s.isUrlYoutubeVideo(e))return t?"":e;if(e.toLocaleLowerCase().indexOf(zs)>-1)return e;for(var n="",r=e.length-1;r>=0&&"="!==e[r]&&"/"!==e[r];r--)n=e[r]+n;return"https://www.youtube.com/embed/"+n}(e,"youtube"==n.contentMode)},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return js(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?Rt(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?It(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?Rt(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?It(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new Ae).append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return s.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<Fs.length;t++)if(e.endsWith(Fs[t]))return!0;return!1},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(Bi);M.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],function(){return new Bs("")},"nonvalue"),ar.Instance.registerQuestion("image",function(e){return new Bs(e)});class Hs{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class Us{static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new Us(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const r=e.x-t.x,o=e.y-t.y,i=t.x-n.x,s=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,p=Math.sqrt(r*r+o*o),d=Math.sqrt(i*i+s*s),f=d/(p+d),h=u+(a-u)*f,m=c+(l-c)*f,g=t.x-h,y=t.y-m;return{c1:new Hs(a+g,l+y),c2:new Hs(u+g,c+y)}}constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}length(){let e,t,n=0;for(let r=0;r<=10;r+=1){const o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const r=i-e,o=s-t;n+=Math.sqrt(r*r+o*o)}e=i,t=s}return n}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class qs{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class Ws extends qs{constructor(e,t={}){super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in t?t.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,r,o,i=0,s=null;const a=()=>{i=Date.now(),s=null,n=e.apply(r,o),s||(r=null,o=[])};return function(...l){const u=Date.now(),c=t-(u-i);return r=this,o=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),i=u,n=e.apply(r,o),s||(r=null,o=[])):s||(s=window.setTimeout(a,c)),n}}(Ws.prototype._strokeUpdate,this.throttle):Ws.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((n,r)=>{const o=new Image,i=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/i,a=t.height||this.canvas.height/i,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,l,u,s,a),n()},o.onerror=e=>{r(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1})}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;this._drawingStroke=!0;const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,n,r),i=this._data[this._data.length-1],s=i.points,a=s.length>0&&s[s.length-1],l=!!a&&o.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(i);if(!a||!a||!l){const e=this._addPoint(o,u);a?e&&this._drawCurve(e,u):this._drawDot(o,u),s.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._drawingStroke&&(this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const r=this.canvas.getBoundingClientRect();return new Hs(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),r=Us.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<o;n+=1){const i=n/o,s=i*i,a=s*i,l=1-i,u=l*l,c=u*l;let p=c*e.startPoint.x;p+=3*u*i*e.control1.x,p+=3*l*s*e.control2.x,p+=a*e.endPoint.x;let d=c*e.startPoint.y;d+=3*u*i*e.control1.y,d+=3*l*s*e.control2.y,d+=a*e.endPoint.y;const f=Math.min(e.startWidth+a*r,t.maxWidth);this._drawCurveSegment(p,d,f)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const r of e){const{points:e}=r,o=this._getPointGroupOptions(r);if(e.length>1)for(let n=0;n<e.length;n+=1){const r=e[n],i=new Hs(r.x,r.y,r.pressure,r.time);0===n&&this._reset(o);const s=this._addPoint(i,o);s&&t(s,o)}else this._reset(o),n(e[0],o)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,o=this.canvas.height/n,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${r} ${o}`),i.setAttribute("width",r.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,(e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),i.appendChild(n)}},(e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const s=document.createElement("circle"),a=n>0?n:(r+o)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),i.appendChild(s)}),i.outerHTML}}var $s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gs=function(e){function t(t){var n=e.call(this,t)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!0,!0)},n}return $s(t,e),t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var t=this.getPenColorFromTheme(),n=this.getPropertyByName("penColor");e.penColor=this.penColor||t||n.defaultValue||"#1ab394";var r=this.getPropertyByName("backgroundColor"),o=t?"transparent":void 0,i=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=i||o||r.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(t){return(new Ae).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.getFormat=function(){return"jpeg"===this.dataFormat?"image/jpeg":"svg"===this.dataFormat?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&(this.isDesignMode||this.initSignaturePad(t),this.element=t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this.canvas,r=n.offsetWidth/this.containerWidth;(this.scale!=r||t)&&(this.scale=r,n.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*r,this.signaturePad.maxWidth=this.penMaxWidth*r,n.getContext("2d").scale(1/r,1/r),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var t=this;if(this.isFileLoading=!0,function(e){return"string"==typeof e?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(e):null}(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var n=new Image;n.crossOrigin="anonymous",n.src=e,n.onload=function(){if(t.canvas){var e=o.createElement("canvas");e.width=t.containerWidth,e.height=t.containerHeight,e.getContext("2d").drawImage(n,0,0);var r=e.toDataURL(t.getFormat());t.fromDataUrl(r)}t.isFileLoading=!1},n.onerror=function(){t.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){if(this._loadedData=e,this.signaturePad){var t=1,n=this.scale;"svg"===this.dataFormat&&(t=r.getDevicePixelRatio()||1,n=1);var o={width:this.canvas.width*n/t,height:this.canvas.height*n/t};this.signaturePad.fromDataURL(e,o)}},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var t=this;if(!e)return this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.hasDrawnStroke=!1,void(this.valueWasChangedFromLastUpload=!1);if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var n=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new bs(this,function(n,r){"success"===n&&r&&r.length>0&&r[0].content?(t.fromDataUrl(r[0].content),t.isFileLoading=!1):"skipped"===n&&t.fromUrl(e),t._previewLoader.dispose(),t._previewLoader=void 0}),this._previewLoader.load(n)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(t))},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0];this.canvas=n,this.resizeCanvas();var r=new Ws(n,{backgroundColor:"#ffffff"});this.signaturePad=r,this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?r.off():r.on()},this.updateColors(r),r.addEventListener("beginStroke",function(){t.scaleCanvas(),t.hasDrawnStroke=!0,n.focus()},{once:!1}),r.addEventListener("endStroke",function(){t.storeDataAsText?t.updateValue():t.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var o=function(e,n){"signatureWidth"!==n.name&&"signatureHeight"!==n.name||t.valueIsUpdatingInternally||t.updateValueHandler()};this.onPropertyChanged.add(o),this.signaturePad.propertyChangedHandler=o},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",Ys(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||300},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),t=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.hasDrawnStroke,t=this.isEmpty(),n=this.isUploading,r=this.valueWasChangedFromLastUpload;return!e&&t&&!n&&!r},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(t){if(e.prototype.onBlurCore.call(this,t),!this.storeDataAsText&&!this.element.contains(t.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([(n=this.signaturePad.toDataURL(this.getFormat()),r=this.name+"."+Ys(this.dataFormat),o=this.getFormat(),i=atob(n.split(",")[1]),s=new Uint8Array(i.split("").map(function(e){return e.charCodeAt(0)})).buffer,new File([s],r,{type:o}))]),this.valueWasChangedFromLastUpload=!1}var n,r,o,i,s},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=(null==e?void 0:e.length)?e.map(function(e){return e.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(t){this.valueWasChangedFromLastUpload=!1,e.prototype.clearValue.call(this,t),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(N.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(N.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},Qs([y({defaultValue:!1})],t.prototype,"hasDrawnStroke",void 0),Qs([y({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),Qs([y({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),Qs([y()],t.prototype,"signatureAutoScaleEnabled",void 0),Qs([y()],t.prototype,"penMinWidth",void 0),Qs([y()],t.prototype,"penMaxWidth",void 0),Qs([y({})],t.prototype,"showPlaceholder",void 0),Qs([y({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),Qs([y({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(gs);function Ys(e){return e||(e="png"),"jpeg"!==(e=e.replace("image/","").replace("+xml",""))&&"svg"!==e&&(e="png"),e}M.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(e,t){return Ys(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new Gs("")},"question"),ar.Instance.registerQuestion("signaturepad",function(e){return new Gs(e)});var Zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ks=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xs=function(e){function t(t,n,r){var o=e.call(this,r)||this;return o.data=t,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return Zs(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex,o=(n=r>-1?this.data.getSharedQuestionFromArray(t,r):void 0)?n.name:t;return this.sharedQuestions[o]=t,n},t.prototype.getQuestionDisplayText=function(t){var n=this.sharedQuestions[t.name];if(!n)return e.prototype.getQuestionDisplayText.call(this,t);var r=this.panelItem.getValue(n);return t.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){var n;if(e.name==ea.IndexVariableName&&(n=this.panelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(e.name==ea.VisibleIndexVariableName&&(n=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(0==e.name.toLowerCase().indexOf(ea.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,ea.ItemVariableName),i=ea.ItemVariableName+e.name.substring(ea.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(Jn),Js=function(e){function t(t){return e.call(this,t)||this}return Zs(t,e),t}(Ke),ea=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new Xs(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(t,n){var r=this.data.getPanelItemData(this),o=r?r[t]:void 0;if(!s.isTwoValueEquals(n,o,!1,!0,!1)){this.data.setPanelItemData(this,t,s.getUnbindValue(n));for(var i=this.panel.questions,a=0;a<i.length;a++){var l=i[a];l.getValueName()!==t&&l.checkBindings(t,n);var u=Xt.commentSuffix;if(t.endsWith(u)){t=t.substring(0,t.length-u.length);var c=this.panel.getQuestionByName(t);c&&(n=c.value)}var p=e.ItemVariableName+"."+t;l.runTriggers(p,n)}}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+Xt.commentSuffix)||""},e.prototype.setComment=function(e,t,n){this.setValue(e+Xt.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var n=e.ItemVariableName+".";if(0===t.indexOf(n))return this.panel.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getEditingSurveyElement=function(){},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),ta=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),na=function(e){function t(t){var n=e.call(this,t)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(e){n.onPanelAdded(e)},function(e){n.onPanelRemoved(e)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],function(){n.setPanelsState()}),n.registerPropertyChangedHandlers(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return Zs(t,e),Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanelsCore.length;t++){var n=this.visiblePanelsCore[t].getFirstQuestionToFocus(e);if(n)return n}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:e.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(e,n){t.onTemplateElementPropertyChanged(e,n)}),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panelsCore.length&&M.findProperty(e.getType(),t.name))for(var n=this.panelsCore,r=0;r<n.length;r++){var o=n[r].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panelsCore.length;t++)e.push(this.panelsCore[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,n=this.panelsCore,r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanelsCore.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var n=this.visiblePanelsCore;t>=n.length&&(t=n.length-1),this.currentPanel=t>=0?n[t]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanelsCore,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!this.isRenderModeList&&!this.useTemplatePanel){var t=this.getPropertyValue("currentPanel"),n=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&n<0||e===t)&&(t&&t.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),n>-1&&this.survey)){var r={panel:e,visiblePanelIndex:n};this.survey.dynamicPanelCurrentIndexChanged(this,r)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){0==this.renderedPanels.length||0==e.length?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,t=function(){if(e.isRenderModeList)return"";var t=new Ae,n=!1,r=e.renderedPanels.filter(function(t){return t!==e.currentPanel})[0],o=e.visiblePanels.indexOf(r);return o<0&&(n=!0,o=e.removedPanelIndex),t.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",n).append("sv-pd-animation-left",o<=e.currentIndex).append("sv-pd-animation-right",o>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(t){var n,r;if(t&&e.cssContent){var o=zt(e.cssContent);return null===(r=null===(n=e.getWrapperElement())||void 0===n?void 0:n.querySelector(":scope "+o+" #"+t.id))||void 0===r?void 0:r.parentElement}},getEnterOptions:function(){return{onBeforeRunAnimation:function(t){if(e.focusNewPanelCallback){var n=e.isRenderModeList?t:t.parentElement;ft.ScrollElementToViewCore(n,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&t.parentElement?Qt(t.parentElement,{heightTo:t.offsetHeight+"px"}):Gt(t)},onAfterRunAnimation:function(e){Yt(e),e.parentElement&&Yt(e.parentElement)},cssClass:(new Ae).append(e.cssClasses.panelWrapperEnter).append(t()).toString()}},getLeaveOptions:function(){return{onBeforeRunAnimation:function(t){!e.isRenderModeList&&t.parentElement?Qt(t.parentElement,{heightFrom:t.offsetHeight+"px"}):Gt(t)},onAfterRunAnimation:function(e){Yt(e),e.parentElement&&Yt(e.parentElement)},cssClass:(new Ae).append(e.cssClasses.panelWrapperLeave).append(t()).toString()}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.blockAnimations()})},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.releaseAnimations()})},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?lt:ut)(this.getPanelsAnimationOptions(),function(t,n){e._renderedPanels=t,n||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())},function(){return e._renderedPanels})},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"carousel"==this.displayMode&&("top"===this.progressBarLocation||"topBottom"===this.progressBarLocation)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"carousel"==this.displayMode&&("bottom"===this.progressBarLocation||"topBottom"===this.progressBarLocation)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(t){e.prototype.setIsMobile.call(this,t),(this.panelsCore||[]).forEach(function(e){return e.getQuestions(!0).forEach(function(e){e.setIsMobile(t)})})},t.prototype.themeChanged=function(t){e.prototype.themeChanged.call(this,t),(this.panelsCore||[]).forEach(function(e){return e.getQuestions(!0).forEach(function(e){e.themeChanged(t)})})},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0)){if(!this.canBuildPanels||this.wasNotRenderedInSurvey)return this.setPropertyValue("panelCount",e),void this.updateFooterActions();if(e!=this.panelsCore.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panelsCore.push(n),"list"==this.displayMode&&"default"!=this.panelsState&&("expanded"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new ta(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsCore[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.displayMode&&this.templateTitle)for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panelsCore[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++){var n=this.panels[t].getValue(),r=s.isValueEmpty(n)?{}:n;e.push(r)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>Xt.panel.maxPanelCount&&(e=Xt.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addButtonId",{get:function(){return this.id+"addPanel"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return"onSurvey"===this.showQuestionNumbers},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if("carousel"==e){var t=this.progressBarLocation;if("top"==t)return"progressTop";if("bottom"==t)return"progressBottom";if("topBottom"==t)return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?("progressTop"==e?this.progressBarLocation="top":"progressBottom"==e?this.progressBarLocation="bottom":"progressTopBottom"==e&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.tabbedMenu.containerCss=this.getTabbedMenuCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.displayMode},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"===this.showQuestionNumbers,r=n?t:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,i=0;i<o.length;i++){var s=this.setPanelVisibleIndex(o[i],r,"off"!=this.showQuestionNumbers);n&&(r+=s)}return e.prototype.setVisibleIndex.call(this,n?-1:t),n?r-t:1},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&"next"!==this.newPanelPosition)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new ea(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([0,this.panelsCore.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return ft.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.displayMode&&"default"!==this.panelsState&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var t=this.currentIndex;return void 0===e&&(e=t<0?this.panelCount:t+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(t<0?this.panelCount-1:t,e),this.isRenderModeList||(this.currentIndex=e),this.notifyOnPanelAddedRemoved(!0,e),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,t){this.panelCount++;var n=this.value;if(Array.isArray(n)&&n.length===this.panelCount){var r=!1,o=this.panelCount-1;if(t<o){r=!0;var i=n[o];n.splice(o,1),n.splice(t,0,i)}if(this.isValueEmpty(this.defaultPanelValue)||(r=!0,this.copyValue(n[t],this.defaultPanelValue)),this.defaultValueFromLastPanel&&n.length>1){var s=e>-1&&e<=o?e:o;r=!0,this.copyValue(n[t],n[s])}r&&(this.value=n)}},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.displayMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){var t=this,n=this.getVisualPanelIndex(e);if(!(n<0||n>=this.visiblePanelCount)&&this.canRemovePanel){var r=function(){var e;t.removePanel(n);var r=t.visiblePanelCount,o=n>=r?r-1:n,i=0===r?t.addButtonId:o>-1?t.getPanelRemoveButtonId(t.visiblePanels[o]):"";i&&ft.FocusElement(i,!0,null===(e=t.survey)||void 0===e?void 0:e.rootElement)};this.isRequireConfirmOnDelete(e)?vt({message:this.confirmDeleteText,funcOnYes:function(){r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):r()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var t=this.getVisualPanelIndex(e);if(t<0||t>=this.visiblePanelCount)return!1;var n=this.visiblePanelsCore[t].getValue();return!this.isValueEmpty(n)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(n,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){this.removedPanelIndex=t;var n=this.visiblePanelsCore[t],r=this.panelsCore.indexOf(n);r<0||this.survey&&!this.survey.dynamicPanelRemoving(this,r,n)||(this.panelsCore.splice(r,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||r>=e.length?this.updateFooterActions():(this.isValueChangingInternally=!0,e.splice(r,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.notifyOnPanelAddedRemoved(!1,r,n),this.isValueChangingInternally=!1))}},t.prototype.notifyOnPanelAddedRemoved=function(e,t,n){if(n||(n=this.panelsCore[t]),this.survey){var r="onSurvey"===this.showQuestionNumbers;e?this.survey.dynamicPanelAdded(this,t,n,r):this.survey.dynamicPanelRemoved(this,t,n,r)}e&&n&&"onPanel"===this.showQuestionNumbers&&n.setVisibleIndex(0)},t.prototype.getVisualPanelIndex=function(e){if(s.isNumber(e))return e;for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n].id===e)return n;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panelsCore,n=0;n<t.length;n++)t[n].locStrsChanged();this.tabbedMenu&&this.tabbedMenu.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t<0||t>=this.panelsCore.length?null:this.panelsCore[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panelsCore[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var o=!1;for(var i in r)this.getSharedQuestionFromArray(i,e)||t.getQuestionByValueName(i)||this.iscorrectValueWithPostPrefix(t,i,Xt.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,Xt.matrix.totalsSuffix)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=(null==t?void 0:t.isValidator)?t.errorOwner:t,r=!!t&&(!0===t||this.template.questions.indexOf(n)>-1),o=new Array,i=this.template.questions,s=0;s<i.length;s++)i[s].addConditionObjectsByContext(o,t);for(var a=0;a<Xt.panel.maxPanelCountInCondition;a++){var l="["+a+"].",u=this.getValueName()+l,c=this.processedTitle+l;for(s=0;s<o.length;s++)o[s].context?e.push(o[s]):e.push({name:u+o[s].name,text:c+o[s].text,question:o[s].question})}if(r)for(u=!0===t?this.getValueName()+".":"",c=!0===t?this.processedTitle+".":"",s=0;s<o.length;s++)if(o[s].question!=t){var p={name:u+ea.ItemVariableName+"."+o[s].name,text:c+ea.ItemVariableName+"."+o[s].text,question:o[s].question};p.context=this,e.push(p)}},t.prototype.collectNestedQuestionsCore=function(e,t,n){n&&e.push(this);var r=t?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(r){r.questions.forEach(function(r){return r.collectNestedQuestions(e,t,n)})})},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var i=this.template.getQuestionByName(r);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=t;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),e.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(void 0===e&&(e=!1),!this.hasPanelBuildFirstTime&&(e||!this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.data&&this.isValueChangedWithoutPanels&&(this.isValueChangedWithoutPanels=!1,this.runTriggersOnBuildPanelsFirstTime()),this.survey)for(var t=0;t<this.panelCount;t++)this.notifyOnPanelAddedRemoved(!0,t);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},t.prototype.runTriggersOnBuildPanelsFirstTime=function(){var e=this;this.value,this.visiblePanelsCore.forEach(function(t){var n=e.getPanelItemData(t.data);if(!s.isValueEmpty(n)){var r=s.createCopyWithPrefix(n,ea.ItemVariableName+".");t.questions.forEach(function(e){return e.runTriggers("",void 0,r)})}})},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRenderingCore=function(){e.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].onFirstRendering()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].localeChanged()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(this.panelsCore,t,n)},t.prototype.runTriggers=function(t,n,r){e.prototype.runTriggers.call(this,t,n,r),this.visiblePanelsCore.forEach(function(e){e.questions.forEach(function(e){return e.runTriggers(t,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t,n){var r={};t&&t instanceof Object&&(r=JSON.parse(JSON.stringify(t))),this.parentQuestion&&this.parent&&(r[ea.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var o=0,i=0;i<e.length;i++){var a=e[i],l=this.getPanelItemData(a.data),u=s.createCopy(r),c=ea.ItemVariableName;u[c]=l,u[ea.IndexVariableName.toLowerCase()]=i,u[ea.VisibleIndexVariableName.toLowerCase()]=o;var p=s.createCopy(n);p[c]=a,a.runCondition(u,p),a.isVisible&&o++}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),this.hasPanelBuildFirstTime||t!==this.getValueName()||(this.isValueChangedWithoutPanels=!0);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(t,n),this.panelsCore[r].onAnyValueChanged(ea.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],o=0;o<this.panelsCore.length;o++)n=this.isValueDuplicated(this.panelsCore[o],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;return this.changingValueQuestion?(r=this.changingValueQuestion.hasErrors(t,n),r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors()):r=this.hasErrorInPanels(t,n),e.prototype.hasErrors.call(this,t,n)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanelsCore,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(t){if(!t){if(this.survey&&"none"===this.survey.getQuestionClearIfInvisible("onHidden"))return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}e.prototype.clearValueOnHidding.call(this,t)},t.prototype.clearValueIfInvisible=function(t){void 0===t&&(t="onHidden");var n="onHidden"===t?"onHiddenContainer":t;this.clearValueInPanelsIfInvisible(n),e.prototype.clearValueIfInvisible.call(this,t)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var t=0;t<this.panelsCore.length;t++){var n=this.panelsCore[t],r=n.questions;this.isSetPanelItemData={};for(var o=0;o<r.length;o++){var i=r[o];i.visible&&!n.isVisible||(i.clearValueIfInvisible(e),this.isSetPanelItemData[i.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panelsCore.length;t++)for(var n=this.panelsCore[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panelsCore.length&&r<n.length;r++){var o=n[r];o&&(n[r]=this.getPanelDisplayValue(r,o,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var r=this.panelsCore[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=r.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.visiblePanels,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(var s=!!t&&t.focusOnFirstError,a=0;a<r.length;a++){var l=r[a].hasErrors(e,s,t);l=this.isValueDuplicated(r[a],o,t,e)||l,!this.isRenderModeList&&l&&!n&&s&&(this.currentIndex=a),n=l||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(r,n);for(var s=0;s<t.length;s++)if(i==t[s])return r&&o.addError(new fn(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,n=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&n.push(new Ke({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new _e(function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every(function(e){return!0===e})}),data:{question:this,panel:e}})),this.survey&&(n=this.survey.getUpdatedPanelFooterActions(e,n,this)),n},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),n=this.template.toJSON();(new R).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),new ea(this,t),this.isDesignMode||this.isReadOnly||this.isValueEmpty(t.getValue())||this.runPanelsCondition([t],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var r=t.questions,o=0;o<r.length;o++)r[o].setParentQuestion(this);return this.wasRendered&&(t.onFirstRendering(),t.locStrsChanged()),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},t.registerPropertyChangedHandlers(["visible"],function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()}),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this,t=this.createNewPanelObject();return t.isInteractiveDesignElement=!1,t.setParentQuestion(this),t.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},t},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(t){return"default"!==this.templateErrorLocation?this.templateErrorLocation:e.prototype.getChildErrorLocation.call(this,t)},t.prototype.createNewPanelObject=function(){return M.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);void 0===t&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!s.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.updateValueFromSurvey(n[o.getValueName()]),o.updateCommentFromSurvey(n[o.getValueName()+Xt.commentSuffix]),o.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n].data===e)return n;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0||!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var i=this.getUnbindValue(this.value);i&&Array.isArray(i)||(i=[]);for(var s=Math.max(o+1,r.length),a=i.length;a<s;a++)i.push({});i[o]||(i[o]={});var l=i[o][t];this.isValueEmpty(n)?delete i[o][t]:i[o][t]=n,o>=0&&o<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[o].getQuestionByValueName(t));var u={panel:e.panel,name:t,panelIndex:o,panelData:i[o],value:n,oldValue:l};this.survey&&this.survey.dynamicPanelItemValueChanging(this,u),this.value=i,this.changingValueQuestion=null,this.survey&&this.survey.dynamicPanelItemValueChanged(this,u),this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map(function(e){return e.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){r[t.propertyName]=e[t.propertyName]}),r}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new Ae).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var t=this.isRenderModeTab&&!!this.visiblePanelCount;return(new Ae).append(e.prototype.getCssHeader.call(this,this.cssClasses)).append(this.cssClasses.headerTab,this.hasTitleOnTop&&t).toString()},enumerable:!1,configurable:!0}),t.prototype.getTabsContainerCss=function(){return(new Ae).append(this.cssClasses.tabsContainer).append(this.cssClasses.tabsContainerWithHeader,this.hasTitleOnTop).toString()},t.prototype.getPanelWrapperCss=function(e){return(new Ae).append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new Ae).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new Ae).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.displayMode).toString()},t.prototype.getPrevButtonCss=function(){return(new Ae).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new Ae).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasTabbedMenu",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabbedMenu",{get:function(){return this.isRenderModeTab?(this.tabbedMenuValue||(this.tabbedMenuValue=new et,this.tabbedMenuValue.dotsItem.popupModel.showPointer=!1,this.tabbedMenuValue.dotsItem.popupModel.verticalPosition="bottom",this.tabbedMenuValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.tabbedMenuValue):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],n=new Ke({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),r=new Ke({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new Ke({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new Ke({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new Ke({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new Ke({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(n,r,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;n.visible=c&&e.currentIndex>0,r.visible=c&&e.currentIndex<e.visiblePanelCount-1,r.needSpace=u&&r.visible&&n.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!r.visible&&n.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e,t){var n=this;if(this.isRenderModeTab){var r=new mt(e,!0);r.onGetTextCallback=function(r){if(r||(r=n.locTabTitlePlaceholder.renderedHtml),!n.survey)return r;var o={title:r,panel:e,visiblePanelIndex:t};return n.survey.dynamicPanelGetTabTitle(n,o),o.title},r.sharedData=this.locTemplateTabTitle;var o=e.id,i=this.getPanelVisibleIndexById(o)===this.currentIndex;return new Js({id:this.id+"_tab_"+o,panelId:o,pressed:i,locTitle:r,disableHide:i,action:function(){n.currentIndex=n.getPanelVisibleIndexById(o)}})}},t.prototype.getTabbedMenuCss=function(e){var t=null!=e?e:this.cssClasses;return(new Ae).append(t.tabsRoot).append(t.tabsLeft,"left"===this.tabAlign).append(t.tabsRight,"right"===this.tabAlign).append(t.tabsCenter,"center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.tabbedMenu.renderedActions.forEach(function(t){var n=t.panelId===e.id;t.pressed=n,t.disableHide=n,"popup"===t.mode&&t.disableHide&&t.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var t=[],n=this.visiblePanelsCore,r=function(r){o.visiblePanelsCore.forEach(function(o){return t.push(e.createTabByPanel(n[r],r))})},o=this,i=0;i<n.length;i++)r(i);this.tabbedMenu.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var n=this.createTabByPanel(e,t);this.tabbedMenu.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.tabbedMenu.actions.find(function(t){return t.panelId==e.id});t&&(this.tabbedMenu.actions.splice(this.tabbedMenu.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return(!this.isReadOnly||1!=this.visiblePanelCount)&&this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t),r=this.tabbedMenu;return r&&(r.containerCss=this.getTabbedMenuCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=t.list),n},t.prototype.onMobileChanged=function(){e.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,Ks([b({})],t.prototype,"_renderedPanels",void 0),Ks([y({onSet:function(e,t){t.fireCallback(t.renderModeChangedCallback),t.updatePanelView()}})],t.prototype,"displayMode",void 0),Ks([y({onSet:function(e,t){t.fireCallback(t.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),Ks([y({onSet:function(e,t){}})],t.prototype,"progressBarLocation",void 0),Ks([y({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(Rn);M.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.displayMode}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(e){return"tab"===e.displayMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",defaultFunc:function(){return Xt.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(e){return"list"===e.displayMode}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(e){return e.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(e){return e.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(e){return e.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(e){return"list"!==e.displayMode}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(e){return"list"!==e.displayMode}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"renderMode",visible:!1,isSerializable:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",alternativeName:"showRangeInProgress",default:!0,visibleIf:function(e){return"carousel"===e.displayMode}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(e){return e.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(e){return"tab"===e.displayMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(e){return e.allowRemovePanel}}],function(){return new na("")},"question"),ar.Instance.registerQuestion("paneldynamic",function(e){return new na(e)});var ra=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new Ae).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new Ae).append(e.progressText).append(e.progressTextUnderBar).toString()},e}(),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia=function(e){function t(){var n=e.call(this)||this;return n.idValue=t.idCounter++,n.registerPropertyChangedHandlers(["operator","value","name"],function(){n.oldPropertiesChanged()}),n.registerPropertyChangedHandlers(["expression"],function(){n.onExpressionChanged()}),n}return oa(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e){if(this.isExecutingOnNextPage=e.isOnNextPage,this.isExecutingOnNavigation=e.isOnNavigation||e.isOnNextPage,this.canBeExecuted(e.isOnNextPage)&&(!e.isOnComplete||this.canBeExecutedOnComplete())&&this.isCheckRequired(e.keys)){var t=Object.keys(e.keys);Array.isArray(t)&&!this.canBeExecuteOnKeysChange(t)||(this.conditionRunner?this.perform(e.values,e.properties||null):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,e.values,e.properties||null))}},t.prototype.canBeExecuteOnKeysChange=function(e){return!0},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?(this.onSuccess(t,n),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+ae.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){return!!e&&(this.createConditionRunner(),!(!this.conditionRunner||!0!==this.conditionRunner.hasFunction())||(new L).isAnyKeyChanged(e,this.getUsedVariables()))},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var t=e.length-1;t>=0;t--){var n=e[t];n.endsWith("-unwrapped")&&e.push(n.substring(0,n.length-10))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new ge(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(xe),sa=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return oa(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(ia),aa=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return oa(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(sa),la=function(e){function t(){return e.call(this)||this}return oa(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!Xt.triggers.executeCompleteOnValueChanged===this.isExecutingOnNavigation},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(sa),ua=function(e){function t(){return e.call(this)||this}return oa(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.canBeExecuteOnKeysChange=function(t){return(1!==t.length||t[0]!==this.setToName)&&e.prototype.canBeExecuteOnKeysChange.call(this,t)},t.prototype.onPropertyValueChanged=function(t,n,r){if(e.prototype.onPropertyValueChanged.call(this,t,n,r),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,s.getUnbindValue(this.setValue),this.isVariable)},t}(sa),ca=function(e){function t(){return e.call(this)||this}return oa(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!Xt.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(sa),pa=function(e){function t(){return e.call(this)||this}return oa(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new ye(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,s.convertValToQuestionVal(e),!1)},t}(sa),da=function(e){function t(){return e.call(this)||this}return oa(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.canBeExecuteOnKeysChange=function(t){return(1!==t.length||t[0]!==this.setToName)&&e.prototype.canBeExecuteOnKeysChange.call(this,t)},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var t=e.prototype.getUsedVariables.call(this);return 0===t.length&&this.fromName&&t.push(this.fromName),t},t}(sa);M.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),M.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),M.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new aa},"surveytrigger"),M.addClass("completetrigger",[],function(){return new la},"surveytrigger"),M.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new ua},"surveytrigger"),M.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new da},"surveytrigger"),M.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new ca},"surveytrigger"),M.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new pa},"surveytrigger");var fa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ha=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.fitToContainer=!0,r.windowElement=o.createElement("div"),r.survey.onComplete.add(function(e,t){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new _e(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return fa(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitleCollapsed",t.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",t.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",t.collapseButton),this.setPropertyValue("cssHeaderCloseButton",t.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",t.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new zo(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t=setInterval(function(){e.hide(),clearInterval(t)},1e3*this.closeOnCompleteTimeout)}},t.prototype.onScroll=function(){this.survey.onScroll()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y()],t.prototype,"width",void 0),t}(xe),ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fa(t,e),t}(ha),ga=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ya=function(e){function t(t){var n=e.call(this,t)||this;return n.onScrollOutsideCallback=function(e){n.preventScrollOuside(e,e.deltaY)},n}return ga(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),e.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),e.prototype.updateOnHiding.call(this)},t}(Xo),va=function(){return va=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},va.apply(this,arguments)};function ba(e,t){var n,r=va({},e);r.verticalPosition="top",r.horizontalPosition="left",r.showPointer=!1,r.isModal=!0,r.displayMode=e.displayMode||"popup";var i=new He(e.componentName,e.data,r);i.isFocusedContent=null===(n=e.isFocusedContent)||void 0===n||n;var s=new ya(i);if(t&&t.appendChild){var a=o.createElement("div");t.appendChild(a),s.setComponentElement(a)}s.container||s.initializePopupContainer();var l=function(e,t){t.isVisible||a&&s.resetComponentElement(),s.onVisibilityChanged.remove(l)};return s.onVisibilityChanged.add(l),s}function wa(e){return e.isModal?new ya(e):new ni(e)}var Ca=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xa=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="buttongroupitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o}return Ca(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},_a([y()],t.prototype,"iconName",void 0),_a([y()],t.prototype,"iconSize",void 0),_a([y()],t.prototype,"showCaption",void 0),t}(Nn),Ea=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("buttongroupOptionsCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.registerPropertyChangedHandlers(["value","renderAs","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return Ca(t,e),t.prototype.locStrsChanged=function(){var t;e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),null===(t=this.dropdownListModelValue)||void 0===t||t.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(Wo);M.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new Ea("")},"checkboxbase"),M.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(e){return new xa(e)},"itemvalue");var Sa=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new Ae).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}(),Pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pa(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var t=this;M.getProperties(this.getType()).forEach(function(n){var r=e[n.name];t[n.name]=void 0!==r?r:n.getDefaultValue(t)})},t.prototype.getData=function(){var e=this,t={};return M.getProperties(this.getType()).forEach(function(n){var r=e[n.name];n.isDefaultValue(r)||(t[n.name]=r)}),t},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},t.prototype.getTypeForExpressions=function(){return"text"},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y()],t.prototype,"saveMaskedValue",void 0),t}(xe);M.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(e){return!!e&&"masksettings"!==e.getType()}}],function(){return new Oa});var Ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ka(e){for(var t=[],n=!1,r=Object.keys(Xt.maskSettings.patternDefinitions),o=0;o<e.length;o++){var i=e[o];i===Xt.maskSettings.patternEscapeChar?n=!0:n?(n=!1,t.push({type:"fixed",value:i})):t.push({type:-1!==r.indexOf(i)?"regex":"const",value:i})}return t}function Aa(e,t,n){for(var r=Xt.maskSettings.patternDefinitions[n.value];t<e.length;){if(e[t].match(r))return t;t++}return t}function Ia(e,t,n,r){void 0===r&&(r=!1);var o="";if(!e)return o;for(var i="string"==typeof t?ka(t):t,s=0;s<i.length;s++)if("fixed"!==i[s].type||r||(o+=i[s].value),"regex"===i[s].type){var a=Xt.maskSettings.patternDefinitions[i[s].value];if(!e[s]||!e[s].match(a)){if(n){o="";break}break}o+=e[s]}return o}var Ra=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.literals=[],t}return Ta(t,e),t.prototype.updateLiterals=function(){this.literals=ka(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,t,n){"pattern"===e&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(t,n){e.prototype.fromJSON.call(this,t,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,t){return void 0===t&&(t=!1),function(e,t,n){for(var r=null==e?"":e,o="",i=0,s="string"==typeof t?ka(t):t,a=0;a<s.length;a++)switch(s[a].type){case"regex":if(i<r.length&&(i=Aa(r,i,s[a])),i<r.length)o+=r[i];else{if(!n)return o;o+=Xt.maskSettings.patternPlaceholderChar}i++;break;case"const":case"fixed":o+=s[a].value,s[a].value===r[i]&&i++}return o}(null==e?"":e,this.literals,t)},t.prototype._getUnmaskedValue=function(e,t){return void 0===t&&(t=!1),Ia(null==e?"":e,this.literals,t)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return t;var n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),r=Ia(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),o=Ia(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return t.value=this._getMaskedValue(r+(e.insertedChars||"")+o,!0),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(n).length:t.caretPosition=e.selectionStart,t},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([y()],t.prototype,"pattern",void 0),t}(Oa);M.addClass("patternmask",[{name:"pattern"}],function(){return new Ra},"masksettings");var Ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Da=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ma(t,e),t.prototype.calccaretPosition=function(e,t,n){for(var r=e?this.displayNumber(this.parseNumber(e),!1).length:0,o=0,i=t.selectionStart,s=!t.insertedChars&&"forward"===t.inputDirection,a=0;a<n.length;a++)if(n[a]!==this.thousandsSeparator&&o++,o===r+(s?1:0)){i=s?a:a+1;break}return i},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.integralPart;t&&r&&(r=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3);var r=[];if(t){for(var o=e.length-n;o>-n;o-=n)r.push(e.substring(o,o+n));r=r.reverse()}else for(o=0;o<e.length;o+=n)r.push(e.substring(o,o+n));return r}(r).join(this.thousandsSeparator));var o=e.fractionalPart,i=e.isNegative?"-":"";if(""===o){if(n)return r&&"0"!==r?i+r:r;var s=r+(e.hasDecimalSeparator&&!n?this.decimalSeparator:"");return"0"===s?s:i+s}return[i+(r=r||"0"),o=o.substring(0,this.precision)].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var t=e.isNegative?"-":"";return e.fractionalPart?parseFloat(t+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):parseInt(t+e.integralPart||"0")},t.prototype.validateNumber=function(e,t){var n=this.min||Number.MIN_SAFE_INTEGER,r=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(void 0!==this.min||void 0!==this.max){var o=this.convertNumber(e);if(Number.isNaN(o))return!0;if(o>=n&&o<=r)return!0;if(!t){if(e.hasDecimalSeparator||0==o){var i=Math.pow(.1,(e.fractionalPart||"").length);if(o>=0)return o+i>n&&o<=r;if(o<0)return o>=n&&o-i<r}else{var s=o,a=o;if(o>0){if(o+1>n&&o<=r)return!0;for(;s=10*s+9,!((a*=10)>r);)if(s>n)return!0;return!1}if(o<0){if(o>=n&&o-1<r)return!0;for(;a=10*a-9,!((s*=10)<n);)if(a<r)return!0;return!1}}return o>=0&&o<=r||o<0&&o>=n}return!1}return!0},t.prototype.parseNumber=function(e){for(var t={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},n=null==e?"":e.toString(),r=0,o=0;o<n.length;o++){var i=n[o];switch(i){case"-":this.allowNegativeValues&&(void 0===this.min||this.min<0)&&r++;break;case this.decimalSeparator:this.precision>0&&(t.hasDecimalSeparator=!0);break;case this.thousandsSeparator:break;default:i.match(vi)&&(t.hasDecimalSeparator?t.fractionalPart+=i:t.integralPart+=i)}}return t.isNegative=r%2!=0,t.integralPart.length>1&&"0"===t.integralPart[0]&&(t.integralPart=t.integralPart.slice(1)),t},t.prototype.getNumberMaskedValue=function(e,t){void 0===t&&(t=!1);var n=this.parseNumber(e);return this.validateNumber(n,t)?this.displayNumber(n,!0,t):null},t.prototype.getNumberUnmaskedValue=function(e){var t=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(t))return this.convertNumber(t)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var t=null==e?"":e.toString();return t=t.replace(".",this.decimalSeparator),this.getNumberMaskedValue(t,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),r=n+e.prevValue.slice(e.selectionEnd),o=this.parseNumber(r);if(!this.validateNumber(o,!1))return t;var i=this.getNumberMaskedValue(r),s=this.calccaretPosition(n,e,i);return t.value=i,t.caretPosition=s,t},t.prototype.getType=function(){return"numericmask"},t.prototype.isValueUndefined=function(t){return""===t||e.prototype.isValueUndefined.call(this,t)},Da([y()],t.prototype,"allowNegativeValues",void 0),Da([y()],t.prototype,"decimalSeparator",void 0),Da([y()],t.prototype,"precision",void 0),Da([y()],t.prototype,"thousandsSeparator",void 0),Da([y()],t.prototype,"min",void 0),Da([y()],t.prototype,"max",void 0),t}(Oa);M.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],function(){return new La},"masksettings");var Na=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Va=function(){return Va=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Va.apply(this,arguments)},ja=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function Fa(e,t){switch(e){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}var za=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultDate="1970-01-01T",t.turnOfTheCentury=68,t.twelve=12,t.lexems=[],t.inputDateTimeData=[],t.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},t}return Na(t,e),Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return"day"===e.type||"month"===e.type||"year"===e.type})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return"hour"===e.type||"minute"===e.type||"second"===e.type})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return"hour"===e.type&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=function(e){for(var t,n=[],r=function(e,r,o){if(void 0===o&&(o=!1),t&&t===e){n[n.length-1].count++;var i=Fa(e,n[n.length-1].count);n[n.length-1].maxCount=i}else i=Fa(e,1),n.push({type:e,value:r,count:1,maxCount:i,upperCase:o})},o=0;o<e.length;o++){var i=e[o];switch(i){case"m":r("month",i);break;case"d":r("day",i);break;case"y":r("year",i);break;case"h":r("hour",i,!1);break;case"H":r("hour",i,!0);break;case"M":r("minute",i);break;case"s":r("second",i);break;case"t":r("timeMarker",i);break;case"T":r("timeMarker",i,!0);break;default:n.push({type:"separator",value:i,count:1,maxCount:1,upperCase:!1})}t=n[n.length-1].type}return n}(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var t="",n=0;n<e.length;n++)e[n].match(vi)&&(t+=e[n]);return t},t.prototype.getMaskedStrFromISO=function(e){var t=this,n=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(n=new Date(e+"T00:00:00")),this.hasDatePart||(n=new Date(this.defaultDate+e)),isNaN(n)||this.lexems.forEach(function(e,r){var o=t.inputDateTimeData[r];switch(o.isCompleted=!0,e.type){case"hour":t.is12Hours?o.value=((n.getHours()-1)%t.twelve+1).toString():o.value=n.getHours().toString();break;case"minute":o.value=n.getMinutes().toString();break;case"second":o.value=n.getSeconds().toString();break;case"timeMarker":var i=n.getHours()>=t.twelve?"pm":"am";o.value=e.upperCase?i.toUpperCase():i;break;case"day":o.value=n.getDate().toString();break;case"month":o.value=(n.getMonth()+1).toString();break;case"year":var s=n.getFullYear();2==e.count&&(s%=100),o.value=s.toString()}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(t){e.inputDateTimeData.push({lexem:t,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var t=[],n=[];if(void 0!==e.year){var r=this.getPlaceholder(4,e.year.toString(),"0")+e.year;t.push(r)}if(void 0!==e.month&&void 0!==e.year){var o=this.getPlaceholder(2,e.month.toString(),"0")+e.month;t.push(o)}if(void 0!==e.day&&void 0!==e.month&&void 0!==e.year){var i=this.getPlaceholder(2,e.day.toString(),"0")+e.day;t.push(i)}if(void 0!==e.hour){var s=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;n.push(s)}if(void 0!==e.minute&&void 0!==e.hour){var a=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;n.push(a)}if(void 0!==e.second&&void 0!==e.minute&&void 0!==e.hour){var l=this.getPlaceholder(2,e.second.toString(),"0")+e.second;n.push(l)}var u=[];return t.length>0&&u.push(t.join("-")),n.length>1&&u.push(n.join(":")),u.join("T")},t.prototype.isYearValid=function(e){if(void 0===e.min&&void 0===e.max)return!1;var t=e.year.toString(),n=e.min.toISOString().slice(0,t.length),r=e.max.toISOString().slice(0,t.length);return e.year>=parseInt(n)&&e.year<=parseInt(r)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,t){var n=29==e.day&&2==e.month,r=e.min.getFullYear(),o=e.max.getFullYear();n&&(r=4*Math.ceil(r/4))>(o=4*Math.floor(o/4))&&(r=void 0,o=void 0);var i=void 0!==e.year?e.year:t?o:r,s=void 0!==e.month?e.month:t&&this.hasDatePart?12:1;return{year:i,month:s,day:void 0!==e.day?e.day:t&&this.hasDatePart?this.getMaxDateForMonth(i,s):1,hour:void 0!==e.hour?e.hour:t?23:0,minute:void 0!==e.minute?e.minute:t?59:0,second:void 0!==e.second?e.second:t?59:0}},t.prototype.getMaxDateForMonth=function(e,t){return 2==t?e%4==0&&e%100!=0||e%400==0?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][t-1]},t.prototype.isDateValid=function(e){var t=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(t)&&(t.getDate()===e.day||void 0===e.day)&&(t.getMonth()===e.month-1||void 0===e.month)&&(t.getFullYear()===e.year||void 0===e.year)&&n>=e.min&&t<=e.max},t.prototype.getPlaceholder=function(e,t,n){var r=e-(t||"").length;return r>0?n.repeat(r):""},t.prototype.isDateValid12=function(e){return this.is12Hours?!(this.is12Hours&&e.hour>this.twelve)&&(e.timeMarker?"p"===e.timeMarker[0].toLowerCase()?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):!!this.isDateValid(e)||(e.hour+=this.twelve,this.isDateValid(e))):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,t){var n=e.value;if(n){var r="timeMarker",o=Va({},t);o[r]=n,this.isDateValid12(o)?e.isCompleted=!0:n=n.slice(0,n.length-1),e.value=n||void 0,t[r]=n||void 0}},t.prototype.updateInputDateTimeData=function(e,t){var n=e.value;if(n){var r=e.lexem.type,o=Va({},t);if(o[r]=parseInt(this.parseTwoDigitYear(e)),n.length===e.lexem.maxCount){if(this.isDateValid12(o))return e.isCompleted=!0,e.value=n||void 0,void(t[r]=parseInt(n)>0?parseInt(n):void 0);n=n.slice(0,n.length-1)}o[r]=parseInt(n);var i=parseInt(n[0]),s=this.validBeginningOfNumbers[r+(e.lexem.upperCase?"U":"")];"year"!==r||this.isYearValid(o)?void 0!==s&&i>s?this.isDateValid12(o)?e.isCompleted=!0:n=n.slice(0,n.length-1):void 0!==s&&0!==i&&i<=s&&(this.checkValidationDateTimePart(o,r,e),e.isCompleted&&!this.isDateValid12(o)&&(n=n.slice(0,n.length-1))):(n=n.slice(0,n.length-1),e.isCompleted=!1),e.value=n||void 0,t[r]=parseInt(n)>0?parseInt(n):void 0}},t.prototype.checkValidationDateTimePart=function(e,t,n){var r=e[t],o=10*r,i=10;"month"===t&&(i=3),"hour"===t&&(i=this.is12Hours?3:5),n.isCompleted=!0;for(var s=0;s<i;s++)if(e[t]=o+s,this.isDateValid12(e)){n.isCompleted=!1;break}e[t]=r},t.prototype.getCorrectDatePartFormat=function(e,t){var n=e.lexem,r=e.value||"";return r&&"timeMarker"===n.type?(t&&(r+=this.getPlaceholder(n.count,r,n.value)),r):(r&&e.isCompleted&&(r=parseInt(r).toString()),r&&e.isCompleted?r=this.getPlaceholder(n.count,r,"0")+r:(r=function(e,t){var n=t;return e.count<e.maxCount&&("day"===e.type&&0===parseInt(t[0])||"month"===e.type&&0===parseInt(t[0]))&&(n=t.slice(1,t.length)),n}(n,r),t&&(r+=this.getPlaceholder(n.count,r,n.value))),r)},t.prototype.createIDateTimeComposition=function(){var e,t;return this.hasDatePart?(e=this.min||"0001-01-01",t=this.max||"9996-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),t=this.defaultDate+(this.max||"23:59:59")),{hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(t)}},t.prototype.parseTwoDigitYear=function(e){var t=e.value;return"year"!==e.lexem.type||e.lexem.count>2?t:(this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4))),(parseInt(t)>this.turnOfTheCentury?"19":"20")+t)},t.prototype.getFormatedString=function(e){var t="",n="",r=!1,o=this.inputDateTimeData.length-1;if(!e){var i=this.inputDateTimeData.filter(function(e){return!!e.value});o=this.inputDateTimeData.indexOf(i[i.length-1])}for(var s=0;s<this.inputDateTimeData.length;s++){var a=this.inputDateTimeData[s];switch(a.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(void 0===a.value&&!e)return t+(r?n:"");var l=e||o>s;t+=n+this.getCorrectDatePartFormat(a,l),r=a.isCompleted;break;case"separator":n=a.lexem.value}}return t},t.prototype.cleanTimeMarker=function(e,t){var n="";e=e.toUpperCase();for(var r=0;r<e.length;r++)(!n&&("P"==e[r]||"A"==e[r])||n&&"M"==e[r])&&(n+=e[r]);return t?n.toUpperCase():n.toLowerCase()},t.prototype.setInputDateTimeData=function(e){var t=this,n=0;this.initInputDateTimeData(),this.lexems.forEach(function(r,o){if(e.length>0&&n<e.length){if("separator"===r.type)return;var i=t.inputDateTimeData[o],s=e[n],a=void 0;a="timeMarker"===r.type?t.cleanTimeMarker(s,r.upperCase):t.leaveOnlyNumbers(s),i.value=a.slice(0,r.maxCount),n++}})},t.prototype._getMaskedValue=function(e,t){var n=this;void 0===t&&(t=!0);var r=null==e?"":e.toString(),o=this.getParts(r);this.setInputDateTimeData(o);var i=this.createIDateTimeComposition();return this.inputDateTimeData.forEach(function(e){"timeMarker"===e.lexem.type?n.updateTimeMarkerInputDateTimeData(e,i):n.updateInputDateTimeData(e,i)}),this.getFormatedString(t)},t.prototype.getParts=function(e){for(var t=[],n=this.lexems.filter(function(e){return"separator"!==e.type}),r=this.lexems.filter(function(e){return"separator"===e.type}).map(function(e){return e.value}),o="",i=!1,s=!1,a=0;a<e.length;a++){var l=e[a];if(l.match(vi)||l===n[t.length].value||"timeMarker"===n[t.length].type?(i=!1,s=!1,o+=l):-1!==r.indexOf(l)?s||(i=!0,t.push(o),o=""):i||(s=!0,t.push(o),o=""),t.length>=n.length){i=!1;break}}return(""!=o||i)&&t.push(o),t},t.prototype.getUnmaskedValue=function(e){var t,n=this,r=null==e?"":e.toString(),o=this.getParts(r);this.setInputDateTimeData(o);var i=null===(t=this.inputDateTimeData.filter(function(e){return"timeMarker"===e.lexem.type})[0])||void 0===t?void 0:t.value.toLowerCase()[0],s=this.createIDateTimeComposition(),a=!1;return this.inputDateTimeData.forEach(function(e){var t=e.value;if("timeMarker"!=e.lexem.type&&"separator"!=e.lexem.type)if(!t||t.length<e.lexem.count)a=!0;else{var r=parseInt(n.parseTwoDigitYear(e));"hour"==e.lexem.type&&"p"===i&&r!=n.twelve&&(r+=n.twelve),s[e.lexem.type]=r}}),a?"":this.getISO_8601Format(s)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart),r=e.prevValue.slice(e.selectionEnd);return t.value=this._getMaskedValue(n+(e.insertedChars||"")+r),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(n+(e.insertedChars||""),!1).length:t.caretPosition=e.selectionStart,t},ja([y()],t.prototype,"min",void 0),ja([y()],t.prototype,"max",void 0),t}(Ra);M.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(e){return!!e.pattern}},{name:"max",type:"datetime",enableIf:function(e){return!!e.pattern}}],function(){return new za},"patternmask");var Ba,Ha,Ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qa=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ua(t,e),t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var t=this.prefix||"",n=this.suffix||"",r=e;return r?(-1===r.indexOf(t)&&(r=t+r),-1===r.indexOf(n)&&(r+=n),r):r},t.prototype.unwrapInputArgs=function(e){var t=e.prevValue;if(t){if(this.prefix&&-1!==t.indexOf(this.prefix)){t=t.slice(t.indexOf(this.prefix)+this.prefix.length);var n=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-n,0),e.selectionEnd-=n}this.suffix&&-1!==t.indexOf(this.suffix)&&(t=t.slice(0,t.indexOf(this.suffix))),e.prevValue=t}},t.prototype.processInput=function(t){this.unwrapInputArgs(t);var n=e.prototype.processInput.call(this,t),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(t){var n=e.prototype.getMaskedValue.call(this,t);return this.wrapText(n)},qa([y()],t.prototype,"prefix",void 0),qa([y()],t.prototype,"suffix",void 0),t}(La);function $a(e,t){if(Ba!=e){var n="survey-core has version '"+Ba+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(n)}}function Qa(e){Ga(e)}function Ga(e){!function(e,t,n){if(e){var o=function(e){var t,n,r,o={},i=0,s=0,a="",l=String.fromCharCode,u=e.length;for(t=0;t<64;t++)o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(n=0;n<u;n++)for(i=(i<<6)+o[e.charAt(n)],s+=6;s>=8;)((r=i>>>(s-=8)&255)||n<u-2)&&(a+=l(r));return a}(e);if(o){var i=o.indexOf(";");i<0||function(e){if(!e)return!0;var t="domains:",n=e.indexOf(t);if(n<0)return!0;var o=e.substring(n+8).toLowerCase().split(",");if(!Array.isArray(o)||0===o.length)return!0;var i=r.getLocation();if(i&&i.hostname){var s=i.hostname.toLowerCase();o.push("localhost");for(var a=0;a<o.length;a++)if(s.indexOf(o[a])>-1)return!0;return!1}return!0}(o.substring(0,i))&&(o=o.substring(i+1)).split(",").forEach(function(e){var r=e.indexOf("=");if(r>0){var o=new Date(e.substring(r+1));t[e.substring(0,r)]=new Date(n)<=o||o}})}}}(e,Ka,Ha)}function Ya(e){return!0===Za(e)}function Za(e){return Ka[e.toString()]||!1}M.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Wa},"numericmask"),Ba="1.12.59",Xt.version=Ba,Ha="2025-12-10";var Ka={},Xa={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},Ja={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},el={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},tl={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},nl={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},rl={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},ol={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},il={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},sl=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==Yr.currentType&&"bootstrapmaterial"!==Yr.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return Yr.getAvailableThemes().filter(function(e){return-1!==["defaultV2","default","modern"].indexOf(e)}).map(function(e){return{name:e,theme:Yr[e]}})},e.getIncludedThemeCss=function(){if(void 0===Xt.environment)return[];var t=Xt.environment.rootElement,n=e.getAvailableThemes(),r=Ct(t)?t.host:t;if(r){var o=getComputedStyle(r);if(o.length)return n.filter(function(e){return e.theme.variables&&o.getPropertyValue(e.theme.variables.themeMark)})}return[]},e.findSheet=function(e){if(void 0===Xt.environment)return null;for(var t=Xt.environment.root.styleSheets,n=0;n<t.length;n++)if(t[n].ownerNode&&t[n].ownerNode.id===e)return t[n];return null},e.createSheet=function(t){var n=Xt.environment.stylesSheetsMountContainer,r=o.createElement("style");return r.id=t,r.appendChild(new Text("")),_t(n).appendChild(r),e.Logger&&e.Logger.log("style sheet "+t+" created"),r.sheet},e.applyTheme=function(t,n){if(void 0===t&&(t="default"),void 0!==Xt.environment){var r=Xt.environment.rootElement,o=Ct(r)?r.host:r;if(Yr.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach(function(n){var r=n.substring(1);t.style.setProperty("--"+r,e[n])})}(e.ThemeColors[t],o),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var i=e.ThemeCss[t];if(!i)return void(Yr.currentType="defaultV2");e.insertStylesRulesIntoDocument();var s=n||e.ThemeSelector[t]||e.ThemeSelector.default,a=(t+s).trim(),l=e.findSheet(a);if(!l){l=e.createSheet(a);var u=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(i).forEach(function(e){var t=i[e];Object.keys(u||{}).forEach(function(e){return t=t.replace(new RegExp("\\"+e,"g"),u[e])});try{0===e.indexOf("body")?l.insertRule(e+" { "+t+" }",0):l.insertRule(s+e+" { "+t+" }",0)}catch(e){}})}}e.Logger&&e.Logger.log("apply theme "+t+" completed")}},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach(function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}}),Object.keys(e.Media).length&&Object.keys(e.Media).forEach(function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}})}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:Xa,default:Ja,orange:el,darkblue:tl,darkrose:nl,stone:rl,winter:ol,winterstone:il},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}();zo.prototype.onBeforeRunConstructor=function(){r.isAvailable()&&sl.autoApplyTheme()};var al={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"sv_matrix_dynamic_button--add",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};Yr.default=al,Yr.orange=al,Yr.darkblue=al,Yr.darkrose=al,Yr.stone=al,Yr.winter=al,Yr.winterstone=al;var ll={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",number:"sv-page__num",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};Yr.modern=ll;var ul=function(){function e(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new Pe}return e.prototype.processId=function(e,t){return 0==e.indexOf(t)&&(e=e.substring(t.length)),Pt[e]||e},e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,n){if(void 0===n&&(n=this.iconPrefix),o.isAvailable()){e=this.processId(e,n);var r=o.createElement("div");r.innerHTML=t;var i=o.createElement("symbol"),s=r.querySelector("svg");i.innerHTML=s.innerHTML;for(var a=0;a<s.attributes.length;a++)i.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[a].name,s.attributes[a].value);i.id=n+e,this.registerIconFromSymbol(e,i.outerHTML)}},e.prototype.registerIconFromSvg=function(e,t,n){void 0===n&&(n=this.iconPrefix),e=this.processId(e,n);var r=(t=t.trim()).toLowerCase();return"<svg "===r.substring(0,5)&&"</svg>"===r.substring(r.length-6,r.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+n+e+'" '+t.substring(5,r.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach(function(n){t.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),e(n))})},e.prototype.registerIcons=function(e){for(var t in e)this.registerIconFromSvg(t,e[t]);this.updateMarkup()},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map(function(t){return e.icons[t]}).join("")},e.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},e}(),cl=new ul,pl={};function dl(e,t){pl[e]||(pl[e]={});var n=pl[e];for(var r in t)n[r]=t[r]}}})},e.exports=t()},67687(e,t,n){var r;r=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"icons",function(){return o});var r=n("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),o={};r.keys().forEach(function(e){o[e.substring(2,e.length-4).toLowerCase()]=r(e)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(e,t,n){var r={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v1/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v1/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v1/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v1/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v1/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v1/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v1/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v1/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v1/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v1/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v1/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v1/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v1/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v1/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v1/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v1/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v1/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v1/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v1/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v1/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v1/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v1/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v1/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v1/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v1/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v1/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v1/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v1/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v1/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v1/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v1/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v1/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v1/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v1/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v1/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v1/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v1/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v1/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v1/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v1/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v1/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v1/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v1/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v1/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v1/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v1/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v1/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v1/add-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowleft-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowright-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-32x32.svg":function(e,t){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./packages/survey-core/src/images-v1/cancel-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevrondown-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevronright-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapse-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/delete-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./packages/survey-core/src/images-v1/drag-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg":function(e,t){e.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"></path></svg>'},"./packages/survey-core/src/images-v1/expand-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"></path></svg>'},"./packages/survey-core/src/images-v1/expanddetails-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/file-72x72.svg":function(e,t){e.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v1/flip-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./packages/survey-core/src/images-v1/folder-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"></path></svg>'},"./packages/survey-core/src/images-v1/fullsize-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./packages/survey-core/src/images-v1/image-48x48.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"></path></svg>'},"./packages/survey-core/src/images-v1/loading-48x48.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/maximize-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./packages/survey-core/src/images-v1/minimize-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./packages/survey-core/src/images-v1/more-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/navmenu-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"></path></svg>'},"./packages/survey-core/src/images-v1/noimage-48x48.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/ranking-arrows.svg":function(e,t){e.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/reorder-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"></path><path d="M13 19V15H11V19H7L12 24L17 19H13Z"></path></svg>'},"./packages/survey-core/src/images-v1/restoredown-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/search-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})},e.exports=r()},"./build/survey-core/icons/iconsV2.js":function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"icons",function(){return o});var r=n("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),o={};r.keys().forEach(function(e){o[e.substring(2,e.length-4).toLowerCase()]=r(e)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(e,t,n){var r={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(e,t){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(e,t){e.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(e,t){e.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(e,t){e.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})},e.exports=r()},"./src/entries/react-ui.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Survey",function(){return Se}),n.d(t,"attachKey2click",function(){return Pe}),n.d(t,"ReactSurveyElementsWrapper",function(){return a}),n.d(t,"SurveyNavigationBase",function(){return Te}),n.d(t,"SurveyTimerPanel",function(){return Ae}),n.d(t,"SurveyPage",function(){return ae}),n.d(t,"SurveyRow",function(){return y}),n.d(t,"SurveyPanel",function(){return Re}),n.d(t,"SurveyFlowPanel",function(){return De}),n.d(t,"SurveyQuestion",function(){return te}),n.d(t,"SurveyElementErrors",function(){return ne}),n.d(t,"SurveyQuestionAndErrorsCell",function(){return oe}),n.d(t,"ReactSurveyElement",function(){return p}),n.d(t,"SurveyElementBase",function(){return c}),n.d(t,"SurveyQuestionElementBase",function(){return d}),n.d(t,"SurveyQuestionCommentItem",function(){return G}),n.d(t,"SurveyQuestionComment",function(){return Q}),n.d(t,"SurveyQuestionCheckbox",function(){return Ne}),n.d(t,"SurveyQuestionCheckboxItem",function(){return Ve}),n.d(t,"SurveyQuestionRanking",function(){return Fe}),n.d(t,"SurveyQuestionRankingItem",function(){return ze}),n.d(t,"SurveyQuestionRankingItemContent",function(){return Be}),n.d(t,"RatingItem",function(){return qe}),n.d(t,"RatingItemStar",function(){return $e}),n.d(t,"RatingItemSmiley",function(){return Ge}),n.d(t,"RatingDropdownItem",function(){return Ze}),n.d(t,"TagboxFilterString",function(){return Xe}),n.d(t,"SurveyQuestionOptionItem",function(){return et}),n.d(t,"SurveyQuestionDropdownBase",function(){return nt}),n.d(t,"SurveyQuestionDropdown",function(){return ot}),n.d(t,"SurveyQuestionTagboxItem",function(){return st}),n.d(t,"SurveyQuestionTagbox",function(){return lt}),n.d(t,"SurveyQuestionDropdownSelect",function(){return ct}),n.d(t,"SurveyQuestionMatrix",function(){return dt}),n.d(t,"SurveyQuestionMatrixRow",function(){return ft}),n.d(t,"SurveyQuestionMatrixCell",function(){return ht}),n.d(t,"SurveyQuestionHtml",function(){return gt}),n.d(t,"SurveyQuestionFile",function(){return _t}),n.d(t,"SurveyFileChooseButton",function(){return wt}),n.d(t,"SurveyFilePreview",function(){return Tt}),n.d(t,"SurveyQuestionMultipleText",function(){return At}),n.d(t,"SurveyQuestionRadiogroup",function(){return Dt}),n.d(t,"SurveyQuestionRadioItem",function(){return Lt}),n.d(t,"SurveyQuestionText",function(){return Vt}),n.d(t,"SurveyQuestionBoolean",function(){return Ft}),n.d(t,"SurveyQuestionBooleanCheckbox",function(){return Bt}),n.d(t,"SurveyQuestionBooleanRadio",function(){return Ut}),n.d(t,"SurveyQuestionEmpty",function(){return Wt}),n.d(t,"SurveyQuestionMatrixDropdownCell",function(){return nn}),n.d(t,"SurveyQuestionMatrixDropdownBase",function(){return Xt}),n.d(t,"SurveyQuestionMatrixDropdown",function(){return on}),n.d(t,"SurveyQuestionMatrixDynamic",function(){return an}),n.d(t,"SurveyQuestionMatrixDynamicAddButton",function(){return ln}),n.d(t,"SurveyQuestionPanelDynamic",function(){return bn}),n.d(t,"SurveyProgress",function(){return _n}),n.d(t,"SurveyProgressButtons",function(){return En}),n.d(t,"SurveyProgressToc",function(){return An}),n.d(t,"SurveyQuestionRating",function(){return Rn}),n.d(t,"SurveyQuestionRatingDropdown",function(){return Dn}),n.d(t,"SurveyQuestionExpression",function(){return Nn}),n.d(t,"PopupSurvey",function(){return jn}),n.d(t,"SurveyWindow",function(){return Fn}),n.d(t,"ReactQuestionFactory",function(){return B}),n.d(t,"ReactElementFactory",function(){return s}),n.d(t,"SurveyQuestionImagePicker",function(){return Bn}),n.d(t,"SurveyQuestionImage",function(){return qn}),n.d(t,"SurveyQuestionSignaturePad",function(){return $n}),n.d(t,"SurveyQuestionButtonGroup",function(){return Gn}),n.d(t,"SurveyQuestionCustom",function(){return Kn}),n.d(t,"SurveyQuestionComposite",function(){return Xn}),n.d(t,"Popup",function(){return T}),n.d(t,"ListItemContent",function(){return er}),n.d(t,"ListItemGroup",function(){return nr}),n.d(t,"List",function(){return Tn}),n.d(t,"TitleActions",function(){return j}),n.d(t,"TitleElement",function(){return z}),n.d(t,"SurveyActionBar",function(){return D}),n.d(t,"LogoImage",function(){return or}),n.d(t,"SurveyHeader",function(){return ue}),n.d(t,"SvgIcon",function(){return C}),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",function(){return sr}),n.d(t,"SurveyQuestionMatrixDetailButton",function(){return lr}),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return Yt}),n.d(t,"SurveyQuestionPanelDynamicAddButton",function(){return pn}),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",function(){return cr}),n.d(t,"SurveyQuestionPanelDynamicPrevButton",function(){return mn}),n.d(t,"SurveyQuestionPanelDynamicNextButton",function(){return fn}),n.d(t,"SurveyQuestionPanelDynamicProgressText",function(){return yn}),n.d(t,"SurveyNavigationButton",function(){return dr}),n.d(t,"QuestionErrorComponent",function(){return gr}),n.d(t,"MatrixRow",function(){return Qt}),n.d(t,"Skeleton",function(){return vr}),n.d(t,"NotifierComponent",function(){return fe}),n.d(t,"ComponentsContainer",function(){return me}),n.d(t,"CharacterCounterComponent",function(){return U}),n.d(t,"HeaderMobile",function(){return wr}),n.d(t,"HeaderCell",function(){return Cr}),n.d(t,"Header",function(){return _r}),n.d(t,"SurveyLocStringViewer",function(){return hr}),n.d(t,"SurveyLocStringEditor",function(){return Er}),n.d(t,"LoadingIndicatorComponent",function(){return vt}),n.d(t,"SvgBundleComponent",function(){return ye}),n.d(t,"PopupModal",function(){return we}),n.d(t,"SurveyModel",function(){return r.SurveyModel}),n.d(t,"SurveyWindowModel",function(){return r.SurveyWindowModel}),n.d(t,"Model",function(){return r.SurveyModel}),n.d(t,"settings",function(){return r.settings}),n.d(t,"surveyLocalization",function(){return r.surveyLocalization}),n.d(t,"surveyStrings",function(){return r.surveyStrings});var r=n("survey-core"),o=n("react"),i=n.n(o),s=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),a=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),o=e.getRowWrapperComponentData(n);return s.Instance.createElement(r,{element:t,row:n,componentData:o})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),o=e.getElementWrapperComponentData(n);return s.Instance.createElement(r,{element:t,question:n,componentData:o})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),o=e.getElementWrapperComponentData(n);return s.Instance.createElement(r,{element:t,question:n,componentData:o})},e.wrapItemValue=function(e,t,n,r){var o=e.getItemValueWrapperComponentName(r,n),i=e.getItemValueWrapperComponentData(r,n);return s.Instance.createElement(o,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:i})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var o=e.getElementWrapperComponentName(n,r),i=e.getElementWrapperComponentData(n,r);return s.Instance.createElement(o,{element:t,cell:n,componentData:i})},e}();r.SurveyModel.platform="react";var l,u=(l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n.prevStateElements=[],n.propertyValueChangedHandler=function(e,t,r){if(e[t]!==r){if(e[t]=r,!n.canUsePropInState(t))return;if(n.isRendering)return;n.changedStatePropNameValue=t,n.setState(function(e){var n={};return n[t]=r,n})}},n}return u(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),s.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.hasDescription?void 0:{display:"none"},id:e.ariaDescriptionId,className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},t.prototype.componentDidUpdate=function(e,t){var n;this.makeBaseElementsReact();var r=this.getStateElements();this.disableStateElementsRerenderEvent((null!==(n=this.prevStateElements)&&void 0!==n?n:[]).filter(function(e){return!r.includes(e)})),this.prevStateElements=[],this.getStateElements().forEach(function(e){e.afterRerender()})},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){var e=this.getStateElements();this.unMakeBaseElementsReactive(e)},t.prototype.unMakeBaseElementsReactive=function(e){for(var t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.disableStateElementsRerenderEvent=function(e){e.forEach(function(e){e.disableOnElementRerenderedEvent()})},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.isCurrentStateElement=function(e){return!!e&&!!e.setPropertyValueCoreHandler&&e.setPropertyValueCoreHandler===this.propertyValueChangedHandler},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash(function(e,n){if(t.canUsePropInState(n)){var r=e[n];Array.isArray(r)&&(r.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState(function(e){var t={};return t[n]=r,t}))})}}),e.setPropertyValueCoreHandler=this.propertyValueChangedHandler)},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(this.isCurrentStateElement(e),e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash(function(e,t){var n=e[t];Array.isArray(n)&&(n.onArrayChanged=function(){})}))},t}(o.Component),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(c),d=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.content||this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=a.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.setContent=function(e){e&&(this.content=e)},t}(c),f=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){r.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();r.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return r.Helpers.isValueEmpty(e)?"":e},t}(d),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(e){function t(t){var n=e.call(this,t)||this;return n.element.cssClasses,n.rootRef=o.createRef(),n}return h(t,e),t.prototype.getStateElement=function(){return this.element},Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.element!==this.element&&(t.element&&t.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},t.prototype.renderElement=function(){var e=this.element,t=this.createElement(e,this.index),n=e.cssClassesValue;return o.createElement("div",{className:n.questionWrapper,style:e.rootStyle,"data-key":e.name+this.index,onFocus:function(){var t=e;t&&t.isQuestion&&t.focusIn()},ref:this.rootRef},t)},t.prototype.createElement=function(e,t){if(!this.row.isNeedRender)return s.Instance.createElement(e.skeletonComponentName,{element:e,css:this.css});var n=e.getTemplate();return s.Instance.isElementRegistered(n)||(n="question"),s.Instance.createElement(n,{element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(c),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.recalculateCss(),n}return g(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map(function(e){return e.cssClasses})},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map(function(t,n){return o.createElement(m,{element:t,index:n,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:t.id})});return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var r=n;this.lazyRenderingTimeout=setTimeout(function(){t.row.startLazyRendering(r)},10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,t.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){clearTimeout(this.lazyRenderingTimeout),this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){var t=this.isCurrentStateElement(this.getStateElement());e.prototype.componentWillUnmount.call(this),t&&(this.row.setRootElement(void 0),this.stopLazyRendering())},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return s.Instance.isElementRegistered(r)||(r="question"),s.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(c),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n}return v(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.activePage&&t.page.id===this.survey.activePage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var t=this;return this.panelBase.visibleRows.map(function(n){return t.createRow(n,e)})},t.prototype.createRow=function(e,t){return o.createElement(y,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(c),w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=i.a.createRef(),n}return w(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(r.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.Instance.registerElement("sv-svg-icon",function(e){return i.a.createElement(C,e)});var _=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.Instance.registerElement("sv-action-bar-separator",function(e){return i.a.createElement(x,e)});var E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(x,null):null,n=s.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,n))},t}(c),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(C,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Pe(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onMouseDown:function(t){return e.item.doMouseDown(t)},onFocus:function(t){return e.item.doFocus(t)},onClick:function(t){return e.item.doAction(t)},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),this.item,{processEsc:!1})},t}(c);s.Instance.registerElement("sv-action-bar-item",function(e){return i.a.createElement(P,e)});var O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=i.a.createRef(),n.createModel(),n}return O(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(r.createPopupViewModel)(this.props.model)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?i.a.createElement(k,{model:this.popup}):i.a.createElement(A,{model:this.popup}),i.a.createElement("div",{ref:this.containerRef},e)},t}(c);s.Instance.registerElement("sv-popup",function(e){return i.a.createElement(T,e)});var k=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return O(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),s=e.showFooter?this.renderFooter(this.model):null;return i.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},n,i.a.createElement("div",{className:"sv-popup__body-content"},r,i.a.createElement("div",{className:"sv-popup__scrolling-content"},o),s))},t.prototype.renderHeaderContent=function(){return i.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=s.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return i.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return i.a.createElement("div",{className:"sv-popup__body-footer"},i.a.createElement(D,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new r.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),o={display:this.model.isVisible?"":"none"};return i.a.createElement("div",{tabIndex:-1,className:n,style:o,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},t}(c),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?i.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(k),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(t){return e.call(this,t)||this}return I(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(T,{model:this.item.popupModel}))},t.prototype.componentDidMount=function(){this.viewModel=new r.ActionDropdownViewModel(this.item)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(P);s.Instance.registerElement("sv-action-bar-item-dropdown",function(e){return i.a.createElement(R,e)});var M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=i.a.createRef(),n}return M(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t,function(e){setTimeout(e,100)})}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(t,n){if(e.prototype.componentDidUpdate.call(this,t,n),t.model!=this.props.model&&t.model.resetResponsivityManager(),this.model.hasActions){var r=this.rootRef.current;r&&this.model.initResponsivityManager(r,function(e){setTimeout(e,100)})}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return i.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map(function(e,t){return i.a.createElement(S,{item:e,key:"item"+t})})},t}(c);s.Instance.registerElement("sv-action-bar",function(e){return i.a.createElement(D,e)});var L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(e){function t(t){return e.call(this,t)||this}return L(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return c.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e)),r.push(n("req-sp")));var o=e.no;return o&&(r.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:e.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))),e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e)),r.push(n("req-sp"))),r.push(c.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e))),r},t.prototype.renderRequireText=function(e){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:e.cssRequiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component),V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return V(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(N,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(D,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);r.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),s.Instance.registerElement("sv-title-actions",function(e){return i.a.createElement(j,e)});var F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(e){function t(t){return e.call(this,t)||this}return F(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var e=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return i.a.createElement(C,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:"auto"})},t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=this.renderTitleExpandableSvg(),o=i.a.createElement(j,{element:e,cssClasses:e.cssClasses}),s=void 0;e.hasTitleEvents&&(s=function(e){Object(r.doKey2ClickUp)(e.nativeEvent)});var a=e.titleTagName;return i.a.createElement(a,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:s},n,o)},t}(i.a.Component),B=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(c);s.Instance.registerElement("sv-character-counter",function(e){return i.a.createElement(U,e)});var q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W=function(e){function t(t){var n=e.call(this,t)||this;return n.initialValue=n.viewModel.getTextValue()||"",n.textareaRef=i.a.createRef(),n}return q(t,e),Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.viewModel.question},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.textareaRef.current;t&&this.viewModel.setElement(t)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},t.prototype.renderElement=function(){var e=this;return i.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(t){e.viewModel.onTextAreaInput(t)},onFocus:function(t){e.viewModel.onTextAreaFocus(t)},onBlur:function(t){e.viewModel.onTextAreaBlur(t)},onKeyDown:function(t){e.viewModel.onTextAreaKeyDown(t)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},t}(c);s.Instance.registerElement("sv-text-area",function(e){return i.a.createElement(W,e)});var $=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(e){function t(t){return e.call(this,t)||this}return $(t,e),t.prototype.renderCharacterCounter=function(){var e=null;return this.question.getMaxLength()&&(e=o.createElement(U,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e},t.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var e=this.renderCharacterCounter(),t=this.props.question.textAreaModel;return o.createElement(o.Fragment,null,o.createElement(W,{viewModel:t}),e)},t}(f),G=function(e){function t(t){var n=e.call(this,t)||this;return n.textAreaModel=n.getTextAreaModel(),n}return $(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},t.prototype.renderElement=function(){if(this.props.question.isReadOnlyRenderDiv()){var e=this.textAreaModel.getTextValue()||"";return o.createElement("div",null,e)}return o.createElement(W,{viewModel:this.textAreaModel})},t}(p),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(G);B.Instance.registerQuestion("comment",function(e){return o.createElement(Q,e)});var Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef=o.createRef(),n}return Z(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return o.createElement("div",{ref:this.widgetRef},t)},t}(d),X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(z,{element:e}):null,n=e.hasDescriptionUnderTitle?c.renderQuestionDescription(this.element):null,o=e.hasAdditionalTitleToolbar?i.a.createElement(D,{model:e.additionalTitleToolbar}):null,s={width:void 0};return e instanceof r.Question&&(s.width=e.titleWidth),i.a.createElement("div",{className:e.cssHeader,onClick:function(t){return e.clickTitleFunction&&e.clickTitleFunction(t.nativeEvent)},style:s},t,n,o)},t}(i.a.Component),ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef=o.createRef(),n}return ee(t,e),t.renderQuestionBody=function(e,t){return t.customWidget?o.createElement(K,{creator:e,question:t}):e.createQuestionElement(t)},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.renderedIsExpanded?"":"none"},n=e.cssClasses,r=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,a=e&&e.hasComment?this.renderComment(n):null,l=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,r,a,s,l)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded,"data-name":e.name},s,r,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=a.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=a.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return c.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=c.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(G,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(J,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(ne,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(c);s.Instance.registerElement("question",function(e){return o.createElement(te,e)});var ne=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n}return ee(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentWillUnmount=function(){},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses,this.element))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(p),re=function(e){function t(t){return e.call(this,t)||this}return ee(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){var e=this.renderQuestion();return o.createElement(o.Fragment,null,e)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return te.renderQuestionBody(this.creator,this.question)},t}(p),oe=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef=o.createRef(),n}return ee(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return o.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.props.cell;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:t.colSpans,title:t.getTitle(),style:e,onFocus:function(){t.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=a.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(re),ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return ee(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},t.prototype.registerCallback=function(e){var t=this;e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){t.update()},"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)},t.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},t.prototype.render=function(){return o.createElement(ne,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(o.Component),se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ae=function(e){function t(t){return e.call(this,t)||this}return se(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),r=o.createElement(ne,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r,n)},t.prototype.renderTitle=function(){return o.createElement(z,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=c.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(b),le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=i.a.createRef(),n}return le(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=c.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(z,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return s.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);s.Instance.registerElement("survey-header",function(e){return i.a.createElement(ue,e)});var ce=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ce(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component),de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return de(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(D,{model:this.notifier.actionBar}))},t}(c);s.Instance.registerElement("sv-notifier",function(e){return i.a.createElement(fe,e)});var he=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return he(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?i.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},t.map(function(t){return s.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})})):i.a.createElement(i.a.Fragment,null,t.map(function(t){return s.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})}))},t}(i.a.Component);s.Instance.registerElement("sv-components-container",function(e){return i.a.createElement(me,e)});var ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ye=function(e){function t(t){var n=e.call(this,t)||this;return n.onIconsChanged=function(){n.containerRef.current&&(n.containerRef.current.innerHTML=r.SvgRegistry.iconsRenderedHtml())},n.containerRef=i.a.createRef(),n}return ge(t,e),t.prototype.componentDidMount=function(){this.onIconsChanged(),r.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},t.prototype.componentWillUnmount=function(){r.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},t.prototype.render=function(){return i.a.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(i.a.Component),ve=n("react-dom"),be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(e){function t(t){var n=e.call(this,t)||this;return n.isInitialized=!1,n.init=function(){n.isInitialized||(r.settings.showModal=function(e,t,o,i,s,a,l){void 0===l&&(l="popup");var u=Object(r.createDialogOptions)(e,t,o,i,void 0,void 0,s,a,l);return n.showDialog(u)},r.settings.showDialog=function(e,t){return n.showDialog(e,t)},n.isInitialized=!0)},n.clean=function(){n.isInitialized&&(r.settings.showModal=void 0,r.settings.showDialog=void 0,n.isInitialized=!1)},n.state={changed:0},n.descriptor={init:n.init,clean:n.clean},n}return be(t,e),t.addModalDescriptor=function(e){r.settings.showModal||e.init(),this.modalDescriptors.push(e)},t.removeModalDescriptor=function(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!r.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},t.prototype.renderElement=function(){return this.model?Object(ve.createPortal)(i.a.createElement(k,{model:this.model}),this.model.container):null},t.prototype.showDialog=function(e,t){var n=this;return this.model=Object(r.createPopupModalViewModel)(e,t),this.model.onVisibilityChanged.add(function(e,t){t.isVisible||(n.model.dispose(),n.model=void 0,n.setState({changed:n.state.changed+1}))}),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},t.prototype.componentDidMount=function(){t.addModalDescriptor(this.descriptor)},t.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),t.removeModalDescriptor(this.descriptor)},t.modalDescriptors=[],t}(c),Ce=n("./build/survey-core/icons/iconsV1.js"),_e=n("./build/survey-core/icons/iconsV2.js"),xe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)};Object(r.addIconsToThemeSet)("v1",Ce.icons),Object(r.addIconsToThemeSet)("v2",_e.icons),r.SvgRegistry.registerIcons(Ce.icons);var Se=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef=o.createRef(),n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return xe(t,e),Object.defineProperty(t,"cssType",{get:function(){return r.surveyCss.currentType},set:function(e){r.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI(),this.setSurveyEvents()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():"empty"==this.survey.state?this.renderEmptySurvey():this.renderSurvey();var t=this.survey.backgroundImage?o.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?o.createElement(ue,{survey:this.survey}):null,r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var i=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+i:i;return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?o.createElement(ye,null):null,o.createElement(we,null),o.createElement("div",{className:this.survey.wrapperFormCss},t,o.createElement("form",{onSubmit:function(e){e.preventDefault()}},r,o.createElement("div",{className:this.css.container},n,o.createElement(me,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(me,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),o.createElement(fe,{notifier:this.survey.notifier})))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),o.createElement(me,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(me,{survey:this.survey,container:"left"}),o.createElement("div",{className:"sv-components-column sv-components-column--expandable"},o.createElement(me,{survey:this.survey,container:"center"}),o.createElement("div",{id:t,className:n,style:r},o.createElement(me,{survey:this.survey,container:"contentTop"}),e,o.createElement(me,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?o.createElement(pe,null):null)),o.createElement(me,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(ae,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new r.SurveyModel(e.json)):this.survey=new r.SurveyModel,e.css&&(this.survey.css=this.css)},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!r.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add(function(t){e.state&&e.setState(e.state)})},t.prototype.createQuestionElement=function(e){return B.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n,r){return s.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:t,cssClasses:n,element:r})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(c);function Pe(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(n=Ee({},n),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(r.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(r.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(r.doKey2ClickBlur)(e)}}))}s.Instance.registerElement("survey",function(e){return o.createElement(Se,e)});var Oe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return Oe(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component),ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ae=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return ke(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?o.createElement(C,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},n,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(p);s.Instance.registerElement("sv-timerpanel",function(e){return o.createElement(Ae,e)});var Ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return Ie(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=o.createElement(ne,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},i=null;if(this.panel.renderedIsExpanded){var s=this.renderRows(this.panelBase.cssClasses),a=this.panelBase.cssClasses.panel.content;i=this.renderContent(r,s,a)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,i)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(J,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=a.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return o.createElement("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(z,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=c.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(D,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(b);s.Instance.registerElement("panel",function(e){return o.createElement(Re,e)});var Me=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var n=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(n)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},n):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=o.createElement(te,{key:n.name,element:n,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},r)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(Re);s.Instance.registerElement("flowpanel",function(e){return o.createElement(De,e)});var Le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ne=function(e){function t(t){return e.call(this,t)||this}return Le(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map(function(t,n){return e.renderItem(t,!1,e.question.cssClasses)})},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(t,n){return e.renderItem(t,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map(function(n,r){var i=n.map(function(n,o){return t.renderItem(n,0===r&&0===o,e,""+r+o)});return o.createElement("div",{key:"column"+r+t.question.getItemsColumnKey(n),className:t.question.getColumnClass(),role:"presentation"},i)})},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=(o.value,this.renderItem(o,0==r,e,""+r));i&&n.push(i)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(Y,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r){var o=s.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isFirst:t}),i=this.question.survey,l=null;return i&&o&&(l=a.wrapItemValue(i,o,this.question,e)),null!=l?l:o},t}(d),Ve=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n.rootRef=o.createRef(),n}return Le(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.item===this.props.item||this.question.isDesignMode||(this.props.item&&this.props.item.setRootElement(this.rootRef.current),t.item&&t.item.setRootElement(void 0))},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=this.question.getItemClass(this.item),i=this.question.getLabelClass(this.item),s=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:r,role:"presentation",ref:this.rootRef},o.createElement("label",{className:i},o.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s),t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(p);s.Instance.registerElement("survey-checkbox-item",function(e){return o.createElement(Ve,e)}),B.Instance.registerQuestion("checkbox",function(e){return o.createElement(Ne,e)});var je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return je(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return this.question.selectToRankEnabled?o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},o.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),o.createElement("div",{className:this.question.cssClasses.containersDivider}),o.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null)):o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.renderedRankingChoices);for(var r=[],o=function(o){var s=e[o];r.push(i.renderItem(s,o,function(e){n.question.handleKeydown.call(n.question,e,s)},function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,s,e.currentTarget)},function(e){e.persist(),n.question.handlePointerUp.call(n.question,e,s,e.currentTarget)},i.question.cssClasses,i.question.getItemClass(s),i.question,t))},i=this,s=0;s<e.length;s++)o(s);return r},t.prototype.renderItem=function(e,t,n,r,i,s,l,u,c){e.renderedId;var p=this.renderLocString(e.locText),d=t,f=this.question.getNumberByIndex(d),h=this.question.getItemTabIndex(e),m=o.createElement(ze,{key:e.value,text:p,index:d,indexText:f,itemTabIndex:h,handleKeydown:n,handlePointerDown:r,handlePointerUp:i,cssClasses:s,itemClass:l,question:u,unrankedItem:c,item:e}),g=this.question.survey,y=null;return g&&(y=a.wrapItemValue(g,m,this.question,e)),null!=y?y:m},t}(d),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return je(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderEmptyIcon=function(){return o.createElement("svg",null,o.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=s.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return o.createElement("div",{id:this.question.getItemId(this.item),tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{className:this.question.getIconHoverCss()},o.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),o.createElement("svg",{className:this.question.getIconFocusCss()},o.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),o.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(p),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return je(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{className:this.cssClasses.controlLabel},c.renderLocString(this.item.locText))},t}(p);s.Instance.registerElement("sv-ranking-item",function(e){return o.createElement(Be,e)}),B.Instance.registerQuestion("ranking",function(e){return o.createElement(Fe,e)});var He=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ue=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return He(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(c),qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return He(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(Ue);s.Instance.registerElement("sv-rating-item",function(e){return i.a.createElement(qe,e)});var We=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement(C,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(C,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(Ue);s.Instance.registerElement("sv-rating-item-star",function(e){return i.a.createElement($e,e)});var Qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qe(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement(C,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(Ue);s.Instance.registerElement("sv-rating-item-smiley",function(e){return i.a.createElement(Ge,e)});var Ye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ye(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.props.item,t=this.renderDescription(e);return i.a.createElement("div",{className:"sd-rating-dropdown-item"},i.a.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),t)},t.prototype.renderDescription=function(e){return e.description?i.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(c);s.Instance.registerElement("sv-rating-dropdown-item",function(e){return i.a.createElement(Ze,e)});var Ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xe=function(e){function t(t){return e.call(this,t)||this}return Ke(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;r.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t,n=null===(t=e.target.getRootNode())||void 0===t?void 0:t.activeElement;e.target===n&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.question.onBlur(e)},t.prototype.onFocus=function(e){this.question.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!!this.model.filterReadOnly||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(c);B.Instance.registerQuestion("sv-tagbox-filter",function(e){return o.createElement(Xe,e)});var Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return Je(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(p),tt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.chevronPointerDown=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.chevronPointerDown(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){t.updateInputDomElement(),t.question.onBlur(e)},t.focus=function(e){t.question.onFocus(e)},t}return tt(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t.prototype.renderSelect=function(e){var t,n,r,i=this;return r=this.question.isReadOnly?o.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass(),ref:function(e){return i.setControl(e)}},this.renderReadOnlyElement()):o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(T,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel})),o.createElement("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?s.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e);return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(e){return t.setControl(e)}},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,n,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!!e.filterReadOnly||void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(t){!function(t){var n,r=null===(n=t.target.getRootNode())||void 0===n?void 0:n.activeElement;t.target===r&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.showClearButton?"":"none"};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},o.createElement(C,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?o.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},o.createElement(C,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(Y,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;r.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(f),rt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(e){function t(t){return e.call(this,t)||this}return rt(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(nt);B.Instance.registerQuestion("dropdown",function(e){return o.createElement(ot,e)});var it=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(e){function t(t){return e.call(this,t)||this}return it(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(C,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(p),at=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e){function t(t){return e.call(this,t)||this}return at(t,e),t.prototype.renderItem=function(e,t){return o.createElement(st,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map(function(e,n){return t.renderItem("item"+n,e)});return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(e){return t.setControl(e)}},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(Xe,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(nt);B.Instance.registerQuestion("tagbox",function(e){return o.createElement(lt,e)});var ut=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct=function(e){function t(t){return e.call(this,t)||this}return ut(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(e,t){return o.createElement(et,{key:"item"+t,item:e})}));return o.createElement("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(ot);B.Instance.registerQuestion("sv-dropdown-select",function(e){return o.createElement(ct,e)}),r.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var pt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return pt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?o.createElement("td",null):null,r=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var c=[],p=this.question.visibleRows;for(i=0;i<p.length;i++){var d=p[i];a="row-"+d.name+"-"+i,c.push(o.createElement(ft,{key:a,question:this.question,cssClasses:t,row:d,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,n,r)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,c))))},t}(d),ft=function(e){function t(t){return e.call(this,t)||this}return pt(t,e),t.prototype.getStateElement=function(){return this.row?this.row.item:e.prototype.getStateElement.call(this)},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=a.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=o.createElement("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=this.question.cellComponent,i=function(){var i=null,u=a.question.visibleColumns[l],c="value"+l,p=a.question.getItemClass(n,u);if(a.question.hasCellText){var d=function(t){return function(){return e.cellClick(n,t)}};i=o.createElement("td",{key:c,className:p,onClick:d?d(u):function(){}},a.renderLocString(a.question.getCellDisplayLocText(n.name,u)))}else{var f=s.Instance.createElement(r,{question:a.question,row:a.row,column:u,columnIndex:l,cssClasses:a.cssClasses,cellChanged:function(){e.cellClick(e.row,u)}});i=o.createElement("td",{key:c,"data-responsive-title":u.locText.renderedHtml,className:a.question.cssClasses.cell},f)}t.push(i)},a=this,l=0;l<this.question.visibleColumns.length;l++)i();return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(p),ht=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return pt(t,e),t.prototype.handleOnChange=function(e){this.props.cellChanged&&this.props.cellChanged()},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.question&&!!this.row},t.prototype.renderElement=function(){var e=this.row.value==this.column.value,t=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),r=this.question.isMobile?o.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(t,e),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),r)},t.prototype.renderInput=function(e,t){return o.createElement("input",{id:e,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:t,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},t}(p);s.Instance.registerElement("survey-matrix-cell",function(e){return o.createElement(ht,e)}),B.Instance.registerQuestion("matrix",function(e){return o.createElement(dt,e)});var mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(e){function t(t){return e.call(this,t)||this}return mt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(d);B.Instance.registerQuestion("html",function(e){return o.createElement(gt,e)});var yt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yt(t,e),t.prototype.render=function(){return o.createElement("div",{className:"sd-loading-indicator"},o.createElement(C,{iconName:"icon-loading",size:"auto"}))},t}(o.Component),bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(e){function t(t){return e.call(this,t)||this}return bt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return Pe(i.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(t){return e.question.chooseFile(t.nativeEvent)}},this.question.cssClasses.chooseFileIconId?i.a.createElement(C,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,i.a.createElement("span",null,this.question.chooseButtonText)))},t}(p);s.Instance.registerElement("sv-file-choose-btn",function(e){return i.a.createElement(wt,e)});var Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(e){function t(t){return e.call(this,t)||this}return Ct(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.question.allowShowPreview?this.renderPreview():null,r=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.question.isPlayingVideo?this.renderVideo():null,s=this.question.showFileDecorator?this.renderFileDecorator():null,a=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,l=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,u=this.question.fileNavigatorVisible?o.createElement(D,{model:this.question.fileNavigator}):null;return e=this.question.isReadOnlyAttr?o.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?o.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):null,o.createElement("div",{className:this.question.fileRootCss,ref:function(e){return t.setContent(e)}},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},s,r,i,a,n,l,u))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,t=this.question.actionsContainerVisible?o.createElement(D,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return o.createElement("div",{className:this.question.getFileDecoratorCss()},!!this.question.showDragAreaPlaceholder&&o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t,n))},t.prototype.renderChooseButton=function(){return o.createElement(wt,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(C,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return s.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return o.createElement("div",{className:this.question.cssClasses.loadingIndicator},o.createElement(vt,null))},t.prototype.renderVideo=function(){return o.createElement("div",{className:this.question.cssClasses.videoContainer},o.createElement(S,{item:this.question.changeCameraAction}),o.createElement(S,{item:this.question.closeCameraAction}),o.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),o.createElement(S,{item:this.question.takePictureAction}))},t}(d);B.Instance.registerQuestion("file",function(e){return o.createElement(_t,e)});var xt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?i.a.createElement("div",{className:e},i.a.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.item;return i.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(t){return e.question.doDownloadFileFromContainer(t)}},this.renderFileSign(this.question.cssClasses.fileSign,t),i.a.createElement("div",{className:this.question.getImageWrapperCss(t)},this.question.canPreviewImage(t)?i.a.createElement("img",{src:t.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?i.a.createElement(C,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,t.name&&!this.question.isReadOnly?i.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(n){return e.question.doRemoveFile(t,n)}},i.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?i.a.createElement(C,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,t))},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(c),St=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return St(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.page.items.map(function(t,n){return i.a.createElement(Et,{item:t,question:e.question,key:n})});return i.a.createElement("div",{className:this.page.css,id:this.page.id},t)},t}(c),Ot=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ot(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?i.a.createElement("div",{className:e},i.a.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.question.supportFileNavigator?this.question.renderedPages.map(function(t,n){return i.a.createElement(Pt,{page:t,question:e.question,key:t.id})}):this.question.previewValue.map(function(t,n){return i.a.createElement(Et,{item:t,question:e.question,key:n})});return i.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(c);s.Instance.registerElement("sv-file-preview",function(e){return i.a.createElement(Tt,e)});var kt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(e){function t(t){return e.call(this,t)||this}return kt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)t[r].isVisible&&n.push(this.renderRow(r,t[r].cells,e));return o.createElement("table",{className:this.question.getQuestionRootCss()},o.createElement("tbody",null,n))},t.prototype.renderCell=function(e,t,n){var r;return r=e.isErrorsCell?o.createElement(ie,{question:e.item.editor,creator:this.creator}):o.createElement(It,{question:this.question,item:e.item,creator:this.creator,cssClasses:t}),o.createElement("td",{key:"item"+n,className:e.className,onFocus:function(){e.item.focusIn()}},r)},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(this.renderCell(a,n,s))}return o.createElement("tr",{key:r,className:n.row},i)},t}(d),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle,style:n},o.createElement(N,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(Rt,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(p),Rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kt(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(re);B.Instance.registerQuestion("multipletext",function(e){return o.createElement(At,e)});var Mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dt=function(e){function t(t){return e.call(this,t)||this}return Mt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(t,n){return e.renderItem(t,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map(function(r,i){var s=r.map(function(r,o){return t.renderItem(r,n,e,""+i+o)});return o.createElement("div",{key:"column"+i+t.question.getItemsColumnKey(r),className:t.question.getColumnClass(),role:"presentation"},s)})},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem(i,r,e,""+o);n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(Y,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r){var o=s.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isChecked:t===e.value}),i=this.question.survey,l=null;return i&&(l=a.wrapItemValue(i,o,this.question,e)),null!=l?l:o},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(d),Lt=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return Mt(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.item===this.props.item||this.question.isDesignMode||(this.props.item&&this.props.item.setRootElement(this.rootRef.current),t.item&&t.item.setRootElement(void 0))},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:o.createElement("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation",ref:this.rootRef},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:t},o.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(p);s.Instance.registerElement("survey-radiogroup-item",function(e){return o.createElement(Lt,e)}),B.Instance.registerQuestion("radiogroup",function(e){return o.createElement(Dt,e)});var Nt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(e){function t(t){return e.call(this,t)||this}return Nt(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.inputValue);var r=this.question.getMaxLength()?o.createElement(U,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(t){e.question.onBlur(t)},onFocus:function(t){e.question.onFocus(t)},onChange:this.question.onChange,onClick:this.question.readOnlyBlocker,onPointerDown:this.question.readOnlyBlocker,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),r)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.setValueCore=function(e){this.question.inputValue=e},t.prototype.getValueCore=function(){return this.question.inputValue},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(o.createElement("option",{key:"item"+n,value:e[n]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(f);B.Instance.registerQuestion("text",function(e){return o.createElement(Vt,e)});var jt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=o.createRef(),n}return jt(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:n,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,e.question.swapOrder)}},o.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!e.question.swapOrder)}},o.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(d);B.Instance.registerQuestion("boolean",function(e){return o.createElement(Ft,e)});var zt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bt=function(e){function t(t){return e.call(this,t)||this}return zt(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?c.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(j,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(Ft);B.Instance.registerQuestion("sv-boolean-checkbox",function(e){return o.createElement(Bt,e)}),r.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var Ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return Ht(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},o.createElement("label",{className:n.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:n.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?o.createElement(o.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):o.createElement(o.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(Ft);B.Instance.registerQuestion("sv-boolean-radio",function(e){return o.createElement(Ut,e)}),r.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var qt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return qt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(d);B.Instance.registerQuestion("empty",function(e){return o.createElement(Wt,e)});var $t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(e){function t(t){var n=e.call(this,t)||this;return n.root=i.a.createRef(),n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return $t(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.model!==this.model&&(t.element&&t.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},t.prototype.render=function(){var e=this,t=this.model;return t.visible?i.a.createElement("tr",{ref:this.root,className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(c);s.Instance.registerElement("sv-matrix-row",function(e){return i.a.createElement(Qt,e)});var Gt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return i.a.createElement("div",null,this.renderIcon())},t.prototype.renderIcon=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(p);s.Instance.registerElement("sv-matrix-drag-drop-icon",function(e){return i.a.createElement(Yt,e)});var Zt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.table},t.prototype.wrapCell=function(e,t,n){return this.props.wrapCell(e,t,n)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var i=n[r],s="column"+r,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.renderedRows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],n,r));var l="row"+e;return o.createElement(o.Fragment,{key:l},"row-footer"==r?o.createElement("tr",null,i):o.createElement(Qt,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,n){var r="cell"+e.id;if(e.hasQuestion)return o.createElement(nn,{key:r,cssClasses:t,cell:e,creator:this.creator,reason:n});if(e.isErrorsCell&&e.isErrorsCell)return o.createElement(en,{cell:e,key:r,keyValue:r,question:e.question,creator:this.creator});var i=n;i||(i=e.hasTitle?"row-header":"");var s=this.renderCellContent(e,i,t),a=null;return(e.width||e.minWidth)&&(a={},e.width&&(a.width=e.width),e.minWidth&&(a.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:r,style:a,colSpan:e.colSpans,title:e.getTitle()},s)},t.prototype.renderCellContent=function(e,t,n){var r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var a=this.renderLocString(e.locTitle),l=e.column?o.createElement(tn,{column:e.column,question:this.question}):null;r=o.createElement(o.Fragment,null,a,l)}if(e.isDragHandlerCell&&(r=o.createElement(o.Fragment,null,o.createElement(Yt,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=s.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=o.createElement(Re,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),!r)return null;var u=o.createElement(o.Fragment,null,r);return this.wrapCell(e,u,t)},t.prototype.renderElement=function(){var e=this.renderHeader(),t=this.renderFooter(),n=this.renderRows();return o.createElement("table",{className:this.question.getTableCss()},e,n,t)},t}(c),Xt=function(e){function t(t){var n=e.call(this,t)||this;return n.question.renderedTable,n.state=n.getState(),n}return Zt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:t,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement(Kt,{question:this.question,creator:this.creator,wrapCell:function(t,n,r){return e.wrapCell(t,n,r)}}))},t}(d),Jt=function(e){function t(t){return e.call(this,t)||this}return Zt(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(D,{model:this.model,handleClick:!1})},t}(p),en=function(e){function t(t){return e.call(this,t)||this}return Zt(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.cell.isVisible?o.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},e.prototype.render.call(this)):null},t.prototype.getQuestionPropertiesToTrack=function(){return e.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},t}(ie);s.Instance.registerElement("sv-matrixdynamic-actions-cell",function(e){return o.createElement(Jt,e)});var tn=function(e){function t(t){return e.call(this,t)||this}return Zt(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",null," "),o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(p),nn=function(e){function t(t){return e.call(this,t)||this}return Zt(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderElement=function(){return this.cell.isVisible?e.prototype.renderElement.call(this):null},t.prototype.renderCellContent=function(){var t=e.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?o.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),o.createElement(tn,{column:this.cell.column,question:this.cell.matrix})):null;return o.createElement(o.Fragment,null,n,t)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():te.renderQuestionBody(this.creator,this.question):o.createElement(o.Fragment,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(Y,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(Ve,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(Lt,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(oe),rn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),on=function(e){function t(t){return e.call(this,t)||this}return rn(t,e),t}(Xt);B.Instance.registerQuestion("matrixdropdown",function(e){return o.createElement(on,e)});var sn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),an=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return sn(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=o.createElement("div",{className:e.emptyRowsText},t),r=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return o.createElement("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),s.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(Xt);B.Instance.registerQuestion("matrixdynamic",function(e){return o.createElement(an,e)});var ln=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return sn(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(p);s.Instance.registerElement("sv-matrixdynamic-add-btn",function(e){return o.createElement(ln,e)});var un=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cn=function(e){function t(t){return e.call(this,t)||this}return un(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(p),pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return un(t,e),t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return i.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(cn);s.Instance.registerElement("sv-paneldynamic-add-btn",function(e){return i.a.createElement(pn,e)});var dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return dn(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(C,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(cn);s.Instance.registerElement("sv-paneldynamic-next-btn",function(e){return i.a.createElement(fn,e)});var hn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return hn(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(C,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(cn);s.Instance.registerElement("sv-paneldynamic-prev-btn",function(e){return i.a.createElement(mn,e)});var gn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gn(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(cn);s.Instance.registerElement("sv-paneldynamic-progress-text",function(e){return i.a.createElement(yn,e)});var vn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bn=function(e){function t(t){return e.call(this,t)||this}return vn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=this,t=[];this.question.renderedPanels.forEach(function(n,r){t.push(o.createElement(wn,{key:n.id,element:n,question:e.question,index:r,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))});var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,r=this.question.isProgressTopShowing?this.renderNavigator():null,i=this.question.isProgressBottomShowing?this.renderNavigator():null,s=this.renderNavigatorV2(),a=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},this.question.hasTabbedMenu?o.createElement("div",{className:this.question.getTabsContainerCss()},o.createElement(D,{model:this.question.tabbedMenu})):null,a,r,o.createElement("div",{className:this.question.cssClasses.panelsContainer},t),i,n,s)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(yn,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(mn,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(fn,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return s.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(D,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(d),wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:s.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(Re);B.Instance.registerQuestion("paneldynamic",function(e){return o.createElement(bn,e)});var Cn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_n=function(e){function t(t){return e.call(this,t)||this}return Cn(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},o.createElement("span",{className:r.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:r.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(Te);s.Instance.registerElement("sv-progress-pages",function(e){return o.createElement(_n,e)}),s.Instance.registerElement("sv-progress-questions",function(e){return o.createElement(_n,e)}),s.Instance.registerElement("sv-progress-correctquestions",function(e){return o.createElement(_n,e)}),s.Instance.registerElement("sv-progress-requiredquestions",function(e){return o.createElement(_n,e)});var xn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),En=function(e){function t(t){var n=e.call(this,t)||this;return n.listContainerRef=o.createRef(),n}return xn(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),t.prototype.onResize=function(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})},t.prototype.onUpdateScroller=function(e){this.setState({hasScroller:e})},t.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?o.createElement("div",{className:this.css.progressButtonsHeader},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?o.createElement("div",{className:this.css.progressButtonsFooter},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach(function(n,r){t.push(e.renderListElement(n,r))}),t},t.prototype.renderListElement=function(e,t){var n=this,r=c.renderLocString(e.locNavigationTitle);return o.createElement("li",{key:"listelement"+t,className:this.model.getListElementCss(t),onClick:this.model.isListElementClickable(t)?function(){return n.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},o.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?o.createElement(o.Fragment,null,o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},r),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,o.createElement("div",{className:this.css.progressButtonsButton},o.createElement("div",{className:this.css.progressButtonsButtonBackground}),o.createElement("div",{className:this.css.progressButtonsButtonContent}),o.createElement("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),setTimeout(function(){t.respManager=new r.ProgressButtonsResponsivityManager(t.model,t.listContainerRef.current,t)},10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(Te);s.Instance.registerElement("sv-progress-buttons",function(e){return o.createElement(En,e)});var Sn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return Sn(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t=this.model.getItemClass(this.item),n=this.item.component||this.model.itemComponent,r=s.Instance.createElement(n,{item:this.item,key:this.item.id,model:this.model}),o=i.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(t){e.model.onItemHover(e.item)},onMouseLeave:function(t){e.model.onItemLeave(e.item)}},r),a=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,l={display:this.model.isItemVisible(this.item)?null:"none"};return Pe(i.a.createElement("li",{className:t,role:"option",style:l,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},a,o),this.item)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(c);s.Instance.registerElement("sv-list-item",function(e){return i.a.createElement(Pn,e)});var On=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tn=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=i.a.createRef(),n}return On(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentDidUpdate=function(t,n){var r;e.prototype.componentDidUpdate.call(this,t,n),this.model!==t.model&&(this.model&&(null===(r=this.listContainerRef)||void 0===r?void 0:r.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),t.model&&t.model.initListContainerHtmlElement(void 0))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map(function(t,n){return i.a.createElement(Pn,{model:e.model,item:t,key:"item"+n})}):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(C,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(C,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n,r=null===(n=t.target.getRootNode())||void 0===n?void 0:n.activeElement;t.target===r&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(c);s.Instance.registerElement("sv-list",function(e){return i.a.createElement(Tn,e)});var kn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),An=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,t=this.props.model;return e=t.isMobile?o.createElement("div",{onClick:t.togglePopup},o.createElement(C,{iconName:t.icon,size:24}),o.createElement(T,{model:t.popupModel})):o.createElement(Tn,{model:t.listModel}),o.createElement("div",{className:t.containerCss},e)},t}(Te);s.Instance.registerElement("sv-navigation-toc",function(e){return o.createElement(An,e)});var In=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rn=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return In(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return s.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},n):null,this.question.renderedRateItems.map(function(t,n){return e.renderItem(t,n)}),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},r):null))},t}(d);B.Instance.registerQuestion("rating",function(e){return o.createElement(Rn,e)});var Mn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dn=function(e){function t(t){return e.call(this,t)||this}return Mn(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(nt);B.Instance.registerQuestion("sv-rating-dropdown",function(e){return o.createElement(Dn,e)}),r.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Ln=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nn=function(e){function t(t){return e.call(this,t)||this}return Ln(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(d);B.Instance.registerQuestion("expression",function(e){return o.createElement(Nn,e)});var Vn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return Vn(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,t=this.renderWindowHeader(),n=this.renderBody(),r={};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:r,onScroll:function(){return e.popup.onScroll()}},o.createElement("div",{className:this.popup.cssRootContent},t,n))},t.prototype.renderWindowHeader=function(){var e,t=this.popup,n=(t.cssHeaderRoot,null),r=null,i=null;return t.isCollapsed?(t.cssRootCollapsedMod,n=this.renderTitleCollapsed(t),e=this.renderExpandIcon()):e=this.renderCollapseIcon(),t.allowClose&&(r=this.renderCloseButton(this.popup)),t.allowFullScreen&&(i=this.renderAllowFullScreenButon(this.popup)),o.createElement("div",{className:t.cssHeaderRoot},n,o.createElement("div",{className:t.cssHeaderButtonsContainer},i,o.createElement("div",{className:t.cssHeaderCollapseButton,onClick:this.handleOnExpanded},e),r))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?o.createElement("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return o.createElement(C,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return o.createElement(C,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){var t=this;return o.createElement("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide(),"function"==typeof t.props.onClose&&t.props.onClose()}},o.createElement(C,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var t;return t=e.isFullScreen?o.createElement(C,{iconName:"icon-back-to-panel_16x16",size:16}):o.createElement(C,{iconName:"icon-full-screen_16x16",size:16}),o.createElement("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},t)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new r.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.allowFullScreen=t.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(Se),Fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vn(t,e),t}(jn),zn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bn=function(e){function t(t){return e.call(this,t)||this}return zn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),style:this.question.getContainerStyle()},o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map(function(n,r){var i=n.map(function(n,r){return t.renderItem("item"+r,n,e)});return o.createElement("div",{key:"column"+r+t.question.getItemsColumnKey(n),className:t.question.getColumnClass(),role:"presentation"},i)})},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=o.createElement(Hn,{key:e,question:this.question,item:t,cssClasses:n}),i=this.question.survey,s=null;return i&&(s=a.wrapItemValue(i,r,this.question,t)),null!=s?s:r},t}(d),Hn=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return zn(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,i=n.isItemSelected(t),s=n.getItemClass(t),a=null;n.showLabel&&(a=o.createElement("span",{className:n.cssClasses.itemText},t.text?c.renderLocString(t.locText):t.value));var l={objectFit:this.question.imageFit},u=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(u=o.createElement("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:l,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(u=o.createElement("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:l,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var p={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};u=o.createElement("div",{className:r.itemNoImage,style:p},r.itemNoImageSvgIcon?o.createElement(C,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:s},o.createElement("label",{className:r.label},o.createElement("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:i,value:t.value,disabled:!this.question.getItemEnabled(t),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":t.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?o.createElement(C,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,u),a)))},t}(p);B.Instance.registerQuestion("imagepicker",function(e){return o.createElement(Bn,e)});var Un=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qn=function(e){function t(t){return e.call(this,t)||this}return Un(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var r=null;"image"===this.question.renderedMode&&(r=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(C,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},r,i)},t}(d);B.Instance.registerQuestion("image",function(e){return o.createElement(qn,e)});var Wn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return Wn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{width:this.question.renderedCanvasWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),o.createElement("div",null,this.renderBackgroundImage(),o.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(t){e.question.onBlur(t)}})),r,n)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?o.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return o.createElement("div",{className:this.question.cssClasses.loadingIndicator},o.createElement(vt,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?o.createElement(C,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(d);B.Instance.registerQuestion("signaturepad",function(e){return o.createElement($n,e)});var Qn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gn=function(e){function t(t){return e.call(this,t)||this}return Qn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return i.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map(function(t,n){return i.a.createElement(Yn,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})})},t}(d),Yn=function(e){function t(t){return e.call(this,t)||this}return Qn(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new r.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return i.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,i.a.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?i.a.createElement(C,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return i.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return i.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(c),Zn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kn=function(e){function t(t){return e.call(this,t)||this}return Zn(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return te.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(f),Xn=function(e){function t(t){return e.call(this,t)||this}return Zn(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(Re,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(f);B.Instance.registerQuestion("custom",function(e){return o.createElement(Kn,e)}),B.Instance.registerQuestion("composite",function(e){return o.createElement(Xn,e)});var Jn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jn(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.renderLocString(this.item.locTitle,void 0,"locString"),t=this.item.iconName?i.a.createElement(C,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,n=this.item.markerIconName?i.a.createElement(C,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return i.a.createElement(i.a.Fragment,null,t,e,n)},t}(c);s.Instance.registerElement("sv-list-item-content",function(e){return i.a.createElement(er,e)});var tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tr(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e;if(!this.item)return null;var t=s.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(T,{model:null===(e=this.item)||void 0===e?void 0:e.popupModel}))},t}(c);s.Instance.registerElement("sv-list-item-group",function(e){return i.a.createElement(nr,e)});var rr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(e){function t(t){return e.call(this,t)||this}return rr(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.Instance.registerElement("sv-logo-image",function(e){return i.a.createElement(or,e)});var ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return ir(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(p);s.Instance.registerElement("sv-matrix-remove-button",function(e){return i.a.createElement(sr,e)});var ar=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return ar(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},i.a.createElement(C,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(p);s.Instance.registerElement("sv-matrix-detail-button",function(e){return i.a.createElement(lr,e)});var ur=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return ur(t,e),t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText),t=this.question.getPanelRemoveButtonId(this.data.panel);return i.a.createElement("button",{id:t,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(cn);s.Instance.registerElement("sv-paneldynamic-remove-btn",function(e){return i.a.createElement(cr,e)});var pr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pr(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(p);s.Instance.registerElement("sv-nav-btn",function(e){return i.a.createElement(dr,e)});var fr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hr=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=i.a.createRef(),n}return fr(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){var e=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:t})}return i.a.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);s.Instance.registerElement(r.LocalizableString.defaultRenderer,function(e){return i.a.createElement(hr,e)});var mr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mr(t,e),t.prototype.render=function(){return i.a.createElement("div",null,i.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),i.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},i.a.createElement(hr,{locStr:this.props.error.locText})))},t}(i.a.Component);s.Instance.registerElement("sv-question-error",function(e){return i.a.createElement(gr,e)});var yr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yr(t,e),t.prototype.render=function(){var e,t;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id,style:{height:null===(t=this.props.element)||void 0===t?void 0:t.skeletonHeight}})},t}(i.a.Component);s.Instance.registerElement("sv-skeleton",function(e){return i.a.createElement(vr,e)});var br=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return br(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return s.Instance.createElement(e,{data:t})},t.prototype.render=function(){return i.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?i.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?i.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement(z,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?i.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement("div",{className:this.model.survey.css.description},c.renderLocString(this.model.survey.locDescription))):null)},t}(i.a.Component),Cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return br(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return s.Instance.createElement(e,{data:t})},t.prototype.render=function(){return i.a.createElement("div",{className:this.model.css,style:this.model.style},i.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?i.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?i.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement(z,{element:this.model.survey})):null,this.model.showDescription?i.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement("div",{className:this.model.survey.css.description},c.renderLocString(this.model.survey.locDescription))):null))},t}(i.a.Component),_r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return br(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var e;return e=this.props.survey.isMobile?i.a.createElement(wr,{model:this.model}):i.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(e,t){return i.a.createElement(Cr,{key:t,model:e})})),i.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?i.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(c);s.Instance.registerElement("sv-header",function(e){return i.a.createElement(_r,e)});var xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Er=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return xr(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);s.Instance.registerElement(r.LocalizableString.editableRenderer,function(e){return i.a.createElement(Er,e)}),Object(r.checkLibraryVersion)("1.12.59","survey-react-ui")},react:function(t,n){t.exports=e},"react-dom":function(e,n){e.exports=t},"survey-core":function(e,t){e.exports=n}})},e.exports=r(n(22155),n(70316),n(92301))},86668(e,t,n){"use strict";n.d(t,{AO:()=>C,Kr:()=>b,nq:()=>w});var r=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},a=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):a(e.parentNode))},l=function(e,t,n){if(a(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o.filter(n)},u=function(e,t,n){for(var o=[],s=Array.from(e);s.length;){var l=s.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),p=c.length?c:l.children,d=u(p,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else{i.call(l,r)&&n.filter(l)&&(t||!e.includes(l))&&o.push(l);var f=l.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(l),h=!a(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(l));if(f&&h){var m=u(!0===f?l.children:f.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:l,candidates:m})}else s.unshift.apply(s,l.children)}}return o},c=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!c(e)?0:e.tabIndex},d=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},f=function(e){return"INPUT"===e.tagName},h=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},m=function(e,t){return!(t.disabled||function(e){return f(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,u=s(e);if(l&&!l.shadowRoot&&!0===r(l))return h(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=a}if(function(e){var t,n,r,o,i=e&&s(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var u,c,p;l=!(null===(c=a=null===(u=i=s(a))||void 0===u?void 0:u.host)||void 0===c||null===(p=c.ownerDocument)||void 0===p||!p.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},g=function(e,t){return!(function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||p(t)<0||!m(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},v=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,s=function(e,t){var n=p(e);return n<0&&t&&!c(e)?0:n}(i,o),a=o?v(e.candidates):i;0===s?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:s,item:e,isScope:o,content:a})}),n.sort(d).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},b=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:g.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):l(e,t.includeContainer,g.bind(null,t)),v(n)},w=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,m.bind(null,t))},C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,r)&&g(t,e)}},22561(e,t){var n,r;n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var s=o(i);n.top+=s.top,n.bottom+=s.top,n.left+=s.left,n.right+=s.left}}}catch(e){}return n}function i(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var i=o,s=i.overflow,a=i.overflowX,l=i.overflowY;/(auto|scroll|overlay)/.test(s+l+a)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var s,a=(s=0,function(){return++s}),l={};function u(){r&&document.body.removeChild(r),r=null}function c(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,i=o(e),s=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",a()),h(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===l[t]&&(l[t]=o(e),_(function(){delete l[t]})),l[t]}();return i.top-=s.top,i.left-=s.left,void 0===i.width&&(i.width=document.body.scrollWidth-i.left-i.right),void 0===i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-n.clientTop,i.left=i.left-n.clientLeft,i.right=t.body.clientWidth-i.width-i.left,i.bottom=t.body.clientHeight-i.height-i.top,i}function p(e){return e.offsetParent||document.documentElement}var d=null;function f(){if(d)return d;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");h(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return d={width:o,height:o}}function h(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function m(e,t){if(void 0!==e.classList)t.split(" ").forEach(function(t){t.trim()&&e.classList.remove(t)});else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=v(e).replace(n," ");b(e,r)}}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach(function(t){t.trim()&&e.classList.add(t)});else{m(e,t);var n=v(e)+" "+t;b(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=v(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function v(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function b(e,t){e.setAttribute("class",t)}function w(e,t,n){n.forEach(function(n){-1===t.indexOf(n)&&y(e,n)&&m(e,n)}),t.forEach(function(t){y(e,t)||g(e,t)})}var C=[],_=function(e){C.push(e)},x=function(){for(var e=void 0;e=C.pop();)e()},E=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],s=i.handler,a=i.ctx,l=i.once,u=a;void 0===u&&(u=this),s.apply(u,r),l?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:c,getOffsetParent:p,extend:h,addClass:g,removeClass:m,hasClass:y,updateClasses:w,defer:_,flush:x,uniqueId:a,Evented:E,getScrollBarSize:f,removeUtilElements:u};var S=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},P=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,i=t,s=n;r=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,i);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,n=s,r=!0,a=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var i=(Q=n.Utils).getScrollParents,p=(c=Q.getBounds,Q.getOffsetParent),g=(h=Q.extend,Q.addClass),m=Q.removeClass,f=(w=Q.updateClasses,_=Q.defer,x=Q.flush,Q.getScrollBarSize),u=Q.removeUtilElements;function O(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var T,k,A,I,R=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),M=[],D=function(){M.forEach(function(e){e.position(!1)}),x()};function L(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}T=null,k=null,A=null,I=function e(){if(void 0!==k&&k>16)return k=Math.min(k-16,250),void(A=setTimeout(e,250));void 0!==T&&L()-T<10||(null!=A&&(clearTimeout(A),A=null),T=L(),D(),k=L()-T)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(e){window.addEventListener(e,I)});var N={center:"center",left:"right",right:"left"},V={middle:"middle",top:"bottom",bottom:"top"},j={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},F=function(e){var t=e.left,n=e.top;return void 0!==j[e.left]&&(t=j[e.left]),void 0!==j[e.top]&&(n=j[e.top]),{left:t,top:n}};function z(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r}),e}function B(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var H=function(e){var t=e.split(" "),n=S(t,2);return{top:n[0],left:n[1]}},U=H,q=function(r){function o(e){var r=this;t(this,o),P(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),M.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach(function(e){void 0!==e.initialize&&e.initialize.call(r)}),this.position()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1];this.options=h({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},e);var r=this.options,o=r.element,s=r.target,a=r.targetModifier;if(this.element=o,this.target=s,this.targetModifier=a,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),g(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&g(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=U(this.options.targetAttachment),this.attachment=U(this.options.attachment),this.offset=H(this.options.offset),this.targetOffset=H(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return c(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=c(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=c(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},s=0;o<408&&this.target===document.body&&(s=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var a=this.target.scrollTop/(t.scrollHeight-o);return i.top=a*(o-i.height-s)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)}),t&&this.position()}},{key:"disable",value:function(){var e=this;m(this.target,this.getClass("enabled")),m(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.position)})}},{key:"destroy",value:function(){var e=this;this.disable(),M.forEach(function(t,n){t===e&&M.splice(n,1)}),0===M.length&&u()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;e.top&&r.push(this.getClass("element-attached")+"-"+e.top),e.left&&r.push(this.getClass("element-attached")+"-"+e.left),t.top&&r.push(this.getClass("target-attached")+"-"+t.top),t.left&&r.push(this.getClass("target-attached")+"-"+t.left);var o=[];["left","top","bottom","right","middle","center"].forEach(function(e){o.push(n.getClass("element-attached")+"-"+e),o.push(n.getClass("target-attached")+"-"+e)}),_(function(){void 0!==n._addAttachClasses&&(w(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&w(n.target,n._addAttachClasses,o),delete n._addAttachClasses)})}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=N[t.left]),"auto"===r&&(r=V[t.top]),{left:n,top:r}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",function(){return c(e.element)}),i=o.width,s=o.height;if(0===i&&0===s&&void 0!==this.lastSize){var a=this.lastSize;i=a.width,s=a.height}else this.lastSize={width:i,height:s};var l=this.cache("target-bounds",function(){return e.getTargetBounds()}),u=l,d=B(F(this.attachment),{width:i,height:s}),h=B(F(r),u),m=B(this.offset,{width:i,height:s}),g=B(this.targetOffset,u);d=z(d,m),h=z(h,g);for(var y=l.left+h.left-d.left,v=l.top+h.top-d.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:y,top:v,targetAttachment:r,targetPos:l,elementPos:o,offset:d,targetOffset:h,manualOffset:m,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(v=w.top,y=w.left)}var C={page:{top:v,left:y},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-s+innerHeight,left:y-pageXOffset,right:pageXOffset-y-i+innerWidth}},_=this.target.ownerDocument,E=_.defaultView,S=void 0;return E.innerHeight>_.documentElement.clientHeight&&(S=this.cache("scrollbar-size",f),C.viewport.bottom-=S.height),E.innerWidth>_.documentElement.clientWidth&&(S=this.cache("scrollbar-size",f),C.viewport.right-=S.width),-1!==["","static"].indexOf(_.body.style.position)&&-1!==["","static"].indexOf(_.body.parentElement.style.position)||(C.page.bottom=_.body.scrollHeight-v-s,C.page.right=_.body.scrollWidth-y-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",function(){return p(e.target)}),n=e.cache("target-offsetparent-bounds",function(){return c(t)}),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach(function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])}),n.right=_.body.scrollWidth-n.left-o.width+i.right,n.bottom=_.body.scrollHeight-n.top-o.height+i.bottom,C.page.top>=n.top+i.top&&C.page.bottom>=n.bottom&&C.page.left>=n.left+i.left&&C.page.right>=n.right){var s=t.scrollTop,a=t.scrollLeft;C.offset={top:C.page.top-n.top+s-i.top,left:C.page.left-n.left+a-i.left}}}(),this.move(C),this.history.unshift(C),this.history.length>3&&this.history.pop(),t&&x(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,s=0;s<this.history.length;++s){var a=this.history[s];if(void 0!==a[r]&&!O(a[r][o],e[r][o])){i=!0;break}}i||(n[r][o]=!0)}var l={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(l.top=0,r=n.top):(l.bottom=0,r=-n.bottom),e.left?(l.left=0,o=n.left):(l.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),l[R]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==R&&(l[R]+=" translateZ(0)")}else e.top?l.top=n.top+"px":l.bottom=n.bottom+"px",e.left?l.left=n.left+"px":l.right=n.right+"px"},c=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(l.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(l.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){l.position="absolute";var r=t.cache("target-offsetparent",function(){return p(t.target)});p(t.element)!==r&&_(function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)}),u(n.offset,e.offset),c=!0}():(l.position="absolute",u({top:!0,left:!0},e.page)),!c)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var d=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},f=!0,m=this.element.parentNode;m&&1===m.nodeType&&"BODY"!==m.tagName&&!d(m);){if("static"!==getComputedStyle(m).position){f=!1;break}m=m.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},y=!1;for(var o in l){var v=l[o];this.element.style[o]!==v&&(y=!0,g[o]=v)}y&&_(function(){h(t.element.style,g),t.trigger("repositioned")})}}}]),o}(E);q.modules=[],n.position=D;var W=h(q,n);S=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=(Q=n.Utils).getBounds;var h=Q.extend,$=(w=Q.updateClasses,_=Q.defer,["left","top","right","bottom"]);n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",function(){return c(t.element)}),s=i.height,a=i.width;if(0===a&&0===s&&void 0!==this.lastSize){var l=this.lastSize;a=l.width,s=l.height}var u=this.cache("target-bounds",function(){return t.getTargetBounds()}),p=u.height,d=u.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&f.push(t),n&&f.push(n)}),f.forEach(function(e){["left","top","right","bottom"].forEach(function(t){f.push(e+"-"+t)})});var m=[],g=h({},o),y=h({},this.attachment);return this.options.constraints.forEach(function(e){var i=e.to,l=e.attachment,u=e.pin;void 0===l&&(l="");var f=void 0,h=void 0;if(l.indexOf(" ")>=0){var v=l.split(" "),b=S(v,2);h=b[0],f=b[1]}else f=h=l;var w=function(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=c(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}$.forEach(function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])})}(),t}(t,i);"target"!==h&&"both"!==h||(n<w[1]&&"top"===g.top&&(n+=p,g.top="bottom"),n+s>w[3]&&"bottom"===g.top&&(n-=p,g.top="top")),"together"===h&&("top"===g.top&&("bottom"===y.top&&n<w[1]?(n+=p,g.top="bottom",n+=s,y.top="top"):"top"===y.top&&n+s>w[3]&&n-(s-p)>=w[1]&&(n-=s-p,g.top="bottom",y.top="bottom")),"bottom"===g.top&&("top"===y.top&&n+s>w[3]?(n-=p,g.top="top",n-=s,y.top="bottom"):"bottom"===y.top&&n<w[1]&&n+(2*s-p)<=w[3]&&(n+=s-p,g.top="top",y.top="top")),"middle"===g.top&&(n+s>w[3]&&"top"===y.top?(n-=s,y.top="bottom"):n<w[1]&&"bottom"===y.top&&(n+=s,y.top="top"))),"target"!==f&&"both"!==f||(r<w[0]&&"left"===g.left&&(r+=d,g.left="right"),r+a>w[2]&&"right"===g.left&&(r-=d,g.left="left")),"together"===f&&(r<w[0]&&"left"===g.left?"right"===y.left?(r+=d,g.left="right",r+=a,y.left="left"):"left"===y.left&&(r+=d,g.left="right",r-=a,y.left="right"):r+a>w[2]&&"right"===g.left?"left"===y.left?(r-=d,g.left="left",r-=a,y.left="right"):"right"===y.left&&(r-=d,g.left="left",r+=a,y.left="left"):"center"===g.left&&(r+a>w[2]&&"left"===y.left?(r-=a,y.left="right"):r<w[0]&&"right"===y.left&&(r+=a,y.left="left"))),"element"!==h&&"both"!==h||(n<w[1]&&"bottom"===y.top&&(n+=s,y.top="top"),n+s>w[3]&&"top"===y.top&&(n-=s,y.top="bottom")),"element"!==f&&"both"!==f||(r<w[0]&&("right"===y.left?(r+=a,y.left="left"):"center"===y.left&&(r+=a/2,y.left="left")),r+a>w[2]&&("left"===y.left?(r-=a,y.left="right"):"center"===y.left&&(r-=a/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(e){return e.trim()}):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var C,_,x=[],E=[];n<w[1]&&(u.indexOf("top")>=0?(n=w[1],x.push("top")):E.push("top")),n+s>w[3]&&(u.indexOf("bottom")>=0?(n=w[3]-s,x.push("bottom")):E.push("bottom")),r<w[0]&&(u.indexOf("left")>=0?(r=w[0],x.push("left")):E.push("left")),r+a>w[2]&&(u.indexOf("right")>=0?(r=w[2]-a,x.push("right")):E.push("right")),x.length&&(void 0,C=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),m.push(C),x.forEach(function(e){m.push(C+"-"+e)})),E.length&&(void 0,_=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),m.push(_),E.forEach(function(e){m.push(_+"-"+e)})),(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(y.left=g.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(y.top=g.top=!1),g.top===o.top&&g.left===o.left&&y.top===t.attachment.top&&y.left===t.attachment.left||(t.updateAttachClasses(y,g),t.trigger("update",{attachment:y,targetAttachment:g}))}),_(function(){!1!==t.options.addTargetClasses&&w(t.target,m,f),w(t.element,m,f)}),{top:n,left:r}}});var Q,c=(Q=n.Utils).getBounds,w=Q.updateClasses;return _=Q.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",function(){return c(t.element)}),i=o.height,s=o.width,a=this.getTargetBounds(),l=n+i,u=r+s,p=[];n<=a.bottom&&l>=a.top&&["left","right"].forEach(function(e){var t=a[e];t!==r&&t!==u||p.push(e)}),r<=a.right&&u>=a.left&&["top","bottom"].forEach(function(e){var t=a[e];t!==n&&t!==l||p.push(e)});var d=[],f=[];return d.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(e){d.push(t.getClass("abutted")+"-"+e)}),p.length&&f.push(this.getClass("abutted")),p.forEach(function(e){f.push(t.getClass("abutted")+"-"+e)}),_(function(){!1!==t.options.addTargetClasses&&w(t.target,f,d),w(t.element,f,d)}),!0}}),S=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var s=S(r,2);o=s[0],i=s[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),W},void 0===(r=n.apply(t,[]))||(e.exports=r)},74282(e){const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],r=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),i=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");e.exports={words:n,upperFirst:r,camelCase:i,pascalCase:e=>r(i(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>r(o(e," ")),titleCase:e=>n(e).map(r).join(" ")}},26919(e,t,n){"use strict";var r=n(56608).Buffer,o=n(16111),i=n(68460),s=ArrayBuffer.isView||function(e){try{return i(e),!0}catch(e){return!1}},a="undefined"!=typeof Uint8Array,l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=l&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(r.isBuffer(e))return e.constructor&&!("isBuffer"in e)?r.from(e):e;if("string"==typeof e)return r.from(e,t);if(l&&s(e)){if(0===e.byteLength)return r.alloc(0);if(u){var n=r.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),c=r.from(i);if(c.length===e.byteLength)return c}if(a&&e instanceof Uint8Array)return r.from(e);var p=o(e);if(p)for(var d=0;d<e.length;d+=1){var f=e[d];if("number"!=typeof f||f<0||f>255||~~f!==f)throw new RangeError("Array items must be numbers in the range 0-255.")}if(p||r.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return r.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},76918(e){function t(e,t){var n=e.length,r=new Array(n),o={},i=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var u;try{u=", node was:"+JSON.stringify(e)}catch(e){u=""}throw new Error("Cyclic dependency"+u)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=s.get(e)||new Set;if(t=(c=Array.from(c)).length){i.add(e);do{var p=c[--t];l(p,a.get(p),i)}while(t);i.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=t},5432(e){"use strict";e.exports=function(e){return String(e).replace(/\n+$/,"")}},93729(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},67678(e,t,n){"use strict";var r=n(57908);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);(function s(a){var l=e[++t],u=o.call(arguments,0).slice(1),c=n.length,p=-1;if(a)i(a);else{for(;++p<c;)null!==u[p]&&void 0!==u[p]||(u[p]=n[p]);n=u,l?r(l,s).apply(null,n):i.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},57908(e){"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,s=t.call(arguments,0),a=e.length>s.length;a&&s.push(o);try{n=e.apply(null,s)}catch(e){if(a&&r)throw e;return o(e)}a||(n&&"function"==typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},65927(e,t,n){"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>C,__await:()=>v,__awaiter:()=>c,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>P,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>o,__generator:()=>p,__importDefault:()=>E,__importStar:()=>x,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>l,__read:()=>m,__rest:()=>s,__spread:()=>g,__spreadArrays:()=>y,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function p(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},79533(e,t,n){"use strict";n.r(t),n.d(t,{makeStyles:()=>L,tss:()=>j,useMuiThemeStyleOverridesPlugin:()=>y,useStyles:()=>F,withStyles:()=>N});var r=n(46567),o=n(22155);const i=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(n=>{const[r,o]=e[n];t[r]=o}),t};function s(e){return Object.keys(e)}function a(e,t){if(!e)throw new Error(t)}function l(e,t){return t}const u=e=>{const t=e.length;let n=0,r="";for(;n<t;n++){const t=e[n];if(null==t)continue;let o;switch(typeof t){case"boolean":break;case"object":if(Array.isArray(t))o=u(t);else{a(!l(0,!1)),o="";for(const e in t)t[e]&&e&&(o&&(o+=" "),o+=e)}break;default:o=t}o&&(r&&(r+=" "),r+=o)}return r};var c=n(22855),p=n(60966);const{createCssAndCx:d}={createCssAndCx:function(e){const{cache:t}=e,n=(...e)=>{const n=(0,c.serializeStyles)(e,t.registered);(0,p.sk)(t,n,!1);const r=`${t.key}-${n.name}`;{const n=e[0];(function(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)})(n)&&h.saveClassNameCSSObjectMapping(t,r,n)}return r};return{css:n,cx:(...e)=>{const r=u(e),o=h.fixClassName(t,r,n);return function(e,t,n){const r=[],o=(0,p.Rk)(e,r,n);return r.length<2?n:o+t(r)}(t.registered,n,o)}}}};function f(e){const{useCache:t}=e;return{useCssAndCx:function(){const e=t(),{css:n,cx:r}=function(t,n){var r;const i=(0,o.useRef)();return(!i.current||n.length!==(null===(r=i.current.prevDeps)||void 0===r?void 0:r.length)||i.current.prevDeps.map((e,t)=>e===n[t]).indexOf(!1)>=0)&&(i.current={v:d({cache:e}),prevDeps:[...n]}),i.current.v}(0,[e]);return{css:n,cx:r}}}}const h=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let o=e.get(t);void 0===o&&(o=new Map,e.set(t,o)),o.set(n,r)},fixClassName:(t,n,r)=>{const o=e.get(t);return u(function(e){let t=!1;return e.map(([e,n])=>{if(void 0===n)return e;let r;if(t)r={"&&":n};else{r=e;for(const e in n)if(e.startsWith("@media")){t=!0;break}}return r})}(n.split(" ").map(e=>[e,null==o?void 0:o.get(e)])).map(e=>"string"==typeof e?e:r(e)))}}})();function m(e){if(!(e instanceof Object)||"function"==typeof e)return e;const t=[];for(const n in e){const r=e[n],o=typeof r;if("string"!==o&&("number"!==o||isNaN(r))&&"boolean"!==o&&null!=r)return e;t.push(`${n}:${o}_${r}`)}return"xSqLiJdLMd9s"+t.join("|")}function g(e,t,n){if(!(t instanceof Object))return e;const r={};return s(e).forEach(o=>r[o]=n(e[o],t[o])),s(t).forEach(n=>{if(n in e)return;const o=t[n];"string"==typeof o&&(r[n]=o)}),r}const y=({classes:e,theme:t,muiStyleOverridesParams:n,css:r,cx:i,name:s})=>{var a,l;if("makeStyle no name"!==s){if(void 0!==n&&void 0===s)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}else s=void 0;let u;try{u=void 0===s?void 0:(null===(l=null===(a=t.components)||void 0===a?void 0:a[s])||void 0===l?void 0:l.styleOverrides)||void 0}catch(e){}const c=(0,o.useMemo)(()=>{if(void 0===u)return;const e={};for(const o in u){const i=u[o];i instanceof Object&&(e[o]=r("function"==typeof i?i({theme:t,ownerState:null==n?void 0:n.ownerState,...null==n?void 0:n.props}):i))}return e},[u,m(null==n?void 0:n.props),m(null==n?void 0:n.ownerState),r]);return{classes:e=(0,o.useMemo)(()=>g(e,c,i),[e,c,i])}},v=n(95803)._;let b=0;function w(e){const{useTheme:t,cache:n}=e,{useCache:r}=_({cacheProvidedAtInception:n}),{useCssAndCx:u}=f({useCache:r});return{makeStyles:function(e){const{name:n,uniqId:c=""+b++}=null!=e?e:{},p="object"!=typeof n?n:Object.keys(n)[0];return function(e){const n="function"==typeof e?e:()=>e;return function(e,d){const f=t();let{css:h,cx:v}=u();const b=r();let w=(0,o.useMemo)(()=>{const t={},r="undefined"!=typeof Proxy&&new Proxy({},{get:(e,n)=>("symbol"==typeof n&&a(!1),t[n]=`${b.key}-${c}${void 0!==p?`-${p}`:""}-${n}-ref`)}),o=n(f,e,r||{}),u=i(s(o).map(e=>{const n=o[e];return n.label||(n.label=`${void 0!==p?`${p}-`:""}${e}`),[e,`${h(n)}${l(0,e in t)?` ${t[e]}`:""}`]}));return s(t).forEach(e=>{e in u||(u[e]=t[e])}),u},[b,h,v,f,m(e)]);{const e=null==d?void 0:d.props.classes;w=(0,o.useMemo)(()=>g(w,e,v),[w,m(e),v])}{const e=y({classes:w,css:h,cx:v,name:null!=p?p:"makeStyle no name",idOfUseStyles:c,muiStyleOverridesParams:d,theme:f});void 0!==e.classes&&(w=e.classes),void 0!==e.css&&(h=e.css),void 0!==e.cx&&(v=e.cx)}return{classes:w,theme:f,css:h,cx:v}}}},useStyles:function(){const e=t(),{css:n,cx:r}=u();return{theme:e,css:n,cx:r}}}}const C=(0,o.createContext)(void 0),{createUseCache:_}={createUseCache:function(e){const{cacheProvidedAtInception:t}=e;return{useCache:function(){var e;const n=v(),r=(0,o.useContext)(C),i=null!==(e=null!=t?t:r)&&void 0!==e?e:n;if(null===i)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join("\n"));return i}}}};function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}const E=new WeakMap,S="getClasses should only be used in conjunction with withStyles";function P(e){const t=e.classes;if(void 0===t)throw new Error(S);const n=E.get(t);if(void 0===n)throw new Error(S);return n}function O(e){const t={},n={};return Object.keys(e).forEach(r=>(r.startsWith("@media")?n:t)[r]=e[r]),Object.keys(n).forEach(e=>{const r=n[e];Object.keys(r).forEach(n=>{var o;return t[n]={...null!==(o=t[n])&&void 0!==o?o:{},[e]:r[n]}})}),t}const T=(()=>{const e="object"==typeof document&&"function"==typeof(null===document||void 0===document?void 0:document.getElementById),t="undefined"!=typeof jest,n="undefined"!=typeof mocha,r="undefined"!=typeof __vitest_worker__;return!(e||t||n||r)})();function k(e){A=0,I.splice(0,I.length);const{useContext:t,usePlugin:n,cache:r}=e,{useCache:o}=_({cacheProvidedAtInception:r}),{useCssAndCx:i}=f({useCache:o});return{tss:R({useContext:t,useCache:o,useCssAndCx:i,usePlugin:null!=n?n:({classes:e,cx:t,css:n})=>({classes:e,cx:t,css:n}),name:void 0,doesUseNestedSelectors:!1})}}let A=0;const I=[];function R(e){const{useContext:t,useCache:n,useCssAndCx:r,usePlugin:o,name:u,doesUseNestedSelectors:c}=e;return{withParams:()=>R({...e}),withName:t=>R({...e,name:"object"!=typeof t?t:Object.keys(t)[0]}),withNestedSelectors:()=>R({...e,doesUseNestedSelectors:!0}),create:e=>{const p="x"+A++;if(void 0!==u)for(;;){const e=I.find(e=>e.name===u);if(void 0===e)break;I.splice(I.indexOf(e),1)}const d="function"==typeof e?e:()=>e;return function(f){var h,y,v;const{classesOverrides:b,...w}=null!=f?f:{},C=t(),{css:_,cx:x}=r(),E=n(),S=function(e){const{cache:t,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:r,paramsAndPluginParamsRef:o,idOfUseStyles:i,context:l,getClasses:u}=e;e:{const e=M.get(t);if(void 0===e)break e;const a=e.get(n);if(void 0===a)break e;const u=a.get(r);if(void 0===u)break e;const c=u.get(o);if(void 0===c)break e;const p=c.find(({context:e})=>{if(e===l)return!0;if(s(e).length!==s(l).length)return!1;for(const t in e)if(m(e[t])!==m(l[t]))return!1;return!0});if(void 0!==p){if((null==p?void 0:p.idOfUseStyles)===i)return p.result;c.splice(c.indexOf(p),1)}}const c=u();{M.has(t)||M.set(t,new WeakMap);const e=M.get(t);a(void 0!==e),e.has(n)||e.set(n,new Map);const s=e.get(n);a(void 0!==s),s.has(r)||(s.size>200&&s.clear(),s.set(r,new Map));const u=s.get(r);if(a(void 0!==u),!u.has(o)){{const e="string"==typeof o?257:5;u.size<e||u.clear()}u.set(o,[])}let p=u.get(o);a(void 0!==p),p.length>5&&(p=[]),p.push({idOfUseStyles:i,context:l,result:c})}return c}({cache:E,cssObjectByRuleNameOrGetCssObjectByRuleName:e,classesOverridesRef:m(b),paramsAndPluginParamsRef:m(w),idOfUseStyles:p,context:C,getClasses:()=>{const e={},t=d({...f,...C,...c?{classes:"undefined"==typeof Proxy?{}:new Proxy({},{get:(t,n)=>{if("symbol"==typeof n&&a(!1),T&&void 0===u)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join("\n"));e:{if(void 0===u)break e;let e=I.find(e=>e.name===u&&e.idOfUseStyles===p);void 0===e&&(e={name:u,idOfUseStyles:p,nestedSelectorRuleNames:new Set},I.push(e)),e.nestedSelectorRuleNames.add(n)}if(void 0!==u&&void 0!==I.find(e=>e.name===u&&e.idOfUseStyles!==p&&e.nestedSelectorRuleNames.has(n)))throw new Error([`tss-react: There are in your codebase two different useStyles named "${u}" that`,`both use use the nested selector ${n}.\n`,"This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope.\n","Solution: Ensure each useStyles using nested selectors has a unique name.\n",'Use: tss.withName("UniqueName").withNestedSelectors<...>()...'].join(" "));return e[n]=`${E.key}-${void 0!==u?u:p}-${n}-ref`}})}:{}});let n=i(s(t).map(n=>{const r=t[n];return r.label||(r.label=`${void 0!==u?`${u}-`:""}${n}`),[n,`${_(r)}${l(0,n in e)?` ${e[n]}`:""}`]}));return s(e).forEach(t=>{t in n||(n[t]=e[t])}),n=g(n,b,x),n}}),P=o({classes:S,css:_,cx:x,idOfUseStyles:p,name:u,...C,...w});return{classes:null!==(h=P.classes)&&void 0!==h?h:S,css:null!==(y=P.css)&&void 0!==y?y:_,cx:null!==(v=P.cx)&&void 0!==v?v:x,...C}}}}}const M=new WeakMap,{tss:D}=k({useContext:()=>({})}),{makeStyles:L,withStyles:N}=(D.create({}),{...w(V={useTheme:r.A}),...function(e){const{useTheme:t,cache:n}=e,{makeStyles:r}=w({useTheme:t,cache:n});function i(e,t,n){const i="string"==typeof e?(()=>{const t=e,n=function({children:e,...n}){return(0,o.createElement)(t,n,e)};return Object.defineProperty(n,"name",{value:x(t)}),n})():e,s=(()=>{{const{name:e}=null!=n?n:{};if(void 0!==e)return"object"!=typeof e?e:Object.keys(e)[0]}let e;{const t=i.displayName;"string"==typeof t&&""!==t&&(e=t)}e:{if(void 0!==e)break e;const t=i.name;"string"==typeof t&&""!==t&&(e=t)}if(void 0!==e)return e=e.replace(/\$/g,"usd"),e=e.replace(/\(/g,"_").replace(/\)/g,"_"),e=e.replace(/[^a-zA-Z0-9-_]/g,"_"),e})(),a=r({...n,name:s})("function"==typeof t?(e,n,r)=>O(t(e,n,r)):O(t));function l(e){for(const t in e)if("root"!==t)return!0;return!1}const u=(0,o.forwardRef)(function(t,n){const{className:r,classes:s,...u}=t,{classes:c,cx:p}=a(t,{props:t}),d=p(c.root,r);return E.set(c,{...c,root:d}),o.createElement(i,{ref:n,className:l(c)?r:d,..."string"==typeof e?{}:{classes:c},...u})});return void 0!==s&&(u.displayName=`${x(s)}WithStyles`,Object.defineProperty(u,"name",{value:u.displayName})),u}return i.getClasses=P,{withStyles:i}}(V)});var V;const{tss:j}=k({useContext:function(){return{theme:(0,r.A)()}},usePlugin:y}),F=j.create({})},68460(e,t,n){"use strict";var r=n(71102),o=n(98801)("TypedArray.prototype.buffer",!0),i=n(40006);e.exports=o||function(e){if(!i(e))throw new r("Not a Typed Array");return e.buffer}},17385(e,t,n){var r;!function(o,i){"use strict";var s="function",a="undefined",l="object",u="string",c="major",p="model",d="name",f="type",h="vendor",m="version",g="architecture",y="console",v="mobile",b="tablet",w="smarttv",C="wearable",_="embedded",x="Amazon",E="Apple",S="ASUS",P="BlackBerry",O="Browser",T="Chrome",k="Firefox",A="Google",I="Honor",R="Huawei",M="LG",D="Microsoft",L="Motorola",N="Nvidia",V="OnePlus",j="Opera",F="OPPO",z="Samsung",B="Sharp",H="Sony",U="Xiaomi",q="Zebra",W="Facebook",$="Chromium OS",Q="Mac OS",G=" Browser",Y=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Z=function(e,t){return typeof e===u&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},J=function(e,t){for(var n,r,o,a,u,c,p=0;p<t.length&&!u;){var d=t[p],f=t[p+1];for(n=r=0;n<d.length&&!u&&d[n];)if(u=d[n++].exec(e))for(o=0;o<f.length;o++)c=u[++r],typeof(a=f[o])===l&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):i:this[a[0]]=c?a[1].call(this,c,a[2]):i:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):i):this[a]=c||i;p+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Z(t[n][r],e))return"?"===n?i:n}else if(Z(t[n],e))return"?"===n?i:n;return t.hasOwnProperty("*")?t["*"]:e},te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,m],[/opios[\/ ]+([\w\.]+)/i],[m,[d,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[d,j+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[d,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[d,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[d,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+O],m],[/\bfocus\/([\w\.]+)/i],[m,[d,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[d,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[d,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[d,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[m,[d,k]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+G],m],[/samsungbrowser\/([\w\.]+)/i],[m,[d,z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,W],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[d,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,T+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[d,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[m,ee,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[d,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",K]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[h,z],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[p,[h,z],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[h,E],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[h,E],[f,b]],[/(macintosh);/i],[p,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[h,B],[f,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[p,[h,I],[f,b]],[/honor([-\w ]+)[;\)]/i],[p,[h,I],[f,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[p,[h,R],[f,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[h,R],[f,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[p,/_/g," "],[h,U],[f,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[p,/_/g," "],[h,U],[f,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[h,F],[f,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[p,[h,ee,{OnePlus:["304","403","203"],"*":F}],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[h,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[h,"Realme"],[f,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[h,L],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[h,L],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[h,M],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[h,M],[f,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[p,[h,"Lenovo"],[f,b]],[/(nokia) (t[12][01])/i],[h,p,[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[p,/_/g," "],[f,v],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[p,[h,A],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[h,A],[f,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[h,H],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[h,H],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[h,V],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[h,x],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[h,x],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[p,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[h,P],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[h,S],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[h,S],[f,v]],[/(nexus 9)/i],[p,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[p,/_/g," "],[f,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[p,[h,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[h,K],p,[f,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[h,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[h,"Ulefone"],[f,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[p,[h,"Energizer"],[f,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[p,[h,"Cat"],[f,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[p,[h,"Smartfren"],[f,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[p,[h,"Nothing"],[f,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[p,[h,"Archos"],[f,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[p,[h,"Archos"],[f,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,p,[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,p,[f,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,p,[f,b]],[/(surface duo)/i],[p,[h,D],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[h,"Fairphone"],[f,v]],[/(u304aa)/i],[p,[h,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[p,[h,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[p,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[p,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[p,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[p,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[p,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[p,[h,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[p,[h,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[p,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[p,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],p,[f,b]],[/\b(ns-?\w{0,9}) b/i],[p,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],p,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],p,[f,v]],[/\b(ph-1) /i],[p,[h,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[p,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[p,[h,"Rotor"],[f,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[p,[h,N],[f,b]],[/(sprint) (\w+)/i],[h,p,[f,v]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[h,D],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[h,q],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[h,q],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,w]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[h,z],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,M],[f,w]],[/(apple) ?tv/i],[h,[p,E+" TV"],[f,w]],[/crkey/i],[[p,T+"cast"],[h,A],[f,w]],[/droid.+aft(\w+)( bui|\))/i],[p,[h,x],[f,w]],[/(shield \w+ tv)/i],[p,[h,N],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[h,B],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[p,[h,H],[f,w]],[/(mi(tv|box)-?\w+) bui/i],[p,[h,U],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[h,p,[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,X],[p,X],[f,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[p,[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,p,[f,y]],[/droid.+; (shield)( bui|\))/i],[p,[h,N],[f,y]],[/(playstation \w+)/i],[p,[h,H],[f,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[h,D],[f,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[p,[h,z],[f,C]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,p,[f,C]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[p,[h,F],[f,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[h,E],[f,C]],[/(opwwe\d{3})/i],[p,[h,V],[f,C]],[/(moto 360)/i],[p,[h,L],[f,C]],[/(smartwatch 3)/i],[p,[h,H],[f,C]],[/(g watch r)/i],[p,[h,M],[f,C]],[/droid.+; (wt63?0{2,3})\)/i],[p,[h,q],[f,C]],[/droid.+; (glass) \d/i],[p,[h,A],[f,C]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,p,[f,C]],[/; (quest( \d| pro)?)/i],[p,[h,W],[f,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,_]],[/(aeobc)\b/i],[p,[h,x],[f,_]],[/(homepod).+mac os/i],[p,[h,E],[f,_]],[/windows iot/i],[[f,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[p,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,m],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[m,ee,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ee,te],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,Q],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,m],[/\(bb(10);/i],[m,[d,P]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[d,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[d,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,$],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,m],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,m]]},re=function(e,t){if(typeof e===l&&(t=e,e=i),!(this instanceof re))return new re(e,t).getResult();var n=typeof o!==a&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(ne,t):ne,C=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[d]=i,t[m]=i,J.call(t,r,w.browser),t[c]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:i,C&&n&&n.brave&&typeof n.brave.isBrave==s&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[g]=i,J.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[p]=i,e[f]=i,J.call(e,r,w.device),C&&!e[f]&&y&&y.mobile&&(e[f]=v),C&&"Macintosh"==e[p]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[p]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[d]=i,e[m]=i,J.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[d]=i,e[m]=i,J.call(e,r,w.os),C&&!e[d]&&y&&y.platform&&"Unknown"!=y.platform&&(e[d]=y.platform.replace(/chrome os/i,$).replace(/macos/i,Q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?X(e,500):e,this},this.setUA(r),this};re.VERSION="0.7.41",re.BROWSER=Y([d,m,c]),re.CPU=Y([g]),re.DEVICE=Y([p,h,f,y,v,w,b,C,_]),re.ENGINE=re.OS=Y([d,m]),typeof t!==a?(e.exports&&(t=e.exports=re),t.UAParser=re):n.amdO?(r=function(){return re}.call(t,n,t,e))===i||(e.exports=r):typeof o!==a&&(o.UAParser=re);var oe=typeof o!==a&&(o.jQuery||o.Zepto);if(oe&&!oe.ua){var ie=new re;oe.ua=ie.getResult(),oe.ua.get=function(){return ie.getUA()},oe.ua.set=function(e){ie.setUA(e);var t=ie.getResult();for(var n in t)oe.ua[n]=t[n]}}}("object"==typeof window?window:this)},3866(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var o=new XMLHttpRequest,i=[],s=[],a={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return s},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){i.push(t=t.toLowerCase()),s.push([t,n]),a[t]=a[t]?a[t]+","+n:n}),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)})}n.r(t),n.d(t,{default:()=>r})},11663(e,t,n){"use strict";var r=n(45918),o=n(91193);e.exports=function(e){var t,n,i;for(n in o(a,e),o(s,a),t=a.prototype)(i=t[n])&&"object"==typeof i&&(t[n]="concat"in i?i.concat():r(i));return a;function s(t){return e.apply(this,t)}function a(){return this instanceof a?e.apply(this,arguments):new s(arguments)}}},7302(e,t,n){"use strict";var r=n(49461),o=n(92178),i=n(62615),s=n(67678),a=n(24265),l=n(74994);e.exports=function e(){var t=[],n=s(),v={},b=!1,w=-1;return C.data=function(e,t){return a(e)?2===arguments.length?(m("data",b),v[e]=t,C):c.call(v,e)&&v[e]||null:e?(m("data",b),v=e,C):v},C.freeze=_,C.attachers=t,C.use=function(e){var n;if(m("use",b),null==e);else if("function"==typeof e)a.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s(e):o(e)}return n&&(v.settings=r(v.settings||{},n)),C;function o(e){s(e.plugins),e.settings&&(n=r(n||{},e.settings))}function i(e){if("function"==typeof e)a(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a.apply(null,e):o(e)}}function s(e){var t,n;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)i(e[n])}}function a(e,n){var o=function(e){for(var n,r=t.length,o=-1;++o<r;)if((n=t[o])[0]===e)return n}(e);o?(l(o[1])&&l(n)&&(n=r(o[1],n)),o[1]=n):t.push(u.call(arguments))}},C.parse=function(e){var t,n=i(e);return _(),f("parse",t=C.Parser),d(t)?new t(String(n),n).parse():t(String(n),n)},C.stringify=function(e,t){var n,r=i(t);return _(),h("stringify",n=C.Compiler),g(e),d(n)?new n(e,r).compile():n(e,r)},C.run=x,C.runSync=function(e,t){var n,r=!1;return x(e,t,function(e,t){r=!0,o(e),n=t}),y("runSync","run",r),n},C.process=E,C.processSync=function(e){var t,n=!1;return _(),f("processSync",C.Parser),h("processSync",C.Compiler),E(t=i(e),function(e){n=!0,o(e)}),y("processSync","process",n),t},C;function C(){for(var n=e(),o=t.length,i=-1;++i<o;)n.use.apply(null,t[i]);return n.data(r(!0,{},v)),n}function _(){var e,r,o,i;if(b)return C;for(;++w<t.length;)r=(e=t[w])[0],!1!==(o=e[1])&&(!0===o&&(e[1]=void 0),"function"==typeof(i=r.apply(C,e.slice(1)))&&n.use(i));return b=!0,w=1/0,C}function x(e,t,r){if(g(e),_(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(o);function o(o,s){n.run(e,i(t),function(t,n,i){n=n||e,t?s(t):o?o(n):r(null,n,i)})}o(null,r)}function E(e,t){if(_(),f("process",C.Parser),h("process",C.Compiler),!t)return new Promise(n);function n(n,r){var o=i(e);p.run(C,{file:o},function(e){e?r(e):n?n(o):t(null,o)})}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,p=s().use(function(e,t){t.tree=e.parse(t.file)}).use(function(e,t,n){e.run(t.tree,t.file,function(e,r,o){e?n(e):(t.tree=r,t.file=o,n())})}).use(function(e,t){t.file.contents=e.stringify(t.tree,t.file)});function d(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function f(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error(["Cannot invoke `"+e+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function g(e){if(!e||!a(e.type))throw new Error("Expected node, got `"+e+"`")}function y(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},91520(e){"use strict";function t(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return o;if("object"==typeof e)return("length"in e?r:n)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,o=-1;++o<r;)n[o]=t(e[o]);return n}(e),r=n.length;return function(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function o(){return!0}e.exports=t},85094(e,t,n){"use strict";var r=n(45114);function o(e){delete e.position}function i(e){e.position=void 0}e.exports=function(e,t){return r(e,t?o:i),e}},82244(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):null:null}},59496(e){"use strict";e.exports=function(e,t,n){var r=[];"function"==typeof t&&(n=t,t=null),function e(o){var i;return t&&o.type!==t||(i=n(o,r.concat())),o.children&&!1!==i?function(t,n){var o,i=t.length,s=-1;for(r.push(n);++s<i;)if((o=t[s])&&!1===e(o))return!1;return r.pop(),!0}(o.children,o):i}(e)}},93093(e,t,n){"use strict";e.exports=a;var r=n(91520),o=!0,i="skip",s=!1;function a(e,t,n,o){var a;"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),a=r(t),function e(r,u,c){var p,d=[];return(t&&!a(r,u,c[c.length-1]||null)||(d=l(n(r,c)))[0]!==s)&&r.children&&d[0]!==i?(p=l(function(t,n){for(var r,i=o?-1:1,a=(o?t.length:-1)+i;a>-1&&a<t.length;){if((r=e(t[a],a,n))[0]===s)return r;a="number"==typeof r[1]?r[1]:a+i}}(r.children,c.concat(r))),p[0]===s?p:d):d}(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}a.CONTINUE=o,a.SKIP=i,a.EXIT=s},45114(e,t,n){"use strict";e.exports=a;var r=n(93093),o=r.CONTINUE,i=r.SKIP,s=r.EXIT;function a(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)},o)}a.CONTINUE=o,a.SKIP=i,a.EXIT=s},12599(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(99448);function o(e,t){void 0===t&&(t={});var n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};const s=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(e,t){return"string"==typeof e?r.q(e,t):"object"==typeof e&&null!==e?e:{}}(e,t),new Promise(function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),o(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=o(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var o;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=i(i({},this.cookies),((o={})[e]=t,o)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.l(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=i(i({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=i({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.l(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},71481(e,t,n){"use strict";var r=n(11239);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(66114);function v(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var v=e=l.join(s);if(v=v.trim(),!n&&1===e.split("#").length){var b=a.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(v);if(w){var C=(w=w[0]).toLowerCase();this.protocol=C,v=v.substr(w.length)}if(n||w||v.match(/^\/\/[^@/]+@[^@/]+/)){var _="//"===v.substr(0,2);!_||w&&m[w]||(v=v.substr(2),this.slashes=!0)}if(!m[w]&&(_||w&&!g[w])){for(var x,E,S=-1,P=0;P<p.length;P++)-1!==(O=v.indexOf(p[P]))&&(-1===S||O<S)&&(S=O);for(-1!==(E=-1===S?v.lastIndexOf("@"):v.lastIndexOf("@",S))&&(x=v.slice(0,E),v=v.slice(E+1),this.auth=decodeURIComponent(x)),S=-1,P=0;P<c.length;P++){var O;-1!==(O=v.indexOf(c[P]))&&(-1===S||O<S)&&(S=O)}-1===S&&(S=v.length),this.host=v.slice(0,S),v=v.slice(S),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var k=this.hostname.split(/\./),A=(P=0,k.length);P<A;P++){var I=k[P];if(I&&!I.match(d)){for(var R="",M=0,D=I.length;M<D;M++)I.charCodeAt(M)>127?R+="x":R+=I[M];if(!R.match(d)){var L=k.slice(0,P),N=k.slice(P+1),V=I.match(f);V&&(L.push(V[1]),N.unshift(V[2])),N.length&&(v="/"+N.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var j=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+j,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[C])for(P=0,A=u.length;P<A;P++){var z=u[P];if(-1!==v.indexOf(z)){var B=encodeURIComponent(z);B===z&&(B=escape(z)),v=v.split(z).join(B)}}var H=v.indexOf("#");-1!==H&&(this.hash=v.substr(H),v=v.slice(0,H));var U=v.indexOf("?");if(-1!==U?(this.search=v.substr(U),this.query=v.substr(U+1),t&&(this.query=y.parse(this.query)),v=v.slice(0,U)):t&&(this.search="",this.query={}),v&&(this.pathname=v),g[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j=this.pathname||"";var q=this.search||"";this.path=j+q}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var u=a[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var c=Object.keys(e),p=0;p<c.length;p++){var d=c[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",y=n.search||"";n.path=h+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||v||n.host&&e.pathname,C=w,_=n.pathname&&n.pathname.split("/")||[],x=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(x&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),w=w&&(""===f[0]||""===_[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=f;else if(f.length)_||(_=[]),_.pop(),_=_.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search)return x&&(n.host=_.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=_.slice(-1)[0],S=(n.host||e.host||_.length>1)&&("."===E||".."===E)||""===E,P=0,O=_.length;O>=0;O--)"."===(E=_[O])?_.splice(O,1):".."===E?(_.splice(O,1),P++):P&&(_.splice(O,1),P--);if(!w&&!C)for(;P--;P)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),S&&"/"!==_.join("/").substr(-1)&&_.push("");var T,k=""===_[0]||_[0]&&"/"===_[0].charAt(0);return x&&(n.hostname=k?"":_.length?_.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(w=w||n.host&&_.length)&&!k&&_.unshift(""),_.length>0?n.pathname=_.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=v(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o},54717(e,t,n){"use strict";n.r(t),n.d(t,{useDebounce:()=>a,useDebouncedCallback:()=>o,useThrottledCallback:()=>l});var r=n(22155);function o(e,t,n){var o=this,i=(0,r.useRef)(null),s=(0,r.useRef)(0),a=(0,r.useRef)(null),l=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),p=(0,r.useRef)(e),d=(0,r.useRef)(!0);(0,r.useEffect)(function(){p.current=e},[e]);var f=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y=g?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]);var v=(0,r.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,s.current=e,c.current=p.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(a.current),a.current=f?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-s.current>=y},v=function(t){return a.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var o=Date.now();if(r(o))return v(o);if(d.current){var a=t-(o-i.current),l=g?Math.min(a,y-(o-s.current)):a;n(e,l)}},w=function(){var p=Date.now(),f=r(p);if(l.current=[].slice.call(arguments),u.current=o,i.current=p,f){if(!a.current&&d.current)return s.current=i.current,n(b,t),h?e(i.current):c.current;if(g)return n(b,t),e(i.current)}return a.current||n(b,t),c.current};return w.cancel=function(){a.current&&(f?cancelAnimationFrame(a.current):clearTimeout(a.current)),s.current=0,l.current=i.current=u.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?v(Date.now()):c.current},w},[h,g,t,y,m,f]);return v}function i(e,t){return e===t}function s(e){return"function"==typeof e?function(){return e}:e}function a(e,t,n){var a,l,u=n&&n.equalityFn||i,c=(a=(0,r.useState)(s(e)),l=a[1],[a[0],(0,r.useCallback)(function(e){return l(s(e))},[])]),p=c[0],d=c[1],f=o((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return u(h.current,e)||(f(e),h.current=e),[p,f]}function l(e,t,n){var r=void 0===n?{}:n,i=r.leading,s=r.trailing;return o(e,t,{maxWait:t,leading:void 0===i||i,trailing:void 0===s||s})}},93077(e,t,n){"use strict";n.d(t,{A:()=>r});var r=n(22155).useLayoutEffect},42656(e,t,n){"use strict";n.d(t,{S:()=>i});var r=n(22155),o=n(41346);const i=({children:e})=>{var t;const{navigator:n}=(0,r.useContext)(o.jb),i=(0,o.Zp)(),s=null==(t=(0,r.useContext)(o.sp))?void 0:t.router,a=(0,o.zy)();return e({replace(e){i(e.search||"?",{replace:!0,state:e.state})},push(e){i(e.search||"?",{replace:!1,state:e.state})},get location(){var e,t,r;return null!=(r=null!=(t=null==(e=null==s?void 0:s.state)?void 0:e.location)?t:null==n?void 0:n.location)?r:a}})}},63219(e,t,n){"use strict";function r(e,t,n=!0){return{...e,default:t,decode:(...r)=>{const o=e.decode(...r);return void 0===o||n&&null===o?t:o}}}function o(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function i(e){const t=o(e);if(null==t)return t;let n=null;try{n=JSON.parse(t)}catch(e){}return n}n.d(t,{ArrayParam:()=>l,BooleanParam:()=>c,JsonParam:()=>u,NumberParam:()=>a,QueryParamProvider:()=>T,StringParam:()=>s,decodeJson:()=>i,useQueryParam:()=>L,useQueryParams:()=>M,withDefault:()=>r});const s={encode:function(e){return null==e?e:String(e)},decode:function(e){const t=o(e,!0);return null==t?t:String(t)}},a={encode:function(e){return null==e?e:String(e)},decode:function(e){const t=o(e);return null==t?t:""===t?null:+t}},l={encode:function(e){return e},decode:function(e){return function(e){return null==e||e instanceof Array?e:""===e?[]:[e]}(e)}},u={encode:function(e){return null==e?e:JSON.stringify(e)},decode:i},c={encode:function(e){return null==e?e:e?"1":"0"},decode:function(e){const t=o(e);return null==t?t:"1"===t||"0"!==t&&null}};'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)]);var p=n(22155);const d=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&r.stringified===t&&(null==n||r.decode===n)}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function f(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},s=!1;for(const e of t)Object.prototype.hasOwnProperty.call(i,e)||(i[e]=null!=(o=n[e])?o:r,s=!0);return s?i:e}const h=Object.prototype.hasOwnProperty;function m(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function g(e,t,n){var r,o;if(m(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(let s=0;s<i.length;s++){const a=null!=(o=null==(r=null==n?void 0:n[i[s]])?void 0:r.equals)?o:m;if(!h.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function y(e,t,n){const r={},o=Object.keys(t);for(const i of o){const o=t[i],s=e[i];let a;if(n.has(i,s,o.decode))a=n.get(i);else{if(a=o.decode(s),o.equals&&n.has(i,s)){const e=n.get(i);o.equals(a,e)&&(a=e)}void 0!==a&&n.set(i,s,a,o.decode)}void 0===a&&void 0!==o.default&&(a=o.default),r[i]=a}return r}function v(){let e;return function(t,n,r){const o=y(t,n,r);return null!=e&&g(e,o)?e:(e=o,o)}}let b,w,C,_={};const x=(e,t,n)=>{if(b===t&&C===e&&w===n)return _;b=t,C=e;const r=e(null!=t?t:"");w=n;const o=function(e){if(e)return Object.fromEntries(e.split("\n").map(e=>e.split("\0")))}(n);for(let[e,t]of Object.entries(r)){(null==o?void 0:o[e])&&(delete r[e],e=o[e],r[e]=t);const n=_[e];g(t,n)&&(r[e]=n)}return _=r,r};function E(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const S={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[e,r]of t)Object.prototype.hasOwnProperty.call(n,e)?Array.isArray(n[e])?n[e].push(r):n[e]=[n[e],r]:n[e]=r;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[e,r]of n)if(null!=r)if(Array.isArray(r))for(const n of r)t.append(e,null!=n?n:"");else t.append(e,r);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},P=p.createContext(S);function O({children:e,adapter:t,options:n}){const{adapter:r,options:o}=p.useContext(P),i=p.useMemo(()=>({adapter:null!=t?t:r,options:E(o,n)}),[t,n,r,o]);return p.createElement(P.Provider,{value:i},e)}function T({children:e,adapter:t,options:n}){const r=t;return r?p.createElement(r,null,t=>p.createElement(O,{adapter:t,options:n},e)):p.createElement(O,{options:n},e)}function k({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:o}){const{searchStringToObject:i,objectToSearchString:s}=o;let a;null==t&&(t=o.updateType);const l=x(i,n),u=f(r,Object.keys(e),o.params);let c,p;return c="function"==typeof e?e(y(l,u,d)):e,a=function(e,t){const n={},r=Object.keys(t);for(const o of r){const r=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==r?r:String(r)}return n}(u,c),o.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(a,u),a=function(e,t){var n;let r={};for(const o in e)null!=(null==(n=t[o])?void 0:n.urlName)?r[t[o].urlName]=e[o]:r[o]=e[o];return r}(a,u),p=s("push"===t||"replace"===t?a:{...l,...a}),(null==p?void 0:p.length)&&"?"!==p[0]&&(p=`?${p}`),null!=p?p:""}const A=e=>e(),I=e=>setTimeout(()=>e(),0),R=[];function M(e,t){const{adapter:n,options:r}=function(){const e=p.useContext(P);if(void 0===e||e===S)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,p.useState)(v),{paramConfigMap:i,options:a}=function(e,t){let n,r;return void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map(e=>[e,"inherit"])),r=t):(n=e,r=t),{paramConfigMap:n,options:r}}(e,t),l=(0,p.useMemo)(()=>E(r,a),[r,a]);let u=function(e,t){var n,r,o;const i={};let a=!1;const l=Object.keys(e);let u=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});u.push(...e)}for(const n of u){const l=e[n];null==l||"object"!=typeof l?(a=!0,i[n]=null!=(o=null==(r=t.params)?void 0:r[n])?o:s):i[n]=l}return a?i:e}(i,l);const c=x(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(u));l.includeAllParams&&(u=f(u,Object.keys(c),l.params,s));const h=o(c,u,d),m=Object.keys(u).join("\0");(0,p.useEffect)(()=>{const e=m.split("\0");return d.registerParams(e),()=>{d.unregisterParams(e)}},[m]);const g={adapter:n,paramConfigMap:u,options:l},y=(0,p.useRef)(g);null==y.current&&(y.current=g),(0,p.useEffect)(()=>{y.current.adapter=n,y.current.paramConfigMap=u,y.current.options=l},[n,u,l]);const[b]=(0,p.useState)(()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:o}=y.current;null==t&&(t=o.updateType),function(e,{immediate:t}={}){R.push(e);let n=t?A:I;1===R.length&&n(()=>{const t=R.slice();R.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=k(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const o={...t.location,search:e};n&&("string"==typeof r&&r.startsWith("replace")?t.replace(o):t.push(o))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})})}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:o,adapter:n},{immediate:!o.enableBatching})});return[h,b]}var D=M;const L=(e,t,n)=>{const r=(0,p.useMemo)(()=>({[e]:null!=t?t:"inherit"}),[e,t]),[o,i]=D(r,n);return[o[e],(0,p.useCallback)((t,n)=>i("function"==typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n),[e,i])]}},91396(e,t,n){"use strict";var r=n(22155),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),s(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},17476(e,t,n){"use strict";var r=n(22155),o=n(53098),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=a(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(s=e,t):(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,o]);var f=s(e,p[0],p[1]);return l(function(){d.hasValue=!0,d.value=f},[f]),c(f),f}},53098(e,t,n){"use strict";e.exports=n(91396)},43604(e,t,n){"use strict";e.exports=n(17476)},91947(e,t,n){function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},85293(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},60807(e,t,n){var r=n(85409),o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),l=r[n];n<i;l=r[++n])m(l)||!w(l)?s+=" "+l:s+=" "+a(l);return s},t.deprecate=function(e,o){if(v(n.g.process))return function(){return t.deprecate(e,o).apply(this,arguments)};if(!0===r.noDeprecation)return e;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),i=!0}return e.apply(this,arguments)}};var i,s={};function a(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=c(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),_(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(x(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return p(n)}var u,w="",E=!1,S=["{","}"];return f(n)&&(E=!0,S=["[","]"]),x(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(w=" "+RegExp.prototype.toString.call(n)),C(n)&&(w=" "+Date.prototype.toUTCString.call(n)),_(n)&&(w=" "+p(n)),0!==s.length||E&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=E?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)O(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))}),i}(e,n,r,a,s):s.map(function(t){return d(e,n,r,a,t,E)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,w,S)):S[0]+w+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),O(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(l.value)<0?(a=m(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"==typeof e&&null!==e}function C(e){return w(e)&&"[object Date]"===E(e)}function _(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function x(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(i)&&(i={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=C,t.isError=_,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(85293);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[S((e=new Date).getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(50646),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},16699(e,t,n){var r=n(11154),o=n(21917),i=o;i.v1=r,i.v4=o,e.exports=i},34474(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},88775(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},11154(e,t,n){var r,o,i=n(88775),s=n(34474),a=0,l=0;e.exports=function(e,t,n){var u=t&&n||0,c=t||[],p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==p||null==d){var f=i();null==p&&(p=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=o=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,g=h-a+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||h>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,l=m,o=d;var y=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;c[u++]=y>>>24&255,c[u++]=y>>>16&255,c[u++]=y>>>8&255,c[u++]=255&y;var v=h/4294967296*1e4&268435455;c[u++]=v>>>8&255,c[u++]=255&v,c[u++]=v>>>24&15|16,c[u++]=v>>>16&255,c[u++]=d>>>8|128,c[u++]=255&d;for(var b=0;b<6;++b)c[u+b]=p[b];return t||s(c)}},21917(e,t,n){var r=n(88775),o=n(34474);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},32486(e,t,n){"use strict";n.r(t),n.d(t,{NIL:()=>S,parse:()=>p,stringify:()=>s.A,v1:()=>u,v3:()=>w,v4:()=>C.A,v5:()=>E,validate:()=>c.A,version:()=>P});var r,o,i=n(11662),s=n(8522),a=0,l=0;const u=function(e,t,n){var u=t&&n||0,c=t||new Array(16),p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==p||null==d){var f=e.random||(e.rng||i.A)();null==p&&(p=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=o=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,g=h-a+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||h>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,l=m,o=d;var y=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;c[u++]=y>>>24&255,c[u++]=y>>>16&255,c[u++]=y>>>8&255,c[u++]=255&y;var v=h/4294967296*1e4&268435455;c[u++]=v>>>8&255,c[u++]=255&v,c[u++]=v>>>24&15|16,c[u++]=v>>>16&255,c[u++]=d>>>8|128,c[u++]=255&d;for(var b=0;b<6;++b)c[u+b]=p[b];return t||(0,s.A)(c)};var c=n(24818);const p=function(e){if(!(0,c.A)(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=p(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var l=0;l<16;++l)o[i+l]=a[l];return o}return(0,s.A)(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function f(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,o,i){return h((s=h(h(t,e),h(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function g(e,t,n,r,o,i,s){return m(t&n|~t&r,e,t,o,i,s)}function y(e,t,n,r,o,i,s){return m(t&r|n&~r,e,t,o,i,s)}function v(e,t,n,r,o,i,s){return m(t^n^r,e,t,o,i,s)}function b(e,t,n,r,o,i,s){return m(n^(t|~r),e,t,o,i,s)}const w=d("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=n,l=r,u=o,c=i;n=g(n,r,o,i,e[s],7,-680876936),i=g(i,n,r,o,e[s+1],12,-389564586),o=g(o,i,n,r,e[s+2],17,606105819),r=g(r,o,i,n,e[s+3],22,-1044525330),n=g(n,r,o,i,e[s+4],7,-176418897),i=g(i,n,r,o,e[s+5],12,1200080426),o=g(o,i,n,r,e[s+6],17,-1473231341),r=g(r,o,i,n,e[s+7],22,-45705983),n=g(n,r,o,i,e[s+8],7,1770035416),i=g(i,n,r,o,e[s+9],12,-1958414417),o=g(o,i,n,r,e[s+10],17,-42063),r=g(r,o,i,n,e[s+11],22,-1990404162),n=g(n,r,o,i,e[s+12],7,1804603682),i=g(i,n,r,o,e[s+13],12,-40341101),o=g(o,i,n,r,e[s+14],17,-1502002290),n=y(n,r=g(r,o,i,n,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=y(i,n,r,o,e[s+6],9,-1069501632),o=y(o,i,n,r,e[s+11],14,643717713),r=y(r,o,i,n,e[s],20,-373897302),n=y(n,r,o,i,e[s+5],5,-701558691),i=y(i,n,r,o,e[s+10],9,38016083),o=y(o,i,n,r,e[s+15],14,-660478335),r=y(r,o,i,n,e[s+4],20,-405537848),n=y(n,r,o,i,e[s+9],5,568446438),i=y(i,n,r,o,e[s+14],9,-1019803690),o=y(o,i,n,r,e[s+3],14,-187363961),r=y(r,o,i,n,e[s+8],20,1163531501),n=y(n,r,o,i,e[s+13],5,-1444681467),i=y(i,n,r,o,e[s+2],9,-51403784),o=y(o,i,n,r,e[s+7],14,1735328473),n=v(n,r=y(r,o,i,n,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=v(i,n,r,o,e[s+8],11,-2022574463),o=v(o,i,n,r,e[s+11],16,1839030562),r=v(r,o,i,n,e[s+14],23,-35309556),n=v(n,r,o,i,e[s+1],4,-1530992060),i=v(i,n,r,o,e[s+4],11,1272893353),o=v(o,i,n,r,e[s+7],16,-155497632),r=v(r,o,i,n,e[s+10],23,-1094730640),n=v(n,r,o,i,e[s+13],4,681279174),i=v(i,n,r,o,e[s],11,-358537222),o=v(o,i,n,r,e[s+3],16,-722521979),r=v(r,o,i,n,e[s+6],23,76029189),n=v(n,r,o,i,e[s+9],4,-640364487),i=v(i,n,r,o,e[s+12],11,-421815835),o=v(o,i,n,r,e[s+15],16,530742520),n=b(n,r=v(r,o,i,n,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=b(i,n,r,o,e[s+7],10,1126891415),o=b(o,i,n,r,e[s+14],15,-1416354905),r=b(r,o,i,n,e[s+5],21,-57434055),n=b(n,r,o,i,e[s+12],6,1700485571),i=b(i,n,r,o,e[s+3],10,-1894986606),o=b(o,i,n,r,e[s+10],15,-1051523),r=b(r,o,i,n,e[s+1],21,-2054922799),n=b(n,r,o,i,e[s+8],6,1873313359),i=b(i,n,r,o,e[s+15],10,-30611744),o=b(o,i,n,r,e[s+6],15,-1560198380),r=b(r,o,i,n,e[s+13],21,1309151649),n=b(n,r,o,i,e[s+4],6,-145523070),i=b(i,n,r,o,e[s+11],10,-1120210379),o=b(o,i,n,r,e[s+2],15,718787259),r=b(r,o,i,n,e[s+9],21,-343485551),n=h(n,a),r=h(r,l),o=h(o,u),i=h(i,c)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(f(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});var C=n(44301);function _(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}const E=d("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),l=0;l<s;++l){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];a[l]=u}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var p=0;p<s;++p){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=a[p][f];for(var h=16;h<80;++h)d[h]=x(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var m=n[0],g=n[1],y=n[2],v=n[3],b=n[4],w=0;w<80;++w){var C=Math.floor(w/20),E=x(m,5)+_(C,g,y,v)+b+t[C]+d[w]>>>0;b=v,v=y,y=x(g,30)>>>0,g=m,m=E}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),S="00000000-0000-0000-0000-000000000000",P=function(e){if(!(0,c.A)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},11662(e,t,n){"use strict";var r;n.d(t,{A:()=>i});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}},8522(e,t,n){"use strict";n.d(t,{A:()=>s});for(var r=n(24818),o=[],i=0;i<256;++i)o.push((i+256).toString(16).substr(1));const s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,r.A)(n))throw TypeError("Stringified UUID is invalid");return n}},44301(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(11662),o=n(8522);const i=function(e,t,n){var i=(e=e||{}).random||(e.rng||r.A)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return(0,o.A)(i)}},24818(e,t,n){"use strict";n.d(t,{A:()=>o});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,o=function(e){return"string"==typeof e&&r.test(e)}},86257(e,t,n){"use strict";n.d(t,{A:()=>E});var r=n(30019);function o(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||o(r)&&r.test(e))return!0}return!1}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){var n,o;(0,r.A)(e),"object"===s(t)?(n=t.min||0,o=t.max):(n=arguments[1],o=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(void 0===o||i<=o)}var l=n(71702),u={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var p="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",d="(".concat(p,"[.]){3}").concat(p),f=new RegExp("^".concat(d,"$")),h="(?:[0-9a-fA-F]{1,4})",m=new RegExp("^("+"(?:".concat(h,":){7}(?:").concat(h,"|:)|")+"(?:".concat(h,":){6}(?:").concat(d,"|:").concat(h,"|:)|")+"(?:".concat(h,":){5}(?::").concat(d,"|(:").concat(h,"){1,2}|:)|")+"(?:".concat(h,":){4}(?:(:").concat(h,"){0,1}:").concat(d,"|(:").concat(h,"){1,3}|:)|")+"(?:".concat(h,":){3}(?:(:").concat(h,"){0,2}:").concat(d,"|(:").concat(h,"){1,4}|:)|")+"(?:".concat(h,":){2}(?:(:").concat(h,"){0,3}:").concat(d,"|(:").concat(h,"){1,5}|:)|")+"(?:".concat(h,":){1}(?:(:").concat(h,"){0,4}:").concat(d,"|(:").concat(h,"){1,6}|:)|")+"(?::((?::".concat(h,"){0,5}:").concat(d,"|(?::").concat(h,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.A)(e);var n=("object"===c(t)?t.version:arguments[1])||"";return n?"4"===n.toString()?f.test(e):"6"===n.toString()&&m.test(e):g(e,{version:4})||g(e,{version:6})}var y={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},v=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,b=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,w=/^[a-z\d]+$/,C=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,_=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,x=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;function E(e,t){if((0,r.A)(e),(t=(0,l.A)(t,y)).require_display_name||t.allow_display_name){var n=e.match(v);if(n){var o=n[1];if(e=e.replace(o,"").replace(/(^<|>$)/g,""),o.endsWith(" ")&&(o=o.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(t.split('"').length!==t.split('\\"').length)return!1}return!0}(o))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var s=e.split("@"),c=s.pop(),p=c.toLowerCase();if(t.host_blacklist.length>0&&i(p,t.host_blacklist))return!1;if(t.host_whitelist.length>0&&!i(p,t.host_whitelist))return!1;var d=s.join("@");if(t.domain_specific_validation&&("gmail.com"===p||"googlemail.com"===p)){var f=(d=d.toLowerCase()).split("+")[0];if(!a(f.replace(/\./g,""),{min:6,max:30}))return!1;for(var h=f.split("."),m=0;m<h.length;m++)if(!w.test(h[m]))return!1}if(!(!1!==t.ignore_max_length||a(d,{max:64})&&a(c,{max:254})))return!1;if(!function(e,t){(0,r.A)(e),(t=(0,l.A)(t,u)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),o=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}return!(!t.allow_numeric_tld&&/^\d+$/.test(o))&&n.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})}(c,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!g(c)){if(!c.startsWith("[")||!c.endsWith("]"))return!1;var E=c.slice(1,-1);if(0===E.length||!g(E))return!1}}if(t.blacklisted_chars&&-1!==d.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;if('"'===d[0]&&'"'===d[d.length-1])return d=d.slice(1,d.length-1),t.allow_utf8_local_part?x.test(d):C.test(d);for(var S=t.allow_utf8_local_part?_:b,P=d.split("."),O=0;O<P.length;O++)if(!S.test(P[O]))return!1;return!0}},77303(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(30019),o=n(71702),i={ignore_whitespace:!1};function s(e,t){return(0,r.A)(e),0===((t=(0,o.A)(t,i)).ignore_whitespace?e.trim().length:e.length)}},98415(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(30019),o={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?([79][1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"ar-QA":/^(\+?974|0)?([3567]\d{7})$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7[1-9]\d{8}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?0[79][567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-GT":/^(\+?502)?[2|6|7]\d{7}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+?244)?9\d{8}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[2-9]\d{7}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,"mk-MK":/^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/};function i(e,t,n){if((0,r.A)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some(function(t){return!(!o.hasOwnProperty(t)||!o[t].test(e))});if(t in o)return o[t].test(e);if(!t||"any"===t){for(var i in o)if(o.hasOwnProperty(i)&&o[i].test(e))return!0;return!1}throw new Error("Invalid locale '".concat(t,"'"))}o["en-CA"]=o["en-US"],o["fr-CA"]=o["en-CA"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],o["zh-MO"]=o["en-MO"],o["ga-IE"]=o["en-IE"],o["fr-CH"]=o["de-CH"],o["it-CH"]=o["fr-CH"],Object.keys(o)},32193(e,t,n){"use strict";n.d(t,{A:()=>E});for(var r,o=n(30019),i={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶｦ-ﾟ一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/,"ta-IN":/^[\u0B80-\u0BFF]+$/i,"te-IN":/^[\u0C00-\u0C7F]+$/i,"kn-IN":/^[\u0C80-\u0CFF]+$/i,"ml-IN":/^[\u0D00-\u0D7F]+$/i,"gu-IN":/^[\u0A80-\u0AFF]+$/i,"pa-IN":/^[\u0A00-\u0A7F]+$/i,"or-IN":/^[\u0B00-\u0B7F]+$/i},s={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-9０-９ぁ-んァ-ヶｦ-ﾟ一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/,"ta-IN":/^[0-9\u0B80-\u0BFF.]+$/i,"te-IN":/^[0-9\u0C00-\u0C7F.]+$/i,"kn-IN":/^[0-9\u0C80-\u0CFF.]+$/i,"ml-IN":/^[0-9\u0D00-\u0D7F.]+$/i,"gu-IN":/^[0-9\u0A80-\u0AFF.]+$/i,"pa-IN":/^[0-9\u0A00-\u0A7F.]+$/i,"or-IN":/^[0-9\u0B00-\u0B7F.]+$/i},a={"en-US":".",ar:"٫"},l=["AU","GB","HK","IN","NZ","ZA","ZM"],u=0;u<l.length;u++)i[r="en-".concat(l[u])]=i["en-US"],s[r]=s["en-US"],a[r]=a["en-US"];for(var c,p=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],d=0;d<p.length;d++)i[c="ar-".concat(p[d])]=i.ar,s[c]=s.ar,a[c]=a.ar;for(var f,h=["IR","AF"],m=0;m<h.length;m++)s[f="fa-".concat(h[m])]=s.fa,a[f]=a.ar;for(var g,y=["BD","IN"],v=0;v<y.length;v++)i[g="bn-".concat(y[v])]=i.bn,s[g]=s.bn,a[g]=a["en-US"];for(var b=["ar-EG","ar-LB","ar-LY"],w=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","gu-IN","hi-IN","hu-HU","id-ID","it-IT","kk-KZ","kn-IN","ku-IQ","ml-IN","nb-NO","nl-NL","nn-NO","or-IN","pa-IN","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS","sr-RS@latin","sv-SE","ta-IN","te-IN","tr-TR","uk-UA","vi-VN"],C=0;C<b.length;C++)a[b[C]]=a["en-US"];for(var _=0;_<w.length;_++)a[w[_]]=",";i["fr-CA"]=i["fr-FR"],s["fr-CA"]=s["fr-FR"],i["pt-BR"]=i["pt-PT"],s["pt-BR"]=s["pt-PT"],a["pt-BR"]=a["pt-PT"],i["pl-Pl"]=i["pl-PL"],s["pl-Pl"]=s["pl-PL"],a["pl-Pl"]=a["pl-PL"],i["fa-AF"]=i.fa;var x=/^[0-9]+$/;function E(e,t){return(0,o.A)(e),t&&t.no_symbols?x.test(e):new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?a[t.locale]:".","])?[0-9]+$")).test(e)}},30019(e,t,n){"use strict";function r(e){if(null==e)throw new TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw new TypeError("Expected a string but received a ".concat(e.constructor.name))}n.d(t,{A:()=>r})},71702(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e}n.d(t,{A:()=>r})},58476(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=Je(n(53871)),i=Je(n(35169)),s=Je(n(71566)),a=Je(n(27623)),l=Je(n(70843)),u=Je(n(1759)),c=Je(n(12913)),p=Je(n(11564)),d=Je(n(59417)),f=Je(n(37903)),h=Je(n(13179)),m=Je(n(69826)),g=Je(n(87401)),y=Je(n(47746)),v=Je(n(31531)),b=Je(n(54852)),w=Je(n(47916)),C=Je(n(61302)),_=Xe(n(65432)),x=Xe(n(33329)),E=Je(n(41095)),S=Xe(n(43741)),P=Je(n(50905)),O=Je(n(75513)),T=Je(n(45080)),k=Je(n(96970)),A=Je(n(93231)),I=Je(n(2079)),R=Je(n(26519)),M=Je(n(54092)),D=Je(n(2119)),L=Je(n(37574)),N=Je(n(91174)),V=Je(n(77049)),j=Xe(n(57798)),F=Je(n(98851)),z=Je(n(43015)),B=Je(n(50459)),H=Je(n(36046)),U=Je(n(57734)),q=Je(n(50784)),W=Je(n(27911)),$=Je(n(49389)),Q=Xe(n(9542)),G=Je(n(37702)),Y=Je(n(21936)),Z=Je(n(37394)),K=Je(n(6521)),X=Je(n(92880)),J=Je(n(61153)),ee=Je(n(19622)),te=Je(n(5196)),ne=Je(n(86578)),re=Je(n(49234)),oe=Je(n(70077)),ie=Je(n(22778)),se=Je(n(75777)),ae=Je(n(64937)),le=Je(n(26642)),ue=Je(n(45893)),ce=Je(n(16838)),pe=Je(n(60596)),de=Je(n(21929)),fe=Je(n(93706)),he=Je(n(77963)),me=Je(n(61460)),ge=Xe(n(55678)),ye=Je(n(59943)),ve=Je(n(29089)),be=Je(n(52023)),we=n(9104),Ce=Je(n(10896)),_e=Je(n(15292)),xe=Je(n(83067)),Ee=Je(n(65174)),Se=Je(n(33216)),Pe=Je(n(22935)),Oe=Je(n(74039)),Te=Je(n(25951)),ke=Je(n(36978)),Ae=Je(n(38022)),Ie=Je(n(76317)),Re=Je(n(43001)),Me=Je(n(30852)),De=Je(n(79227)),Le=Je(n(93974)),Ne=Je(n(91815)),Ve=Xe(n(57340)),je=Je(n(72512)),Fe=Je(n(45634)),ze=Je(n(39722)),Be=Je(n(32457)),He=Je(n(65846)),Ue=Je(n(25990)),qe=Je(n(44861)),We=Je(n(18155)),$e=Je(n(3600)),Qe=Je(n(76323)),Ge=Je(n(22185)),Ye=Je(n(72383)),Ze=Je(n(78884)),Ke=Je(n(62619));function Xe(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(Xe=function(e,t){if(!t&&e&&e.__esModule)return e;var i,s,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(i=t?o:n){if(i.has(e))return i.get(e);i.set(e,a)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((s=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(s.get||s.set)?i(a,l,s):a[l]=e[l]);return a})(e,t)}function Je(e){return e&&e.__esModule?e:{default:e}}var et={version:"13.15.26",toDate:o.default,toFloat:i.default,toInt:s.default,toBoolean:a.default,equals:l.default,contains:u.default,matches:c.default,isEmail:p.default,isURL:d.default,isMACAddress:f.default,isIP:h.default,isIPRange:m.default,isFQDN:g.default,isBoolean:b.default,isIBAN:Q.default,isBIC:G.default,isAbaRouting:C.default,isAlpha:_.default,isAlphaLocales:_.locales,isAlphanumeric:x.default,isAlphanumericLocales:x.locales,isNumeric:E.default,isPassportNumber:S.default,passportNumberLocales:S.locales,isPort:P.default,isLowercase:O.default,isUppercase:T.default,isAscii:A.default,isFullWidth:I.default,isHalfWidth:R.default,isVariableWidth:M.default,isMultibyte:D.default,isSemVer:L.default,isSurrogatePair:N.default,isInt:V.default,isIMEI:k.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:F.default,isHexadecimal:z.default,isOctal:B.default,isDivisibleBy:H.default,isHexColor:U.default,isRgbColor:q.default,isHSL:W.default,isISRC:$.default,isMD5:Y.default,isHash:Z.default,isJWT:K.default,isJSON:X.default,isEmpty:J.default,isLength:ee.default,isLocale:w.default,isByteLength:te.default,isULID:ne.default,isUUID:re.default,isMongoId:oe.default,isAfter:ie.default,isBefore:se.default,isIn:ae.default,isLuhnNumber:le.default,isCreditCard:ue.default,isIdentityCard:ce.default,isEAN:pe.default,isISIN:de.default,isISBN:fe.default,isISSN:he.default,isMobilePhone:ge.default,isMobilePhoneLocales:ge.locales,isPostalCode:Ve.default,isPostalCodeLocales:Ve.locales,isEthereumAddress:ye.default,isCurrency:ve.default,isBtcAddress:be.default,isISO6346:we.isISO6346,isFreightContainerID:we.isFreightContainerID,isISO6391:Ce.default,isISO8601:_e.default,isISO15924:Ee.default,isRFC3339:xe.default,isISO31661Alpha2:Se.default,isISO31661Alpha3:Pe.default,isISO31661Numeric:Oe.default,isISO4217:Te.default,isBase32:ke.default,isBase58:Ae.default,isBase64:Ie.default,isDataURI:Re.default,isMagnetURI:Me.default,isMailtoURI:De.default,isMimeType:Le.default,isLatLong:Ne.default,ltrim:je.default,rtrim:Fe.default,trim:ze.default,escape:Be.default,unescape:He.default,stripLow:Ue.default,whitelist:qe.default,blacklist:We.default,isWhitelisted:$e.default,normalizeEmail:Qe.default,toString,isSlug:Ge.default,isStrongPassword:Ze.default,isTaxID:me.default,isDate:y.default,isTime:v.default,isLicensePlate:Ye.default,isVAT:Ke.default,ibanLocales:Q.locales};t.default=et,e.exports=t.default,e.exports.default=t.default},38923(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.farsiLocales=t.englishLocales=t.dotDecimal=t.decimal=t.commaDecimal=t.bengaliLocales=t.arabicLocales=t.alphanumeric=t.alpha=void 0;for(var n,r=t.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶｦ-ﾟ一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/,"ta-IN":/^[\u0B80-\u0BFF]+$/i,"te-IN":/^[\u0C00-\u0C7F]+$/i,"kn-IN":/^[\u0C80-\u0CFF]+$/i,"ml-IN":/^[\u0D00-\u0D7F]+$/i,"gu-IN":/^[\u0A80-\u0AFF]+$/i,"pa-IN":/^[\u0A00-\u0A7F]+$/i,"or-IN":/^[\u0B00-\u0B7F]+$/i},o=t.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-9０-９ぁ-んァ-ヶｦ-ﾟ一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/,"ta-IN":/^[0-9\u0B80-\u0BFF.]+$/i,"te-IN":/^[0-9\u0C00-\u0C7F.]+$/i,"kn-IN":/^[0-9\u0C80-\u0CFF.]+$/i,"ml-IN":/^[0-9\u0D00-\u0D7F.]+$/i,"gu-IN":/^[0-9\u0A80-\u0AFF.]+$/i,"pa-IN":/^[0-9\u0A00-\u0A7F.]+$/i,"or-IN":/^[0-9\u0B00-\u0B7F.]+$/i},i=t.decimal={"en-US":".",ar:"٫"},s=t.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],a=0;a<s.length;a++)r[n="en-".concat(s[a])]=r["en-US"],o[n]=o["en-US"],i[n]=i["en-US"];for(var l,u=t.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],c=0;c<u.length;c++)r[l="ar-".concat(u[c])]=r.ar,o[l]=o.ar,i[l]=i.ar;for(var p,d=t.farsiLocales=["IR","AF"],f=0;f<d.length;f++)o[p="fa-".concat(d[f])]=o.fa,i[p]=i.ar;for(var h,m=t.bengaliLocales=["BD","IN"],g=0;g<m.length;g++)r[h="bn-".concat(m[g])]=r.bn,o[h]=o.bn,i[h]=i["en-US"];for(var y=t.dotDecimal=["ar-EG","ar-LB","ar-LY"],v=t.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","gu-IN","hi-IN","hu-HU","id-ID","it-IT","kk-KZ","kn-IN","ku-IQ","ml-IN","nb-NO","nl-NL","nn-NO","or-IN","pa-IN","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS","sr-RS@latin","sv-SE","ta-IN","te-IN","tr-TR","uk-UA","vi-VN"],b=0;b<y.length;b++)i[y[b]]=i["en-US"];for(var w=0;w<v.length;w++)i[v[w]]=",";r["fr-CA"]=r["fr-FR"],o["fr-CA"]=o["fr-FR"],r["pt-BR"]=r["pt-PT"],o["pt-BR"]=o["pt-PT"],i["pt-BR"]=i["pt-PT"],r["pl-Pl"]=r["pl-PL"],o["pl-Pl"]=o["pl-PL"],i["pl-Pl"]=i["pl-PL"],r["fa-AF"]=r.fa},18155(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},1759(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return(0,r.default)(e),(n=(0,i.default)(n,a)).ignoreCase?e.toLowerCase().split((0,o.default)(t).toLowerCase()).length>n.minOccurrences:e.split((0,o.default)(t)).length>n.minOccurrences};var r=s(n(8946)),o=s(n(35565)),i=s(n(56853));function s(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},70843(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e===t};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},32457(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},61302(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!i.test(e))return!1;for(var t=0,n=0;n<e.length;n++)t+=n%3==0?3*e[n]:n%3==1?7*e[n]:1*e[n];return t%10==0};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;e.exports=t.default,e.exports.default=t.default},22778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=("object"===i(t)?t.comparisonDate:t)||Date().toString(),r=(0,o.default)(n),s=(0,o.default)(e);return!!(s&&r&&s>r)};var r,o=(r=n(53871))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},65432(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,s=n.ignore;if(s)if(s instanceof RegExp)r=r.replace(s,"");else{if("string"!=typeof s)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alpha)return i.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=n(38923);t.locales=Object.keys(i.alpha)},33329(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,s=n.ignore;if(s)if(s instanceof RegExp)r=r.replace(s,"");else{if("string"!=typeof s)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alphanumeric)return i.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=n(38923);t.locales=Object.keys(i.alphanumeric)},93231(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},37702(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.slice(4,6).toUpperCase();return!(!i.CountryCodes.has(t)&&"XK"!==t)&&s.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=n(33216),s=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},36978(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(t=(0,o.default)(t,l)).crockford?a.test(e):!(e.length%8!=0||!s.test(e))};var r=i(n(8946)),o=i(n(56853));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^[A-Z2-7]+=*$/,a=/^[A-HJKMNP-TV-Z0-9]+$/,l={crockford:!1};e.exports=t.default,e.exports.default=t.default},38022(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),!!i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},76317(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,i;return(0,r.default)(e),t=(0,o.default)(t,{urlSafe:!1,padding:!(null!==(n=t)&&void 0!==n&&n.urlSafe)}),""===e||(!t.padding||e.length%4==0)&&(i=t.urlSafe?t.padding?l:u:t.padding?s:a,(!t.padding||e.length%4==0)&&i.test(e))};var r=i(n(8946)),o=i(n(56853));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^[A-Za-z0-9+/]+={0,2}$/,a=/^[A-Za-z0-9+/]+$/,l=/^[A-Za-z0-9_-]+={0,2}$/,u=/^[A-Za-z0-9_-]+$/;e.exports=t.default,e.exports.default=t.default},75777(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=("object"===i(t)?t.comparisonDate:t)||Date().toString(),r=(0,o.default)(n),s=(0,o.default)(e);return!!(s&&r&&s<r)};var r,o=(r=n(53871))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},54852(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return(0,r.default)(e),t.loose?(0,o.default)(l,e.toLowerCase()):(0,o.default)(a,e)};var r=i(n(8946)),o=i(n(68887));function i(e){return e&&e.__esModule?e:{default:e}}var s={loose:!1},a=["true","false","1","0"],l=[].concat(a,["yes","no"]);e.exports=t.default,e.exports.default=t.default},52023(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)||s.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/,s=/^(1|2|3|m)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},5196(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(void 0===r||s<=r)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},45893(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var n=t.provider,i=e.replace(/[- ]+/g,"");if(n&&n.toLowerCase()in s){if(!s[n.toLowerCase()].test(i))return!1}else{if(n&&!(n.toLowerCase()in s))throw new Error("".concat(n," is not a valid credit card provider."));if(!a.some(function(e){return e.test(i)}))return!1}return(0,o.default)(e)};var r=i(n(8946)),o=i(n(26642));function i(e){return e&&e.__esModule?e:{default:e}}var s={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},a=function(){var e=[];for(var t in s)s.hasOwnProperty(t)&&e.push(s[t]);return e}();e.exports=t.default,e.exports.default=t.default},29089(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach(function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))});var n="(".concat(e.symbol.replace(/\W/,function(e){return"\\".concat(e)}),")").concat(e.require_symbol?"":"?"),r="-?",o="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),i="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),s="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=i+(e.allow_decimal||e.require_decimal?s:"");return e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+=r:e.negative_sign_before_digits&&(a=r+a)),e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?"),e.symbol_after_digits?a+=n:a=n+a,e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a=r+a)),new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,r.default)(t,s)).test(e)};var r=i(n(56853)),o=i(n(8946));function i(e){return e&&e.__esModule?e:{default:e}}var s={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},43001(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),r=n.shift();if("data:"!==r.slice(0,5))return!1;var l=r.slice(5);if(""!==l&&!i.test(l))return!1;for(var u=0;u<n.length;u++)if((u!==n.length-1||"base64"!==n[u].toLowerCase())&&!s.test(n[u]))return!1;for(var c=0;c<t.length;c++)if(!a.test(t[c]))return!1;return!0};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,s=/^[a-z\-]+=[a-z0-9\-]+$/i,a=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default},47746(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t="string"==typeof t?(0,o.default)({format:t},l):(0,o.default)(t,l),"string"==typeof e&&(b=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(b))){if(t.strictMode&&e.length!==t.format.length)return!1;var n,r=t.delimiters.find(function(e){return-1!==t.format.indexOf(e)}),a=t.strictMode?r:t.delimiters.find(function(t){return-1!==e.indexOf(t)}),u=function(e,t){for(var n=[],r=Math.max(e.length,t.length),o=0;o<r;o++)n.push([e[o],t[o]]);return n}(e.split(a),t.format.toLowerCase().split(r)),c={},p=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(u);try{for(p.s();!(n=p.n()).done;){var d=i(n.value,2),f=d[0],h=d[1];if(!f||!h||f.length!==h.length)return!1;c[h.charAt(0)]=f}}catch(e){p.e(e)}finally{p.f()}var m=c.y;if(m.startsWith("-"))return!1;if(2===c.y.length){var g=parseInt(c.y,10);if(isNaN(g))return!1;m=g<(new Date).getFullYear()%100?"20".concat(c.y):"19".concat(c.y)}var y=c.m;1===c.m.length&&(y="0".concat(c.m));var v=c.d;return 1===c.d.length&&(v="0".concat(c.d)),new Date("".concat(m,"-").concat(y,"-").concat(v,"T00:00:00.000Z")).getUTCDate()===+c.d}var b;return!t.strictMode&&("[object Date]"===Object.prototype.toString.call(e)&&isFinite(e))};var r,o=(r=n(56853))&&r.__esModule?r:{default:r};function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default},98851(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(t=(0,r.default)(t,l)).locale in s.decimal)return!(0,i.default)(u,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(s.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=a(n(56853)),o=a(n(8946)),i=a(n(68887)),s=n(38923);function a(e){return e&&e.__esModule?e:{default:e}}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default},36046(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,o.default)(e)%parseInt(t,10)===0};var r=i(n(8946)),o=i(n(35169));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},60596(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t,n,r=Number(e.slice(-1));return i.test(e)&&r===((n=10-(t=e).slice(0,-1).split("").map(function(e,n){return Number(e)*function(e,t){return 8===e||14===e?t%2==0?3:1:t%2==0?1:3}(t.length,n)}).reduce(function(e,t){return e+t},0)%10)<10?n:0)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},11564(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,l.default)(t,c)).require_display_name||t.allow_display_name){var n=e.match(p);if(n){var u=n[1];if(e=e.replace(u,"").replace(/(^<|>$)/g,""),u.endsWith(" ")&&(u=u.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(t.split('"').length!==t.split('\\"').length)return!1}return!0}(u))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.length>0&&(0,o.default)(b,t.host_blacklist))return!1;if(t.host_whitelist.length>0&&!(0,o.default)(b,t.host_whitelist))return!1;var w=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var C=(w=w.toLowerCase()).split("+")[0];if(!(0,i.default)(C.replace(/\./g,""),{min:6,max:30}))return!1;for(var _=C.split("."),x=0;x<_.length;x++)if(!f.test(_[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(w,{max:64})&&(0,i.default)(v,{max:254})))return!1;if(!(0,s.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.slice(1,-1);if(0===E.length||!(0,a.default)(E))return!1}}if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;if('"'===w[0]&&'"'===w[w.length-1])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?g.test(w):h.test(w);for(var S=t.allow_utf8_local_part?m:d,P=w.split("."),O=0;O<P.length;O++)if(!S.test(P[O]))return!1;return!0};var r=u(n(8946)),o=u(n(83683)),i=u(n(5196)),s=u(n(87401)),a=u(n(13179)),l=u(n(56853));function u(e){return e&&e.__esModule?e:{default:e}}var c={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},p=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},61153(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),0===((t=(0,o.default)(t,s)).ignore_whitespace?e.trim().length:e.length)};var r=i(n(8946)),o=i(n(56853));function i(e){return e&&e.__esModule?e:{default:e}}var s={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},59943(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},87401(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,s)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}return!(!t.allow_numeric_tld&&/^\d+$/.test(i))&&n.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})};var r=i(n(8946)),o=i(n(56853));function i(e){return e&&e.__esModule?e:{default:e}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},57798(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?i.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var s=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||(0,o.default)(t.min)||s>=t.min)&&(!t.hasOwnProperty("max")||(0,o.default)(t.max)||s<=t.max)&&(!t.hasOwnProperty("lt")||(0,o.default)(t.lt)||s<t.lt)&&(!t.hasOwnProperty("gt")||(0,o.default)(t.gt)||s>t.gt)},t.locales=void 0;var r=s(n(8946)),o=s(n(68616)),i=n(38923);function s(e){return e&&e.__esModule?e:{default:e}}t.locales=Object.keys(i.decimal)},2079(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)},t.fullWidth=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},27911(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");return-1!==t.indexOf(",")?i.test(t):s.test(t)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,s=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},26519(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)},t.halfWidth=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=t.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},37394(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-fA-F0-9]{".concat(i[t],"}$")).test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},57734(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),((t=(0,o.default)(t,l)).require_hashtag?a:s).test(e)};var r=i(n(8946)),o=i(n(56853));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,a=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,l={require_hashtag:!1};e.exports=t.default,e.exports.default=t.default},43015(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},9542(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)(e),function(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=n.slice(0,2).toUpperCase(),i=r in s;if(t.whitelist){if(t.whitelist.filter(function(e){return!(e in s)}).length>0)return!1;if(!(0,o.default)(t.whitelist,r))return!1}return(!t.blacklist||!(0,o.default)(t.blacklist,r))&&(i&&s[r].test(n))}(e,t)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,function(e){return e.charCodeAt(0)-55}).match(/\d{1,7}/g).reduce(function(e,t){return Number(e+t)%97},"")}(e)},t.locales=void 0;var r=i(n(8946)),o=i(n(68887));function i(e){return e&&e.__esModule?e:{default:e}}var s={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})\d{22}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};t.locales=Object.keys(s)},96970(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=i;if((t=t||{}).allow_hyphens&&(n=s),!n.test(e))return!1;e=e.replace(/-/g,"");for(var r=0,a=2,l=0;l<14;l++){var u=e.substring(14-l-1,14-l),c=parseInt(u,10)*a;r+=c>=10?c%10+1:c,1===a?a+=1:a-=1}return(10-r%10)%10===parseInt(e.substring(14,15),10)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[0-9]{15}$/,s=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},13179(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(t);var r=("object"===i(n)?n.version:arguments[1])||"";return r?"4"===r.toString()?l.test(t):"6"===r.toString()&&c.test(t):e(t,{version:4})||e(t,{version:6})};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(s,"[.]){3}").concat(s),l=new RegExp("^".concat(a,"$")),u="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");e.exports=t.default,e.exports.default=t.default},69826(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,r.default)(e);var n=e.split("/");if(2!==n.length)return!1;if(!s.test(n[1]))return!1;if(n[1].length>1&&n[1].startsWith("0"))return!1;if(!(0,o.default)(n[0],t))return!1;var i=null;switch(String(t)){case"4":i=32;break;case"6":i=128;break;default:i=(0,o.default)(n[0],"6")?128:32}return n[1]<=i&&n[1]>=0};var r=i(n(8946)),o=i(n(13179));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^\d{1,3}$/;e.exports=t.default,e.exports.default=t.default},93706(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,o.default)(t);var r=String((null==n?void 0:n.version)||n);if(!(null!=n&&n.version||n))return e(t,{version:10})||e(t,{version:13});var l=t.replace(/[\s-]+/g,""),u=0;if("10"===r){if(!i.test(l))return!1;for(var c=0;c<r-1;c++)u+=(c+1)*l.charAt(c);if("X"===l.charAt(9)?u+=100:u+=10*l.charAt(9),u%11==0)return!0}else if("13"===r){if(!s.test(l))return!1;for(var p=0;p<12;p++)u+=a[p%2]*l.charAt(p);if(l.charAt(12)-(10-u%10)%10==0)return!0}return!1};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(?:[0-9]{9}X|[0-9]{10})$/,s=/^(?:[0-9]{13})$/,a=[1,3];e.exports=t.default,e.exports.default=t.default},21929(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!i.test(e))return!1;for(var t=!0,n=0,r=e.length-2;r>=0;r--)if(e[r]>="A"&&e[r]<="Z")for(var s=e[r].charCodeAt(0)-55,a=0,l=[s%10,Math.trunc(s/10)];a<l.length;a++){var u=l[a];n+=t?u>=5?1+2*(u-5):2*u:u,t=!t}else{var c=e[r].charCodeAt(0)-"0".charCodeAt(0);n+=t?c>=5?1+2*(c-5):2*c:c,t=!t}var p=10*Math.trunc((n+9)/10)-n;return+e[e.length-1]===p};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},65174(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptCodes=void 0,t.default=function(e){return(0,o.default)(e),i.has(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=new Set(["Adlm","Afak","Aghb","Ahom","Arab","Aran","Armi","Armn","Avst","Bali","Bamu","Bass","Batk","Beng","Bhks","Blis","Bopo","Brah","Brai","Bugi","Buhd","Cakm","Cans","Cari","Cham","Cher","Chis","Chrs","Cirt","Copt","Cpmn","Cprt","Cyrl","Cyrs","Deva","Diak","Dogr","Dsrt","Dupl","Egyd","Egyh","Egyp","Elba","Elym","Ethi","Gara","Geok","Geor","Glag","Gong","Gonm","Goth","Gran","Grek","Gujr","Gukh","Guru","Hanb","Hang","Hani","Hano","Hans","Hant","Hatr","Hebr","Hira","Hluw","Hmng","Hmnp","Hrkt","Hung","Inds","Ital","Jamo","Java","Jpan","Jurc","Kali","Kana","Kawi","Khar","Khmr","Khoj","Kitl","Kits","Knda","Kore","Kpel","Krai","Kthi","Lana","Laoo","Latf","Latg","Latn","Leke","Lepc","Limb","Lina","Linb","Lisu","Loma","Lyci","Lydi","Mahj","Maka","Mand","Mani","Marc","Maya","Medf","Mend","Merc","Mero","Mlym","Modi","Mong","Moon","Mroo","Mtei","Mult","Mymr","Nagm","Nand","Narb","Nbat","Newa","Nkdb","Nkgb","Nkoo","Nshu","Ogam","Olck","Onao","Orkh","Orya","Osge","Osma","Ougr","Palm","Pauc","Pcun","Pelm","Perm","Phag","Phli","Phlp","Phlv","Phnx","Plrd","Piqd","Prti","Psin","Qaaa","Qaab","Qaac","Qaad","Qaae","Qaaf","Qaag","Qaah","Qaai","Qaaj","Qaak","Qaal","Qaam","Qaan","Qaao","Qaap","Qaaq","Qaar","Qaas","Qaat","Qaau","Qaav","Qaaw","Qaax","Qaay","Qaaz","Qaba","Qabb","Qabc","Qabd","Qabe","Qabf","Qabg","Qabh","Qabi","Qabj","Qabk","Qabl","Qabm","Qabn","Qabo","Qabp","Qabq","Qabr","Qabs","Qabt","Qabu","Qabv","Qabw","Qabx","Ranj","Rjng","Rohg","Roro","Runr","Samr","Sara","Sarb","Saur","Sgnw","Shaw","Shrd","Shui","Sidd","Sidt","Sind","Sinh","Sogd","Sogo","Sora","Soyo","Sund","Sunu","Sylo","Syrc","Syre","Syrj","Syrn","Tagb","Takr","Tale","Talu","Taml","Tang","Tavt","Tayo","Telu","Teng","Tfng","Tglg","Thaa","Thai","Tibt","Tirh","Tnsa","Todr","Tols","Toto","Tutg","Ugar","Vaii","Visp","Vith","Wara","Wcho","Wole","Xpeo","Xsux","Yezi","Yiii","Zanb","Zinh","Zmth","Zsye","Zsym","Zxxx","Zyyy","Zzzz"]);t.ScriptCodes=i},33216(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountryCodes=void 0,t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);t.CountryCodes=i},22935(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},74039(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=new Set(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);e.exports=t.default,e.exports.default=t.default},25951(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrencyCodes=void 0,t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);t.CurrencyCodes=i},9104(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFreightContainerID=void 0,t.isISO6346=a;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,s=/^[0-9]$/;function a(e){if((0,o.default)(e),e=e.toUpperCase(),!i.test(e))return!1;if(11===e.length){for(var t=0,n=0;n<e.length-1;n++)if(s.test(e[n]))t+=e[n]*Math.pow(2,n);else{var r=e.charCodeAt(n)-55;t+=(r<11?r:r>=11&&r<=20?12+r%11:r>=21&&r<=30?23+r%21:34+r%31)*Math.pow(2,n)}var a=t%11;return 10===a&&(a=0),Number(e[e.length-1])===a}return!0}t.isFreightContainerID=a},10896(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},15292(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=t.strictSeparator?s.test(e):i.test(e);return n&&t.strict?function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),r=Number(t[2]);return n%4==0&&n%100!=0||n%400==0?r<=366:r<=365}var o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=o[1],s=o[2],a=o[3],l=s?"0".concat(s).slice(-2):s,u=a?"0".concat(a).slice(-2):a,c=new Date("".concat(i,"-").concat(l||"01","-").concat(u||"01"));return!s||!a||c.getUTCFullYear()===i&&c.getUTCMonth()+1===s&&c.getUTCDate()===a}(e):n};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;e.exports=t.default,e.exports.default=t.default},49389(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},77963(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n="^\\d{4}-?\\d{3}[\\dX]$";if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),i=0,s=0;s<r.length;s++){var a=r[s];i+=("X"===a?10:+a)*(8-s)}return i%11==0};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},16838(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a)if(a.hasOwnProperty(n)&&(0,a[n])(e))return!0;return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=s(n(8946)),o=s(n(68887)),i=s(n(77049));function s(e){return e&&e.__esModule?e:{default:e}}var a={PL:function(e){(0,r.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,i.default)(e,{allow_leading_zeroes:!0})){var n=e.split("").slice(0,-1).reduce(function(e,n,r){return e+Number(n)*t[r+1]},0)%10,o=Number(e.charAt(e.length-1));if(0===n&&0===o||o===10-n)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var o=n.slice(0,-1).replace(/[X,Y,Z]/g,function(e){return t[e]});return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o%23])},FI:function(e){return(0,r.default)(e),11===e.length&&(!!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/)&&"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11))},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(r))return!1;var o=0;return r.replace(/\s/g,"").split("").map(Number).reverse().forEach(function(e,r){o=t[o][n[r%8][e]]}),0===o},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,r=0;r<9;r++)n+=parseInt(e.slice(r,r+1),10)*(10-r);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&"CA00000AA"!==e&&e.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),r=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,o=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*r)%11)%11;return r===n[9]&&o===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,o=0,i=0;i<r.length;i++)o+=(n=Number(r[i])*(i%2+1))>9?n-9:n;return o%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],r=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],i=["1","0","X","9","8","7","6","5","4","3","2"],s=function(e){return(0,o.default)(n,e)},a=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6),10),o=new Date(t,n-1,r);return!(o>new Date)&&o.getFullYear()===t&&o.getMonth()===n-1&&o.getDate()===r};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=s(n)))return!1;var r="19".concat(e.substring(6,12));return!!(t=a(r))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=s(n)))return!1;var o=e.substring(6,14);return!!(t=a(o))&&function(e){return function(e){for(var t=e.substring(0,17),n=0,o=0;o<17;o++)n+=parseInt(t.charAt(o),10)*parseInt(r[o],10);return i[n%11]}(e)===e.charAt(17).toUpperCase()}(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,r=0;r<=7;r++)n+=(t.test(e[r])?e[r]:(e[r].charCodeAt(0)-55)%11)*(9-r);return(0==(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce(function(e,n,r){if(0===r){var o=t[n];return o%10*9+Math.floor(o/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)},0)},PK:function(e){var t=e.trim();return/^[1-7][0-9]{4}-[0-9]{7}-[1-9]$/.test(t)}};e.exports=t.default,e.exports.default=t.default},64937(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var i=[];for(n in t)({}).hasOwnProperty.call(t,n)&&(i[n]=(0,o.default)(t[n]));return i.indexOf(e)>=0}return"object"===s(t)?t.hasOwnProperty(e):!(!t||"function"!=typeof t.indexOf)&&t.indexOf(e)>=0};var r=i(n(8946)),o=i(n(35565));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}e.exports=t.default,e.exports.default=t.default},77049(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=!1===(t=t||{}).allow_leading_zeroes?s:a,i=!t.hasOwnProperty("min")||(0,o.default)(t.min)||e>=t.min,l=!t.hasOwnProperty("max")||(0,o.default)(t.max)||e<=t.max,u=!t.hasOwnProperty("lt")||(0,o.default)(t.lt)||e<t.lt,c=!t.hasOwnProperty("gt")||(0,o.default)(t.gt)||e>t.gt;return n.test(e)&&i&&l&&u&&c};var r=i(n(8946)),o=i(n(68616));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},92880(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,i.default)(t,l);var n=[];t.allow_primitives&&(n=[null,!1,!0]);var s=JSON.parse(e);return(0,o.default)(n,s)||!!s&&"object"===a(s)}catch(e){}return!1};var r=s(n(8946)),o=s(n(68887)),i=s(n(56853));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},6521(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(".");return 3===t.length&&t.reduce(function(e,t){return e&&(0,o.default)(t,{urlSafe:!0})},!0)};var r=i(n(8946)),o=i(n(76317));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},91815(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,o.default)(t,p),!(0,i.default)(e,","))return!1;var n=e.split(",");return!(n[0].startsWith("(")&&!n[1].endsWith(")")||n[1].endsWith(")")&&!n[0].startsWith("("))&&(t.checkDMS?u.test(n[0])&&c.test(n[1]):a.test(n[0])&&l.test(n[1]))};var r=s(n(8946)),o=s(n(56853)),i=s(n(80257));function s(e){return e&&e.__esModule?e:{default:e}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,l=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,u=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},19622(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var s=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],a=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],l=e.length-s.length-a.length,u=l>=n&&(void 0===r||l<=r);return u&&Array.isArray(null==t?void 0:t.discreteLengths)?t.discreteLengths.some(function(e){return e===l}):u};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},72383(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i)if((0,i[n])(e))return!0;return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"en-SG":function(e){return/^[A-Z]{3}[ -]?[\d]{4}[ -]?[A-Z]{1}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^(([A-Z]{2}[ -·]?[0-9]{2}[ -·]?[0-9]{2})|([0-9]{2}[ -·]?[A-Z]{2}[ -·]?[0-9]{2})|([0-9]{2}[ -·]?[0-9]{2}[ -·]?[A-Z]{2})|([A-Z]{2}[ -·]?[0-9]{2}[ -·]?[A-Z]{2}))$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())},"en-PK":function(e){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},47916(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),p.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),s="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),a="(x(-[A-Za-z0-9]{1,8})+)",l="(".concat("((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))","|").concat("((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",")"),u="(-|_)",c="".concat(i,"(").concat(u).concat("([A-Za-z]{4})",")?(").concat(u).concat("([A-Za-z]{2}|\\d{3})",")?(").concat(u).concat("([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",")*(").concat(u).concat(s,")*(").concat(u).concat(a,")?"),p=new RegExp("(^".concat(a,"$)|(^").concat(l,"$)|(^").concat(c,"$)"));e.exports=t.default,e.exports.default=t.default},75513(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},26642(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);for(var t,n,r,i=e.replace(/[- ]+/g,""),s=0,a=i.length-1;a>=0;a--)t=i.substring(a,a+1),n=parseInt(t,10),s+=r&&(n*=2)>=10?n%10+1:n,r=!r;return!(s%10!=0||!i)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},37903(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){return(0,o.default)(t),null!=n&&n.eui&&(n.eui=String(n.eui)),null!=n&&n.no_colons||null!=n&&n.no_separators?"48"===n.eui?s.test(t):"64"===n.eui?u.test(t):s.test(t)||u.test(t):"48"===(null==n?void 0:n.eui)?i.test(t)||a.test(t):"64"===(null==n?void 0:n.eui)?l.test(t)||c.test(t):e(t,{eui:"48"})||e(t,{eui:"64"})};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,l=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,u=/^([0-9a-fA-F]){16}$/,c=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},21936(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},30852(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),0===e.indexOf("magnet:?")&&i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},79227(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),0!==e.indexOf("mailto:"))return!1;var n=a(e.replace("mailto:","").split("?"),2),s=n[0],u=n[1],c=void 0===u?"":u;if(!s&&!c)return!0;var p=function(e){var t=new Set(["subject","body","cc","bcc"]),n={cc:"",bcc:""},r=!1,o=e.split("&");if(o.length>4)return!1;var i,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=l(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}(o);try{for(s.s();!(i=s.n()).done;){var u=a(i.value.split("="),2),c=u[0],p=u[1];if(c&&!t.has(c)){r=!0;break}!p||"cc"!==c&&"bcc"!==c||(n[c]=p),c&&t.delete(c)}}catch(e){s.e(e)}finally{s.f()}return!r&&n}(c);return!!p&&"".concat(s,",").concat(p.cc,",").concat(p.bcc).split(",").every(function(e){return!(e=(0,r.default)(e," "))||(0,o.default)(e,t)})};var r=s(n(39722)),o=s(n(11564)),i=s(n(8946));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.exports=t.default,e.exports.default=t.default},93974(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)||s.test(e)||a.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,s=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},55678(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,o.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some(function(t){return!(!i.hasOwnProperty(t)||!i[t].test(e))});if(t in i)return i[t].test(e);if(!t||"any"===t){for(var r in i)if(i.hasOwnProperty(r)&&i[r].test(e))return!0;return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?([79][1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"ar-QA":/^(\+?974|0)?([3567]\d{7})$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7[1-9]\d{8}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?0[79][567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-GT":/^(\+?502)?[2|6|7]\d{7}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+?244)?9\d{8}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[2-9]\d{7}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,"mk-MK":/^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/};i["en-CA"]=i["en-US"],i["fr-CA"]=i["en-CA"],i["fr-BE"]=i["nl-BE"],i["zh-HK"]=i["en-HK"],i["zh-MO"]=i["en-MO"],i["ga-IE"]=i["en-IE"],i["fr-CH"]=i["de-CH"],i["it-CH"]=i["fr-CH"],t.locales=Object.keys(i)},70077(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,o.default)(e)&&24===e.length};var r=i(n(8946)),o=i(n(43015));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},2119(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},41095(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),t&&t.no_symbols?s.test(e):new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?i.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=n(38923),s=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},50459(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},43741(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in i&&i[t].test(n)},t.locales=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$|^[A-Z]\d{6}[A-Z]{2}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$|^[A-Z]\d{8}$/,ZA:/^[TAMD]\d{8}$/};t.locales=Object.keys(i)},50905(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e,{allow_leading_zeroes:!1,min:0,max:65535})};var r,o=(r=n(77049))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},57340(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in u)return u[t].test(e);if("any"===t){for(var n in u)if(u.hasOwnProperty(n)&&u[n].test(e))return!0;return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^\d{3}$/,s=/^\d{4}$/,a=/^\d{5}$/,l=/^\d{6}$/,u={AD:/^AD\d{3}$/,AT:s,AU:s,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BD:/^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,BE:s,BG:s,BR:/^\d{5}-?\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:s,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CO:/^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\d{4})$/,CZ:/^\d{3}\s?\d{2}$/,DE:a,DK:s,DO:a,DZ:a,EE:a,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:a,FR:/^(?:(?:0[1-9]|[1-8]\d|9[0-5])\d{3}|97[1-46]\d{2})$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:s,ID:a,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:i,IT:a,JP:/^\d{3}\-\d{4}$/,KE:a,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:s,LV:/^LV\-\d{4}$/,LK:a,MG:i,MX:a,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:a,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:s,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:s,PK:a,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:l,RU:l,SA:a,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:l,SI:s,SK:/^\d{3}\s?\d{2}$/,TH:a,TN:s,TW:/^\d{3}(\d{2,3})?$/,UA:a,US:/^\d{5}(-\d{4})?$/,ZA:s,ZM:a};t.locales=Object.keys(u)},83067(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),d.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/([01][0-9]|2[0-3])/,s=/[0-5][0-9]/,a=new RegExp("[-+]".concat(i.source,":").concat(s.source)),l=new RegExp("([zZ]|".concat(a.source,")")),u=new RegExp("".concat(i.source,":").concat(s.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),c=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),p=new RegExp("".concat(u.source).concat(l.source)),d=new RegExp("^".concat(c.source,"[ tT]").concat(p.source,"$"));e.exports=t.default,e.exports.default=t.default},50784(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=!1,r=!0;if("object"!==i(t)?arguments.length>=2&&(r=arguments[1]):(n=void 0!==t.allowSpaces?t.allowSpaces:n,r=void 0!==t.includePercentValues?t.includePercentValues:r),n){if(!c.test(e))return!1;e=e.replace(/\s/g,"")}return r?s.test(e)||a.test(e)||l.test(e)||u.test(e):s.test(e)||a.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,u=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/,c=/^rgba?/;e.exports=t.default,e.exports.default=t.default},37574(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var r=o(n(8946));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(n(93651)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},22185(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},78884(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(e);var n=function(e){var t=function(e){var t={};return Array.from(e).forEach(function(e){t[e]?t[e]+=1:t[e]=1}),t}(e),n={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach(function(e){s.test(e)?n.uppercaseCount+=t[e]:a.test(e)?n.lowercaseCount+=t[e]:l.test(e)?n.numberCount+=t[e]:u.test(e)&&(n.symbolCount+=t[e])}),n}(e);return(t=(0,r.default)(t||{},c)).returnScore?function(e,t){var n=0;return n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower),e.uppercaseCount>0&&(n+=t.pointsForContainingUpper),e.numberCount>0&&(n+=t.pointsForContainingNumber),e.symbolCount>0&&(n+=t.pointsForContainingSymbol),n}(n,t):n.length>=t.minLength&&n.lowercaseCount>=t.minLowercase&&n.uppercaseCount>=t.minUppercase&&n.numberCount>=t.minNumbers&&n.symbolCount>=t.minSymbols};var r=i(n(56853)),o=i(n(8946));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^[A-Z]$/,a=/^[a-z]$/,l=/^[0-9]$/,u=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},91174(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},61460(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,o.default)(e);var n=e.slice(0);if(t in d)return t in m&&(n=n.replace(m[t],"")),!!d[t].test(n)&&(!(t in f)||f[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var o=a(n(8946)),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,i={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return i;if(n=t){if(n.has(e))return n.get(e);n.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(o.get||o.set)?n(i,s,o):i[s]=e[s]);return i}(e)}(n(67968)),s=a(n(47746));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function p(e){for(var t=!1,n=!1,r=0;r<3;r++)if(!t&&/[AEIOU]/.test(e[r]))t=!0;else if(!n&&t&&"X"===e[r])n=!0;else if(r>0){if(t&&!n&&!/[AEIOU]/.test(e[r]))return!1;if(n&&!/X/.test(e[r]))return!1}return!0}var d={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-AR":/(20|23|24|27|30|33|34)[0-9]{8}[0-9]/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,"uk-UA":/^\d{10}$/};d["lb-LU"]=d["fr-LU"],d["lt-LT"]=d["et-EE"],d["nl-BE"]=d["fr-BE"],d["fr-CA"]=d["en-CA"];var f={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,s.default)(r,"YYYY/MM/DD"))return!1;for(var o=e.split("").map(function(e){return parseInt(e,10)}),i=[2,4,8,5,10,9,7,3,6],a=0,l=0;l<i.length;l++)a+=o[l]*i[l];return(a=a%11==10?0:a%11)===o[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n=parseInt(e.slice(2,4),10);if(n>50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,s.default)(r,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map(function(e){return parseInt(e,10)}),n=[],r=0;r<t.length-1;r++){n.push("");for(var o=0;o<t.length-1;o++)t[r]===t[o]&&(n[r]+=o)}if(2!==(n=n.filter(function(e){return e.length>1})).length&&3!==n.length)return!1;if(3===n[0].length){for(var s=n[0].split("").map(function(e){return parseInt(e,10)}),a=0,l=0;l<s.length-1;l++)s[l]+1===s[l+1]&&(a+=1);if(2===a)return!1}return i.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map(function(e){return parseInt(e,10)}),o=0,i=4,a=0;a<9;a++)o+=r[a]*i,1==(i-=1)&&(i=7);return 1!=(o%=11)&&(0===o?0===r[9]:r[9]===11-o)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map(function(e){return parseInt(e,10)}),n=0,r=1;r<t.length;r+=2)n+=t[r];for(var o=0;o<t.length;o+=2)t[o]<2?n+=1-t[o]:(n+=2*(t[o]-2)+5,t[o]>4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map(function(e){return parseInt(e,10)}),n=0,r=0;r<8;r++)n+=t[r]*Math.pow(2,8-r);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter(function(e,t){return t%2}).map(function(e){return 2*Number(e)}).join("").split("");return t.filter(function(e,t){return!(t%2)}).concat(n).map(function(e){return Number(e)}).reduce(function(e,t){return e+t})%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map(function(e){return parseInt(e,10)}),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0==(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in c)c.hasOwnProperty(t)&&e.push.apply(e,l(c[t]));return e}().indexOf(e.slice(0,2))},"es-AR":function(e){for(var t=0,n=e.split(""),r=parseInt(n.pop(),10),o=0;o<n.length;o++)t+=n[9-o]*(2+o%6);var i=11-t%11;return 11===i?i=0:10===i&&(i=9),r===i},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var r=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map(function(e){return parseInt(e,10)}),o=0,i=1,a=0;a<10;a++)o+=r[a]*i,10===(i+=1)&&(i=1);if(o%11==10){o=0,i=3;for(var l=0;l<10;l++)o+=r[l]*i,10===(i+=1)&&(i=1);if(o%11==10)return 0===r[10]}return o%11===r[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;var r=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return r<10?r===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][r-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,s.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,r=parseInt(e.slice(9,11),10);return n===r||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===r},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,s.default)(t,"YYYY/MM/DD")&&!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12]))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map(function(e){return parseInt(e,10)}),n=8,r=1;r<9;r++)n+=t[r]*(r+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!p(t.slice(0,3)))return!1;if(!p(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},r=0,o=[6,7,9,10,12,13,14];r<o.length;r++){var i=o[r];t[i]in n&&t.splice(i,1,n[t[i]])}var a={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],l=parseInt(t[9]+t[10],10);l>40&&(l-=40),l<10&&(l="0".concat(l));var u="".concat(t[6]).concat(t[7],"/").concat(a,"/").concat(l);if(!(0,s.default)(u,"YY/MM/DD"))return!1;for(var c=0,d=1;d<t.length-1;d+=2){var f=parseInt(t[d],10);isNaN(f)&&(f=t[d].charCodeAt(0)-65),c+=f}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},m=0;m<t.length-1;m+=2){var g=0;if(t[m]in h)g=h[t[m]];else{var y=parseInt(t[m],10);g=2*y+1,y>4&&(g+=2)}c+=g}return String.fromCharCode(65+c%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var r="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,s.default)(r,"YYYY/MM/DD"))return!1}for(var o=1101,i=[1,6,3,7,9,10,5,8,4,2],a=0;a<e.length-1;a++)o-=parseInt(e[a],10)*i[a];return parseInt(e[10],10)===o%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var n=parseInt(t.join("").slice(0,5),10);if(n>32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map(function(e){return parseInt(e,10)}),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,r=0;r<t.length;r++)n+=parseInt(e[r],10)*t[r];return 10!=(n%=11)&&n===parseInt(e[9],10)}var o=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>80?(o="18".concat(o),i-=80):i>60?(o="22".concat(o),i-=60):i>40?(o="21".concat(o),i-=40):i>20?(o="20".concat(o),i-=20):o="19".concat(o),i<10&&(i="0".concat(i));var a="".concat(o,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,s.default)(a,"YYYY/MM/DD"))return!1;for(var l=0,u=1,c=0;c<e.length-1;c++)l+=parseInt(e[c],10)*u%10,(u+=2)>10?u=1:5===u&&(u+=2);return(l=10-l%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var r=1;r<=9;r++)t+=parseInt(e.substring(r-1,r),10)*(11-r);if(10==(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);return 10==(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var i=e.length-2,s=e.substring(0,i),a=e.substring(i),l=0,u=i-7,c=i;c>=1;c--)l+=s.charAt(i-c)*u,(u-=1)<2&&(u=9);var p=l%11<2?0:11-l%11;if(p!==parseInt(a.charAt(0),10))return!1;i+=1,s=e.substring(0,i),l=0,u=i-7;for(var d=i;d>=1;d--)l+=s.charAt(i-d)*u,(u-=1)<2&&(u=9);return(p=l%11<2?0:11-l%11)===parseInt(a.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map(function(e){return parseInt(e,10)}),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,s.default)(n,"YY/MM/DD"))return!1}else if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map(function(e){return parseInt(e,10)}),o=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,a=0;a<o.length;a++)i+=r[a]*o[a];return i%11==10?1===r[12]:r[12]===i%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,s.default)(r,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map(function(e){return parseInt(e,10)}),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",r=t.slice(2,4),o=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&o<60){var a=(new Date).getFullYear().toString(),l=parseInt(a.slice(0,2),10);if(a=parseInt(a,10),"-"===e[6])n=parseInt("".concat(l).concat(n),10)>a?"".concat(l-1).concat(n):"".concat(l).concat(n);else if(n="".concat(l-1).concat(n),a-parseInt(n,10)<100)return!1}o>60&&(o-=60),o<10&&(o="0".concat(o));var u="".concat(n,"/").concat(r,"/").concat(o);if(8===u.length){if(!(0,s.default)(u,"YY/MM/DD"))return!1}else if(!(0,s.default)(u,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))},"uk-UA":function(e){for(var t=e.split("").map(function(e){return parseInt(e,10)}),n=[-1,5,7,9,4,6,10,5,7],r=0,o=0;o<n.length;o++)r+=t[o]*n[o];return r%11==10?0===t[9]:t[9]===r%11}};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var h=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,m={"de-AT":h,"de-DE":/[\/\\]/g,"fr-BE":h};m["nl-BE"]=m["fr-BE"],e.exports=t.default,e.exports.default=t.default},31531(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,o.default)(t,i),"string"==typeof e&&s[t.hourFormat][t.mode].test(e)};var r,o=(r=n(56853))&&r.__esModule?r:{default:r},i={hourFormat:"hour24",mode:"default"},s={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/,withOptionalSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9]))?$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/,withOptionalSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9])(?::([0-5][0-9]))? (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},86578(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},59417(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,l.default)(t,p)).validate_length&&e.length>t.max_allowed_length)return!1;if(!t.allow_fragments&&(0,i.default)(e,"#"))return!1;if(!t.allow_query_components&&((0,i.default)(e,"?")||(0,i.default)(e,"&")))return!1;var n,u,f,h,m,g,y,v;y=e.split("#"),e=y.shift(),y=e.split("?");var b,w=(e=y.shift()).match(/^([a-z][a-z0-9+\-.]*):/i),C=!1,_=function(r){return C=!0,n=r.toLowerCase(),(!t.require_valid_protocol||-1!==t.protocols.indexOf(n))&&e.substring(w[0].length)};if(w){var x=w[1],E=e.substring(w[0].length);if("//"===E.slice(0,2)){if(!1===(e=_(x)))return!1}else{var S=E.indexOf("/"),P=-1===S?E:E.substring(0,S),O=P.indexOf("@");if(-1!==O){var T=P.substring(0,O),k=/^[a-zA-Z0-9\-_.%:]*$/.test(T),A=/%[0-9a-fA-F]{2}/.test(T);if(k&&!A){if(t.require_protocol)return!1}else if(!1===(e=_(x)))return!1}else if(/^[0-9]/.test(E)){if(t.require_protocol)return!1}else if(!1===(e=_(x)))return!1}}else if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!C&&!t.allow_protocol_relative_urls)return!1;e=e.slice(2)}if(""===e)return!1;if(y=e.split("/"),""===(e=y.shift())&&!t.require_host)return!0;if((y=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===y[0])return!1;if((u=y.shift()).indexOf(":")>=0&&u.split(":").length>2)return!1;var I=function(e){if(Array.isArray(e))return e}(b=u.split(":"))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,s=[],a=!0,l=!1;try{for(o=(t=t.call(e)).next,!2;!(a=(n=o.call(t)).done)&&(s.push(n.value),2!==s.length);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return s}}(b)||function(e){if(e){if("string"==typeof e)return c(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,2):void 0}}(b)||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.")}(),R=I[0],M=I[1];if(""===R&&""===M)return!1}g=null,v=null;var D=(h=y.join("@")).match(d);if(D?(f="",v=D[1],g=D[2]||null):(f=(y=h.split(":")).shift(),y.length&&(g=y.join(":"))),null!==g&&g.length>0){if(m=parseInt(g,10),!/^[0-9]+$/.test(g)||m<=0||m>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?(0,o.default)(f,t.host_whitelist):""===f&&!t.require_host||!!((0,a.default)(f)||(0,s.default)(f,t)||v&&(0,a.default)(v,6))&&(f=f||v,!t.host_blacklist||!(0,o.default)(f,t.host_blacklist))};var r=u(n(8946)),o=u(n(83683)),i=u(n(80257)),s=u(n(87401)),a=u(n(13179)),l=u(n(56853));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},d=/^\[([^\]]+)\](?::([0-9]+))?$/;e.exports=t.default,e.exports.default=t.default},49234(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),null==t&&(t="all"),t in i&&i[t].test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,6:/^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,8:/^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,nil:/^00000000-0000-0000-0000-000000000000$/i,max:/^ffffffff-ffff-ffff-ffff-ffffffffffff$/i,loose:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,all:/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i};e.exports=t.default,e.exports.default=t.default},45080(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toUpperCase()};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},62619(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(0,i.default)(t),t in a)return a[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var o,i=(o=n(8946))&&o.__esModule?o:{default:o},s=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,i={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return i;if(n=t){if(n.has(e))return n.get(e);n.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(o.get||o.set)?n(i,s,o):i[s]=e[s]);return i}(e)}(n(67968)),a=t.vatMatchers={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)([A-Z0-9]{2}\d{9})$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],r=11-s.reverseMultiplyAndSum(n.split("").slice(0,8).map(function(e){return parseInt(e,10)}),9)%11;return r>9?0===parseInt(n[8],10):r===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){if(!e.match(/^(AU)?(\d{11})$/))return!1;var t=[10,1,3,5,7,9,11,13,15,17,19];e=e.replace(/^AU/,"");for(var n=(parseInt(e.slice(0,1),10)-1).toString()+e.slice(1),r=0,o=0;o<11;o++)r+=t[o]*n.charAt(o);return 0!==r&&r%89==0},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{12}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){var t,n,r;return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&(n=(t=e.match(/\d/g).map(function(e){return+e})).pop(),r=[5,4,3,2,7,6,5,4],n===(11-t.reduce(function(e,t,n){return e+t*r[n]},0)%11)%11)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}}},54092(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.fullWidth.test(e)&&s.halfWidth.test(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r},i=n(2079),s=n(26519);e.exports=t.default,e.exports.default=t.default},3600(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},72512(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},12913(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return(0,o.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n)),!!e.match(t)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},76323(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,o.default)(t,i);var n=e.split("@"),r=n.pop(),p=[n.join("@"),r];if(p[1]=p[1].toLowerCase(),"gmail.com"===p[1]||"googlemail.com"===p[1]){if(t.gmail_remove_subaddress&&(p[0]=p[0].split("+")[0]),t.gmail_remove_dots&&(p[0]=p[0].replace(/\.+/g,c)),!p[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(p[0]=p[0].toLowerCase()),p[1]=t.gmail_convert_googlemaildotcom?"gmail.com":p[1]}else if(s.indexOf(p[1])>=0){if(t.icloud_remove_subaddress&&(p[0]=p[0].split("+")[0]),!p[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(p[0]=p[0].toLowerCase())}else if(a.indexOf(p[1])>=0){if(t.outlookdotcom_remove_subaddress&&(p[0]=p[0].split("+")[0]),!p[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(p[0]=p[0].toLowerCase())}else if(l.indexOf(p[1])>=0){if(t.yahoo_remove_subaddress){var d=p[0].split("-");p[0]=d.length>1?d.slice(0,-1).join("-"):d[0]}if(!p[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(p[0]=p[0].toLowerCase())}else u.indexOf(p[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(p[0]=p[0].toLowerCase()),p[1]=t.yandex_convert_yandexru?"yandex.ru":p[1]):t.all_lowercase&&(p[0]=p[0].toLowerCase());return p.join("@")};var r,o=(r=n(56853))&&r.__esModule?r:{default:r},i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,yandex_convert_yandexru:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},s=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],l=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],u=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function c(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},45634(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}for(var r=e.length-1;/\s/.test(e.charAt(r));)r-=1;return e.slice(0,r+1)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},25990(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,o.default)(e,n)};var r=i(n(8946)),o=i(n(18155));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},27623(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),t?"1"===e||/^true$/i.test(e):"0"!==e&&!/^false$/i.test(e)&&""!==e};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},53871(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},35169(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)?parseFloat(e):NaN};var r,o=(r=n(57798))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},71566(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),parseInt(e,t||10)};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},39722(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)((0,o.default)(e,t),t)};var r=i(n(45634)),o=i(n(72512));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},65846(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},67968(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,n=0;n<e.length-1;n++)t=(parseInt(e[n],10)+t)%10==0?9:(parseInt(e[n],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},t.luhnCheck=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){if(n){var o=2*parseInt(e[r],10);t+=o>9?o.toString().split("").map(function(e){return parseInt(e,10)}).reduce(function(e,t){return e+t},0):o}else t+=parseInt(e[r],10);n=!n}return t%10==0},t.reverseMultiplyAndSum=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*(t-r);return n},t.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.split("").reverse().join(""),o=0,i=0;i<r.length;i++)o=t[o][n[i%8][parseInt(r[i],10)]];return 0===o}},8946(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)throw new TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw new TypeError("Expected a string but received a ".concat(e.constructor.name))},e.exports=t.default,e.exports.default=t.default},83683(e,t){"use strict";function n(e){return"[object RegExp]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var r=0;r<t.length;r++){var o=t[r];if(e===o||n(o)&&o.test(e))return!0}return!1},e.exports=t.default,e.exports.default=t.default},68887(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return e.some(function(e){return t===e})},e.exports=t.default,e.exports.default=t.default},80257(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return-1!==e.indexOf(t)},e.exports=t.default,e.exports.default=t.default},56853(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},93651(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default},68616(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null==e},e.exports=t.default,e.exports.default=t.default},35565(e,t){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"===n(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e=""),String(e)},e.exports=t.default,e.exports.default=t.default},44861(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r,o=(r=n(8946))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},79458(e){"use strict";function t(e){return function(t){var n=t&&t.line,r=t&&t.column;return isNaN(n)||isNaN(r)||!(n-1 in e)?-1:(e[n-2]||0)+r-1||0}}e.exports=function(e){var n,r=function(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:(n=r,function(e){var t=-1,r=n.length;if(e<0)return{};for(;++t<r;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{}}),toOffset:t(r)}}},49083(e,t,n){"use strict";var r=n(82244);function o(){}e.exports=s,o.prototype=Error.prototype,s.prototype=new o;var i=s.prototype;function s(e,t,n){var o,i,s;"string"==typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];return"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}(n),i=r(t)||"1:1",s={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(s=t,t=t.start):s.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=s,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},72624(e,t,n){"use strict";var r=n(85409),o=n(31351),i=n(45587),s=n(24982);e.exports=c;var a={}.hasOwnProperty,l=c.prototype;l.toString=function(e){var t=this.contents||"";return s(t)?t.toString(e):String(t)};var u=["history","path","basename","stem","extname","dirname"];function c(e){var t,n,o;if(e){if("string"==typeof e||s(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof c))return new c(e);for(this.data={},this.messages=[],this.history=[],this.cwd=r.cwd(),n=-1,o=u.length;++n<o;)t=u[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)-1===u.indexOf(t)&&(this[t]=e[t])}function p(e,t){if(-1!==e.indexOf(o.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+o.sep+"`")}function d(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(l,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){d(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(l,"dirname",{get:function(){return"string"==typeof this.path?o.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=o.join(e||"",this.basename)}}),Object.defineProperty(l,"basename",{get:function(){return"string"==typeof this.path?o.basename(this.path):void 0},set:function(e){d(e,"basename"),p(e,"basename"),this.path=o.join(this.dirname||"",e)}}),Object.defineProperty(l,"extname",{get:function(){return"string"==typeof this.path?o.extname(this.path):void 0},set:function(e){var t=e||"";if(p(t,"extname"),f(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,t)}}),Object.defineProperty(l,"stem",{get:function(){return"string"==typeof this.path?o.basename(this.path,this.extname):void 0},set:function(e){d(e,"stem"),p(e,"stem"),this.path=o.join(this.dirname||"",e+(this.extname||""))}})},62615(e,t,n){"use strict";var r=n(49083),o=n(72624);e.exports=o;var i=o.prototype;function s(e,t,n){var o=this.path,i=new r(e,t,n);return o&&(i.name=o+":"+i.name,i.file=o),i.fatal=!1,this.messages.push(i),i}i.message=s,i.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},i.warn=s},49047(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:()=>S,Headers:()=>h,Request:()=>C,Response:()=>x,fetch:()=>P});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,l="ArrayBuffer"in r;if(l)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&s&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(s)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),o=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[p(e)]},h.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},h.prototype.set=function(e,t){this.map[p(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,t){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,i=(t=t||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(o=(n=t.method||this.method||"GET").toUpperCase(),w.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},b.call(C.prototype),b.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];x.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function P(e,t){return new Promise(function(n,o){var i=new C(e,t);if(i.signal&&i.signal.aborted)return o(new S("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}if(a.onload=function(){var e,t,r={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===i.url.indexOf("file://")&&(a.status<200||a.status>599)?r.status=200:r.status=a.status,r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout(function(){n(new x(o,r))},0)},a.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){o(new S("Aborted","AbortError"))},0)},a.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":l&&(a.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof h||r.Headers&&t.headers instanceof r.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(e){c.push(p(e)),a.setRequestHeader(e,d(t.headers[e]))}),i.headers.forEach(function(e,t){-1===c.indexOf(t)&&a.setRequestHeader(t,e)})}else i.headers.forEach(function(e,t){a.setRequestHeader(t,e)});i.signal&&(i.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",u)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})}P.polyfill=!0,r.fetch||(r.fetch=P,r.Headers=h,r.Request=C,r.Response=x)},36496(e,t,n){"use strict";var r=n(87196),o=n(64379),i=n(17695),s=n(98801),a=n(25667),l=n(14252),u=s("Object.prototype.toString"),c=n(77185)(),p="undefined"==typeof globalThis?n.g:globalThis,d=o(),f=s("String.prototype.slice"),h=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(d,c&&a&&l?function(e){var t=new p[e];if(Symbol.toStringTag in t&&l){var n=l(t),r=a(n,Symbol.toStringTag);if(!r&&n){var o=l(n);r=a(o,Symbol.toStringTag)}if(r&&r.get){var s=i(r.get);m["$"+e]=s}}}:function(e){var t=new p[e],n=t.slice||t.set;if(n){var r=i(n);m["$"+e]=r}}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=f(u(e),8,-1);return h(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch(e){}}),t}(e)}return a?function(e){var t=!1;return r(m,function(n,r){if(!t)try{"$"+n(e)===r&&(t=f(r,1))}catch(e){}}),t}(e):null}},24265(e){var t=Object.prototype.toString;e.exports=function(e){return"[object String]"===t.call(e)}},45918(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},63018(e,t){"use strict";t._=function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}},98428(e,t){"use strict";t._=function(e,t){return t.get?t.get.call(e):t.value}},78208(e,t){"use strict";t._=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}},57583(e,t){"use strict";t._=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}},36994(e,t,n){"use strict";var r=n(98428),o=n(57583);t._=function(e,t){var n=o._(e,t,"get");return r._(e,n)}},71344(e,t,n){"use strict";var r=n(63018);t._=function(e,t,n){r._(e,t),t.set(e,n)}},70246(e,t,n){"use strict";var r=n(78208),o=n(57583);t._=function(e,t,n){var i=o._(e,t,"set");return r._(e,i,n),n}},8503(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(22155),o=n(70316),i=n(77968);function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=s(r),l="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function u({useFlushSync:e=!0,...t}){const n=a.useReducer(()=>({}),{})[1],r={...t,onChange:(r,i)=>{var s;e&&i?o.flushSync(n):n(),null==(s=t.onChange)||s.call(t,r,i)}},[s]=a.useState(()=>new i.Virtualizer(r));return s.setOptions(r),l(()=>s._didMount(),[]),l(()=>s._willUpdate()),s}t.useVirtualizer=function(e){return u({observeElementRect:i.observeElementRect,observeElementOffset:i.observeElementOffset,scrollToFn:i.elementScroll,...e})},t.useWindowVirtualizer=function(e){return u({getScrollElement:()=>"undefined"!=typeof document?window:null,observeElementRect:i.observeWindowRect,observeElementOffset:i.observeWindowOffset,scrollToFn:i.windowScroll,initialOffset:()=>"undefined"!=typeof document?window.scrollY:0,...e})},Object.keys(i).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:()=>i[e]})})},77968(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7787),o=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},i=e=>e,s=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},a={passive:!0},l="undefined"==typeof window||"onscrollend"in window,u=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},c=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0};t.approxEqual=r.approxEqual,t.debounce=r.debounce,t.memo=r.memo,t.notUndefined=r.notUndefined,t.Virtualizer=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:i,rangeExtractor:s,onChange:()=>{},measureElement:u,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=r.memo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=r.memo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,o,i)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i}),{key:!1}),this.getMeasurements=r.memo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const a=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const l=this.measurementsCache.slice(0,a),u=new Array(i).fill(void 0);for(let e=0;e<a;e++){const t=l[e];t&&(u[t.lane]=e)}for(let o=a;o<e;o++){const e=r(o),i=this.laneAssignments.get(o);let a,c;if(void 0!==i&&this.options.lanes>1){a=i;const e=u[a],r=void 0!==e?l[e]:void 0;c=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?l[o-1]:this.getFurthestMeasurement(l,o);c=e?e.end+this.options.gap:t+n,a=e?e.lane:o%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(o,a)}const p=s.get(e),d="number"==typeof p?p:this.options.estimateSize(o),f=c+d;l[o]={index:o,start:c,size:d,end:f,key:e,lane:a},u[a]=o}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=r.memo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=c(0,o,t=>e[t].start,n),s=i;if(1===r)for(;s<o&&e[s].end<n+t;)s++;else if(r>1){const a=Array(r).fill(0);for(;s<o&&a.some(e=>e<n+t);){const t=e[s];a[t.lane]=t.end,s++}const l=Array(r).fill(n+t);for(;i>=0&&l.some(e=>e>=n);){const t=e[i];l[t.lane]=t.start,i--}i=Math.max(0,i-i%r),s=Math.min(o,s+(r-1-s%r))}return{startIndex:i,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=r.memo(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=r.memo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return r.notUndefined(t[c(0,t.length-1,e=>r.notUndefined(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let o=0;const i=t=>{if(!this.targetWindow)return;const o=this.getOffsetForIndex(e,t);if(!o)return void console.warn("Failed to get offset for index:",e);const[i,a]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{const t=()=>{if(this.currentScrollToIndex!==e)return;const t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?r.approxEqual(n[0],t)||s(a):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},s=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(o++,o<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}},t.defaultKeyExtractor=i,t.defaultRangeExtractor=s,t.elementScroll=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const s=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:n})},t.measureElement=u,t.observeElementOffset=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let i=0;const s=e.options.useScrollendEvent&&l?()=>{}:r.debounce(o,()=>{t(i,!1)},e.options.isScrollingResetDelay),u=r=>()=>{const{horizontal:o,isRtl:a}=e.options;i=o?n.scrollLeft*(a?-1:1):n.scrollTop,s(),t(i,r)},c=u(!0),p=u(!1);n.addEventListener("scroll",c,a);const d=e.options.useScrollendEvent&&l;return d&&n.addEventListener("scrollend",p,a),()=>{n.removeEventListener("scroll",c),d&&n.removeEventListener("scrollend",p)}},t.observeElementRect=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(o(n)),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(o(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},t.observeWindowOffset=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let i=0;const s=e.options.useScrollendEvent&&l?()=>{}:r.debounce(o,()=>{t(i,!1)},e.options.isScrollingResetDelay),u=r=>()=>{i=n[e.options.horizontal?"scrollX":"scrollY"],s(),t(i,r)},c=u(!0),p=u(!1);n.addEventListener("scroll",c,a);const d=e.options.useScrollendEvent&&l;return d&&n.addEventListener("scrollend",p,a),()=>{n.removeEventListener("scroll",c),d&&n.removeEventListener("scrollend",p)}},t.observeWindowRect=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=()=>{t({width:n.innerWidth,height:n.innerHeight})};return r(),n.addEventListener("resize",r,a),()=>{n.removeEventListener("resize",r)}},t.windowScroll=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const s=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:n})}},7787(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.approxEqual=(e,t)=>Math.abs(e-t)<1.01,t.debounce=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},t.memo=function(e,t,n){let r,o=n.initialDeps??[],i=!0;function s(){var s,a,l;let u;n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(u=Date.now());const c=e();if(c.length===o.length&&!c.some((e,t)=>o[t]!==e))return r;let p;if(o=c,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(p=Date.now()),r=t(...c),n.key&&(null==(l=n.debug)?void 0:l.call(n))){const e=Math.round(100*(Date.now()-u))/100,t=Math.round(100*(Date.now()-p))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r}return s.updateDeps=e=>{o=e},s},t.notUndefined=function(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}},74765(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(6613),o=n(3627),i=n(26040);const s=100;function a(e,t){const n=(0,r.KU)(),a=(0,r.rm)();if(!n)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:u=s}=n.getOptions();if(u<=0)return;const c={timestamp:(0,i.lu)(),...e},p=l?(0,o.pq)(()=>l(c,t)):c;null!==p&&(n.emit&&n.emit("beforeAddBreadcrumb",p,t),a.addBreadcrumb(p,u))}},79369(e,t,n){"use strict";n.d(t,{BY:()=>a,EU:()=>i,Se:()=>s});const r="9.47.1";var o=n(90253);function i(){return s(o.O),o.O}function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r,t[r]=t[r]||{}}function a(e,t,n=o.O){const i=n.__SENTRY__=n.__SENTRY__||{},s=i[r]=i[r]||{};return s[e]||(s[e]=t())}},6613(e,t,n){"use strict";n.d(t,{KU:()=>P,o5:()=>E,rm:()=>S});var r=n(79369),o=n(59549),i=n(90253);function s(e=function(){const e=i.O;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}var a=n(26040);var l=n(3627);const u=Object.prototype.toString;function c(e){return function(e,t){return u.call(e)===`[object ${t}]`}(e,"Object")}function p(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=p(r[e],t[e],n-1));return r}function d(){return s()}const f="_sentrySpan";function h(e,t){t?function(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{o.T&&l.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}(e,f,t):delete e[f]}function m(e){return e[f]}function g(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}class y{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:d(),sampleRand:Math.random()}}clone(){const e=new y;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,h(e,m(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,a.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:s()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof y?t.getScopeData():c(t)?e:void 0,{tags:r,extra:o,user:i,contexts:s,level:a,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,h(this,void 0),this._attachments=[],this.setPropagationContext({traceId:d(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,a.lu)(),...e,message:e.message?g(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:m(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=p(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||s();if(!this._client)return o.T&&l.Yz.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n?.event_id||s();if(!this._client)return o.T&&l.Yz.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t?.event_id||s();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(o.T&&l.Yz.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class v{constructor(e,t){let n,r;n=e||new y,r=t||new y,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return r=n,Boolean(r?.then&&"function"==typeof r.then)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n);var r}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function b(){const e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new v((0,r.BY)("defaultCurrentScope",()=>new y),(0,r.BY)("defaultIsolationScope",()=>new y))}function w(e){return b().withScope(e)}function C(e,t){const n=b();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function _(e){return b().withScope(()=>e(b().getIsolationScope()))}function x(e){const t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:_,withScope:w,withSetScope:C,withSetIsolationScope:(e,t)=>_(t),getCurrentScope:()=>b().getScope(),getIsolationScope:()=>b().getIsolationScope()}}function E(){return x((0,r.EU)()).getCurrentScope()}function S(){return x((0,r.EU)()).getIsolationScope()}function P(){return E().getClient()}},59549(e,t,n){"use strict";n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},3627(e,t,n){"use strict";n.d(t,{Yz:()=>p,pq:()=>a});var r=n(79369),o=n(59549),i=n(90253);const s={};function a(e){if(!("console"in i.O))return e();const t=i.O.console,n={},r=Object.keys(s);r.forEach(e=>{const r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function l(){return c().enabled}function u(e,...t){o.T&&l()&&a(()=>{i.O.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return o.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:l,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},26040(e,t,n){"use strict";n.d(t,{lu:()=>o,zf:()=>s});var r=n(90253);function o(){return Date.now()/1e3}let i;function s(){return(i??(i=function(){const{performance:e}=r.O;if(!e?.now||!e.timeOrigin)return o;const t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}},90253(e,t,n){"use strict";n.d(t,{O:()=>r});const r=globalThis},59434(e,t,n){"use strict";n.d(t,{Fu:()=>W,HF:()=>$,J8:()=>F,T5:()=>k,c4:()=>h,vH:()=>z});var r=n(22155),o=n(70316),i=n(67371);function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const l="NOT_LOADED",u="LOADED",c="AUTH_FAILURE";class p{static load(e,t){return a(this,void 0,void 0,function*(){var n,r;const o=e.libraries?e.libraries.split(","):[],i=this.serializeParams(e);this.listeners.push(t),(null===(r=null===(n=window.google)||void 0===n?void 0:n.maps)||void 0===r?void 0:r.importLibrary)?(this.serializedApiParams||(this.loadingStatus=u),this.notifyLoadingStatusListeners()):(this.serializedApiParams=i,this.initImportLibrary(e)),this.serializedApiParams&&this.serializedApiParams!==i&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const s=["maps",...o];yield Promise.all(s.map(e=>google.maps.importLibrary(e)))})}static serializeParams(e){return[e.v,e.key,e.language,e.region,e.authReferrerPolicy,e.solutionChannel].join("/")}static initImportLibrary(e){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary)return void console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");let t=null;const n=()=>t||(t=new Promise((t,n)=>{var r;const o=document.createElement("script"),i=new URLSearchParams;for(const[t,n]of Object.entries(e)){const e=t.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase());i.set(e,String(n))}i.set("loading","async"),i.set("callback","__googleMapsCallback__"),o.async=!0,o.src="https://maps.googleapis.com/maps/api/js?"+i.toString(),o.nonce=(null===(r=document.querySelector("script[nonce]"))||void 0===r?void 0:r.nonce)||"",o.onerror=()=>{this.loadingStatus="FAILED",this.notifyLoadingStatusListeners(),n(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=u,this.notifyLoadingStatusListeners(),t()},window.gm_authFailure=()=>{this.loadingStatus=c,this.notifyLoadingStatusListeners()},this.loadingStatus="LOADING",this.notifyLoadingStatusListeners(),document.head.append(o)}),t);google.maps.importLibrary=e=>n().then(()=>google.maps.importLibrary(e))}static notifyLoadingStatusListeners(){for(const e of this.listeners)e(this.loadingStatus)}}p.loadingStatus=l,p.listeners=[];const d=["gmp_visgl_reactgooglemaps_v1.7.1"],f=r.createContext(null),h=e=>{const{children:t}=e,n=s(e,["children"]),{mapInstances:o,addMapInstance:i,removeMapInstance:l,clearMapInstances:u}=function(){const[e,t]=(0,r.useState)({});return{mapInstances:e,addMapInstance:(e,n="default")=>{t(t=>Object.assign(Object.assign({},t),{[n]:e}))},removeMapInstance:(e="default")=>{t(t=>{var n=e;return t[n],s(t,["symbol"==typeof n?n:n+""])})},clearMapInstances:()=>{t({})}}}(),{status:c,loadedLibraries:h,importLibrary:m}=function(e){const{onLoad:t,onError:n,apiKey:o,version:i,libraries:l=[]}=e,u=s(e,["onLoad","onError","apiKey","version","libraries"]),[c,d]=(0,r.useState)(p.loadingStatus),[f,h]=(0,r.useReducer)((e,t)=>e[t.name]?e:Object.assign(Object.assign({},e),{[t.name]:t.value}),{}),m=(0,r.useMemo)(()=>null==l?void 0:l.join(","),[l]),g=(0,r.useMemo)(()=>JSON.stringify(Object.assign({apiKey:o,version:i},u)),[o,i,u]),y=(0,r.useCallback)(e=>a(this,void 0,void 0,function*(){var t;if(f[e])return f[e];if(!(null===(t=null===google||void 0===google?void 0:google.maps)||void 0===t?void 0:t.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const n=yield window.google.maps.importLibrary(e);return h({name:e,value:n}),n}),[f]);return(0,r.useEffect)(()=>{(()=>{a(this,void 0,void 0,function*(){try{const e=Object.assign({key:o},u);i&&(e.v=i),(null==m?void 0:m.length)>0&&(e.libraries=m),(void 0===e.channel||e.channel<0||e.channel>999)&&delete e.channel,void 0===e.solutionChannel?e.solutionChannel="GMP_visgl_rgmlibrary_v1_default":""===e.solutionChannel&&delete e.solutionChannel,yield p.load(e,e=>d(e));for(const e of["core","maps",...l])yield y(e);t&&t()}catch(e){n?n(e):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",e)}})})()},[o,m,g]),{status:c,loadedLibraries:f,importLibrary:y}}(n),g=function(e){return(0,r.useMemo)(()=>e.disableUsageAttribution?null:d,[e.disableUsageAttribution])}(n),y=(0,r.useMemo)(()=>({mapInstances:o,addMapInstance:i,removeMapInstance:l,clearMapInstances:u,status:c,loadedLibraries:h,importLibrary:m,internalUsageAttributionIds:g}),[o,i,l,u,c,h,m,g]);return r.createElement(f.Provider,{value:y},t)};function m(e,t,n){var r;const o={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(y.includes(e)){const e=o,n=t.getCenter(),r=t.getZoom(),i=t.getHeading()||0,s=t.getTilt()||0,a=t.getBounds();return n&&a&&Number.isFinite(r)||console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),e.detail={center:(null==n?void 0:n.toJSON())||{lat:0,lng:0},zoom:r||0,heading:i,tilt:s,bounds:(null==a?void 0:a.toJSON())||{north:90,east:180,south:-90,west:-180}},e}if(v.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const e=o;return e.domEvent=n.domEvent,e.stoppable=!0,e.stop=()=>n.stop(),e.detail={latLng:(null===(r=n.latLng)||void 0===r?void 0:r.toJSON())||null,placeId:n.placeId},e}return o}const g={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},y=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],v=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],b=Object.keys(g);function w(e,t){const n=function(e){const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e}),t.current}(e);return(0,r.useMemo)(()=>n&&t(n,e)?n:e,[e,n,t])}const C=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function _(){var e;return(null===(e=(0,r.useContext)(f))||void 0===e?void 0:e.status)||l}function x(e){return function(e){return!(!e||"object"!=typeof e)&&"lat"in e&&"lng"in e&&Number.isFinite(e.lat)&&Number.isFinite(e.lng)}(e)?e:e.toJSON()}const E=()=>r.createElement("div",{style:{position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"}},r.createElement("h2",null,"Error: AuthFailure"),r.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",r.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."));function S(){return _()===u}class P{static has(e){return this.entries[e]&&this.entries[e].length>0}static pop(e){return this.entries[e]&&this.entries[e].pop()||null}static push(e,t){this.entries[e]||(this.entries[e]=[]),this.entries[e].push(t)}}function O(e,t){const n=S(),[o,i]=(0,r.useState)(null),[a,l]=function(){const[e,t]=(0,r.useState)(null);return[e,(0,r.useCallback)(e=>t(e),[t])]}(),u=function(e){const t=function(){const[,e]=(0,r.useReducer)(e=>e+1,0);return e}(),n=(0,r.useRef)({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return(0,r.useEffect)(()=>{if(!e)return;const r=google.maps.event.addListener(e,"bounds_changed",()=>{!function(e,t){const n=e.getCenter(),r=e.getZoom(),o=e.getHeading()||0,i=e.getTilt()||0,s=e.getBounds();n&&s&&Number.isFinite(r)||console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(null==n?void 0:n.toJSON())||{lat:0,lng:0},zoom:r||0,heading:o,tilt:i})}(e,n),t()});return()=>r.remove()},[e,t]),n}(o),{id:c,defaultBounds:p,defaultCenter:d,defaultZoom:f,defaultHeading:h,defaultTilt:m,reuseMaps:g,renderingType:y,colorScheme:v}=e,b=s(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),w=void 0!==e.zoom||void 0!==e.defaultZoom,C=void 0!==e.center||void 0!==e.defaultCenter;p||w&&C||console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!b.center&&d&&(b.center=d),!b.zoom&&Number.isFinite(f)&&(b.zoom=f),!b.heading&&Number.isFinite(h)&&(b.heading=h),!b.tilt&&Number.isFinite(m)&&(b.tilt=m);const _=b.internalUsageAttributionIds;b.internalUsageAttributionIds=null==_?t.internalUsageAttributionIds:[...t.internalUsageAttributionIds||[],..._];for(const e of Object.keys(b))void 0===b[e]&&delete b[e];const x=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{if(!a||!n)return;const{addMapInstance:r,removeMapInstance:o}=t,{mapId:l}=e,d=`${l||"default"}:${y||"default"}:${v||"LIGHT"}`;let f,h;if(g&&P.has(d)?(h=P.pop(d),f=h.getDiv(),a.appendChild(f),h.setOptions(b),setTimeout(()=>h.setCenter(h.getCenter()),0)):(f=document.createElement("div"),f.style.height="100%",a.appendChild(f),h=new google.maps.Map(f,Object.assign(Object.assign(Object.assign({},b),y?{renderingType:y}:{}),v?{colorScheme:v}:{}))),i(h),r(h,c),p){const{padding:e}=p,t=s(p,["padding"]);h.fitBounds(t,e)}else w&&C||h.fitBounds({east:180,west:-180,south:-90,north:90});if(x.current){const{mapId:e,cameraState:t}=x.current;e!==l&&h.setOptions(t)}return()=>{x.current={mapId:l,cameraState:u.current},f.remove(),g?P.push(d,h):google.maps.event.clearInstanceListeners(h),i(null),o(c)}},[a,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,l,u]}P.entries={};const T=r.createContext(null),k=e=>{const{children:t,id:n,className:o,style:s}=e,a=(0,r.useContext)(f),l=_();if(!a)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[u,p,d]=O(e,a);!function(e,t,n){const o=n.center?x(n.center):null;let i=null,s=null;o&&Number.isFinite(o.lat)&&Number.isFinite(o.lng)&&(i=o.lat,s=o.lng);const a=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,u=Number.isFinite(n.tilt)?n.tilt:null;(0,r.useLayoutEffect)(()=>{if(!e)return;const n={};let r=!1;null===i||null===s||t.current.center.lat===i&&t.current.center.lng===s||(n.center={lat:i,lng:s},r=!0),null!==a&&t.current.zoom!==a&&(n.zoom=a,r=!0),null!==l&&t.current.heading!==l&&(n.heading=l,r=!0),null!==u&&t.current.tilt!==u&&(n.tilt=u,r=!0),r&&e.moveCamera(n)})}(u,d,e),function(e,t){for(const n of b){const o=t[n],i=g[n];(0,r.useEffect)(()=>{if(!e)return;if(!o)return;const t=google.maps.event.addListener(e,i,t=>{o(m(i,e,t))});return()=>t.remove()},[e,i,o])}}(u,e),function(e,t){const n={},o=Object.keys(t);for(const e of o)C.has(e)&&(n[e]=t[e]);(function(e,t,n){(0,r.useEffect)(e,[w(t,n)])})(()=>{e&&e.setOptions(n)},[n],i)}(u,e);const h=function(e,t){const{viewport:n,viewState:o}=t,i=!!n;return(0,r.useLayoutEffect)(()=>{if(!e||!o)return;const{latitude:t,longitude:n,bearing:r,pitch:i,zoom:s}=o;e.moveCamera({center:{lat:t,lng:n},heading:r,tilt:i,zoom:s+1})},[e,o]),i}(u,e),y=!!e.controlled;(0,r.useEffect)(()=>{if(u)return h&&u.setOptions({disableDefaultUI:!0}),(h||y)&&u.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{u.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[u,h,y,e.gestureHandling,e.keyboardShortcuts]);const v=e.center?x(e.center):null;let S=null,P=null;v&&Number.isFinite(v.lat)&&Number.isFinite(v.lng)&&(S=v.lat,P=v.lng);const k=(0,r.useMemo)(()=>{var t,n,r;return{center:{lat:null!=S?S:0,lng:null!=P?P:0},zoom:null!==(t=e.zoom)&&void 0!==t?t:0,heading:null!==(n=e.heading)&&void 0!==n?n:0,tilt:null!==(r=e.tilt)&&void 0!==r?r:0}},[S,P,e.zoom,e.heading,e.tilt]);(0,r.useLayoutEffect)(()=>{if(!u||!y)return;u.moveCamera(k);const e=u.addListener("bounds_changed",()=>{u.moveCamera(k)});return()=>e.remove()},[u,y,k]);const A=(0,r.useMemo)(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:h?-1:0},s),[s,h]),I=(0,r.useMemo)(()=>({map:u}),[u]);return l===c?r.createElement("div",{style:Object.assign({position:"relative"},o?{}:A),className:o},r.createElement(E,null)):r.createElement("div",Object.assign({ref:p,"data-testid":"map",style:o?void 0:A,className:o},n?{id:n}:{}),u?r.createElement(T.Provider,{value:I},t):null)};k.deckGLViewProps=!0;const A=new Set;const I=(e=null)=>{const t=(0,r.useContext)(f),{map:n}=(0,r.useContext)(T)||{};if(null===t)return function(...e){const t=JSON.stringify(e);A.has(t)||(A.add(t),console.error(...e))}("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:o}=t;return null!==e?o[e]||null:n||o.default||null};function R(e){const t=S(),n=(0,r.useContext)(f);return(0,r.useEffect)(()=>{t&&n&&n.importLibrary(e)},[t,n,e]),(null==n?void 0:n.loadedLibraries[e])||null}function M(e,t,n){(0,r.useEffect)(()=>{if(!e||!t||!n)return;const r=google.maps.event.addListener(e,t,n);return()=>r.remove()},[e,t,n])}function D(e,t,n){(0,r.useEffect)(()=>{e&&(e[t]=n)},[e,t,n])}function L(e,t,n){(0,r.useEffect)(()=>{if(e&&t&&n)return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}const N=new class{constructor(){this.renderedStyles=new Set,this.styleElement=null}getStyleElement(){return this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.setAttribute("data-rgm-anchor-styles",""),document.head.appendChild(this.styleElement)),this.styleElement}addAdvancedMarkerPointerEventsOverwrite(){this.renderedStyles.has("marker-pointer-events")||(this.getStyleElement().textContent+="\n      gmp-advanced-marker[data-origin='rgm'] {\n        pointer-events: none !important;\n      }\n    ",this.renderedStyles.add("marker-pointer-events"))}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}},V=r.createContext(null),j={TOP_LEFT:["0%","0%"],TOP_CENTER:["50%","0%"],TOP:["50%","0%"],TOP_RIGHT:["100%","0%"],LEFT_CENTER:["0%","50%"],LEFT_TOP:["0%","0%"],LEFT:["0%","50%"],LEFT_BOTTOM:["0%","100%"],RIGHT_TOP:["100%","0%"],RIGHT:["100%","50%"],RIGHT_CENTER:["100%","50%"],RIGHT_BOTTOM:["100%","100%"],BOTTOM_LEFT:["0%","100%"],BOTTOM_CENTER:["50%","100%"],BOTTOM:["50%","100%"],BOTTOM_RIGHT:["100%","100%"],CENTER:["50%","50%"]},F=(0,r.forwardRef)((e,t)=>{const{children:n,style:i,className:s,anchorPoint:a}=e,[l,u]=function(e){const[t,n]=(0,r.useState)(null),[o,i]=(0,r.useState)(null),s=I(),a=R("marker"),{children:l,onClick:u,className:c,onMouseEnter:p,onMouseLeave:d,onDrag:f,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:b,title:w,zIndex:C,anchorPoint:_,anchorLeft:x,anchorTop:E}=e,S=r.Children.count(l);return(0,r.useEffect)(()=>{if(!s||!a)return;const e=new a.AdvancedMarkerElement;e.map=s,n(e);let t=null;return S>0&&(t=document.createElement("div"),e.content=t,i(t)),()=>{e.map=null,null==t||t.remove(),n(null),i(null)}},[s,a,S]),(0,r.useEffect)(()=>{!(null==t?void 0:t.content)||!B(t.content)||S>0||(t.content.className=null!=c?c:"")},[t,c,S]),function(e,t,n,o,i){(0,r.useEffect)(()=>{if(!e||!i)return;const r=function(){var e;if(!(null===(e=null===google||void 0===google?void 0:google.maps)||void 0===e?void 0:e.version))return;const t=google.maps.version.split("."),n=parseInt(t[0],10),r=parseInt(t[1],10);return n>3||3===n&&r>=62}(),s=e.content;if(s&&B(s)){if(void 0!==n||void 0!==o)return r||console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`),e.anchorLeft=n,e.anchorTop=o,void(void 0!==t&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set."));if(void 0!==t){const[n,o]=null!=t?t:j.BOTTOM,i=`calc(-1 * ${n})`,a=`calc(-1 * ${o})`;r?(e.anchorLeft=i,e.anchorTop=a,s.style.transform=""):(s.style.transform=`translate(50%, 100%) translate(${i}, ${a})`,e.dataset.origin="rgm",N.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,i])}(t,_,x,E,S>0),D(t,"position",b),D(t,"title",null!=w?w:""),D(t,"zIndex",C),D(t,"collisionBehavior",g),(0,r.useEffect)(()=>{t&&(t.gmpDraggable=void 0!==v?v:!!(f||h||m))},[t,v,f,m,h]),(0,r.useEffect)(()=>{if(!t)return;const e=void 0!==y||Boolean(u)||Boolean(p)||Boolean(d);t.gmpClickable=e,e&&(null==t?void 0:t.content)&&B(t.content)&&(t.content.style.pointerEvents="all",u&&(t.content.style.cursor="pointer"))},[t,y,u,p,d]),M(t,"click",u),M(t,"drag",f),M(t,"dragstart",h),M(t,"dragend",m),L(null==t?void 0:t.element,"mouseenter",p),L(null==t?void 0:t.element,"mouseleave",d),[t,o]}(e),c=(0,r.useMemo)(()=>l?{marker:l}:null,[l]);return(0,r.useImperativeHandle)(t,()=>l,[l]),u?r.createElement(V.Provider,{value:c},(0,o.createPortal)(r.createElement(H,{anchorPoint:a,styles:i,className:s},n),u)):null});function z(){const[e,t]=(0,r.useState)(null);return[(0,r.useCallback)(e=>{t(e)},[]),e]}function B(e){return e.nodeType===Node.ELEMENT_NODE}F.displayName="AdvancedMarker";const H=({children:e,styles:t,className:n})=>r.createElement("div",{className:n,style:t},e);function U(e,t,n){const r=0===t.indexOf("--");var o;null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||(o=t,q.has(o))?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}const q=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"]),W=e=>{const{children:t,headerContent:n,style:a,className:l,pixelOffset:u,anchor:c,shouldFocus:p,onClose:d,onCloseClick:f}=e,h=s(e,["children","headerContent","style","className","pixelOffset","anchor","shouldFocus","onClose","onCloseClick"]),m=R("maps"),[g,y]=(0,r.useState)(null),v=(0,r.useRef)(null),b=(0,r.useRef)(null),C=w(h,i);(0,r.useEffect)(()=>{if(!m)return;v.current=document.createElement("div"),b.current=document.createElement("div");const e=C;u&&(e.pixelOffset=new google.maps.Size(u[0],u[1])),n&&(e.headerContent="string"==typeof n?n:b.current);const t=new google.maps.InfoWindow(C);return t.setContent(v.current),y(t),()=>{var e,n;t.setContent(null),null===(e=v.current)||void 0===e||e.remove(),null===(n=b.current)||void 0===n||n.remove(),v.current=null,b.current=null,y(null)}},[m]);const _=(0,r.useRef)(null);(0,r.useEffect)(()=>{g&&v.current&&(function(e,t,n){if(null!=t&&"object"!=typeof t)throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");const r=e.style;if(null!=n){for(const e in n)!n.hasOwnProperty(e)||null!=t&&t.hasOwnProperty(e)||(0===e.indexOf("--")?r.setProperty(e,""):"float"===e?r.cssFloat="":r[e]="");if(null!=t)for(const e in t){const o=t[e];t.hasOwnProperty(e)&&n[e]!==o&&U(r,e,o)}}else{if(null==t)return;for(const e in t)t.hasOwnProperty(e)&&U(r,e,t[e])}}(v.current,a||null,_.current),_.current=a||null,l!==v.current.className&&(v.current.className=l||""))},[g,l,a]),(0,r.useEffect)(()=>{if(!g)return;const e=C;e.pixelOffset=u?new google.maps.Size(u[0],u[1]):null,e.headerContent=n?"string"==typeof n?n:b.current:null,g.setOptions(C)},[C,u,n]),M(g,"close",d),M(g,"closeclick",f);const x=I();return(0,r.useEffect)(()=>{var e;if(!x||!g||null===c)return;const t=!!c,n={map:x};if(c&&(n.anchor=c,void 0!==c.content&&c.content instanceof Element)){const t=null==c?void 0:c.getBoundingClientRect();if(t&&"rgm"===c.dataset.origin){const n=null===(e=c.content.firstElementChild)||void 0===e?void 0:e.firstElementChild,r=null==n?void 0:n.getBoundingClientRect(),o=r.x-t.x+(r.width-t.width)/2,i=r.y-t.y,s=C;s.pixelOffset=new google.maps.Size(u?u[0]+o:o,u?u[1]+i:i),g.setOptions(s)}}return void 0!==p&&(n.shouldFocus=p),g.open(n),()=>{t&&g.set("anchor",null),g.close()}},[g,c,x,p,C,u]),r.createElement(r.Fragment,null,v.current&&(0,o.createPortal)(t,v.current),null!==b.current&&(0,o.createPortal)(n,b.current))},$={TOP_LEFT:1,TOP_CENTER:2,TOP:2,TOP_RIGHT:3,LEFT_CENTER:4,LEFT_TOP:5,LEFT:5,LEFT_BOTTOM:6,RIGHT_TOP:7,RIGHT:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM:11,BOTTOM_RIGHT:12,CENTER:13,BLOCK_START_INLINE_START:14,BLOCK_START_INLINE_CENTER:15,BLOCK_START_INLINE_END:16,INLINE_START_BLOCK_CENTER:17,INLINE_START_BLOCK_START:18,INLINE_START_BLOCK_END:19,INLINE_END_BLOCK_START:20,INLINE_END_BLOCK_CENTER:21,INLINE_END_BLOCK_END:22,BLOCK_END_INLINE_START:23,BLOCK_END_INLINE_CENTER:24,BLOCK_END_INLINE_END:25};(0,r.forwardRef)((e,t)=>{const n=function(e){const[t,n]=(0,r.useState)(null),o=I(),{onClick:i,onDrag:a,onDragStart:l,onDragEnd:u,onMouseOver:c,onMouseOut:p}=e,d=s(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:h}=d;return(0,r.useEffect)(()=>{if(!o)return void(void 0===o&&console.error("<Marker> has to be inside a Map component."));const e=new google.maps.Marker(d);return e.setMap(o),n(e),()=>{e.setMap(null),n(null)}},[o]),(0,r.useEffect)(()=>{if(!t)return;const e=t,n=google.maps.event;return i&&n.addListener(e,"click",i),a&&n.addListener(e,"drag",a),l&&n.addListener(e,"dragstart",l),u&&n.addListener(e,"dragend",u),c&&n.addListener(e,"mouseover",c),p&&n.addListener(e,"mouseout",p),t.setDraggable(Boolean(h)),()=>{n.clearInstanceListeners(e)}},[t,h,i,a,l,u,c,p]),(0,r.useEffect)(()=>{t&&d&&t.setOptions(d)},[t,d]),(0,r.useEffect)(()=>{!h&&f&&t&&t.setPosition(f)},[h,f,t]),t}(e);return(0,r.useImperativeHandle)(t,()=>n,[n]),r.createElement(r.Fragment,null)}).displayName="Marker"},23336(e,t,n){"use strict";function r(){}n.d(t,{C:()=>o});class o{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},78027(e,t,n){"use strict";function r(){}n.d(t,{l:()=>l});const o=r,i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},s="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class l{constructor(e=1/0,t=o){this.max=e,this.dispose=t,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new i(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},85833(e,t,n){"use strict";n.d(t,{DX:()=>u});let r=null;const o={};let i=1;function s(e){try{return e()}catch(e){}}const a="@wry/context:Slot",l=s(()=>globalThis)||s(()=>n.g)||Object.create(null),u=l[a]||Array[a]||function(e){try{Object.defineProperty(l,a,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=r;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===o)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=o),!1}getValue(){if(this.hasValue())return r.slots[this.id]}withValue(e,t,n,o){const i={__proto__:null,[this.id]:e},s=r;r={parent:s,slots:i};try{return t.apply(o,n)}finally{r=s}}static bind(e){const t=r;return function(){const n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}}static noContext(e,t,n){if(!r)return e.apply(n,t);{const o=r;try{return r=null,e.apply(n,t)}finally{r=o}}}}),{bind:c,noContext:p}=u},45063(e,t,n){"use strict";n.d(t,{A:()=>l,L:()=>a});const{toString:r,hasOwnProperty:o}=Object.prototype,i=Function.prototype.toString,s=new Map;function a(e,t){try{return u(e,t)}finally{s.clear()}}const l=a;function u(e,t){if(e===t)return!0;const n=r.call(e);if(n!==r.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(f(e,t))return!0;const n=c(e),r=c(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!o.call(t,n[e]))return!1;for(let r=0;r<i;++r){const o=n[r];if(!u(e[o],t[o]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(f(e,t))return!0;const r=e.entries(),o="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,i]=e.value;if(!t.has(n))return!1;if(o&&!u(i,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=i.call(e);return n===i.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,d)}}return!1}function c(e){return Object.keys(e).filter(p,e)}function p(e){return void 0!==this[e]}const d="{ [native code] }";function f(e,t){let n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},69796(e,t,n){"use strict";n.d(t,{b:()=>a});const r=()=>Object.create(null),{forEach:o,slice:i}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return o.call(e,e=>t=t.getChildTrie(e)),s.call(t,"data")?t.data:t.data=this.makeData(i.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),o=r&&r.get(n);o&&(t=o.removeArray(i.call(e,1)),o.data||o.weak||o.strong&&o.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new a(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},51918(e,t,n){"use strict";n.d(t,{Gb:()=>D,Jt:()=>f,hZ:()=>V,mN:()=>ve,xI:()=>M});var r=n(22155),o=e=>"checkbox"===e.type,i=e=>e instanceof Date,s=e=>null==e;const a=e=>"object"==typeof e;var l=e=>!s(e)&&!Array.isArray(e)&&a(e)&&!i(e),u=e=>l(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>[...e].some(e=>(e=>e.substring(0,e.search(/.\d/))||e)(t)===e),p=e=>e.filter(Boolean),d=e=>void 0===e,f=(e,t,n)=>{if(!t||!l(e))return n;const r=p(t.split(/[,[\].]+?/)).reduce((e,t)=>s(e)?e:e[t],e);return d(r)||r===e?d(e[t])?n:e[t]:r};const h="blur",m="onChange",g="onSubmit",y="all",v="pattern",b="required";var w=(e,t)=>{const n=Object.assign({},e);return delete n[t],n};const C=r.createContext(null),_=()=>r.useContext(C);var x=(e,t,n,r=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t[o]!==y&&(t[o]=!r||y),n&&(n[o]=!0),e[o]}});return o},E=e=>l(e)&&!Object.keys(e).length,S=(e,t,n)=>{const r=w(e,"name");return E(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find(e=>t[e]===(!n||y))},P=e=>Array.isArray(e)?e:[e],O=(e,t,n)=>n&&t?e===t:!e||!t||e===t||P(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function T(e){const t=r.useRef(e);t.current=e,r.useEffect(()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(n)},[e.disabled])}var k=e=>"string"==typeof e,A=(e,t,n,r)=>{const o=Array.isArray(e);return k(e)?(r&&t.watch.add(e),f(n,e)):o?e.map(e=>(r&&t.watch.add(e),f(n,e))):(r&&(t.watchAll=!0),n)},I=e=>"function"==typeof e,R=e=>{for(const t in e)if(I(e[t]))return!0;return!1};const M=e=>e.render(function(e){const t=_(),{name:n,control:o=t.control,shouldUnregister:i}=e,s=c(o._names.array,n),a=function(e){const t=_(),{control:n=t.control,name:o,defaultValue:i,disabled:s,exact:a}=e||{},u=r.useRef(o);u.current=o;const c=r.useCallback(e=>{if(O(u.current,e.name,a)){const t=A(u.current,n._names,e.values||n._formValues);f(d(u.current)||l(t)&&!R(t)?Object.assign({},t):Array.isArray(t)?[...t]:d(t)?i:t)}},[n,a,i]);T({disabled:s,subject:n._subjects.watch,callback:c});const[p,f]=r.useState(d(i)?n._getWatch(o):i);return r.useEffect(()=>{n._removeUnmounted()}),p}({control:o,name:n,defaultValue:f(o._formValues,n,f(o._defaultValues,n,e.defaultValue)),exact:!s}),p=function(e){const t=_(),{control:n=t.control,disabled:o,name:i,exact:s}=e||{},[a,l]=r.useState(n._formState),u=r.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=r.useRef(i),p=r.useRef(!0);return c.current=i,T({disabled:o,callback:r.useCallback(e=>p.current&&O(c.current,e.name,s)&&S(e,u.current)&&l(Object.assign(Object.assign({},n._formState),e)),[n,s]),subject:n._subjects.state}),r.useEffect(()=>()=>{p.current=!1},[]),x(a,n._proxyFormState,u.current,!1)}({control:o,name:n}),m=r.useRef(o.register(n,Object.assign(Object.assign({},e.rules),{value:a})));return r.useEffect(()=>{const e=(e,t)=>{const n=f(o._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=o._options.shouldUnregister||i;(s?t&&!o._stateFlags.action:t)?o.unregister(n):e(n,!1)}},[n,o,s,i]),{field:{name:n,value:a,onChange:r.useCallback(e=>{m.current.onChange({target:{value:u(e),name:n},type:"change"})},[n]),onBlur:r.useCallback(()=>{m.current.onBlur({target:{value:f(o._formValues,n),name:n},type:h})},[n,o]),ref:r.useCallback(e=>{const t=f(o._fields,n);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[n,o._fields])},formState:p,fieldState:o.getFieldState(n,p)}}(e));var D=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},L=e=>/^\w*$/.test(e),N=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,t,n){let r=-1;const o=L(t)?[t]:N(t),i=o.length,s=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==s){const n=e[t];i=l(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e}const j=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=f(e,r);if(n){const e=n._f,r=w(n,"_f");if(e&&t(e.name)){if(e.ref.focus&&d(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else l(r)&&j(r,t)}}};var F=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));function z(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(!n&&!l(e))return e;t=n?[]:{};for(const n in e){if(I(e[n])){t=e;break}t[n]=z(e[n])}}return t}function B(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var H=e=>s(e)||!a(e);function U(e,t){if(H(e)||H(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(i(n)&&i(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!U(n,e):n!==e)return!1}}return!0}var q=e=>({isOnSubmit:!e||e===g,isOnBlur:"onBlur"===e,isOnChange:e===m,isOnAll:e===y,isOnTouch:"onTouched"===e}),W=e=>"boolean"==typeof e,$=e=>"file"===e.type,Q=e=>e instanceof HTMLElement,G=e=>"select-multiple"===e.type,Y=e=>"radio"===e.type,Z="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document,K=e=>Q(e)&&e.isConnected;function X(e,t){const n=L(t)?[t]:N(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=d(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let i;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const s=n.slice(0,-(t+1)),a=s.length-1;for(t>0&&(i=e);++o<s.length;){const t=s[o];r=r?r[t]:e[t],a===o&&(l(r)&&E(r)||Array.isArray(r)&&!r.filter(e=>l(e)&&!E(e)||W(e)).length)&&(i?delete i[t]:delete e[t]),i=r}}return e}function J(e,t={}){const n=Array.isArray(e);if(l(e)||n)for(const n in e)Array.isArray(e[n])||l(e[n])&&!R(e[n])?(t[n]=Array.isArray(e[n])?[]:{},J(e[n],t[n])):s(e[n])||(t[n]=!0);return t}function ee(e,t,n){const r=Array.isArray(e);if(l(e)||r)for(const r in e)Array.isArray(e[r])||l(e[r])&&!R(e[r])?d(t)||H(n[r])?n[r]=Array.isArray(e[r])?J(e[r],[]):Object.assign({},J(e[r])):ee(e[r],s(t)?{}:t[r],n[r]):n[r]=!U(e[r],t[r]);return n}var te=(e,t)=>ee(e,t,J(t));const ne={value:!1,isValid:!1},re={value:!0,isValid:!0};var oe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!d(e[0].attributes.value)?d(e[0].value)||""===e[0].value?re:{value:e[0].value,isValid:!0}:re:ne}return ne},ie=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>d(e)?e:t?""===e?NaN:+e:n&&k(e)?new Date(e):r?r(e):e;const se={isValid:!1,value:null};var ae=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,se):se;function le(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return $(t)?t.files:Y(t)?ae(e.refs).value:G(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?oe(e.refs).value:ie(d(t.value)?e.ref.value:t.value,e)}var ue=e=>e instanceof RegExp,ce=e=>d(e)?void 0:ue(e)?e.source:l(e)?ue(e.value)?e.value.source:e.value:e;function pe(e,t,n){const r=f(e,n);if(r||L(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=f(t,r),s=f(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(s&&s.type)return{name:r,error:s};o.pop()}return{name:n}}var de=e=>k(e)||r.isValidElement(e);function fe(e,t,n="validate"){if(de(e)||Array.isArray(e)&&e.every(de)||W(e)&&!e)return{type:n,message:de(e)?e:"",ref:t}}var he=e=>l(e)&&!ue(e)?e:{value:e,message:""},me=async(e,t,n,r)=>{const{ref:i,refs:a,required:u,maxLength:c,minLength:p,min:d,max:f,pattern:h,validate:m,name:g,valueAsNumber:y,mount:w,disabled:C}=e._f;if(!w||C)return{};const _=a?a[0]:i,x=e=>{r&&_.reportValidity&&(_.setCustomValidity(W(e)?"":e||" "),_.reportValidity())},S={},P=Y(i),O=o(i),T=P||O,A=(y||$(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,R=D.bind(null,g,n,S),M=(e,t,n,r="maxLength",o="minLength")=>{const s=e?t:n;S[g]=Object.assign({type:e?r:o,message:s,ref:i},R(e?r:o,s))};if(u&&(!T&&(A||s(t))||W(t)&&!t||O&&!oe(a).isValid||P&&!ae(a).isValid)){const{value:e,message:t}=de(u)?{value:!!u,message:u}:he(u);if(e&&(S[g]=Object.assign({type:b,message:t,ref:_},R(b,t)),!n))return x(t),S}if(!(A||s(d)&&s(f))){let e,r;const o=he(f),a=he(d);if(isNaN(t)){const n=i.valueAsDate||new Date(t);k(o.value)&&(e=n>new Date(o.value)),k(a.value)&&(r=n<new Date(a.value))}else{const n=i.valueAsNumber||parseFloat(t);s(o.value)||(e=n>o.value),s(a.value)||(r=n<a.value)}if((e||r)&&(M(!!e,o.message,a.message,"max","min"),!n))return x(S[g].message),S}if((c||p)&&!A&&k(t)){const e=he(c),r=he(p),o=!s(e.value)&&t.length>e.value,i=!s(r.value)&&t.length<r.value;if((o||i)&&(M(o,e.message,r.message),!n))return x(S[g].message),S}if(h&&!A&&k(t)){const{value:e,message:r}=he(h);if(ue(e)&&!t.match(e)&&(S[g]=Object.assign({type:v,message:r,ref:i},R(v,r)),!n))return x(r),S}if(m)if(I(m)){const e=fe(await m(t),_);if(e&&(S[g]=Object.assign(Object.assign({},e),R("validate",e.message)),!n))return x(e.message),S}else if(l(m)){let e={};for(const r in m){if(!E(e)&&!n)break;const o=fe(await m[r](t),_,r);o&&(e=Object.assign(Object.assign({},o),R(r,o.message)),x(o.message),n&&(S[g]=e))}if(!E(e)&&(S[g]=Object.assign({ref:_},e),!n))return S}return x(!0),S};const ge={mode:g,reValidateMode:m,shouldFocusError:!0};function ye(e={}){let t,n=Object.assign(Object.assign({},ge),e),r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},a={},l=n.defaultValues||{},m=n.shouldUnregister?{}:z(l),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},b=0,C={};const _={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={watch:B(),array:B(),state:B()},S=q(n.mode),O=q(n.reValidateMode),T=n.criteriaMode===y,R=async e=>{let t=!1;return _.isValid&&(t=n.resolver?E((await N()).errors):await J(a,!0),e||t===r.isValid||(r.isValid=t,x.state.next({isValid:t}))),t},M=(e,t)=>(V(r.errors,e,t),x.state.next({errors:r.errors})),D=(e,t,n,r)=>{const o=f(a,e);if(o){const i=f(m,e,d(n)?f(l,e):n);d(i)||r&&r.defaultChecked||t?V(m,e,t?i:le(o._f)):re(e,i),g.mount&&R()}},L=(e,t,n,o,i)=>{let s=!1;const a={name:e},u=f(r.touchedFields,e);if(_.isDirty){const e=r.isDirty;r.isDirty=a.isDirty=ee(),s=e!==a.isDirty}if(_.dirtyFields&&(!n||o)){const n=f(r.dirtyFields,e);U(f(l,e),t)?X(r.dirtyFields,e):V(r.dirtyFields,e,!0),a.dirtyFields=r.dirtyFields,s=s||n!==f(r.dirtyFields,e)}return n&&!u&&(V(r.touchedFields,e,n),a.touchedFields=r.touchedFields,s=s||_.touchedFields&&u!==n),s&&i&&x.state.next(a),s?a:{}},N=async e=>n.resolver?await n.resolver(Object.assign({},m),n.context,((e,t,n,r)=>{const o={};for(const n of e){const e=f(t,n);e&&V(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||v.mount,a,n.criteriaMode,n.shouldUseNativeValidation)):{},J=async(e,t,o={valid:!0})=>{for(const i in e){const s=e[i];if(s){const e=s._f,i=w(s,"_f");if(e){const i=await me(s,f(m,e.name),T,n.shouldUseNativeValidation);if(i[e.name]&&(o.valid=!1,t))break;t||(i[e.name]?V(r.errors,e.name,i[e.name]):X(r.errors,e.name))}i&&await J(i,t,o)}}return o.valid},ee=(e,t)=>(e&&t&&V(m,e,t),!U(de(),l)),ne=(e,t,n)=>{const r=Object.assign({},g.mount?m:d(t)?l:k(e)?{[e]:t}:t);return A(e,v,r,n)},re=(e,t,n={})=>{const r=f(a,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&V(m,e,ie(t,n)),i=Z&&Q(n.ref)&&s(t)?"":t,G(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?o(n.ref)?n.refs.length>1?n.refs.forEach(e=>e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach(e=>e.checked=e.value===i):$(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||x.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&L(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ue(e)},oe=(e,t,n)=>{for(const r in t){const o=t[r],s=`${e}.${r}`,l=f(a,s);!v.array.has(e)&&H(o)&&(!l||l._f)||i(o)?re(s,o,n):oe(s,o,n)}},se=(e,t,n={})=>{const o=f(a,e),i=v.array.has(e),u=z(t);V(m,e,u),i?(x.array.next({name:e,values:m}),(_.isDirty||_.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=te(l,m),x.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:ee(e,u)}))):!o||o._f||s(u)?re(e,u,n):oe(e,u,n),F(e,v)&&x.state.next({}),x.watch.next({name:e})},ae=async o=>{const i=o.target;let s=i.name;const l=f(a,s);if(l){let p,d;const g=i.type?le(l._f):u(o),y=o.type===h||"focusout"===o.type,w=!((c=l._f).mount&&(c.required||c.min||c.max||c.maxLength||c.minLength||c.pattern||c.validate)||n.resolver||f(r.errors,s)||l._f.deps)||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(y,f(r.touchedFields,s),r.isSubmitted,O,S),P=F(s,v,y);V(m,s,g),y?l._f.onBlur&&l._f.onBlur(o):l._f.onChange&&l._f.onChange(o);const k=L(s,g,y,!1),A=!E(k)||P;if(!y&&x.watch.next({name:s,type:o.type}),w)return A&&x.state.next(Object.assign({name:s},P?{}:k));if(!y&&P&&x.state.next({}),C[s]=(C[s],1),x.state.next({isValidating:!0}),n.resolver){const{errors:e}=await N([s]),t=pe(r.errors,a,s),n=pe(e,a,t.name||s);p=n.error,s=n.name,d=E(e)}else p=(await me(l,f(m,s),T,n.shouldUseNativeValidation))[s],d=await R(!0);l._f.deps&&ue(l._f.deps),(async(n,o,i,s,a)=>{const l=f(r.errors,o),u=_.isValid&&r.isValid!==i;var c,p;if(e.delayError&&s?(t=t||(c=M,p=e.delayError,(...e)=>{clearTimeout(b),b=window.setTimeout(()=>c(...e),p)}),t(o,s)):(clearTimeout(b),s?V(r.errors,o,s):X(r.errors,o)),((s?!U(l,s):l)||!E(a)||u)&&!n){const e=Object.assign(Object.assign(Object.assign({},a),u?{isValid:i}:{}),{errors:r.errors,name:o});r=Object.assign(Object.assign({},r),e),x.state.next(e)}C[o]--,_.isValidating&&!C[o]&&(x.state.next({isValidating:!1}),C={})})(!1,s,d,p,k)}var c},ue=async(e,t={})=>{let o,i;const s=P(e);if(x.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await N();if(e)for(const n of e){const e=f(t,n);e?V(r.errors,n,e):X(r.errors,n)}else r.errors=t;return t})(d(e)?e:s);o=E(t),i=e?!s.some(e=>f(t,e)):o}else e?(i=(await Promise.all(s.map(async e=>{const t=f(a,e);return await J(t&&t._f?{[e]:t}:t)}))).every(Boolean),(i||r.isValid)&&R()):i=o=await J(a);return x.state.next(Object.assign(Object.assign(Object.assign({},!k(e)||_.isValid&&o!==r.isValid?{}:{name:e}),n.resolver?{isValid:o}:{}),{errors:r.errors,isValidating:!1})),t.shouldFocus&&!i&&j(a,e=>f(r.errors,e),e?s:v.mount),i},de=e=>{const t=Object.assign(Object.assign({},l),g.mount?m:{});return d(e)?t:k(e)?f(t,e):e.map(e=>f(t,e))},fe=(e,t)=>({invalid:!!f((t||r).errors,e),isDirty:!!f((t||r).dirtyFields,e),isTouched:!!f((t||r).touchedFields,e),error:f((t||r).errors,e)}),he=(e,t={})=>{for(const o of e?P(e):v.mount)v.mount.delete(o),v.array.delete(o),f(a,o)&&(t.keepValue||(X(a,o),X(m,o)),!t.keepError&&X(r.errors,o),!t.keepDirty&&X(r.dirtyFields,o),!t.keepTouched&&X(r.touchedFields,o),!n.shouldUnregister&&!t.keepDefaultValue&&X(l,o));x.watch.next({}),x.state.next(Object.assign(Object.assign({},r),t.keepDirty?{isDirty:ee()}:{})),!t.keepIsValid&&R()},ye=(e,t={})=>{let r=f(a,e);const i=W(t.disabled);return V(a,e,{_f:Object.assign(Object.assign(Object.assign({},r&&r._f?r._f:{ref:{name:e}}),{name:e,mount:!0}),t)}),v.mount.add(e),r?i&&V(m,e,t.disabled?void 0:f(m,e,le(r._f))):D(e,!0,t.value),Object.assign(Object.assign(Object.assign({},i?{disabled:t.disabled}:{}),n.shouldUseNativeValidation?{required:!!t.required,min:ce(t.min),max:ce(t.max),minLength:ce(t.minLength),maxLength:ce(t.maxLength),pattern:ce(t.pattern)}:{}),{name:e,onChange:ae,onBlur:ae,ref:i=>{if(i){ye(e,t),r=f(a,e);const n=d(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>Y(e)||o(e))(n),l=r._f.refs||[];if(s?l.find(e=>e===n):n===r._f.ref)return;V(a,e,{_f:Object.assign(Object.assign({},r._f),s?{refs:l.concat(n).filter(K),ref:{type:n.type,name:e}}:{ref:n})}),D(e,!1,void 0,n)}else r=f(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!c(v.array,e)||!g.action)&&v.unMount.add(e)}})};return{control:{register:ye,unregister:he,getFieldState:fe,_executeSchema:N,_getWatch:ne,_getDirty:ee,_updateValid:R,_removeUnmounted:()=>{for(const e of v.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every(e=>!K(e)):!K(t._f.ref))&&he(e)}v.unMount=new Set},_updateFieldArray:(e,t=[],n,o,i=!0,s=!0)=>{if(o&&n){if(g.action=!0,s&&Array.isArray(f(a,e))){const t=n(f(a,e),o.argA,o.argB);i&&V(a,e,t)}if(_.errors&&s&&Array.isArray(f(r.errors,e))){const t=n(f(r.errors,e),o.argA,o.argB);i&&V(r.errors,e,t),((e,t)=>{!p(f(e,t)).length&&X(e,t)})(r.errors,e)}if(_.touchedFields&&Array.isArray(f(r.touchedFields,e))){const t=n(f(r.touchedFields,e),o.argA,o.argB);i&&V(r.touchedFields,e,t)}_.dirtyFields&&(r.dirtyFields=te(l,m)),x.state.next({isDirty:ee(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else V(m,e,t)},_getFieldArray:t=>p(f(g.mount?m:l,t,e.shouldUnregister?f(l,t,[]):[])),_subjects:x,_proxyFormState:_,get _fields(){return a},get _formValues(){return m},get _stateFlags(){return g},set _stateFlags(e){g=e},get _defaultValues(){return l},get _names(){return v},set _names(e){v=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n=Object.assign(Object.assign({},n),e)}},trigger:ue,register:ye,handleSubmit:(e,t)=>async o=>{o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let i=!0,s=n.shouldUnregister?z(m):Object.assign({},m);x.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await N();r.errors=e,s=t}else await J(a);E(r.errors)&&Object.keys(r.errors).every(e=>f(s,e))?(x.state.next({errors:{},isSubmitting:!0}),await e(s,o)):(t&&await t(r.errors,o),n.shouldFocusError&&j(a,e=>f(r.errors,e),v.mount))}catch(e){throw i=!1,e}finally{r.isSubmitted=!0,x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(r.errors)&&i,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>I(e)?x.watch.subscribe({next:n=>e(ne(void 0,t),n)}):ne(e,t,!0),setValue:se,getValues:de,reset:(t,n={})=>{const o=t||l,i=z(o),s=t&&!E(t)?i:l;if(n.keepDefaultValues||(l=o),!n.keepValues){if(Z&&d(t))for(const e of v.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{Q(e)&&e.closest("form").reset();break}catch(e){}}}m=e.shouldUnregister?n.keepDefaultValues?z(l):{}:i,a={},x.array.next({values:s}),x.watch.next({values:s})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},g.mount=!_.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,x.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty?r.isDirty:!!n.keepDefaultValues&&!U(t,l),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty?r.dirtyFields:n.keepDefaultValues&&t?Object.entries(t).reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n!==f(l,t)}),{}):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{f(a,e)&&(d(t.defaultValue)?se(e,f(l,e)):(se(e,t.defaultValue),V(l,e,t.defaultValue)),t.keepTouched||X(r.touchedFields,e),t.keepDirty||(X(r.dirtyFields,e),r.isDirty=t.defaultValue?ee(e,f(l,e)):ee()),t.keepError||(X(r.errors,e),_.isValid&&R()),x.state.next(Object.assign({},r)))},clearErrors:e=>{e?P(e).forEach(e=>X(r.errors,e)):r.errors={},x.state.next({errors:r.errors})},unregister:he,setError:(e,t,n)=>{const o=(f(a,e,{_f:{}})._f||{}).ref;V(r.errors,e,Object.assign(Object.assign({},t),{ref:o})),x.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},setFocus:e=>{const t=f(a,e)._f;(t.ref.focus?t.ref:t.refs[0]).focus()},getFieldState:fe}}function ve(e={}){const t=r.useRef(),[n,o]=r.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current=Object.assign(Object.assign({},ye(e)),{formState:n});const i=t.current.control,s=r.useCallback(e=>{S(e,i._proxyFormState,!0)&&(i._formState=Object.assign(Object.assign({},i._formState),e),o(Object.assign({},i._formState)))},[i]);return T({subject:i._subjects.state,callback:s}),r.useEffect(()=>{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()}),t.current.formState=x(n,i._proxyFormState),t.current}},62778(e,t,n){"use strict";n.d(t,{sN:()=>tr});var r=n(65723),o=n(22155),i=n(70316);function s(e){return()=>e}function a(e){e()}function l(e,t){return n=>e(t(n))}function u(e,t){return()=>e(t)}function c(e){return void 0!==e}function p(){}function d(e,t){return t(e),e}function f(e,t){return t(e)}function h(...e){return e}function m(e,t){return e(1,t)}function g(e,t){e(0,t)}function y(e){e(2)}function v(e){return e(4)}function b(e,t){return m(e,function(e){return t=>e(0,t)}(t))}function w(e,t){const n=e(1,e=>{n(),t(e)});return n}function C(e){let t,n;return r=>o=>{t=o,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function _(e,t){return e===t}function x(e=_){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function E(e){return t=>n=>{e(n)&&t(n)}}function S(e){return t=>l(t,e)}function P(e){return t=>()=>{t(e)}}function O(e,...t){const n=function(...e){return t=>e.reduceRight(f,t)}(...t);return(t,r)=>{switch(t){case 2:return void y(e);case 1:return m(e,n(r))}}}function T(e,t){return n=>r=>{n(t=e(t,r))}}function k(e){return t=>n=>{e>0?e--:t(n)}}function A(e){let t,n=null;return r=>o=>{n=o,!t&&(t=setTimeout(()=>{t=void 0,r(n)},e))}}function I(...e){const t=new Array(e.length);let n=0,r=null;const o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{const s=Math.pow(2,i);m(e,e=>{const a=n;n|=s,t[i]=e,a!==o&&n===o&&r&&(r(),r=null)})}),e=>i=>{const s=()=>{e([i].concat(t))};n===o?s():r=s}}function R(e){let t=e;const n=D();return(e,r)=>{switch(e){case 0:t=r;break;case 1:r(t);break;case 4:return t}return n(e,r)}}function M(e,t){return d(R(t),t=>b(e,t))}function D(){const e=[];return(t,n)=>{switch(t){case 0:return void e.slice().forEach(e=>{e(n)});case 2:return void e.splice(0,e.length);case 1:return e.push(n),()=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)}}}}function L(e){return d(D(),t=>b(e,t))}function N(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:V(),singleton:n}}const V=()=>Symbol();function j(...e){const t=D(),n=new Array(e.length);let r=0;const o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{const s=Math.pow(2,i);m(e,e=>{n[i]=e,r|=s,r===o&&g(t,n)})}),function(e,i){switch(e){case 2:return void y(t);case 1:return r===o&&i(n),m(t,i)}}}function F(e,t=_){return O(e,x(t))}function z(...e){return function(t,n){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(a)}}(...e.map(e=>m(e,n)))}}}var B=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(B||{});const H={0:"debug",3:"error",1:"log",2:"warn"},U=N(()=>{const e=R(3);return{log:R((t,n,r=1)=>{var o;r>=(null!=(o=(typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL)?o:v(e))&&console[H[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function q(e,t,n){return W(e,t,n).callbackRef}function W(e,t,n){const r=o.useRef(null);let i=e=>{};const s=o.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(t=>{const r=()=>{const n=t[0].target;null!==n.offsetParent&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return i=e=>{e&&t?(null==s||s.observe(e),r.current=e):(r.current&&(null==s||s.unobserve(r.current)),r.current=null)},{callbackRef:i,ref:r}}function $(e,t,n,r,i,s,a,l,u){const c=o.useCallback(n=>{const o=function(e,t,n,r){const o=e.length;if(0===o)return null;const i=[];for(let s=0;s<o;s++){const o=e.item(s);if(void 0===o.dataset.index)continue;const a=parseInt(o.dataset.index),l=parseFloat(o.dataset.knownSize),u=t(o,n);if(0===u&&r("Zero-sized element, this should not happen",{child:o},B.ERROR),u===l)continue;const c=i[i.length-1];0===i.length||c.size!==u||c.endIndex!==a-1?i.push({endIndex:a,size:u,startIndex:a}):i[i.length-1].endIndex++}return i}(n.children,t,l?"offsetWidth":"offsetHeight",i);let u=n.parentElement;for(;!u.dataset.virtuosoScroller;)u=u.parentElement;const c="window"===u.lastElementChild.dataset.viewportType;let p;c&&(p=u.ownerDocument.defaultView);const d=a?l?a.scrollLeft:a.scrollTop:c?l?p.scrollX||p.document.documentElement.scrollLeft:p.scrollY||p.document.documentElement.scrollTop:l?u.scrollLeft:u.scrollTop,f=a?l?a.scrollWidth:a.scrollHeight:c?l?p.document.documentElement.scrollWidth:p.document.documentElement.scrollHeight:l?u.scrollWidth:u.scrollHeight,h=a?l?a.offsetWidth:a.offsetHeight:c?l?p.innerWidth:p.innerHeight:l?u.offsetWidth:u.offsetHeight;r({scrollHeight:f,scrollTop:Math.max(d,0),viewportHeight:h}),null==s||s(l?Q("column-gap",getComputedStyle(n).columnGap,i):Q("row-gap",getComputedStyle(n).rowGap,i)),null!==o&&e(o)},[e,t,i,s,a,r,l]);return W(c,n,u)}function Q(e,t,n){return"normal"!==t&&!(null!=t&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,B.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}function G(e,t,n){const r=o.useRef(null),i=o.useCallback(n=>{if(null==n||!n.offsetParent)return;const o=n.getBoundingClientRect(),i=o.width;let s,l;if(t){const e=t.getBoundingClientRect(),n=o.top-e.top;l=e.height-Math.max(0,n),s=n+t.scrollTop}else{const e=a.current.ownerDocument.defaultView;l=e.innerHeight-Math.max(0,o.top),s=o.top+e.scrollY}r.current={offsetTop:s,visibleHeight:l,visibleWidth:i},e(r.current)},[e,t]),{callbackRef:s,ref:a}=W(i,!0,n),l=o.useCallback(()=>{i(a.current)},[i,a]);return o.useEffect(()=>{var e;if(t){t.addEventListener("scroll",l);const e=new ResizeObserver(()=>{requestAnimationFrame(l)});return e.observe(t),()=>{t.removeEventListener("scroll",l),e.unobserve(t)}}{const t=null==(e=a.current)?void 0:e.ownerDocument.defaultView;return null==t||t.addEventListener("scroll",l),null==t||t.addEventListener("resize",l),()=>{null==t||t.removeEventListener("scroll",l),null==t||t.removeEventListener("resize",l)}}},[l,t,a]),s}const Y=N(()=>{const e=D(),t=D(),n=R(0),r=D(),o=R(0),i=D(),s=D(),a=R(0),l=R(0),u=R(0),c=R(0),p=D(),d=D(),f=R(!1),h=R(!1),m=R(!1);return b(O(e,S(({scrollTop:e})=>e)),t),b(O(e,S(({scrollHeight:e})=>e)),s),b(t,o),{deviation:n,fixedFooterHeight:u,fixedHeaderHeight:l,footerHeight:c,headerHeight:a,horizontalDirection:h,scrollBy:d,scrollContainerState:e,scrollHeight:s,scrollingInProgress:f,scrollTo:p,scrollTop:t,skipAnimationFrameInResizeObserver:m,smoothScrollTargetReached:r,statefulScrollTop:o,viewportHeight:i}},[],{singleton:!0}),Z={lvl:0};function K(e,t){const n=e.length;if(0===n)return[];let{index:r,value:o}=t(e[0]);const i=[];for(let s=1;s<n;s++){const{index:n,value:a}=t(e[s]);i.push({end:n-1,start:r,value:o}),r=n,o=a}return i.push({end:1/0,start:r,value:o}),i}function X(e){return e===Z}function J(e,t){if(!X(e))return t===e.k?e.v:t<e.k?J(e.l,t):J(e.r,t)}function ee(e,t,n="k"){if(X(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=ee(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return ee(e.l,t,n)}function te(e,t,n){return X(e)?de(t,n,1):t===e.k?le(e,{k:t,v:n}):t<e.k?fe(le(e,{l:te(e.l,t,n)})):fe(le(e,{r:te(e.r,t,n)}))}function ne(){return Z}function re(e,t,n){return X(e)?[]:function(e){return K(e,({k:e,v:t})=>({index:e,value:t}))}(se(e,ee(e,t)[0],n))}function oe(e,t){if(X(e))return Z;const{k:n,l:r,r:o}=e;if(t===n){if(X(r))return o;if(X(o))return r;{const[t,n]=pe(r);return ae(le(e,{k:t,l:ue(r),v:n}))}}return ae(le(e,t<n?{l:oe(r,t)}:{r:oe(o,t)}))}function ie(e){return X(e)?[]:[...ie(e.l),{k:e.k,v:e.v},...ie(e.r)]}function se(e,t,n){if(X(e))return[];const{k:r,l:o,r:i,v:s}=e;let a=[];return r>t&&(a=a.concat(se(o,t,n))),r>=t&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(se(i,t,n))),a}function ae(e){const{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(ce(t))return he(le(e,{lvl:n-1}));if(!X(t)&&!X(t.r))return le(t.r,{l:le(t,{r:t.r.l}),lvl:n,r:le(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}if(ce(e))return me(le(e,{lvl:n-1}));if(X(r)||X(r.l))throw new Error("Unexpected empty nodes");{const t=r.l,o=ce(t)?r.lvl-1:r.lvl;return le(t,{l:le(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:me(le(r,{l:t.r,lvl:o}))})}}function le(e,t){return de(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function ue(e){return X(e.r)?e.l:ae(le(e,{r:ue(e.r)}))}function ce(e){return X(e)||e.lvl>e.r.lvl}function pe(e){return X(e.r)?[e.k,e.v]:pe(e.r)}function de(e,t,n,r=Z,o=Z){return{k:e,l:r,lvl:n,r:o,v:t}}function fe(e){return me(he(e))}function he(e){const{l:t}=e;return X(t)||t.lvl!==e.lvl?e:le(t,{r:le(e,{l:t.r})})}function me(e){const{lvl:t,r:n}=e;return X(n)||X(n.r)||n.lvl!==t||n.r.lvl!==t?e:le(n,{l:le(e,{r:n.l}),lvl:t+1})}function ge(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function ye(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}const ve=N(()=>({recalcInProgress:R(!1)}),[],{singleton:!0});function be(e,t,n){return e[we(e,t,n)]}function we(e,t,n,r=0){let o=e.length-1;for(;r<=o;){const i=Math.floor((r+o)/2),s=n(e[i],t);if(0===s)return i;if(-1===s){if(o-r<2)return i-1;o=i-1}else{if(o===r)return i;r=i+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Ce(e,t){return Math.round(e.getBoundingClientRect()[t])}function _e(e){return!X(e.groupOffsetTree)}function xe({index:e},t){return t===e?0:t<e?-1:1}function Ee({offset:e},t){return t===e?0:t<e?-1:1}function Se(e,t,n){if(0===t.length)return 0;const{index:r,offset:o,size:i}=be(t,e,xe),s=e-r,a=i*s+(s-1)*n+o;return a>0?a+n:a}function Pe(e,t){if(!_e(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function Oe(e,t,n){if(function(e){return typeof e.groupIndex<"u"}(e))return t.groupIndices[e.groupIndex]+1;{let r=Pe("LAST"===e.index?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}}function Te(e,[t,n,r,o]){t.length>0&&r("received item sizes",t,B.DEBUG);const i=e.sizeTree;let s=i,a=0;if(n.length>0&&X(i)&&2===t.length){const e=t[0].size,r=t[1].size;s=n.reduce((t,n)=>te(te(t,n,e),n+1,r),s)}else[s,a]=function(e,t){let n=X(e)?0:1/0;for(const r of t){const{endIndex:t,size:o,startIndex:i}=r;if(n=Math.min(n,i),X(e)){e=te(e,0,o);continue}const s=re(e,i-1,t+1);if(s.some(Re(r)))continue;let a=!1,l=!1;for(const{end:n,start:r,value:i}of s)a?(t>=r||o===i)&&(e=oe(e,r)):(l=i!==o,a=!0),n>t&&t>=r&&i!==o&&(e=te(e,t+1,i));l&&(e=te(e,i,o))}return[e,n]}(s,t);if(s===i)return e;const{lastIndex:l,lastOffset:u,lastSize:c,offsetTree:p}=Ae(e.offsetTree,a,s,o);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>te(e,t,Se(t,p,o)),ne()),lastIndex:l,lastOffset:u,lastSize:c,offsetTree:p,sizeTree:s}}function ke(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function Ae(e,t,n,r){let o=e,i=0,s=0,a=0,l=0;if(0!==t){l=we(o,t-1,xe),a=o[l].offset;const e=ee(n,t-1);i=e[0],s=e[1],o.length&&o[l].size===ee(n,t)[1]&&(l-=1),o=o.slice(0,l+1)}else o=[];for(const{start:e,value:l}of re(n,t,1/0)){const t=e-i,n=t*s+a+t*r;o.push({index:e,offset:n,size:l}),i=e,a=n,s=l}return{lastIndex:i,lastOffset:a,lastSize:s,offsetTree:o}}function Ie(e){return{index:e.index,value:e}}function Re(e){const{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}const Me={offsetHeight:"height",offsetWidth:"width"},De=N(([{log:e},{recalcInProgress:t}])=>{const n=D(),r=D(),o=M(r,0),i=D(),s=D(),a=R(0),l=R([]),u=R(void 0),c=R(void 0),p=R(void 0),d=R(void 0),f=R((e,t)=>Ce(e,Me[t])),h=R(void 0),y=R(0),w={groupIndices:[],groupOffsetTree:ne(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:ne()},C=M(O(n,I(l,e,y),T(Te,w),x()),w),_=M(O(l,x(),T((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),S(({prev:e})=>e)),[]);b(O(l,E(e=>e.length>0),I(C,y),S(([e,t,n])=>{const r=e.reduce((e,r,o)=>te(e,r,Se(r,t.offsetTree,n)||o),ne());return{...t,groupIndices:e,groupOffsetTree:r}})),C),b(O(r,I(C),E(([e,{lastIndex:t}])=>e<t),S(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),b(u,c);const P=M(O(u,S(e=>void 0===e)),!0);b(O(c,E(e=>void 0!==e&&X(v(C).sizeTree)),S(e=>{const t=v(p),n=v(l).length>0;return t?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),b(O(d,E(e=>void 0!==e&&e.length>0&&X(v(C).sizeTree)),S(e=>{const t=[];let n=e[0],r=0;for(let o=1;o<e.length;o++){const i=e[o];i!==n&&(t.push({endIndex:o-1,size:n,startIndex:r}),n=i,r=o)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),b(O(l,I(p,c),E(([,e,t])=>void 0!==e&&void 0!==t),S(([e,t,n])=>{const r=[];for(let o=0;o<e.length;o++){const i=e[o],s=e[o+1];r.push({startIndex:i,endIndex:i,size:t}),void 0!==s&&r.push({startIndex:i+1,endIndex:s-1,size:n})}return r})),n);const k=L(O(n,I(C),T(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:w}),S(e=>e.changed)));m(O(a,T((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),S(e=>e.diff)),e=>{const{groupIndices:n}=v(C);if(e>0)g(t,!0),g(i,e+ke(e,n));else if(e<0){const t=v(_);t.length>0&&(e-=ke(-e,t)),g(s,e)}}),m(O(a,I(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},B.ERROR)});const A=L(i);b(O(i,I(C),S(([e,t])=>{const n=t.groupIndices.length>0,r=[],o=t.lastSize;if(n){const n=J(t.sizeTree,0);let i=0,s=0;for(;i<e;){const e=t.groupIndices[s],a=t.groupIndices.length===s+1?1/0:t.groupIndices[s+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+a-1,size:o,startIndex:e+1}),s++,i+=a+1}const a=ie(t.sizeTree);return i!==e&&a.shift(),a.reduce((t,{k:n,v:r})=>{let o=t.ranges;return 0!==t.prevSize&&(o=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:o}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return ie(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:o,ranges:[]}).ranges})),n);const N=L(O(s,I(C,y),S(([e,{offsetTree:t},n])=>Se(-e,t,n))));return b(O(s,I(C,y),S(([e,t,n])=>{if(t.groupIndices.length>0){if(X(t.sizeTree))return t;let r=ne();const o=v(_);let i=0,s=0,a=0;for(;i<-e;){a=o[s];const e=o[s+1]-a-1;s++,i+=e+1}return r=ie(t.sizeTree).reduce((t,{k:n,v:r})=>te(t,Math.max(0,n+e),r),r),i!==-e&&(r=te(r,0,J(t.sizeTree,a)),r=te(r,1,ee(t.sizeTree,1-e)[1])),{...t,sizeTree:r,...Ae(t.offsetTree,0,r,n)}}{const r=ie(t.sizeTree).reduce((t,{k:n,v:r})=>te(t,Math.max(0,n+e),r),ne());return{...t,sizeTree:r,...Ae(t.offsetTree,0,r,n)}}})),C),{beforeUnshiftWith:A,data:h,defaultItemSize:c,firstItemIndex:a,fixedItemSize:u,fixedGroupSize:p,gap:y,groupIndices:l,heightEstimates:d,itemSize:f,listRefresh:k,shiftWith:s,shiftWithOffset:N,sizeRanges:n,sizes:C,statefulTotalCount:o,totalCount:r,trackItemSizes:P,unshiftWith:i}},h(U,ve),{singleton:!0});function Le(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}const Ne=N(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:o}])=>{const i=D(),s=D(),a=L(O(i,S(Le)));return b(O(a,S(e=>e.totalCount)),n),b(O(a,S(e=>e.groupIndices)),e),b(O(j(o,t,r),E(([e,t])=>_e(t)),S(([e,t,n])=>ee(t.groupOffsetTree,Math.max(e-n,0),"v")[0]),x(),S(e=>[e])),s),{groupCounts:i,topItemsIndexes:s}},h(De,Y)),Ve=N(([{log:e}])=>{const t=R(!1),n=L(O(t,E(e=>e),x()));return m(t,t=>{t&&v(e)("props updated",{},B.DEBUG)}),{didMount:n,propsReady:t}},h(U),{singleton:!0}),je=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Fe(e){const t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!je)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const ze=N(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:o,fixedHeaderHeight:i,footerHeight:s,headerHeight:a,scrollingInProgress:l,scrollTo:u,smoothScrollTargetReached:c,viewportHeight:p},{log:d}])=>{const f=D(),h=D(),y=R(0);let v=null,C=null,_=null;function x(){v&&(v(),v=null),_&&(_(),_=null),C&&(clearTimeout(C),C=null),g(l,!1)}return b(O(f,I(n,p,r,y,a,s,d),I(e,i,o),S(([[e,n,r,o,i,s,a,u],p,d,y])=>{const b=Fe(e),{align:E,behavior:S,offset:P}=b,T=o-1,k=Oe(b,n,T);let A=Se(k,n.offsetTree,p)+s;"end"===E?(A+=d+ee(n.sizeTree,k)[1]-r+y,k===T&&(A+=a)):"center"===E?A+=(d+ee(n.sizeTree,k)[1]-r+y)/2:A-=i,P&&(A+=P);const I=t=>{x(),t?(u("retrying to scroll to",{location:e},B.DEBUG),g(f,e)):(g(h,!0),u("list did not change, scroll successful",{},B.DEBUG))};if(x(),"smooth"===S){let e=!1;_=m(t,t=>{e=e||t}),v=w(c,()=>{I(e)})}else v=w(O(t,e=>{const t=setTimeout(()=>{e(!1)},150);return n=>{n&&(e(!0),clearTimeout(t))}}),I);return C=setTimeout(()=>{x()},1200),g(l,!0),u("scrolling from index to",{behavior:S,index:k,top:A},B.DEBUG),{behavior:S,top:A}})),u),{scrollTargetReached:h,scrollToIndex:f,topListHeight:y}},h(De,Y,U),{singleton:!0});function Be(e,t){0==e?t():requestAnimationFrame(()=>{Be(e-1,t)})}function He(e,t){const n=t-1;return"number"==typeof e?e:"LAST"===e.index?n:e.index}const Ue=N(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:o,scrollToIndex:i},{didMount:s}])=>{const a=R(!0),l=R(0),u=R(!0);return b(O(s,I(l),E(([e,t])=>!!t),P(!1)),a),b(O(s,I(l),E(([e,t])=>!!t),P(!1)),u),m(O(j(t,s),I(a,n,e,u),E(([[,e],t,{sizeTree:n},r,o])=>e&&(!X(n)||c(r))&&!t&&!o),I(l)),([,e])=>{w(o,()=>{g(u,!0)}),Be(4,()=>{w(r,()=>{g(a,!0)}),g(i,e)})}),{initialItemFinalLocationReached:u,initialTopMostItemIndex:l,scrolledToInitialItem:a}},h(De,Y,ze,Ve),{singleton:!0});function qe(e,t){return Math.abs(e-t)<1.01}const We="up",$e="down",Qe={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},Ge=N(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:o,viewportHeight:i}])=>{const s=R(!1),a=R(!0),l=D(),u=D(),c=R(4),p=R(0),d=M(O(z(O(F(o),k(1),P(!0)),O(F(o),k(1),P(!1),C(100))),x()),!1),f=M(O(z(O(n,P(!0)),O(n,P(!1),C(200))),x()),!1);b(O(j(F(o),F(p)),S(([e,t])=>e<=t),x()),a),b(O(a,A(50)),u);const h=L(O(j(r,F(i),F(t),F(e),F(c)),T((e,[{scrollHeight:t,scrollTop:n},r,o,i,s])=>{const a={scrollHeight:t,scrollTop:n,viewportHeight:r};if(n+r-t>-s){let t,r;return n>e.state.scrollTop?(t="SCROLLED_DOWN",r=e.state.scrollTop-n):(t="SIZE_DECREASED",r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:a}}let l;return l=a.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":r<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":n<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:l,state:a}},Qe),x((e,t)=>e&&e.atBottom===t.atBottom))),m=M(O(r,T((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(qe(e.scrollHeight,t))return{changed:!1,jump:0,scrollHeight:t,scrollTop:n};{const o=t-(n+r)<1;return e.scrollTop!==n&&o?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),E(e=>e.changed),S(e=>e.jump)),0);b(O(h,S(e=>e.atBottom)),s),b(O(s,A(50)),l);const g=R($e);b(O(r,S(({scrollTop:e})=>e),x(),T((e,t)=>v(f)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?We:$e,prevScrollTop:t},{direction:$e,prevScrollTop:0}),S(e=>e.direction)),g),b(O(r,A(50),P("none")),g);const y=R(0);return b(O(d,E(e=>!e),P(0)),y),b(O(o,A(100),I(d),E(([e,t])=>t),T(([e,t],[n])=>[t,n],[0,0]),S(([e,t])=>t-e)),y),{atBottomState:h,atBottomStateChange:l,atBottomThreshold:c,atTopStateChange:u,atTopThreshold:p,isAtBottom:s,isAtTop:a,isScrolling:d,lastJumpDueToItemResize:m,scrollDirection:g,scrollVelocity:y}},h(Y)),Ye="top",Ze="bottom",Ke="none";function Xe(e,t,n){return"number"==typeof e?n===We&&t===Ye||n===$e&&t===Ze?e:0:n===We?t===Ye?e.main:e.reverse:t===Ze?e.main:e.reverse}function Je(e,t){var n;return"number"==typeof e?e:null!=(n=e[t])?n:0}const et=N(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:o}])=>{const i=D(),s=R(0),a=R(0),l=R(0);return{increaseViewportBy:a,listBoundary:i,overscan:l,topListHeight:s,visibleRange:M(O(j(F(r),F(o),F(n),F(i,ye),F(l),F(s),F(t),F(e),F(a)),S(([e,t,n,[r,o],i,s,a,l,u])=>{const c=e-l,p=s+a,d=Math.max(n-c,0);let f=Ke;const h=Je(u,Ye),m=Je(u,Ze);return r-=l,o+=n+a,(r+=n+a)>e+p-h&&(f=We),(o-=l)<e-d+t+m&&(f=$e),f!==Ke?[Math.max(c-n-Xe(i,Ye,f)-h,0),c-d-a+t+Xe(i,Ze,f)+m]:null}),E(e=>null!=e),x(ye)),[0,0])}},h(Y),{singleton:!0}),tt={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function nt(e,t,n,r,o,i){const{lastIndex:s,lastOffset:a,lastSize:l}=o;let u=0,c=0;if(e.length>0){u=e[0].offset;const t=e[e.length-1];c=t.offset+t.size}const p=n-s,d=u,f=a+p*l+(p-1)*r-c;return{bottom:c,firstItemIndex:i,items:ot(e,o,i),offsetBottom:f,offsetTop:u,top:d,topItems:ot(t,o,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function rt(e,t,n,r,o,i){let s=0;if(n.groupIndices.length>0)for(const t of n.groupIndices){if(t-s>=e)break;s++}const a=e+s,l=He(t,a);return nt(Array.from({length:a}).map((e,t)=>({data:i[t+l],index:t+l,offset:0,size:0})),[],a,o,n,r)}function ot(e,t,n){if(0===e.length)return[];if(!_e(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));const r=e[0].index,o=e[e.length-1].index,i=[],s=re(t.groupOffsetTree,r,o);let a,l=0;for(const r of e){let e;(!a||a.end<r.index)&&(a=s.shift(),l=t.groupIndices.indexOf(a.start)),e=r.index===a.start?{index:l,type:"group"}:{groupIndex:l,index:r.index-(l+1)+n},i.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return i}function it(e,t){var n;return void 0===e?0:"number"==typeof e?e:null!=(n=e[t])?n:0}const st=N(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:o},i,{listBoundary:s,topListHeight:a,visibleRange:l},{initialTopMostItemIndex:u,scrolledToInitialItem:p},{topListHeight:f},h,{didMount:m},{recalcInProgress:g}])=>{const y=R([]),w=R(0),C=D(),_=R(0);b(i.topItemsIndexes,y);const P=M(O(j(m,g,F(l,ye),F(o),F(r),F(u),p,F(y),F(t),F(n),F(_),e),E(([e,t,,n,,,,,,,,r])=>{const o=r&&r.length!==n;return e&&!t&&!o}),S(([,,[e,t],n,r,o,i,s,a,l,u,c])=>{var p,f,h,m;const g=r,{offsetTree:y,sizeTree:b}=g,C=v(w);if(0===n)return{...tt,totalCount:n};if(0===e&&0===t)return 0===C?{...tt,totalCount:n}:rt(C,o,r,a,l,c||[]);if(X(b))return C>0?null:nt(function(e,t,n){if(_e(t)){const r=Pe(e,t);return[{index:ee(t.groupOffsetTree,r)[0],offset:0,size:0},{data:null==n?void 0:n[0],index:r,offset:0,size:0}]}return[{data:null==n?void 0:n[0],index:e,offset:0,size:0}]}(He(o,n),g,c),[],n,l,g,a);const _=[];if(s.length>0){const e=s[0],t=s[s.length-1];let n=0;for(const r of re(b,e,t)){const o=r.value,i=Math.max(r.start,e),s=Math.min(r.end,t);for(let e=i;e<=s;e++)_.push({data:null==c?void 0:c[e],index:e,offset:n,size:o}),n+=o}}if(!i)return nt([],_,n,l,g,a);const x=s.length>0?s[s.length-1]+1:0,E=function(e,t,n,r=0){return r>0&&(t=Math.max(t,be(e,r,xe).offset)),K(function(e,t,n,r){const o=we(e,t,r),i=we(e,n,r,o);return e.slice(o,i+1)}(e,t,n,Ee),Ie)}(y,e,t,x);if(0===E.length)return null;const S=n-1,P=d([],n=>{for(const r of E){const o=r.value;let i=o.offset,s=r.start;const a=o.size;if(o.offset<e){s+=Math.floor((e-o.offset+l)/(a+l));const t=s-r.start;i+=t*a+t*l}s<x&&(i+=(x-s)*a,s=x);const u=Math.min(r.end,S);for(let e=s;e<=u&&!(i>=t);e++)n.push({data:null==c?void 0:c[e],index:e,offset:i,size:a}),i+=a+l}}),O=it(u,Ye),T=it(u,Ze);if(P.length>0&&(O>0||T>0)){const e=P[0],t=P[P.length-1];if(O>0&&e.index>x){const t=Math.min(O,e.index-x),n=[];let r=e.offset;for(let o=e.index-1;o>=e.index-t;o--){const t=null!=(f=null==(p=re(b,o,o)[0])?void 0:p.value)?f:e.size;r-=t+l,n.unshift({data:null==c?void 0:c[o],index:o,offset:r,size:t})}P.unshift(...n)}if(T>0&&t.index<S){const e=Math.min(T,S-t.index);let n=t.offset+t.size+l;for(let r=t.index+1;r<=t.index+e;r++){const e=null!=(m=null==(h=re(b,r,r)[0])?void 0:h.value)?m:t.size;P.push({data:null==c?void 0:c[r],index:r,offset:n,size:e}),n+=e+l}}}return nt(P,_,n,l,g,a)}),E(e=>null!==e),x()),tt);b(O(e,E(c),S(e=>null==e?void 0:e.length)),o),b(O(P,S(e=>e.topListHeight)),f),b(f,a),b(O(P,S(e=>[e.top,e.bottom])),s),b(O(P,S(e=>e.items)),C);const T=L(O(P,E(({items:e})=>e.length>0),I(o,e),E(([{items:e},t])=>e[e.length-1].originalIndex===t-1),S(([,e,t])=>[e-1,t]),x(ye),S(([e])=>e))),k=L(O(P,A(200),E(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),S(({items:e})=>e[0].index),x())),N=L(O(P,E(({items:e})=>e.length>0),S(({items:e})=>{let t=0,n=e.length-1;for(;"group"===e[t].type&&t<n;)t++;for(;"group"===e[n].type&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),x(ge)));return{endReached:T,initialItemCount:w,itemsRendered:C,listState:P,minOverscanItemCount:_,rangeChanged:N,startReached:k,topItemsIndexes:y,...h}},h(De,Ne,et,Ue,ze,Ge,Ve,ve),{singleton:!0}),at=N(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:o}])=>{const i=D(),s=M(O(j(n,e,r,t,o),S(([e,t,n,r,o])=>e+t+n+r+o.offsetBottom+o.bottom)),0);return b(F(s),i),{totalListHeight:s,totalListHeightChanged:i}},h(Y,st),{singleton:!0}),lt=N(([{viewportHeight:e},{totalListHeight:t}])=>{const n=R(!1);return{alignToBottom:n,paddingTopAddition:M(O(j(n,e,t),E(([e])=>e),S(([,e,t])=>Math.max(0,e-t)),A(0),x()),0)}},h(Y,at),{singleton:!0}),ut=N(()=>({context:R(null)})),ct=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...o},viewportBottom:i,viewportTop:s})=>t<s?{...o,align:null!=n?n:"start",behavior:r}:e>i?{...o,align:null!=n?n:"end",behavior:r}:null,pt=N(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:o,headerHeight:i,scrollingInProgress:s,scrollTop:a,viewportHeight:l},{scrollToIndex:u}])=>{const c=D();return b(O(c,I(t,l,n,i,o,r,a),I(e),S(([[e,t,n,r,o,i,a,l],u])=>{const{align:c,behavior:p,calculateViewLocation:d=ct,done:f,...h}=e,m=Oe(e,t,r-1),g=Se(m,t.offsetTree,u)+o+i,y=d({itemBottom:g+ee(t.sizeTree,m)[1],itemTop:g,locationParams:{align:c,behavior:p,...h},viewportBottom:l+n-a,viewportTop:l+i});return y?f&&w(O(s,E(e=>!e),k(v(s)?1:2)),f):null==f||f(),y}),E(e=>null!==e)),u),{scrollIntoView:c}},h(De,Y,ze,st,U),{singleton:!0});function dt(e){return!!e&&("smooth"===e?"smooth":"auto")}const ft=N(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:o,isAtBottom:i},{scrollToIndex:s},{scrolledToInitialItem:a},{didMount:l,propsReady:u},{log:c},{scrollingInProgress:p},{context:d},{scrollIntoView:f}])=>{const h=R(!1),y=D();let C=null;function _(e){g(s,{align:"end",behavior:e,index:"LAST"})}function x(e){const t=w(o,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&!C&&(v(c)("scrolling to bottom due to increased size",{},B.DEBUG),_("auto"))});setTimeout(t,100)}m(O(j(O(F(t),k(1)),l),I(F(h),i,a,p),S(([[e,t],n,r,o,i])=>{let s=t&&o,a="auto";return s&&(a=((e,t)=>"function"==typeof e?dt(e(t)):t&&dt(e))(n,r||i),s=s&&!!a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),E(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{C&&(C(),C=null),v(n)?requestAnimationFrame(()=>{v(c)("following output to ",{totalCount:r},B.DEBUG),_(t)}):C=w(e,()=>{v(c)("following output to ",{totalCount:r},B.DEBUG),_(t),C=null})}),m(O(j(F(h),t,u),E(([e,,t])=>e&&t),T(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),E(({refreshed:e})=>e),I(h,t)),([,e])=>{v(a)&&x(!1!==e)}),m(y,()=>{x(!1!==v(h))}),m(j(F(h),o),([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&_("auto")});const P=R(null),M=D();return b(z(O(F(r),S(e=>{var t;return null!=(t=null==e?void 0:e.length)?t:0})),O(F(t))),M),m(O(j(O(M,k(1)),l),I(F(P),a,p,d),S(([[e,t],n,r,o,i])=>t&&r&&(null==n?void 0:n({context:i,totalCount:e,scrollingInProgress:o}))),E(e=>!!e),A(0)),t=>{C&&(C(),C=null),v(n)?requestAnimationFrame(()=>{v(c)("scrolling into view",{}),g(f,t)}):C=w(e,()=>{v(c)("scrolling into view",{}),g(f,t),C=null})}),{autoscrollToBottom:y,followOutput:h,scrollIntoViewOnChange:P}},h(De,Ge,ze,Ue,Ve,U,Y,ut,pt)),ht=N(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:o},{initialItemCount:i,listState:s},{didMount:a}])=>(b(O(a,I(i),E(([,e])=>0!==e),I(o,r,t,n,e),S(([[,e],t,n,r,o,i=[]])=>rt(e,t,n,r,o,i))),s),{}),h(De,Ue,st,Ve),{singleton:!0}),mt=N(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=R(0);return m(O(e,I(r),E(([,e])=>0!==e),S(([,e])=>({top:e}))),e=>{w(O(n,k(1),E(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{g(t,e)})})}),{initialScrollTop:r}},h(Ve,Y,st),{singleton:!0}),gt=N(([{scrollVelocity:e}])=>{const t=R(!1),n=D(),r=R(!1);return b(O(e,I(r,t,n),E(([e,t])=>!!t),S(([e,t,n,r])=>{const{enter:o,exit:i}=t;if(n){if(i(e,r))return!1}else if(o(e,r))return!0;return n}),x()),t),m(O(j(t,e,n),I(r)),([[e,t,n],r])=>{e&&r&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},h(Ge),{singleton:!0}),yt=N(([{scrollContainerState:e,scrollTo:t}])=>{const n=D(),r=D(),o=D(),i=R(!1),s=R(void 0);return b(O(j(n,r),S(([{scrollHeight:e,scrollTop:t,viewportHeight:n},{offsetTop:r}])=>({scrollHeight:e,scrollTop:Math.max(0,t-r),viewportHeight:n}))),e),b(O(t,I(r),S(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),o),{customScrollParent:s,useWindowScroll:i,windowScrollContainerState:n,windowScrollTo:o,windowViewportRect:r}},h(Y)),vt=N(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:o},{didMount:i},{useWindowScroll:s,windowScrollContainerState:a,windowViewportRect:l}])=>{const u=D(),p=R(void 0),d=R(null),f=R(null);return b(a,d),b(l,f),m(O(u,I(t,r,s,d,f,n)),([e,t,n,r,o,i,s])=>{const a=function(e){return ie(e).map(({k:e,v:t},n,r)=>{const o=r[n+1];return{endIndex:o?o.k-1:1/0,size:t,startIndex:e}})}(t.sizeTree);r&&null!==o&&null!==i&&(n=o.scrollTop-i.offsetTop),e({ranges:a,scrollTop:n-=s})}),b(O(p,E(c),S(bt)),o),b(O(i,I(p),E(([,e])=>void 0!==e),x(),S(([,e])=>e.ranges)),e),{getState:u,restoreStateFrom:p}},h(De,Y,Ue,Ve,yt));function bt(e){return{align:"start",index:0,offset:e.scrollTop}}const wt=N(([{topItemsIndexes:e}])=>{const t=R(0);return b(O(t,E(e=>e>=0),S(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},h(st));function Ct(e){let t,n=!1;return()=>(n||(n=!0,t=e()),t)}const _t=Ct(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),xt=N(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:o,isScrolling:i,lastJumpDueToItemResize:s,scrollDirection:a},{listState:l},{beforeUnshiftWith:u,gap:c,shiftWithOffset:p,sizes:d},{log:f},{recalcInProgress:h}])=>{const y=L(O(l,I(s),T(([,e,t,n],[{bottom:r,items:o,offsetBottom:i,totalCount:s},a])=>{const l=r+i;let u=0;return t===s&&e.length>0&&o.length>0&&(0===o[0].originalIndex&&0===e[0].originalIndex||(u=l-n,0!==u&&(u+=a))),[u,o,s,l]},[0,[],0,0]),E(([e])=>0!==e),I(r,a,n,o,f,h),E(([,e,t,n,,,r])=>!r&&!n&&0!==e&&t===We),S(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},B.DEBUG),e))));function v(n){n>0?(g(t,{behavior:"auto",top:-n}),g(e,0)):(g(e,0),g(t,{behavior:"auto",top:-n}))}return m(O(y,I(e,i)),([t,n,r])=>{r&&_t()?g(e,n-t):v(-t)}),m(O(j(M(i,!1),e,h),E(([e,t,n])=>!e&&!n&&0!==t),S(([e,t])=>t),A(1)),v),b(O(p,S(e=>({top:-e}))),t),m(O(u,I(d,c),S(([e,{groupIndices:t,lastSize:n,sizeTree:r},o])=>{function i(e){return e*(n+o)}if(0===t.length)return i(e);{let n=0;const o=J(r,0);let s=0,a=0;for(;s<e;){s++,n+=o;let r=t.length===a+1?1/0:t[a+1]-t[a]-1;s+r>e&&(n-=o,r=e-s+1),s+=r,n+=i(r),a++}return n}})),n=>{g(e,n),requestAnimationFrame(()=>{g(t,{top:n}),requestAnimationFrame(()=>{g(e,0),g(h,!1)})})}),{deviation:e}},h(Y,Ge,st,De,U,ve)),Et=N(([e,t,n,r,o,i,s,a,l,u,c])=>({...e,...t,...n,...r,...o,...i,...s,...a,...l,...u,...c}),h(et,ht,Ve,gt,at,mt,lt,yt,pt,U,ut)),St=N(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:o,gap:i,groupIndices:s,heightEstimates:a,itemSize:l,sizeRanges:u,sizes:c,statefulTotalCount:p,totalCount:d,trackItemSizes:f},{initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:g},y,v,w,C,{scrollToIndex:_},x,{topItemCount:E},{groupCounts:P},T])=>{const{listState:k,minOverscanItemCount:A,topItemsIndexes:I,rangeChanged:R,...M}=C;return b(R,T.scrollSeekRangeChanged),b(O(T.windowViewportRect,S(e=>e.visibleHeight)),y.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:o,gap:i,groupCounts:P,heightEstimates:a,initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:g,sizeRanges:u,topItemCount:E,topItemsIndexes:I,totalCount:d,...w,groupIndices:s,itemSize:l,listState:k,minOverscanItemCount:A,scrollToIndex:_,statefulTotalCount:p,trackItemSizes:f,rangeChanged:R,...M,...T,...y,sizes:c,...v}},h(De,Ue,Y,vt,ft,st,ze,xt,wt,Ne,Et));function Pt(e,t){const n={},r={};let o=0;const i=e.length;for(;o<i;)r[e[o]]=1,o+=1;for(const e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}const Ot=typeof document<"u"?o.useLayoutEffect:o.useEffect;function Tt(e,t,n){const i=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),l=Object.keys(t.methods||{}),c=Object.keys(t.events||{}),f=o.createContext({});function h(e,n){e.propsReady&&g(e.propsReady,!1);for(const r of i)g(e[t.required[r]],n[r]);for(const r of a)r in n&&g(e[t.optional[r]],n[r]);e.propsReady&&g(e.propsReady,!0)}function b(e){return c.reduce((n,r)=>(n[r]=function(e){let t,n;const r=()=>null==t?void 0:t();return function(o,i){switch(o){case 1:return i?n===i?void 0:(r(),n=i,t=m(e,i),t):(r(),p);case 2:return r(),void(n=null)}}}(e[t.events[r]]),n),{})}const w=o.forwardRef((p,v)=>{const{children:w,...C}=p,[_]=o.useState(()=>d(function(e){const t=new Map,n=({constructor:e,dependencies:r,id:o,singleton:i})=>{if(i&&t.has(o))return t.get(o);const s=e(r.map(e=>n(e)));return i&&t.set(o,s),s};return n(e)}(e),e=>{h(e,C)})),[x]=o.useState(u(b,_));Ot(()=>{for(const e of c)e in C&&m(x[e],C[e]);return()=>{Object.values(x).map(y)}},[C,x,_]),Ot(()=>{h(_,C)}),o.useImperativeHandle(v,s(function(e){return l.reduce((n,r)=>(n[r]=n=>{g(e[t.methods[r]],n)},n),{})}(_)));const E=n;return(0,r.jsx)(f.Provider,{value:_,children:n?(0,r.jsx)(E,{...Pt([...i,...a,...c],C),children:w}):w})});return{Component:w,useEmitter:(e,t)=>{const n=o.useContext(f)[e];Ot(()=>m(n,t),[t,n])},useEmitterValue:o.version.startsWith("18")?e=>{const t=o.useContext(f)[e],n=o.useCallback(e=>m(t,e),[t]);return o.useSyncExternalStore(n,()=>v(t),()=>v(t))}:e=>{const t=o.useContext(f)[e],[n,r]=o.useState(u(v,t));return Ot(()=>m(t,e=>{e!==n&&r(s(e))}),[t,n]),n},usePublisher:e=>{const t=o.useContext(f);return o.useCallback(n=>{g(t[e],n)},[t,e])}}}const kt=o.createContext(void 0),At=o.createContext(void 0),It=typeof document<"u"?o.useLayoutEffect:o.useEffect;function Rt(e){return"self"in e}function Mt(e,t,n,r=p,s,a){const l=o.useRef(null),u=o.useRef(null),c=o.useRef(null),d=o.useCallback(n=>{let r,o,s;const l=n.target;if(function(e){return"body"in e}(l)||Rt(l)){const e=Rt(l)?l:l.defaultView;s=a?e.scrollX:e.scrollY,r=a?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,o=a?e.innerWidth:e.innerHeight}else s=a?l.scrollLeft:l.scrollTop,r=a?l.scrollWidth:l.scrollHeight,o=a?l.offsetWidth:l.offsetHeight;const p=()=>{e({scrollHeight:r,scrollTop:Math.max(s,0),viewportHeight:o})};n.suppressFlushSync?p():i.flushSync(p),null!==u.current&&(s===u.current||s<=0||s===r-o)&&(u.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,a]);return o.useEffect(()=>{const e=s||l.current;return r(s||l.current),d({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",d,{passive:!0}),()=>{r(null),e.removeEventListener("scroll",d)}},[l,d,n,r,s]),{scrollByCallback:function(e){a&&(e={behavior:e.behavior,left:e.top}),l.current.scrollBy(e)},scrollerRef:l,scrollToCallback:function(n){const r=l.current;if(!r||(a?"offsetWidth"in r&&0===r.offsetWidth:"offsetHeight"in r&&0===r.offsetHeight))return;const o="smooth"===n.behavior;let i,s,p;Rt(r)?(s=Math.max(Ce(r.document.documentElement,a?"width":"height"),a?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),i=a?r.innerWidth:r.innerHeight,p=a?window.scrollX:window.scrollY):(s=r[a?"scrollWidth":"scrollHeight"],i=Ce(r,a?"width":"height"),p=r[a?"scrollLeft":"scrollTop"]);const d=s-i;if(n.top=Math.ceil(Math.max(Math.min(d,n.top),0)),qe(i,s)||n.top===p)return e({scrollHeight:s,scrollTop:p,viewportHeight:i}),void(o&&t(!0));o?(u.current=n.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,u.current=null,t(!0)},1e3)):u.current=null,a&&(n={behavior:n.behavior,left:n.top}),r.scrollTo(n)}}}const Dt="-webkit-sticky",Lt="sticky",Nt=Ct(()=>{if(typeof document>"u")return Lt;const e=document.createElement("div");return e.style.position=Dt,e.style.position===Dt?Dt:Lt});function Vt(e){return e}const jt=N(([e,t])=>({...e,...t}),h(St,N(()=>{const e=R(e=>`Item ${e}`),t=R(e=>`Group ${e}`),n=R({}),r=R(Vt),o=R("div"),i=R(p),s=(e,t=null)=>M(O(n,S(t=>t[e]),x()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:s("EmptyPlaceholder"),FooterComponent:s("Footer"),GroupComponent:s("Group","div"),groupContent:t,HeaderComponent:s("Header"),HeaderFooterTag:o,ItemComponent:s("Item","div"),itemContent:e,ListComponent:s("List","div"),ScrollerComponent:s("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),TopItemListComponent:s("TopItemList")}}))),Ft=({height:e})=>(0,r.jsx)("div",{style:{height:e}}),zt={overflowAnchor:"none",position:Nt(),zIndex:1},Bt={overflowAnchor:"none"},Ht={...Bt,display:"inline-block",height:"100%"},Ut=o.memo(function({showTopList:e=!1}){const t=an("listState"),n=ln("sizeRanges"),i=an("useWindowScroll"),s=an("customScrollParent"),a=ln("windowScrollContainerState"),l=ln("scrollContainerState"),u=s||i?a:l,c=an("itemContent"),d=an("context"),f=an("groupContent"),h=an("trackItemSizes"),m=an("itemSize"),g=an("log"),y=ln("gap"),v=an("horizontalDirection"),{callbackRef:b}=$(n,m,h,e?p:u,g,y,s,v,an("skipAnimationFrameInResizeObserver")),[w,C]=o.useState(0);sn("deviation",e=>{w!==e&&C(e)});const _=an("EmptyPlaceholder"),x=an("ScrollSeekPlaceholder")||Ft,E=an("ListComponent"),S=an("ItemComponent"),P=an("GroupComponent"),O=an("computeItemKey"),T=an("isSeeking"),k=an("groupIndices").length>0,A=an("alignToBottom"),I=an("initialItemFinalLocationReached"),R=e?{}:{boxSizing:"border-box",...v?{display:"inline-block",height:"100%",marginLeft:0!==w?w:A?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==w?w:A?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...I?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&_?(0,r.jsx)(_,{...Gt(_,d)}):(0,r.jsx)(E,{...Gt(E,d),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:b,style:R,children:(e?t.topItems:t.items).map(e=>{const n=e.originalIndex,r=O(n+t.firstItemIndex,e.data,d);return T?(0,o.createElement)(x,{...Gt(x,d),height:e.size,index:e.index,key:r,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,o.createElement)(P,{...Gt(P,d),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:zt},f(e.index,d)):(0,o.createElement)(S,{...Gt(S,d),...Yt(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:v?Ht:Bt},k?c(e.index,e.groupIndex,e.data,d):c(e.index,e.data,d))})})}),qt={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Wt={outline:"none",overflowX:"auto",position:"relative"},$t=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),Qt={position:Nt(),top:0,width:"100%",zIndex:1};function Gt(e,t){if("string"!=typeof e)return{context:t}}function Yt(e,t){return{item:"string"==typeof e?void 0:t}}const Zt=o.memo(function(){const e=an("HeaderComponent"),t=ln("headerHeight"),n=an("HeaderFooterTag"),i=q(o.useMemo(()=>e=>{t(Ce(e,"height"))},[t]),!0,an("skipAnimationFrameInResizeObserver")),s=an("context");return e?(0,r.jsx)(n,{ref:i,children:(0,r.jsx)(e,{...Gt(e,s)})}):null}),Kt=o.memo(function(){const e=an("FooterComponent"),t=ln("footerHeight"),n=an("HeaderFooterTag"),i=q(o.useMemo(()=>e=>{t(Ce(e,"height"))},[t]),!0,an("skipAnimationFrameInResizeObserver")),s=an("context");return e?(0,r.jsx)(n,{ref:i,children:(0,r.jsx)(e,{...Gt(e,s)})}):null});function Xt({useEmitter:e,useEmitterValue:t,usePublisher:n}){return o.memo(function({children:o,style:i,context:s,...a}){const l=n("scrollContainerState"),u=t("ScrollerComponent"),c=n("smoothScrollTargetReached"),p=t("scrollerRef"),d=t("horizontalDirection")||!1,{scrollByCallback:f,scrollerRef:h,scrollToCallback:m}=Mt(l,c,u,p,void 0,d);return e("scrollTo",m),e("scrollBy",f),(0,r.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:h,style:{...d?Wt:qt,...i},tabIndex:0,...a,...Gt(u,s),children:o})})}function Jt({useEmitter:e,useEmitterValue:t,usePublisher:n}){return o.memo(function({children:i,style:s,context:a,...l}){const u=n("windowScrollContainerState"),c=t("ScrollerComponent"),p=n("smoothScrollTargetReached"),d=t("totalListHeight"),f=t("deviation"),h=t("customScrollParent"),m=o.useRef(null),g=t("scrollerRef"),{scrollByCallback:y,scrollerRef:v,scrollToCallback:b}=Mt(u,p,c,g,h);return It(()=>{var e;return v.current=h||(null==(e=m.current)?void 0:e.ownerDocument.defaultView),()=>{v.current=null}},[v,h]),e("windowScrollTo",b),e("scrollBy",y),(0,r.jsx)(c,{ref:m,"data-virtuoso-scroller":!0,style:{position:"relative",...s,...0!==d?{height:d+f}:{}},...l,...Gt(c,a),children:i})})}const en=({children:e})=>{const t=o.useContext(kt),n=ln("viewportHeight"),i=ln("fixedItemHeight"),s=an("alignToBottom"),a=an("horizontalDirection"),u=q(o.useMemo(()=>l(n,e=>Ce(e,a?"width":"height")),[n,a]),!0,an("skipAnimationFrameInResizeObserver"));return o.useEffect(()=>{t&&(n(t.viewportHeight),i(t.itemHeight))},[t,n,i]),(0,r.jsx)("div",{"data-viewport-type":"element",ref:u,style:$t(s),children:e})},tn=({children:e})=>{const t=o.useContext(kt),n=ln("windowViewportRect"),i=ln("fixedItemHeight"),s=an("customScrollParent"),a=G(n,s,an("skipAnimationFrameInResizeObserver")),l=an("alignToBottom");return o.useEffect(()=>{t&&(i(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,i]),(0,r.jsx)("div",{"data-viewport-type":"window",ref:a,style:$t(l),children:e})},nn=({children:e})=>{const t=an("TopItemListComponent")||"div",n=an("headerHeight"),o={...Qt,marginTop:`${n}px`},i=an("context");return(0,r.jsx)(t,{style:o,...Gt(t,i),children:e})},rn=o.memo(function(e){const t=an("useWindowScroll"),n=an("topItemsIndexes").length>0,o=an("customScrollParent"),i=an("context");return(0,r.jsxs)(o||t?cn:un,{...e,context:i,children:[n&&(0,r.jsx)(nn,{children:(0,r.jsx)(Ut,{showTopList:!0})}),(0,r.jsxs)(o||t?tn:en,{children:[(0,r.jsx)(Zt,{}),(0,r.jsx)(Ut,{}),(0,r.jsx)(Kt,{})]})]})}),{Component:on,useEmitter:sn,useEmitterValue:an,usePublisher:ln}=Tt(jt,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},rn),un=Xt({useEmitter:sn,useEmitterValue:an,usePublisher:ln}),cn=Jt({useEmitter:sn,useEmitterValue:an,usePublisher:ln}),pn=N(([e,t])=>({...e,...t}),h(St,N(()=>{const e=R(e=>(0,r.jsxs)("td",{children:["Item $",e]})),t=R(null),n=R(e=>(0,r.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),o=R(null),i=R(null),s=R({}),a=R(Vt),l=R(p),u=(e,t=null)=>M(O(s,S(t=>t[e]),x()),t);return{components:s,computeItemKey:a,context:t,EmptyPlaceholder:u("EmptyPlaceholder"),FillerRow:u("FillerRow"),fixedFooterContent:i,fixedHeaderContent:o,itemContent:e,groupContent:n,ScrollerComponent:u("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),TableBodyComponent:u("TableBody","tbody"),TableComponent:u("Table","table"),TableFooterComponent:u("TableFoot","tfoot"),TableHeadComponent:u("TableHead","thead"),TableRowComponent:u("TableRow","tr"),GroupComponent:u("Group","tr")}}))),dn=({height:e})=>(0,r.jsx)("tr",{children:(0,r.jsx)("td",{style:{height:e}})}),fn=({height:e})=>(0,r.jsx)("tr",{children:(0,r.jsx)("td",{style:{border:0,height:e,padding:0}})}),hn={overflowAnchor:"none"},mn={position:Nt(),zIndex:2,overflowAnchor:"none"},gn=o.memo(function({showTopList:e=!1}){const t=xn("listState"),n=xn("computeItemKey"),i=xn("firstItemIndex"),s=xn("context"),a=xn("isSeeking"),l=xn("fixedHeaderHeight"),u=xn("groupIndices").length>0,c=xn("itemContent"),p=xn("groupContent"),d=xn("ScrollSeekPlaceholder")||dn,f=xn("GroupComponent"),h=xn("TableRowComponent"),m=(e?t.topItems:[]).reduce((e,t,n)=>(0===n?e.push(t.size):e.push(e[n-1]+t.size),e),[]),g=(e?t.topItems:t.items).map(t=>{const r=t.originalIndex,g=n(r+i,t.data,s),y=e?0===r?0:m[r-1]:0;return a?(0,o.createElement)(d,{...Gt(d,s),height:t.size,index:t.index,key:g,type:t.type||"item"}):"group"===t.type?(0,o.createElement)(f,{...Gt(f,s),"data-index":r,"data-item-index":t.index,"data-known-size":t.size,key:g,style:{...mn,top:l}},p(t.index,s)):(0,o.createElement)(h,{...Gt(h,s),...Yt(h,t.data),"data-index":r,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:g,style:e?{...mn,top:l+y}:hn},u?c(t.index,t.groupIndex,t.data,s):c(t.index,t.data,s))});return(0,r.jsx)(r.Fragment,{children:g})}),yn=o.memo(function(){const e=xn("listState"),t=xn("topItemsIndexes").length>0,n=En("sizeRanges"),i=xn("useWindowScroll"),s=xn("customScrollParent"),a=En("windowScrollContainerState"),l=En("scrollContainerState"),u=s||i?a:l,c=xn("trackItemSizes"),p=xn("itemSize"),d=xn("log"),{callbackRef:f,ref:h}=$(n,p,c,u,d,void 0,s,!1,xn("skipAnimationFrameInResizeObserver")),[m,g]=o.useState(0);_n("deviation",e=>{m!==e&&(h.current.style.marginTop=`${e}px`,g(e))});const y=xn("EmptyPlaceholder"),v=xn("FillerRow")||fn,b=xn("TableBodyComponent"),w=xn("paddingTopAddition"),C=xn("statefulTotalCount"),_=xn("context");if(0===C&&y)return(0,r.jsx)(y,{...Gt(y,_)});const x=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),E=e.offsetTop+w+m-x,S=e.offsetBottom,P=E>0?(0,r.jsx)(v,{context:_,height:E},"padding-top"):null,O=S>0?(0,r.jsx)(v,{context:_,height:S},"padding-bottom"):null;return(0,r.jsxs)(b,{"data-testid":"virtuoso-item-list",ref:f,...Gt(b,_),children:[P,t&&(0,r.jsx)(gn,{showTopList:!0}),(0,r.jsx)(gn,{}),O]})}),vn=({children:e})=>{const t=o.useContext(kt),n=En("viewportHeight"),i=En("fixedItemHeight"),s=q(o.useMemo(()=>l(n,e=>Ce(e,"height")),[n]),!0,xn("skipAnimationFrameInResizeObserver"));return o.useEffect(()=>{t&&(n(t.viewportHeight),i(t.itemHeight))},[t,n,i]),(0,r.jsx)("div",{"data-viewport-type":"element",ref:s,style:$t(!1),children:e})},bn=({children:e})=>{const t=o.useContext(kt),n=En("windowViewportRect"),i=En("fixedItemHeight"),s=xn("customScrollParent"),a=G(n,s,xn("skipAnimationFrameInResizeObserver"));return o.useEffect(()=>{t&&(i(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,i]),(0,r.jsx)("div",{"data-viewport-type":"window",ref:a,style:$t(!1),children:e})},wn=o.memo(function(e){const t=xn("useWindowScroll"),n=xn("customScrollParent"),i=En("fixedHeaderHeight"),s=En("fixedFooterHeight"),a=xn("fixedHeaderContent"),u=xn("fixedFooterContent"),c=xn("context"),p=q(o.useMemo(()=>l(i,e=>Ce(e,"height")),[i]),!0,xn("skipAnimationFrameInResizeObserver")),d=q(o.useMemo(()=>l(s,e=>Ce(e,"height")),[s]),!0,xn("skipAnimationFrameInResizeObserver")),f=n||t?Pn:Sn,h=n||t?bn:vn,m=xn("TableComponent"),g=xn("TableHeadComponent"),y=xn("TableFooterComponent"),v=a?(0,r.jsx)(g,{ref:p,style:{position:"sticky",top:0,zIndex:2},...Gt(g,c),children:a()},"TableHead"):null,b=u?(0,r.jsx)(y,{ref:d,style:{bottom:0,position:"sticky",zIndex:1},...Gt(y,c),children:u()},"TableFoot"):null;return(0,r.jsx)(f,{...e,...Gt(f,c),children:(0,r.jsx)(h,{children:(0,r.jsxs)(m,{style:{borderSpacing:0,overflowAnchor:"none"},...Gt(m,c),children:[v,(0,r.jsx)(yn,{},"TableBody"),b]})})})}),{Component:Cn,useEmitter:_n,useEmitterValue:xn,usePublisher:En}=Tt(pn,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},wn),Sn=Xt({useEmitter:_n,useEmitterValue:xn,usePublisher:En}),Pn=Jt({useEmitter:_n,useEmitterValue:xn,usePublisher:En}),On={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},Tn={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:kn,floor:An,max:In,min:Rn,round:Mn}=Math;function Dn(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:null===n?null:n[r+e],index:r+e}))}function Ln(e,t){return e&&e.width===t.width&&e.height===t.height}function Nn(e,t){return e&&e.column===t.column&&e.row===t.row}const Vn=N(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:o,headerHeight:i,scrollBy:s,scrollContainerState:a,scrollTo:l,scrollTop:u,smoothScrollTargetReached:c,viewportHeight:p},d,f,{didMount:h,propsReady:y},{customScrollParent:v,useWindowScroll:C,windowScrollContainerState:_,windowScrollTo:T,windowViewportRect:N},V])=>{const z=R(0),B=R(0),H=R(On),U=R({height:0,width:0}),q=R({height:0,width:0}),W=D(),$=D(),Q=R(0),G=R(null),Y=R({column:0,row:0}),Z=D(),K=D(),X=R(!1),J=R(0),ee=R(!0),te=R(!1),ne=R(!1);m(O(h,I(J),E(([e,t])=>!!t)),()=>{g(ee,!1)}),m(O(j(h,ee,q,U,J,te),E(([e,t,n,r,,o])=>e&&!t&&0!==n.height&&0!==r.height&&!o)),([,,,,e])=>{g(te,!0),Be(1,()=>{g(W,e)}),w(O(u),()=>{g(t,[0,0]),g(ee,!0)})}),b(O(K,E(e=>null!=e&&e.scrollTop>0),P(0)),B),m(O(h,I(K),E(([,e])=>null!=e)),([,e])=>{e&&(g(U,e.viewport),g(q,e.item),g(Y,e.gap),e.scrollTop>0&&(g(X,!0),w(O(u,k(1)),e=>{g(X,!1)}),g(l,{top:e.scrollTop})))}),b(O(U,S(({height:e})=>e)),p),b(O(j(F(U,Ln),F(q,Ln),F(Y,(e,t)=>e&&e.column===t.column&&e.row===t.row),F(u)),S(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),Z),b(O(j(F(z),r,F(Y,Nn),F(q,Ln),F(U,Ln),F(G),F(B),F(X),F(ee),F(J)),E(([,,,,,,,e])=>!e),S(([e,[t,n],r,o,i,s,a,,l,u])=>{const{column:c,row:p}=r,{height:d,width:f}=o,{width:h}=i;if(0===a&&(0===e||0===h))return On;if(0===f){const t=He(u,e);return function(e){return{...Tn,items:e}}(Dn(t,t+Math.max(a-1,0),s))}const m=jn(h,f,c);let g,y;l?0===t&&0===n&&a>0?(g=0,y=a-1):(g=m*An((t+p)/(d+p)),y=m*kn((n+p)/(d+p))-1,y=Rn(e-1,In(y,m-1)),g=Rn(y,In(0,g))):(g=0,y=-1);const v=Dn(g,y,s),{bottom:b,top:w}=Fn(i,r,o,v),C=kn(e/m);return{bottom:b,itemHeight:d,items:v,itemWidth:f,offsetBottom:C*d+(C-1)*p-b,offsetTop:w,top:w}})),H),b(O(G,E(e=>null!==e),S(e=>e.length)),z),b(O(j(U,q,H,Y),E(([e,t,{items:n}])=>n.length>0&&0!==t.height&&0!==e.height),S(([e,t,{items:n},r])=>{const{bottom:o,top:i}=Fn(e,r,t,n);return[i,o]}),x(ye)),t);const re=R(!1);b(O(u,I(re),S(([e,t])=>t||0!==e)),re);const oe=L(O(j(H,z),E(([{items:e}])=>e.length>0),I(re),E(([[e,t],n])=>{const r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&r}),S(([[,e]])=>e-1),x())),ie=L(O(F(H),E(({items:e})=>e.length>0&&0===e[0].index),P(0),x())),se=L(O(F(H),I(X),E(([{items:e},t])=>e.length>0&&!t),S(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),x(ge),A(0)));b(se,f.scrollSeekRangeChanged),b(O(W,I(U,q,z,Y),S(([e,t,n,r,o])=>{const i=Fe(e),{align:s,behavior:a,offset:l}=i;let u=i.index;"LAST"===u&&(u=r-1),u=In(0,u,Rn(r-1,u));let c=zn(t,o,n,u);return"end"===s?c=Mn(c-t.height+n.height):"center"===s&&(c=Mn(c-t.height/2+n.height/2)),l&&(c+=l),{behavior:a,top:c}})),l);const ae=M(O(H,S(e=>e.offsetBottom+e.bottom)),0);return b(O(N,S(e=>({height:e.visibleHeight,width:e.visibleWidth}))),U),{customScrollParent:v,data:G,deviation:Q,footerHeight:o,gap:Y,headerHeight:i,increaseViewportBy:e,initialItemCount:B,itemDimensions:q,overscan:n,restoreStateFrom:K,scrollBy:s,scrollContainerState:a,scrollHeight:$,scrollTo:l,scrollToIndex:W,scrollTop:u,smoothScrollTargetReached:c,totalCount:z,useWindowScroll:C,viewportDimensions:U,windowScrollContainerState:_,windowScrollTo:T,windowViewportRect:N,...f,gridState:H,horizontalDirection:ne,initialTopMostItemIndex:J,totalListHeight:ae,...d,endReached:oe,propsReady:y,rangeChanged:se,startReached:ie,stateChanged:Z,stateRestoreInProgress:X,...V}},h(et,Y,Ge,gt,Ve,yt,U));function jn(e,t,n){return In(1,An((e+n)/(An(t)+n)))}function Fn(e,t,n,r){const{height:o}=n;if(void 0===o||0===r.length)return{bottom:0,top:0};const i=zn(e,t,n,r[0].index);return{bottom:zn(e,t,n,r[r.length-1].index)+o,top:i}}function zn(e,t,n,r){const o=jn(e.width,n.width,t.column),i=An(r/o),s=i*n.height+In(0,i-1)*t.row;return s>0?s+t.row:s}const Bn=N(([e,t])=>({...e,...t}),h(Vn,N(()=>{const e=R(e=>`Item ${e}`),t=R({}),n=R(null),r=R("virtuoso-grid-item"),o=R("virtuoso-grid-list"),i=R(Vt),s=R("div"),a=R(p),l=(e,n=null)=>M(O(t,S(t=>t[e]),x()),n),u=R(!1),c=R(!1);return b(F(c),u),{components:t,computeItemKey:i,context:n,FooterComponent:l("Footer"),HeaderComponent:l("Header"),headerFooterTag:s,itemClassName:r,ItemComponent:l("Item","div"),itemContent:e,listClassName:o,ListComponent:l("List","div"),readyStateChanged:u,reportReadyState:c,ScrollerComponent:l("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}))),Hn=o.memo(function(){const e=Zn("gridState"),t=Zn("listClassName"),n=Zn("itemClassName"),i=Zn("itemContent"),s=Zn("computeItemKey"),a=Zn("isSeeking"),l=Kn("scrollHeight"),u=Zn("ItemComponent"),c=Zn("ListComponent"),p=Zn("ScrollSeekPlaceholder"),d=Zn("context"),f=Kn("itemDimensions"),h=Kn("gap"),m=Zn("log"),g=Zn("stateRestoreInProgress"),y=Kn("reportReadyState"),v=q(o.useMemo(()=>e=>{const t=e.parentElement.parentElement.scrollHeight;l(t);const n=e.firstChild;if(n){const{height:e,width:t}=n.getBoundingClientRect();f({height:e,width:t})}h({column:er("column-gap",getComputedStyle(e).columnGap,m),row:er("row-gap",getComputedStyle(e).rowGap,m)})},[l,f,h,m]),!0,!1);return It(()=>{e.itemHeight>0&&e.itemWidth>0&&y(!0)},[e]),g?null:(0,r.jsx)(c,{className:t,ref:v,...Gt(c,d),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{const l=s(t.index,t.data,d);return a?(0,r.jsx)(p,{...Gt(p,d),height:e.itemHeight,index:t.index,width:e.itemWidth},l):(0,o.createElement)(u,{...Gt(u,d),className:n,"data-index":t.index,key:l},i(t.index,t.data,d))})})}),Un=o.memo(function(){const e=Zn("HeaderComponent"),t=Kn("headerHeight"),n=Zn("headerFooterTag"),i=q(o.useMemo(()=>e=>{t(Ce(e,"height"))},[t]),!0,!1),s=Zn("context");return e?(0,r.jsx)(n,{ref:i,children:(0,r.jsx)(e,{...Gt(e,s)})}):null}),qn=o.memo(function(){const e=Zn("FooterComponent"),t=Kn("footerHeight"),n=Zn("headerFooterTag"),i=q(o.useMemo(()=>e=>{t(Ce(e,"height"))},[t]),!0,!1),s=Zn("context");return e?(0,r.jsx)(n,{ref:i,children:(0,r.jsx)(e,{...Gt(e,s)})}):null}),Wn=({children:e})=>{const t=o.useContext(At),n=Kn("itemDimensions"),i=Kn("viewportDimensions"),s=q(o.useMemo(()=>e=>{i(e.getBoundingClientRect())},[i]),!0,!1);return o.useEffect(()=>{t&&(i({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,i,n]),(0,r.jsx)("div",{ref:s,style:$t(!1),children:e})},$n=({children:e})=>{const t=o.useContext(At),n=Kn("windowViewportRect"),i=Kn("itemDimensions"),s=Zn("customScrollParent"),a=G(n,s,!1);return o.useEffect(()=>{t&&(i({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,i]),(0,r.jsx)("div",{ref:a,style:$t(!1),children:e})},Qn=o.memo(function({...e}){const t=Zn("useWindowScroll"),n=Zn("customScrollParent"),o=n||t?Jn:Xn,i=n||t?$n:Wn,s=Zn("context");return(0,r.jsx)(o,{...e,...Gt(o,s),children:(0,r.jsxs)(i,{children:[(0,r.jsx)(Un,{}),(0,r.jsx)(Hn,{}),(0,r.jsx)(qn,{})]})})}),{Component:Gn,useEmitter:Yn,useEmitterValue:Zn,usePublisher:Kn}=Tt(Bn,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},Qn),Xn=Xt({useEmitter:Yn,useEmitterValue:Zn,usePublisher:Kn}),Jn=Jt({useEmitter:Yn,useEmitterValue:Zn,usePublisher:Kn});function er(e,t,n){return"normal"!==t&&!(null!=t&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,B.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}const tr=Gn},46903(e,t,n){"use strict";n.d(t,{IO:()=>p,LU:()=>l,MS:()=>r,Sv:()=>c,XZ:()=>a,YK:()=>s,j:()=>i,vd:()=>o,yE:()=>u});var r="-ms-",o="-moz-",i="-webkit-",s="comm",a="rule",l="decl",u="@import",c="@keyframes",p="@layer"},39574(e,t,n){"use strict";n.d(t,{MY:()=>i,r1:()=>o});var r=n(75612);function o(e){var t=(0,r.FK)(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},16253(e,t,n){"use strict";n.d(t,{wE:()=>s});var r=n(46903),o=n(75612),i=n(95093);function s(e){return(0,i.VF)(a("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function a(e,t,n,r,s,p,d,f,h){for(var m=0,g=0,y=d,v=0,b=0,w=0,C=1,_=1,x=1,E=0,S="",P=s,O=p,T=r,k=S;_;)switch(w=E,E=(0,i.K2)()){case 40:if(108!=w&&58==(0,o.wN)(k,y-1)){-1!=(0,o.K5)(k+=(0,o.HC)((0,i.Tb)(E),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:k+=(0,i.Tb)(E);break;case 9:case 10:case 13:case 32:k+=(0,i.mw)(w);break;case 92:k+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,o.BC)(u((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,n),h);break;default:k+="/"}break;case 123*C:f[m++]=(0,o.b2)(k)*x;case 125*C:case 59:case 0:switch(E){case 0:case 125:_=0;case 59+g:-1==x&&(k=(0,o.HC)(k,/\f/g,"")),b>0&&(0,o.b2)(k)-y&&(0,o.BC)(b>32?c(k+";",r,n,y-1):c((0,o.HC)(k," ","")+";",r,n,y-2),h);break;case 59:k+=";";default:if((0,o.BC)(T=l(k,t,n,m,g,s,f,S,P=[],O=[],y),p),123===E)if(0===g)a(k,t,T,T,P,p,y,f,O);else switch(99===v&&110===(0,o.wN)(k,3)?100:v){case 100:case 108:case 109:case 115:a(e,T,T,r&&(0,o.BC)(l(e,T,T,0,0,s,f,S,s,P=[],y),O),s,O,y,f,r?P:O);break;default:a(k,T,T,T,[""],O,0,f,O)}}m=g=b=0,C=x=1,S=k="",y=d;break;case 58:y=1+(0,o.b2)(k),b=w;default:if(C<1)if(123==E)--C;else if(125==E&&0==C++&&125==(0,i.YL)())continue;switch(k+=(0,o.HT)(E),E*C){case 38:x=g>0?1:(k+="\f",-1);break;case 44:f[m++]=((0,o.b2)(k)-1)*x,x=1;break;case 64:45===(0,i.se)()&&(k+=(0,i.Tb)((0,i.K2)())),v=(0,i.se)(),g=y=(0,o.b2)(S=k+=(0,i.Cv)((0,i.OW)())),E++;break;case 45:45===w&&2==(0,o.b2)(k)&&(C=0)}}return p}function l(e,t,n,s,a,l,u,c,p,d,f){for(var h=a-1,m=0===a?l:[""],g=(0,o.FK)(m),y=0,v=0,b=0;y<s;++y)for(var w=0,C=(0,o.c1)(e,h+1,h=(0,o.tn)(v=u[y])),_=e;w<g;++w)(_=(0,o.Bq)(v>0?m[w]+" "+C:(0,o.HC)(C,/&\f/g,m[w])))&&(p[b++]=_);return(0,i.rH)(e,t,n,0===a?r.XZ:c,p,d,f)}function u(e,t,n){return(0,i.rH)(e,t,n,r.YK,(0,o.HT)((0,i.Tp)()),(0,o.c1)(e,2,-2),0)}function c(e,t,n,s){return(0,i.rH)(e,t,n,r.LU,(0,o.c1)(e,0,s),(0,o.c1)(e,s+1,-1),s)}},3746(e,t,n){"use strict";n.d(t,{A:()=>s,l:()=>i});var r=n(46903),o=n(75612);function i(e,t){for(var n="",r=(0,o.FK)(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function s(e,t,n,s){switch(e.type){case r.IO:if(e.children.length)break;case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+i(e.children,s)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=i(e.children,s))?e.return=e.value+"{"+n+"}":""}},95093(e,t,n){"use strict";n.d(t,{C:()=>p,Cv:()=>P,G1:()=>a,K2:()=>h,Nc:()=>x,OW:()=>g,Sh:()=>v,Tb:()=>C,Tp:()=>d,VF:()=>w,YL:()=>f,c4:()=>b,di:()=>y,mw:()=>_,nf:()=>S,rH:()=>c,se:()=>m});var r=n(75612),o=1,i=1,s=0,a=0,l=0,u="";function c(e,t,n,r,s,a,l){return{value:e,root:t,parent:n,type:r,props:s,children:a,line:o,column:i,length:l,return:""}}function p(e,t){return(0,r.kp)(c("",null,null,"",null,null,0),e,{length:-e.length},t)}function d(){return l}function f(){return l=a>0?(0,r.wN)(u,--a):0,i--,10===l&&(i=1,o--),l}function h(){return l=a<s?(0,r.wN)(u,a++):0,i++,10===l&&(i=1,o++),l}function m(){return(0,r.wN)(u,a)}function g(){return a}function y(e,t){return(0,r.c1)(u,e,t)}function v(e){switch(e){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 b(e){return o=i=1,s=(0,r.b2)(u=e),a=0,[]}function w(e){return u="",e}function C(e){return(0,r.Bq)(y(a-1,E(91===e?e+2:40===e?e+1:e)))}function _(e){for(;(l=m())&&l<33;)h();return v(e)>2||v(l)>3?"":" "}function x(e,t){for(;--t&&h()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return y(e,g()+(t<6&&32==m()&&32==h()))}function E(e){for(;h();)switch(l){case e:return a;case 34:case 39:34!==e&&39!==e&&E(l);break;case 40:41===e&&E(e);break;case 92:h()}return a}function S(e,t){for(;h()&&e+l!==57&&(e+l!==84||47!==m()););return"/*"+y(t,a-1)+"*"+(0,r.HT)(47===e?e:h())}function P(e){for(;!v(m());)h();return y(e,a)}},75612(e,t,n){"use strict";n.d(t,{BC:()=>m,Bq:()=>a,FK:()=>h,HC:()=>u,HT:()=>o,K5:()=>c,YW:()=>l,b2:()=>f,c1:()=>d,kg:()=>g,kp:()=>i,tW:()=>s,tn:()=>r,wN:()=>p});var r=Math.abs,o=String.fromCharCode,i=Object.assign;function s(e,t){return 45^p(e,0)?(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3):0}function a(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function m(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},92981(e,t,n){"use strict";n.d(t,{Ay:()=>f,Q9:()=>d,V1:()=>l,zU:()=>a});var r=n(65959),o="Invariant Violation",i=Object.setPrototypeOf,s=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,s(r,t.prototype),r}return(0,r.__extends)(t,e),t}(Error);function l(e,t){if(!e)throw new a(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function p(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}function d(e){var t=u[c];return c=Math.max(0,u.indexOf(e)),t}!function(e){e.debug=p("debug"),e.log=p("log"),e.warn=p("warn"),e.error=p("error")}(l||(l={}));const f=l},65959(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>L,__assign:()=>i,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>P,__await:()=>x,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>M,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>V,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>o,__generator:()=>m,__importDefault:()=>I,__importStar:()=>A,__makeTemplateObject:()=>O,__metadata:()=>f,__param:()=>l,__propKey:()=>p,__read:()=>b,__rest:()=>s,__rewriteRelativeImportExtension:()=>j,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>_,__spreadArrays:()=>C,__values:()=>v,default:()=>F});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,o,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,p=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,f=n.length-1;f>=0;f--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var g=(0,n[f])("accessor"===l?{get:p.get,set:p.set}:p[u],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=s(g.get))&&(p.get=a),(a=s(g.set))&&(p.set=a),(a=s(g.init))&&o.unshift(a)}else(a=s(g))&&("field"===l?o.unshift(a):p[u]=a)}c&&Object.defineProperty(c,r.name,p),d=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function C(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function _(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=o[e](t)).value instanceof x?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:x(e[r](t)),done:!1}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},k=function(e){return k=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},k(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=k(e),r=0;r<n.length;r++)"default"!==n[r]&&g(t,e,n[r]);return T(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function V(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function j(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,o,i){return n?t?".jsx":".js":!r||o&&i?r+o+"."+i.toLowerCase()+"js":e}):e}const F={__extends:o,__assign:i,__rest:s,__decorate:a,__param:l,__esDecorate:u,__runInitializers:c,__propKey:p,__setFunctionName:d,__metadata:f,__awaiter:h,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:w,__spreadArrays:C,__spreadArray:_,__await:x,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:P,__makeTemplateObject:O,__importStar:A,__importDefault:I,__classPrivateFieldGet:R,__classPrivateFieldSet:M,__classPrivateFieldIn:D,__addDisposableResource:L,__disposeResources:V,__rewriteRelativeImportExtension:j}},42625(e,t,n){"use strict";n.d(t,{LF:()=>fc,M9:()=>yc,Wp:()=>kc,_h:()=>vc});var r=n(85409),o="0.18.5",i=1200,s=1252,a=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},u=function(e){-1!=a.indexOf(e)&&(s=l[0]=e)},c=function(e){i=e,u(e)};function p(){c(1200),u(1252)}function d(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e.charCodeAt(n);return t}function f(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var h,m=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==n?f(e.slice(2)):65279==t?e.slice(1):e},g=function(e){return String.fromCharCode(e)},y=function(e){return String.fromCharCode(e)},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function b(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0,l=0,u=0;u<e.length;)i=(n=e.charCodeAt(u++))>>2,s=(3&n)<<4|(r=e.charCodeAt(u++))>>4,a=(15&r)<<2|(o=e.charCodeAt(u++))>>6,l=63&o,isNaN(r)?a=l=64:isNaN(o)&&(l=64),t+=v.charAt(i)+v.charAt(s)+v.charAt(a)+v.charAt(l);return t}function w(e){var t="",n=0,r=0,o=0,i=0,s=0,a=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=v.indexOf(e.charAt(l++))<<2|(i=v.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&i)<<4|(s=v.indexOf(e.charAt(l++)))>>2,64!==s&&(t+=String.fromCharCode(r)),o=(3&s)<<6|(a=v.indexOf(e.charAt(l++))),64!==a&&(t+=String.fromCharCode(o));return t}var C=function(){return"undefined"!=typeof Buffer&&void 0!==r&&void 0!==r.versions&&!!r.versions.node}(),_=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function x(e){return C?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function E(e){return C?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var S=function(e){return C?_(e,"binary"):e.split("").map(function(e){return 255&e.charCodeAt(0)})};function P(e){if("undefined"==typeof ArrayBuffer)return S(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function O(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function T(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return T(new Uint8Array(e));for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}var k=C?function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:_(e)}))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),o=0;for(t=0,n=0;t<e.length;n+=o,++t)if(o=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map(function(e){return Array.isArray(e)?e:[].slice.call(e)}))},A=/\u0000/g,I=/[\u0001-\u0006]/g;function R(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function M(e,t){var n=""+e;return n.length>=t?n:$e("0",t-n.length)+n}function D(e,t){var n=""+e;return n.length>=t?n:$e(" ",t-n.length)+n}function L(e,t){var n=""+e;return n.length>=t?n:n+$e(" ",t-n.length)}var N=Math.pow(2,32);function V(e,t){return e>N||e<-N?function(e,t){var n=""+Math.round(e);return n.length>=t?n:$e("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:$e("0",t-n.length)+n}(Math.round(e),t)}function j(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var F=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],z=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],B={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},H={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},U={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function q(e,t,n){for(var r=e<0?-1:1,o=e*r,i=0,s=1,a=0,l=1,u=0,c=0,p=Math.floor(o);u<t&&(a=(p=Math.floor(o))*s+i,c=p*u+l,!(o-p<5e-8));)o=1/(o-p),i=s,s=a,l=u,u=c;if(c>t&&(u>t?(c=l,a=i):(c=u,a=s)),!n)return[0,r*a,c];var d=Math.floor(r*a/c);return[d,r*a-d*c,c]}function W(e,t,n){if(e>2958465||e<0)return null;var r=0|e,o=Math.floor(86400*(e-r)),i=0,s=[],a={D:r,T:o,u:86400*(e-r)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),t&&t.date1904&&(r+=1462),a.u>.9999&&(a.u=0,86400==++o&&(a.T=o=0,++r,++a.D)),60===r)s=n?[1317,10,29]:[1900,2,29],i=3;else if(0===r)s=n?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),r<60&&(i=(i+6)%7),n&&(i=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,s))}return a.y=s[0],a.m=s[1],a.d=s[2],a.S=o%60,o=Math.floor(o/60),a.M=o%60,o=Math.floor(o/60),a.H=o,a.q=i,a}var Q=new Date(1899,11,31,0,0,0),G=Q.getTime(),Y=new Date(1900,2,1,0,0,0);function Z(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Y&&(n+=864e5),(n-(G+6e4*(e.getTimezoneOffset()-Q.getTimezoneOffset())))/864e5}function K(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function X(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=K(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=K(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),K(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function J(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):X(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return be(14,Z(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ee(e,t,n,r){var o,i="",s=0,a=0,l=n.y,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:o=l%100,u=2;break;default:o=l%1e4,u=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,u=t.length;break;case 3:return z[n.m-1][1];case 5:return z[n.m-1][0];default:return z[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,u=t.length;break;case 3:return F[n.q][0];default:return F[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(a=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(a*(n.S+n.u)))>=60*a&&(s=0),"s"===t?0===s?"0":""+s/a:(i=M(s,2+r),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):M(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:o=l,u=1}return u>0?M(o,u):""}function te(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var ne=/%/g;function re(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+re(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var oe=/# (\?+)( ?)\/( ?)(\d+)/,ie=/^#*0*\.([0#]+)/,se=/\).*[0#]/,ae=/\(###\) ###\\?-####/;function le(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function ue(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function ce(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function pe(e,t,n){if(40===e.charCodeAt(0)&&!t.match(se)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?pe("n",r,n):"("+pe("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return he(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(ne,""),o=t.length-r.length;return he(e,r,n*Math.pow(10,2*o))+$e("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return re(t,n);if(36===t.charCodeAt(0))return"$"+pe(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+V(l,t.length);if(t.match(/^[#?]+$/))return"0"===(o=V(n,0))&&(o=""),o.length>t.length?o:le(t.substr(0,t.length-o.length))+o;if(i=t.match(oe))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),i=Math.floor(o/r),s=o-i*r,a=r;return n+(0===i?"":""+i)+" "+(0===s?$e(" ",e[1].length+1+e[4].length):D(s,e[1].length)+e[2]+"/"+e[3]+M(a,e[4].length))}(i,l,u);if(t.match(/^#+0+$/))return u+V(l,t.length-t.indexOf("0"));if(i=t.match(ie))return o=ue(n,i[1].length).replace(/^([^\.]+)$/,"$1."+le(i[1])).replace(/\.$/,"."+le(i[1])).replace(/\.(\d*)$/,function(e,t){return"."+t+$e("0",le(i[1]).length-t.length)}),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+ue(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+te(V(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+pe(e,t,-n):te(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,i[1].length)))+"."+M(ce(n,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return pe(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=R(pe(e,t.replace(/[\\-]/g,""),n)),s=0,R(R(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""}));if(t.match(ae))return"("+(o=pe(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=q(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=he("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=L(a[2],s)).length<i[4].length&&(c=le(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=q(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?D(a[1],s)+i[2]+"/"+i[3]+L(a[2],s):$e(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=V(n,0),t.length<=o.length?o:le(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return le(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=ce(n,i[1].length),n<0?"-"+pe(e,t,-n):te(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?M(0,3-e.length):"")+e})+"."+M(s,i[1].length);switch(t){case"###,##0.00":return pe(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var f=te(V(l,0));return"0"!==f?u+f:"";case"###,###.00":return pe(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return pe(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function de(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+de(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),!(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function fe(e,t,n){if(40===e.charCodeAt(0)&&!t.match(se)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?fe("n",r,n):"("+fe("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return he(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(ne,""),o=t.length-r.length;return he(e,r,n*Math.pow(10,2*o))+$e("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return de(t,n);if(36===t.charCodeAt(0))return"$"+fe(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+M(l,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:le(t.substr(0,t.length-o.length))+o;if(i=t.match(oe))return function(e,t,n){return n+(0===t?"":""+t)+$e(" ",e[1].length+2+e[4].length)}(i,l,u);if(t.match(/^#+0+$/))return u+M(l,t.length-t.indexOf("0"));if(i=t.match(ie))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+le(i[1])).replace(/\.$/,"."+le(i[1]))).replace(/\.(\d*)$/,function(e,t){return"."+t+$e("0",le(i[1]).length-t.length)}),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+te(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+fe(e,t,-n):te(""+n)+"."+$e("0",i[1].length);if(i=t.match(/^#,#*,#0/))return fe(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=R(fe(e,t.replace(/[\\-]/g,""),n)),s=0,R(R(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""}));if(t.match(ae))return"("+(o=fe(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=q(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=he("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=L(a[2],s)).length<i[4].length&&(c=le(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=q(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?D(a[1],s)+i[2]+"/"+i[3]+L(a[2],s):$e(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:le(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return le(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+fe(e,t,-n):te(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?M(0,3-e.length):"")+e})+"."+M(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var f=te(""+l);return"0"!==f?u+f:"";default:if(t.match(/\.[0#?]*$/))return fe(e,t.slice(0,t.lastIndexOf(".")),n)+le(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function he(e,t,n){return(0|n)===n?fe(e,t,n):pe(e,t,n)}var me=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ge(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":j(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(me))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var ye=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ve(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function be(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:B)[e])&&(r=n.table&&n.table[H[e]]||B[H[e]]),null==r&&(r=U[e]||"General")}if(j(r,0))return J(t,n);t instanceof Date&&(t=Z(t,n.date1904));var o=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,o=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(o,r-o),o=r+1}if(t[t.length]=e.substr(o),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var s=n[0].match(ye),a=n[1].match(ye);return ve(t,s)?[r,n[0]]:ve(t,a)?[r,n[1]]:[r,n[null!=s&&null!=a?2:1]]}return[r,i]}(r,t);if(j(o[1]))return J(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var o,i,s,a=[],l="",u=0,c="",p="t",d="H";u<e.length;)switch(c=e.charAt(u)){case"G":if(!j(e,u))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"G",v:"General"},u+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++u))&&u<e.length;)l+=String.fromCharCode(s);a[a.length]={t:"t",v:l},++u;break;case"\\":var f=e.charAt(++u),h="("===f||")"===f?f:"t";a[a.length]={t:h,v:f},++u;break;case"_":a[a.length]={t:"t",v:" "},u+=2;break;case"@":a[a.length]={t:"T",v:t},++u;break;case"B":case"b":if("1"===e.charAt(u+1)||"2"===e.charAt(u+1)){if(null==o&&null==(o=W(t,n,"2"===e.charAt(u+1))))return"";a[a.length]={t:"X",v:e.substr(u,2)},p=c,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=W(t,n)))return"";for(l=c;++u<e.length&&e.charAt(u).toLowerCase()===c;)l+=c;"m"===c&&"h"===p.toLowerCase()&&(c="M"),"h"===c&&(c=d),a[a.length]={t:c,v:l},p=c;break;case"A":case"a":case"上":var m={t:c,v:c};if(null==o&&(o=W(t,n)),"A/P"===e.substr(u,3).toUpperCase()?(null!=o&&(m.v=o.H>=12?"P":"A"),m.t="T",d="h",u+=3):"AM/PM"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"PM":"AM"),m.t="T",u+=5,d="h"):"上午/下午"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"下午":"上午"),m.t="T",u+=5,d="h"):(m.t="t",++u),null==o&&"T"===m.t)return"";a[a.length]=m,p=c;break;case"[":for(l=c;"]"!==e.charAt(u++)&&u<e.length;)l+=e.charAt(u);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(me)){if(null==o&&null==(o=W(t,n)))return"";a[a.length]={t:"Z",v:l.toLowerCase()},p=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",ge(e)||(a[a.length]={t:"t",v:l}));break;case".":if(null!=o){for(l=c;++u<e.length&&"0"===(c=e.charAt(u));)l+=c;a[a.length]={t:"s",v:l};break}case"0":case"#":for(l=c;++u<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(u))>-1;)l+=c;a[a.length]={t:"n",v:l};break;case"?":for(l=c;e.charAt(++u)===c;)l+=c;a[a.length]={t:c,v:l},p=c;break;case"*":++u," "!=e.charAt(u)&&"*"!=e.charAt(u)||++u;break;case"(":case")":a[a.length]={t:1===r?"t":c,v:c},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=c;u<e.length&&"0123456789".indexOf(e.charAt(++u))>-1;)l+=e.charAt(u);a[a.length]={t:"D",v:l};break;case" ":a[a.length]={t:c,v:c},++u;break;case"$":a[a.length]={t:"t",v:"$"},++u;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++u}var g,y=0,v=0;for(u=a.length-1,p="t";u>=0;--u)switch(a[u].t){case"h":case"H":a[u].t=d,p="h",y<1&&(y=1);break;case"s":(g=a[u].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":p=a[u].t;break;case"m":"s"===p&&(a[u].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&a[u].v.match(/[Hh]/)&&(y=1),y<2&&a[u].v.match(/[Mm]/)&&(y=2),y<3&&a[u].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M)}var b,w="";for(u=0;u<a.length;++u)switch(a[u].t){case"t":case"T":case" ":case"D":break;case"X":a[u].v="",a[u].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[u].v=ee(a[u].t.charCodeAt(0),a[u].v,o,v),a[u].t="t";break;case"n":case"?":for(b=u+1;null!=a[b]&&("?"===(c=a[b].t)||"D"===c||(" "===c||"t"===c)&&null!=a[b+1]&&("?"===a[b+1].t||"t"===a[b+1].t&&"/"===a[b+1].v)||"("===a[u].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===a[b].v||" "===a[b].v&&null!=a[b+1]&&"?"==a[b+1].t));)a[u].v+=a[b].v,a[b]={v:"",t:";"},++b;w+=a[u].v,u=b-1;break;case"G":a[u].t="t",a[u].v=J(t,n)}var C,_,x="";if(w.length>0){40==w.charCodeAt(0)?(C=t<0&&45===w.charCodeAt(0)?-t:t,_=he("n",w,C)):(_=he("n",w,C=t<0&&r>1?-t:t),C<0&&a[0]&&"t"==a[0].t&&(_=_.substr(1),a[0].v="-"+a[0].v)),b=_.length-1;var E=a.length;for(u=0;u<a.length;++u)if(null!=a[u]&&"t"!=a[u].t&&a[u].v.indexOf(".")>-1){E=u;break}var S=a.length;if(E===a.length&&-1===_.indexOf("E")){for(u=a.length-1;u>=0;--u)null!=a[u]&&-1!=="n?".indexOf(a[u].t)&&(b>=a[u].v.length-1?(b-=a[u].v.length,a[u].v=_.substr(b+1,a[u].v.length)):b<0?a[u].v="":(a[u].v=_.substr(0,b+1),b=-1),a[u].t="t",S=u);b>=0&&S<a.length&&(a[S].v=_.substr(0,b+1)+a[S].v)}else if(E!==a.length&&-1===_.indexOf("E")){for(b=_.indexOf(".")-1,u=E;u>=0;--u)if(null!=a[u]&&-1!=="n?".indexOf(a[u].t)){for(i=a[u].v.indexOf(".")>-1&&u===E?a[u].v.indexOf(".")-1:a[u].v.length-1,x=a[u].v.substr(i+1);i>=0;--i)b>=0&&("0"===a[u].v.charAt(i)||"#"===a[u].v.charAt(i))&&(x=_.charAt(b--)+x);a[u].v=x,a[u].t="t",S=u}for(b>=0&&S<a.length&&(a[S].v=_.substr(0,b+1)+a[S].v),b=_.indexOf(".")+1,u=E;u<a.length;++u)if(null!=a[u]&&(-1!=="n?(".indexOf(a[u].t)||u===E)){for(i=a[u].v.indexOf(".")>-1&&u===E?a[u].v.indexOf(".")+1:0,x=a[u].v.substr(0,i);i<a[u].v.length;++i)b<_.length&&(x+=_.charAt(b++));a[u].v=x,a[u].t="t",S=u}}}for(u=0;u<a.length;++u)null!=a[u]&&"n?".indexOf(a[u].t)>-1&&(C=r>1&&t<0&&u>0&&"-"===a[u-1].v?-t:t,a[u].v=he(a[u].t,a[u].v,C),a[u].t="t");var P="";for(u=0;u!==a.length;++u)null!=a[u]&&(P+=a[u].v);return P}(o[1],t,n,o[0])}function we(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=B[n]){if(B[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return B[t]=e,t}function Ce(e){for(var t=0;392!=t;++t)void 0!==e[t]&&we(e[t],t)}function _e(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',B=e}var xe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ee=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Se=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,o="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)o[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=o[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array?o.subarray(256*r,256*r+256):o.slice(256*r,256*r+256);return i}(t),r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=n[7],p=n[8],d=n[9],f=n[10],h=n[11],m=n[12],g=n[13],y=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,o=0,i=e.length;o<i;)r=r>>>8^t[255&(r^e.charCodeAt(o++))];return~r},e.buf=function(e,n){for(var v=-1^n,b=e.length-15,w=0;w<b;)v=y[e[w++]^255&v]^g[e[w++]^v>>8&255]^m[e[w++]^v>>16&255]^h[e[w++]^v>>>24]^f[e[w++]]^d[e[w++]]^p[e[w++]]^c[e[w++]]^u[e[w++]]^l[e[w++]]^a[e[w++]]^s[e[w++]]^i[e[w++]]^o[e[w++]]^r[e[w++]]^t[e[w++]];for(b+=15;w<b;)v=v>>>8^t[255&(v^e[w++])];return~v},e.str=function(e,n){for(var r=-1^n,o=0,i=e.length,s=0,a=0;o<i;)(s=e.charCodeAt(o++))<128?r=r>>>8^t[255&(r^s)]:s<2048?r=(r=r>>>8^t[255&(r^(192|s>>6&31))])>>>8^t[255&(r^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),a=1023&e.charCodeAt(o++),r=(r=(r=(r=r>>>8^t[255&(r^(240|s>>8&7))])>>>8^t[255&(r^(128|s>>2&63))])>>>8^t[255&(r^(128|a>>6&15|(3&s)<<4))])>>>8^t[255&(r^(128|63&a))]):r=(r=(r=r>>>8^t[255&(r^(224|s>>12&15))])>>>8^t[255&(r^(128|s>>6&63))])>>>8^t[255&(r^(128|63&s))];return~r},e}(),Pe=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function i(e){Dn(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),o=e.read_shift(2),i=e.l+o,s={};21589===r&&(1&(n=e.read_shift(1))&&(s.mtime=e.read_shift(4)),o>5&&(2&n&&(s.atime=e.read_shift(4)),4&n&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new Date(1e3*s.mtime))),e.l=i,t[r]=s}return t}function s(){return e||(e={})}function a(e,t){if(80==e[0]&&75==e[1])return fe(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=R(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(C&&Buffer.isBuffer(e)?e.toString("binary"):R(e)).split("\r\n"),o=0,i="";for(o=0;o<r.length;++o)if(i=r[o],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var s=(r[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var a="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};d(l);var u,c=0;for(o=0;o<r.length;++o){var p=r[o];p!==a&&p!==a+"--"||(c++&&be(l,r.slice(u,o),n),u=o)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,i,s,a,f=512,h=[],m=e.slice(0,512);Dn(m,0);var g=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(v,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=g[0]){case 3:f=512;break;case 4:f=4096;break;case 0:if(0==g[1])return fe(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==f&&Dn(m=e.slice(0,f),28);var b=e.slice(0,f);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var w=m.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),r=m.read_shift(4,"i"),a=m.read_shift(4,"i"),o=m.read_shift(4,"i");for(var _=-1,x=0;x<109&&!((_=m.read_shift(4,"i"))<0);++x)h[x]=_;var E=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],o=1;o<n;++o)r[o-1]=e.slice(o*t,(o+1)*t);return r[n-1]=e.slice(n*t),r}(e,f);u(a,o,E,f,h);var S=function(e,t,n,r){var o=e.length,i=[],s=[],a=[],l=[],u=r-1,c=0,p=0,d=0,f=0;for(c=0;c<o;++c)if(a=[],(d=c+t)>=o&&(d-=o),!s[d]){l=[];var h=[];for(p=d;p>=0;){h[p]=!0,s[p]=!0,a[a.length]=p,l.push(e[p]);var m=n[Math.floor(4*p/r)];if(r<4+(f=4*p&u))throw new Error("FAT boundary crossed: "+p+" 4 "+r);if(!e[m])break;if(h[p=Tn(e[m],f)])break}i[d]={nodes:a,data:rn([l])}}return i}(E,i,h,f);S[i].name="!Directory",r>0&&s!==y&&(S[s].name="!MiniFAT"),S[h[0]].name="!FAT",S.fat_addrs=h,S.ssz=f;var P=[],O=[],T=[];!function(e,t,n,r,o,i,s,a){for(var u,d=0,f=r.length?2:0,h=t[e].data,m=0,g=0;m<h.length;m+=128){var v=h.slice(m,m+128);Dn(v,64),g=v.read_shift(2),u=sn(v,0,g-f),r.push(u);var b={name:u,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.ct=p(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.mt=p(v,v.l-8)),b.start=v.read_shift(4,"i"),b.size=v.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=y,b.name=""),5===b.type?(d=b.start,o>0&&d!==y&&(t[d].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=c(n,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:d!==y&&b.start!==y&&t[d]&&(b.content=l(b,t[d].data,(t[a]||{}).data))),b.content&&Dn(b.content,0),i[u]=b,s.push(b)}}(i,S,E,P,r,{},O,s),function(e,t,n){for(var r=0,o=0,i=0,s=0,a=0,l=n.length,u=[],c=[];r<l;++r)u[r]=c[r]=r,t[r]=n[r];for(;a<c.length;++a)o=e[r=c[a]].L,i=e[r].R,s=e[r].C,u[r]===r&&(-1!==o&&u[o]!==o&&(u[r]=u[o]),-1!==i&&u[i]!==i&&(u[r]=u[i])),-1!==s&&(u[s]=r),-1!==o&&r!=u[r]&&(u[o]=u[r],c.lastIndexOf(o)<a&&c.push(o)),-1!==i&&r!=u[r]&&(u[i]=u[r],c.lastIndexOf(i)<a&&c.push(i));for(r=1;r<l;++r)u[r]===r&&(-1!==i&&u[i]!==i?u[r]=u[i]:-1!==o&&u[o]!==o&&(u[r]=u[o]));for(r=1;r<l;++r)if(0!==e[r].type){if((a=r)!=u[a])do{a=u[a],t[r]=t[a]+"/"+t[r]}while(0!==a&&-1!==u[a]&&a!=u[a]);u[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(O,T,P),P.shift();var k={FileIndex:O,FullPaths:T};return t&&t.raw&&(k.raw={header:b,sectors:E}),k}function l(e,t,n){for(var r=e.start,o=e.size,i=[],s=r;n&&o>0&&s>=0;)i.push(t.slice(s*g,s*g+g)),o-=g,s=Tn(n,4*s);return 0===i.length?Nn(0):k(i).slice(0,e.size)}function u(e,t,n,r,o){var i=y;if(e===y){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=n[e],a=(r>>>2)-1;if(!s)return;for(var l=0;l<a&&(i=Tn(s,4*l))!==y;++l)o.push(i);u(Tn(s,r-4),t-1,n,r,o)}}function c(e,t,n,r,o){var i=[],s=[];o||(o=[]);var a=r-1,l=0,u=0;for(l=t;l>=0;){o[l]=!0,i[i.length]=l,s.push(e[l]);var c=n[Math.floor(4*l/r)];if(r<4+(u=4*l&a))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[c])break;l=Tn(e[c],u)}return{nodes:i,data:rn([s])}}function p(e,t){return new Date(1e3*(On(e,t+4)/1e7*Math.pow(2,32)+On(e,t)/1e7-11644473600))}function d(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!Pe.find(e,"/"+t)){var n=Nn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),f(e)}}(e)}function f(e,t){d(e);for(var o=!1,i=!1,s=e.FullPaths.length-1;s>=0;--s){var a=e.FileIndex[s];switch(a.type){case 0:i?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(a.R*a.L*a.C)&&(o=!0),a.R>-1&&a.L>-1&&a.R==a.L&&(o=!0);break;default:o=!0}}if(o||t){var l=new Date(1987,1,19),u=0,c=Object.create?Object.create(null):{},p=[];for(s=0;s<e.FullPaths.length;++s)c[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&p.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<p.length;++s){var f=n(p[s][0]);(i=c[f])||(p.push([f,{name:r(f).replace("/",""),type:1,clsid:O,ct:l,mt:l,content:null}]),c[f]=!0)}for(p.sort(function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),o=0,i=0,s=Math.min(n.length,r.length);o<s;++o){if(i=n[o].length-r[o].length)return i;if(n[o]!=r[o])return n[o]<r[o]?-1:1}return n.length-r.length}(e[0],t[0])}),e.FullPaths=[],e.FileIndex=[],s=0;s<p.length;++s)e.FullPaths[s]=p[s][0],e.FileIndex[s]=p[s][1];for(s=0;s<p.length;++s){var h=e.FileIndex[s],m=e.FullPaths[s];if(h.name=r(m).replace("/",""),h.L=h.R=h.C=-(h.color=1),h.size=h.content?h.content.length:0,h.start=0,h.clsid=h.clsid||O,0===s)h.C=p.length>1?1:-1,h.size=0,h.type=5;else if("/"==m.slice(-1)){for(u=s+1;u<p.length&&n(e.FullPaths[u])!=m;++u);for(h.C=u>=p.length?-1:u,u=s+1;u<p.length&&n(e.FullPaths[u])!=n(m);++u);h.R=u>=p.length?-1:u,h.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(h.R=s+1),h.type=2}}}function h(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],i=e.FullPaths[0],s=i,a=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(i.length),(a=e.FileIndex[l]).size&&a.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"});for(var u=a.content,c=C&&Buffer.isBuffer(u)?u.toString("binary"):R(u),p=0,d=Math.min(1024,c.length),f=0,h=0;h<=d;++h)(f=c.charCodeAt(h))>=32&&f<128&&++p;var m=p>=4*d/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),o.push("Content-Type: "+ge(a,s)),o.push(""),o.push(m?ve(c):ye(c))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);if(f(e),"zip"===n.fileType)return function(e,t){var n=t||{},r=[],i=[],s=Nn(1),a=n.compression?8:0,l=0,u=0,c=0,p=0,d=e.FullPaths[0],f=d,h=e.FileIndex[0],m=[],g=0;for(l=1;l<e.FullPaths.length;++l)if(f=e.FullPaths[l].slice(d.length),(h=e.FileIndex[l]).size&&h.content&&"Sh33tJ5"!=f){var y=c,v=Nn(f.length);for(u=0;u<f.length;++u)v.write_shift(1,127&f.charCodeAt(u));v=v.slice(0,v.l),m[p]=Se.buf(h.content,0);var b=h.content;8==a&&(b=M(b)),(s=Nn(30)).write_shift(4,67324752),s.write_shift(2,20),s.write_shift(2,0),s.write_shift(2,a),h.mt?o(s,h.mt):s.write_shift(4,0),s.write_shift(-4,m[p]),s.write_shift(4,b.length),s.write_shift(4,h.content.length),s.write_shift(2,v.length),s.write_shift(2,0),c+=s.length,r.push(s),c+=v.length,r.push(v),c+=b.length,r.push(b),(s=Nn(46)).write_shift(4,33639248),s.write_shift(2,0),s.write_shift(2,20),s.write_shift(2,0),s.write_shift(2,a),s.write_shift(4,0),s.write_shift(-4,m[p]),s.write_shift(4,b.length),s.write_shift(4,h.content.length),s.write_shift(2,v.length),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(4,0),s.write_shift(4,y),g+=s.l,i.push(s),g+=v.length,i.push(v),++p}return(s=Nn(22)).write_shift(4,101010256),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,p),s.write_shift(2,p),s.write_shift(4,g),s.write_shift(4,c),s.write_shift(2,0),k([k(r),k(i),s])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var o=e.FileIndex[r];if(o.content){var i=o.content.length;i>0&&(i<4096?t+=i+63>>6:n+=i+511>>9)}}for(var s=e.FullPaths.length+3>>2,a=t+127>>7,l=(t+7>>3)+n+s+a,u=l+127>>7,c=u<=109?0:Math.ceil((u-109)/127);l+u+c+127>>7>u;)c=++u<=109?0:Math.ceil((u-109)/127);var p=[1,c,u,a,s,n,t,0];return e.FileIndex[0].size=t<<6,p[7]=(e.FileIndex[0].start=p[0]+p[1]+p[2]+p[3]+p[4]+p[5])+(p[6]+7>>3),p}(e),i=Nn(r[7]<<9),s=0,a=0;for(s=0;s<8;++s)i.write_shift(1,P[s]);for(s=0;s<8;++s)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),s=0;s<3;++s)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:y),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:y),i.write_shift(4,r[1]),s=0;s<109;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);if(r[1])for(a=0;a<r[1];++a){for(;s<236+127*a;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);i.write_shift(-4,a===r[1]-1?y:a+1)}var l=function(e){for(a+=e;s<a-1;++s)i.write_shift(-4,s+1);e&&(++s,i.write_shift(-4,y))};for(a=s=0,a+=r[1];s<a;++s)i.write_shift(-4,T.DIFSECT);for(a+=r[2];s<a;++s)i.write_shift(-4,T.FATSECT);l(r[3]),l(r[4]);for(var u=0,c=0,p=e.FileIndex[0];u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&((c=p.content.length)<4096||(p.start=a,l(c+511>>9)));for(l(r[6]+7>>3);511&i.l;)i.write_shift(-4,T.ENDOFCHAIN);for(a=s=0,u=0;u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&(!(c=p.content.length)||c>=4096||(p.start=a,l(c+63>>6)));for(;511&i.l;)i.write_shift(-4,T.ENDOFCHAIN);for(s=0;s<r[4]<<2;++s){var d=e.FullPaths[s];if(d&&0!==d.length){p=e.FileIndex[s],0===s&&(p.start=p.size?p.start-1:y);var h=0===s&&n.root||p.name;if(c=2*(h.length+1),i.write_shift(64,h,"utf16le"),i.write_shift(2,c),i.write_shift(1,p.type),i.write_shift(1,p.color),i.write_shift(-4,p.L),i.write_shift(-4,p.R),i.write_shift(-4,p.C),p.clsid)i.write_shift(16,p.clsid,"hex");else for(u=0;u<4;++u)i.write_shift(4,0);i.write_shift(4,p.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,p.start),i.write_shift(4,p.size),i.write_shift(4,0)}else{for(u=0;u<17;++u)i.write_shift(4,0);for(u=0;u<3;++u)i.write_shift(4,-1);for(u=0;u<12;++u)i.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>=4096)if(i.l=p.start+1<<9,C&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+511&-512;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;511&u;++u)i.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>0&&p.size<4096)if(C&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+63&-64;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;63&u;++u)i.write_shift(1,0)}if(C)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.1";var m,g=64,y=-2,v="d0cf11e0a1b11ae1",P=[208,207,17,224,161,177,26,225],O="00000000000000000000000000000000",T={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:y,FREESECT:-1,HEADER_SIGNATURE:v,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:O,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function R(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function M(e){return m?m.deflateRawSync(e):oe(e)}var D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],N=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function V(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var j="undefined"!=typeof Uint8Array,F=j?new Uint8Array(256):[],z=0;z<256;++z)F[z]=V(z);function B(e,t){var n=F[255&e];return t<=8?n>>>8-t:(n=n<<8|F[e>>8&255],t<=16?n>>>16-t:(n=n<<8|F[e>>16&255])>>>24-t)}function H(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function U(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function q(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function W(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function $(e,t,n){var r=7&t,o=t>>>3,i=(1<<n)-1,s=e[o]>>>r;return n<8-r?s&i:(s|=e[o+1]<<8-r,n<16-r?s&i:(s|=e[o+2]<<16-r,n<24-r?s&i:(s|=e[o+3]<<24-r)&i))}function Q(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function G(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function Y(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function Z(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function K(e,t){var n=e.length,r=2*n>t?2*n:t+5,o=0;if(n>=t)return e;if(C){var i=E(r);if(e.copy)e.copy(i);else for(;o<e.length;++o)i[o]=e[o];return i}if(j){var s=new Uint8Array(r);if(s.set)s.set(e);else for(;o<n;++o)s[o]=e[o];return s}return e.length=r,e}function X(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function J(e,t,n){var r=1,o=0,i=0,s=0,a=0,l=e.length,u=j?new Uint16Array(32):X(32);for(i=0;i<32;++i)u[i]=0;for(i=l;i<n;++i)e[i]=0;l=e.length;var c=j?new Uint16Array(l):X(l);for(i=0;i<l;++i)u[o=e[i]]++,r<o&&(r=o),c[i]=0;for(u[0]=0,i=1;i<=r;++i)u[i+16]=a=a+u[i-1]<<1;for(i=0;i<l;++i)0!=(a=e[i])&&(c[i]=u[a+16]++);var p=0;for(i=0;i<l;++i)if(0!=(p=e[i]))for(a=B(c[i],r)>>r-p,s=(1<<r+4-p)-1;s>=0;--s)t[a|s<<p]=15&p|i<<4;return r}var ee=j?new Uint16Array(512):X(512),te=j?new Uint16Array(32):X(32);if(!j){for(var ne=0;ne<512;++ne)ee[ne]=0;for(ne=0;ne<32;++ne)te[ne]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);J(e,te,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);J(n,ee,288)}();var re=function(){for(var e=j?new Uint8Array(32768):[],t=0,n=0;t<N.length-1;++t)for(;n<N[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=j?new Uint8Array(259):[];for(t=0,n=0;t<L.length-1;++t)for(;n<L[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),o=n+r==e.length;for(t.write_shift(1,+o),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var o=0,i=0,s=j?new Uint16Array(32768):[];i<t.length;){var a=Math.min(65535,t.length-i);if(a<10){for(7&(o=Q(n,o,+!(i+a!=t.length)))&&(o+=8-(7&o)),n.l=o/8|0,n.write_shift(2,a),n.write_shift(2,65535&~a);a-- >0;)n[n.l++]=t[i++];o=8*n.l}else{o=Q(n,o,+!(i+a!=t.length)+2);for(var l=0;a-- >0;){var u=t[i],c=-1,p=0;if((c=s[l=32767&(l<<5^u)])&&((c|=-32768&i)>i&&(c-=32768),c<i))for(;t[c+p]==t[i+p]&&p<250;)++p;if(p>2){(u=r[p])<=22?o=Y(n,o,F[u+1]>>1)-1:(Y(n,o,3),Y(n,o+=5,F[u-23]>>5),o+=3);var d=u<8?0:u-4>>2;d>0&&(Z(n,o,p-L[u]),o+=d),u=e[i-c],o=Y(n,o,F[u]>>3),o-=3;var f=u<4?0:u-2>>1;f>0&&(Z(n,o,i-c-N[u]),o+=f);for(var h=0;h<p;++h)s[l]=32767&i,l=32767&(l<<5^t[i]),++i;a-=p-1}else u<=143?u+=48:o=G(n,o,1),o=Y(n,o,F[u]),s[l]=32767&i,++i}o=Y(n,o,0)-1}}return n.l=(o+7)/8|0,n.l}(t,n)}}();function oe(e){var t=Nn(50+Math.floor(1.1*e.length)),n=re(e,t);return t.slice(0,n)}var ie=j?new Uint16Array(32768):X(32768),se=j?new Uint16Array(32768):X(32768),ae=j?new Uint16Array(128):X(128),le=1,ue=1;function ce(e,t){var n=q(e,t)+257,r=q(e,t+=5)+1,o=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var i=0,s=j?new Uint8Array(19):X(19),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,u=j?new Uint8Array(8):X(8),c=j?new Uint8Array(8):X(8),p=s.length,d=0;d<o;++d)s[D[d]]=i=U(e,t),l<i&&(l=i),u[i]++,t+=3;var f=0;for(u[0]=0,d=1;d<=l;++d)c[d]=f=f+u[d-1]<<1;for(d=0;d<p;++d)0!=(f=s[d])&&(a[d]=c[f]++);var h=0;for(d=0;d<p;++d)if(0!=(h=s[d])){f=F[a[d]]>>8-h;for(var m=(1<<7-h)-1;m>=0;--m)ae[f|m<<h]=7&h|d<<3}var g=[];for(l=1;g.length<n+r;)switch(t+=7&(f=ae[W(e,t)]),f>>>=3){case 16:for(i=3+H(e,t),t+=2,f=g[g.length-1];i-- >0;)g.push(f);break;case 17:for(i=3+U(e,t),t+=3;i-- >0;)g.push(0);break;case 18:for(i=11+W(e,t),t+=7;i-- >0;)g.push(0);break;default:g.push(f),l<f&&(l=f)}var y=g.slice(0,n),v=g.slice(n);for(d=n;d<286;++d)y[d]=0;for(d=r;d<30;++d)v[d]=0;return le=J(y,ie,286),ue=J(v,se,30),t}function pe(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[x(t),2];for(var n=0,r=0,o=E(t||1<<18),i=0,s=o.length>>>0,a=0,l=0;!(1&r);)if(r=U(e,n),n+=3,r>>>1!=0)for(r>>1==1?(a=9,l=5):(n=ce(e,n),a=le,l=ue);;){!t&&s<i+32767&&(s=(o=K(o,i+32767)).length);var u=$(e,n,a),c=r>>>1==1?ee[u]:ie[u];if(n+=15&c,(c>>>=4)>>>8&255){if(256==c)break;var p=(c-=257)<8?0:c-4>>2;p>5&&(p=0);var d=i+L[c];p>0&&(d+=$(e,n,p),n+=p),u=$(e,n,l),n+=15&(c=r>>>1==1?te[u]:se[u]);var f=(c>>>=4)<4?0:c-2>>1,h=N[c];for(f>0&&(h+=$(e,n,f),n+=f),!t&&s<d&&(s=(o=K(o,d+100)).length);i<d;)o[i]=o[i-h],++i}else o[i++]=c}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[(n>>>3)+1]<<8;if(n+=32,m>0)for(!t&&s<i+m&&(s=(o=K(o,i+m)).length);m-- >0;)o[i++]=e[n>>>3],n+=8}return t?[o,n+7>>>3]:[o.slice(0,i),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function de(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function fe(e,t){var n=e;Dn(n,0);var r={FileIndex:[],FullPaths:[]};d(r,{root:t.root});for(var o=n.length-4;(80!=n[o]||75!=n[o+1]||5!=n[o+2]||6!=n[o+3])&&o>=0;)--o;n.l=o+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var a=n.read_shift(4);for(n.l=a,o=0;o<s;++o){n.l+=20;var l=n.read_shift(4),u=n.read_shift(4),c=n.read_shift(2),p=n.read_shift(2),f=n.read_shift(2);n.l+=8;var h=n.read_shift(4),m=i(n.slice(n.l+c,n.l+c+p));n.l+=c+p+f;var g=n.l;n.l=h+4,he(n,l,u,r,m),n.l=g}return r}function he(e,t,n,r,o){e.l+=2;var s=e.read_shift(2),a=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,i=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(i-1),r.setDate(o);var s=31&t,a=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(a),r.setSeconds(s<<1),r}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var u=e.read_shift(4),c=e.read_shift(4),p=e.read_shift(2),d=e.read_shift(2),f="",h=0;h<p;++h)f+=String.fromCharCode(e[e.l++]);if(d){var g=i(e.slice(e.l,e.l+d));(g[21589]||{}).mt&&(l=g[21589].mt),((o||{})[21589]||{}).mt&&(l=o[21589].mt)}e.l+=d;var y=e.slice(e.l,e.l+u);switch(a){case 8:y=function(e,t){if(!m)return pe(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,c);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+a)}var v=!1;8&s&&(134695760==e.read_shift(4)&&(e.read_shift(4),v=!0),u=e.read_shift(4),c=e.read_shift(4)),u!=t&&de(v,"Bad compressed size: "+t+" != "+u),c!=n&&de(v,"Bad uncompressed size: "+n+" != "+c),we(r,f,y,{unsafe:!0,mt:l})}var me={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ge(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&me[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&me[r[1]]?me[r[1]]:"application/octet-stream"}function ye(e){for(var t=b(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function ve(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)});"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),o=0;o<r.length;++o){var i=r[o];if(0!=i.length)for(var s=0;s<i.length;){var a=76,l=i.slice(s,s+a);"="==l.charAt(a-1)?a--:"="==l.charAt(a-2)?a-=2:"="==l.charAt(a-3)&&(a-=3),l=i.slice(s,s+a),(s+=a)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function be(e,t,n){for(var r,o="",i="",s="",a=0;a<10;++a){var l=t[a];if(!l||l.match(/^\s*$/))break;var u=l.match(/^(.*?):\s*([^\s].*)$/);if(u)switch(u[1].toLowerCase()){case"content-location":o=u[2].trim();break;case"content-type":s=u[2].trim();break;case"content-transfer-encoding":i=u[2].trim()}}switch(++a,i.toLowerCase()){case"base64":r=S(w(t.slice(a).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,function(e){return String.fromCharCode(parseInt(e.slice(1),16))});return S(t.join("\r\n"))}(t.slice(a));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var c=we(e,o.slice(n.length),r,{unsafe:!0});s&&(c.ctype=s)}function we(e,t,n,o){var i=o&&o.unsafe;i||d(e);var s=!i&&Pe.find(e,t);if(!s){var a=e.FullPaths[0];t.slice(0,a.length)==a?a=t:("/"!=a.slice(-1)&&(a+="/"),a=(a+t).replace("//","/")),s={name:r(t),type:2},e.FileIndex.push(s),e.FullPaths.push(a),i||Pe.utils.cfb_gc(e)}return s.content=n,s.size=n?n.length:0,o&&(o.CLSID&&(s.clsid=o.CLSID),o.mt&&(s.mt=o.mt),o.ct&&(s.ct=o.ct)),s}return t.find=function(e,t){var n=e.FullPaths.map(function(e){return e.toUpperCase()}),r=n.map(function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]}),o=!1;47===t.charCodeAt(0)?(o=!0,t=n[0].slice(0,-1)+t):o=-1!==t.indexOf("/");var i=t.toUpperCase(),s=!0===o?n.indexOf(i):r.indexOf(i);if(-1!==s)return e.FileIndex[s];var a=!i.match(I);for(i=i.replace(A,""),a&&(i=i.replace(I,"!")),s=0;s<n.length;++s){if((a?n[s].replace(I,"!"):n[s]).replace(A,"")==i)return e.FileIndex[s];if((a?r[s].replace(I,"!"):r[s]).replace(A,"")==i)return e.FileIndex[s]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||C&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return s(),a(e.readFileSync(t),n)}(t,n);case"base64":return a(S(w(t)),n);case"binary":return a(S(t),n)}return a(t,n)},t.parse=a,t.write=function(t,n){var r=h(t,n);switch(n&&n.type||"buffer"){case"file":return s(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:R(r);case"base64":return b("string"==typeof r?r:R(r));case"buffer":if(C)return Buffer.isBuffer(r)?r:_(r);case"array":return"string"==typeof r?S(r):r}return r},t.writeFile=function(t,n,r){s();var o=h(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return d(t,e),t},cfb_add:we,cfb_del:function(e,t){d(e);var n=Pe.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){d(e);var o=Pe.find(e,t);if(o)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==o)return e.FileIndex[i].name=r(n),e.FullPaths[i]=n,!0;return!1},cfb_gc:function(e){f(e,!0)},ReadShift:An,CheckField:Mn,prep_blob:Dn,bconcat:k,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:oe,_inflateRaw:pe,consts:T},t}();function Oe(e){return"string"==typeof e?P(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function Te(e,t,n){if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=P(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?Mt(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var o=new Blob([Oe(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if("undefined"!=typeof saveAs)return saveAs(o,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var a=File(e);return a.open("w"),a.encoding="binary",Array.isArray(t)&&(t=O(t)),a.write(t),a.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function ke(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Ae(e,t){for(var n=[],r=ke(e),o=0;o!==r.length;++o)null==n[e[r[o]][t]]&&(n[e[r[o]][t]]=r[o]);return n}function Ie(e){for(var t=[],n=ke(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function Re(e){for(var t=[],n=ke(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var Me=new Date(1899,11,30,0,0,0);function De(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(Me.getTime()+6e4*(e.getTimezoneOffset()-Me.getTimezoneOffset())))/864e5}var Le=new Date,Ne=Me.getTime()+6e4*(Le.getTimezoneOffset()-Me.getTimezoneOffset()),Ve=Le.getTimezoneOffset();function je(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Ne),t.getTimezoneOffset()!==Ve&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Ve)),t}function Fe(e){var t=0,n=0,r=!1,o=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!o)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=o.length;++i)if(o[i]){switch(n=1,i>3&&(r=!0),o[i].slice(o[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+o[i].slice(o[i].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60}t+=n*parseInt(o[i],10)}return t}var ze=new Date("2017-02-19T19:06:09.000Z"),Be=isNaN(ze.getFullYear())?new Date("2/19/17"):ze,He=2017==Be.getFullYear();function Ue(e,t){var n=new Date(e);if(He)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==Be.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var o=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function qe(e,t){if(C&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Mt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Mt(f(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Mt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Mt(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){return n[e]||e})}catch(e){}for(var r=[],o=0;o!=e.length;++o)r.push(String.fromCharCode(e[o]));return r.join("")}function We(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=We(e[n]));return t}function $e(e,t){for(var n="";n.length<t;)n+=e;return n}function Qe(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,function(e,t){return n=-n,t}),isNaN(t=Number(r))?t:t/n):t/n}var Ge=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ye(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),o=t.getMonth(),i=t.getDate();if(isNaN(i))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Ge.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(o>0||i>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var Ze=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var o=t.split(n),i=[o[0]],s=1;s<o.length;++s)i.push(r),i.push(o[s]);return i}}();function Ke(e){return e?e.content&&e.type?qe(e.content,!0):e.data?m(e.data):e.asNodeBuffer&&C?m(e.asNodeBuffer().toString("binary")):e.asBinary?m(e.asBinary()):e._data&&e._data.getContent?m(qe(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Xe(e){if(!e)return null;if(e.data)return d(e.data);if(e.asNodeBuffer&&C)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?d(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function Je(e,t){for(var n=e.FullPaths||ke(e.files),r=t.toLowerCase().replace(/[\/]/g,"\\"),o=r.replace(/\\/g,"/"),i=0;i<n.length;++i){var s=n[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(r==s||o==s)return e.files?e.files[n[i]]:e.FileIndex[i]}return null}function et(e,t){var n=Je(e,t);if(null==n)throw new Error("Cannot find file "+t+" in zip");return n}function tt(e,t,n){if(!n)return(r=et(e,t))&&".bin"===r.name.slice(-4)?Xe(r):Ke(r);var r;if(!t)return null;try{return tt(e,t)}catch(e){return null}}function nt(e,t,n){if(!n)return Ke(et(e,t));if(!t)return null;try{return nt(e,t)}catch(e){return null}}function rt(e,t,n){if(!n)return Xe(et(e,t));if(!t)return null;try{return rt(e,t)}catch(e){return null}}function ot(e){for(var t=e.FullPaths||ke(e.files),n=[],r=0;r<t.length;++r)"/"!=t[r].slice(-1)&&n.push(t[r].replace(/^Root Entry[\/]/,""));return n.sort()}function it(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=C?_(n):function(e){for(var t=[],n=0,r=e.length+250,o=x(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)o[n++]=s;else if(s<2048)o[n++]=192|s>>6&31,o[n++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var a=1023&e.charCodeAt(++i);o[n++]=240|s>>8&7,o[n++]=128|s>>2&63,o[n++]=128|a>>6&15|(3&s)<<4,o[n++]=128|63&a}else o[n++]=224|s>>12&15,o[n++]=128|s>>6&63,o[n++]=128|63&s;n>r&&(t.push(o.slice(0,n)),n=0,o=x(65535),r=65530)}return t.push(o.slice(0,n)),k(t)}(n),Pe.utils.cfb_add(e,t,r);Pe.utils.cfb_add(e,t,n)}else e.file(t,n)}function st(){return Pe.utils.cfb_new()}function at(e,t){switch(t.type){case"base64":return Pe.read(e,{type:"base64"});case"binary":return Pe.read(e,{type:"binary"});case"buffer":case"array":return Pe.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function lt(e,t){if("/"==e.charAt(0))return e.slice(1);var n=t.split("/");"/"!=t.slice(-1)&&n.pop();for(var r=e.split("/");0!==r.length;){var o=r.shift();".."===o?n.pop():"."!==o&&n.push(o)}return n.join("/")}var ut='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',ct=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,pt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,dt=ut.match(pt)?pt:/<[^>]*>/g,ft=/<\w*:/,ht=/<(\/?)\w+:/;function mt(e,t,n){for(var r={},o=0,i=0;o!==e.length&&32!==(i=e.charCodeAt(o))&&10!==i&&13!==i;++o);if(t||(r[0]=e.slice(0,o)),o===e.length)return r;var s=e.match(ct),a=0,l="",u=0,c="",p="",d=1;if(s)for(u=0;u!=s.length;++u){for(p=s[u],i=0;i!=p.length&&61!==p.charCodeAt(i);++i);for(c=p.slice(0,i).trim();32==p.charCodeAt(i+1);)++i;for(d=34==(o=p.charCodeAt(i+1))||39==o?1:0,l=p.slice(i+1+d,p.length-d),a=0;a!=c.length&&58!==c.charCodeAt(a);++a);if(a===c.length)c.indexOf("_")>0&&(c=c.slice(0,c.indexOf("_"))),r[c]=l,n||(r[c.toLowerCase()]=l);else{var f=(5===a&&"xmlns"===c.slice(0,5)?"xmlns":"")+c.slice(a+1);if(r[f]&&"ext"==c.slice(a-3,a))continue;r[f]=l,n||(r[f.toLowerCase()]=l)}}return r}function gt(e){return e.replace(ht,"<$1")}var yt={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},vt=Ie(yt),bt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var o=r+"",i=o.indexOf("<![CDATA[");if(-1==i)return o.replace(e,function(e,t){return yt[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e}).replace(t,function(e,t){return String.fromCharCode(parseInt(t,16))});var s=o.indexOf("]]>");return n(o.slice(0,i))+o.slice(i+9,s)+n(o.slice(s+3))}}(),wt=/[&<>'"]/g,Ct=/[\u0000-\u0008\u000b-\u001f]/g;function _t(e){return(e+"").replace(wt,function(e){return vt[e]}).replace(Ct,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function xt(e){return _t(e).replace(/ /g,"_x0020_")}var Et=/[\u0000-\u001f]/g;function St(e){return(e+"").replace(wt,function(e){return vt[e]}).replace(/\n/g,"<br/>").replace(Et,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}var Pt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function Ot(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Tt(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(o=e.charCodeAt(n++),r>191&&r<224?(s=(31&r)<<6,s|=63&o,t+=String.fromCharCode(s)):(i=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&i):(a=((7&r)<<18|(63&o)<<12|(63&i)<<6|63&(s=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(a>>>10&1023)),t+=String.fromCharCode(56320+(1023&a)))));return t}function kt(e){var t,n,r,o=x(2*e.length),i=1,s=0,a=0;for(n=0;n<e.length;n+=i)i=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),i=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),i=3):(i=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),a=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==a&&(o[s++]=255&a,o[s++]=a>>>8,a=0),o[s++]=t%256,o[s++]=t>>>8;return o.slice(0,s).toString("ucs2")}function At(e){return _(e,"binary").toString("utf8")}var It="foo bar bazâð£",Rt=C&&(At(It)==Tt(It)&&At||kt(It)==Tt(It)&&kt)||Tt,Mt=C?function(e){return _(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,o=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,o=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(63&o)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},Dt=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",n||"")}}(),Lt=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),Nt=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Vt=/<\/?(?:vt:)?variant>/g,jt=/<(?:vt:)([^>]*)>([\s\S]*)</;function Ft(e,t){var n=mt(e),r=e.match(Nt(n.baseType))||[],o=[];if(r.length!=n.size){if(t.WTF)throw new Error("unexpected vector length "+r.length+" != "+n.size);return o}return r.forEach(function(e){var t=e.replace(Vt,"").match(jt);t&&o.push({v:Rt(t[2]),t:t[1]})}),o}var zt=/(^\s|\s$|\n)/;function Bt(e,t){return"<"+e+(t.match(zt)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ht(e){return ke(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Ut(e,t,n){return"<"+e+(null!=n?Ht(n):"")+(null!=t?(t.match(zt)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function qt(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}function Wt(e){if(C&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return Rt(O(T(e)));throw new Error("Bad input format: expected Buffer or string")}var $t=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Qt="http://schemas.openxmlformats.org/package/2006/content-types",Gt="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",Yt="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Zt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Kt="http://www.w3.org/2001/XMLSchema-instance",Xt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Jt="urn:schemas-microsoft-com:office:office",en="urn:schemas-microsoft-com:office:excel",tn="urn:schemas-microsoft-com:office:spreadsheet",nn=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,o=e[0][n].length;r<o;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},rn=C?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:_(e)})):nn(e)}:nn,on=function(e,t,n){for(var r=[],o=t;o<n;o+=2)r.push(String.fromCharCode(Sn(e,o)));return r.join("").replace(A,"")},sn=C?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(A,""):on(e,t,n)}:on,an=function(e,t,n){for(var r=[],o=t;o<t+n;++o)r.push(("0"+e[o].toString(16)).slice(-2));return r.join("")},ln=C?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):an(e,t,n)}:an,un=function(e,t,n){for(var r=[],o=t;o<n;o++)r.push(String.fromCharCode(En(e,o)));return r.join("")},cn=C?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):un(e,t,n)}:un,pn=function(e,t){var n=On(e,t);return n>0?cn(e,t+4,t+4+n-1):""},dn=pn,fn=function(e,t){var n=On(e,t);return n>0?cn(e,t+4,t+4+n-1):""},hn=fn,mn=function(e,t){var n=2*On(e,t);return n>0?cn(e,t+4,t+4+n-1):""},gn=mn,yn=function(e,t){var n=On(e,t);return n>0?sn(e,t+4,t+4+n):""},vn=yn,bn=function(e,t){var n=On(e,t);return n>0?cn(e,t+4,t+4+n):""},wn=bn,Cn=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),o=15&e[t+6],i=5;i>=0;--i)o=256*o+e[t+i];return 2047==r?0==o?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,o+=Math.pow(2,52)),n*Math.pow(2,r-52)*o)}(e,t)},_n=Cn,xn=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};C&&(dn=function(e,t){if(!Buffer.isBuffer(e))return pn(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},hn=function(e,t){if(!Buffer.isBuffer(e))return fn(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},gn=function(e,t){if(!Buffer.isBuffer(e))return mn(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},vn=function(e,t){if(!Buffer.isBuffer(e))return yn(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},wn=function(e,t){if(!Buffer.isBuffer(e))return bn(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},_n=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Cn(e,t)},xn=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var En=function(e,t){return e[t]},Sn=function(e,t){return 256*e[t+1]+e[t]},Pn=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},On=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Tn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},kn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function An(e,t){var n,r,o,i,s,a,l="",u=[];switch(t){case"dbcs":if(a=this.l,C&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(Sn(this,a)),a+=2;e*=2;break;case"utf8":l=cn(this,this.l,this.l+e);break;case"utf16le":e*=2,l=sn(this,this.l,this.l+e);break;case"wstr":return An.call(this,e,"dbcs");case"lpstr-ansi":l=dn(this,this.l),e=4+On(this,this.l);break;case"lpstr-cp":l=hn(this,this.l),e=4+On(this,this.l);break;case"lpwstr":l=gn(this,this.l),e=4+2*On(this,this.l);break;case"lpp4":e=4+On(this,this.l),l=vn(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+On(this,this.l),l=wn(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(o=En(this,this.l+e++));)u.push(g(o));l=u.join("");break;case"_wstr":for(e=0,l="";0!==(o=Sn(this,this.l+e));)u.push(g(o)),e+=2;e+=2,l=u.join("");break;case"dbcs-cont":for(l="",a=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=En(this,a),this.l=a+1,i=An.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(g(Sn(this,a))),a+=2}l=u.join(""),e*=2;break;case"cpstr":0;case"sbcs-cont":for(l="",a=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=En(this,a),this.l=a+1,i=An.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(g(En(this,a))),a+=1}l=u.join("");break;default:switch(e){case 1:return n=En(this,this.l),this.l++,n;case 2:return n=("i"===t?Pn:Sn)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(r=On(this,this.l),this.l+=4,r):(n=(e>0?Tn:kn)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return r=8==e?_n(this,this.l):_n([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=ln(this,this.l,e)}}return this.l+=e,l}var In=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Rn(e,t,n){var r=0,o=0;if("dbcs"===n){for(o=0;o!=t.length;++o)In(this,t.charCodeAt(o),this.l+2*o);r=2*t.length}else if("sbcs"===n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=255&t.charCodeAt(o);r=t.length}else{if("hex"===n){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===n){var i=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var s=t.charCodeAt(o);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<i;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255}(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,o=0,i=0,s=r?-t:t;isFinite(s)?0==s?o=i=0:(o=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-o),o<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?o=-1022:(i-=Math.pow(2,52),o+=1023)):(o=2047,i=isNaN(t)?26985:0);for(var a=0;a<=5;++a,i/=256)e[n+a]=255&i;e[n+6]=(15&o)<<4|15&i,e[n+7]=o>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255}(this,t,this.l)}}return this.l+=r,this}function Mn(e,t){var n=ln(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Dn(e,t){e.l=t,e.read_shift=An,e.chk=Mn,e.write_shift=Rn}function Ln(e,t){e.l+=t}function Nn(e){var t=x(e);return Dn(t,0),t}function Vn(e,t,n){if(e){var r,o,i;Dn(e,e.l||0);for(var s=e.length,a=0,l=0;e.l<s;){128&(a=e.read_shift(1))&&(a=(127&a)+((127&e.read_shift(1))<<7));var u=uu[a]||uu[65535];for(i=127&(r=e.read_shift(1)),o=1;o<4&&128&r;++o)i+=(127&(r=e.read_shift(1)))<<7*o;l=e.l+i;var c=u.f&&u.f(e,i,n);if(e.l=l,t(c,u,a))return}}}function jn(){var e=[],t=C?256:2048,n=function(e){var t=Nn(e);return Dn(t,0),t},r=n(t),o=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},i=function(e){return r&&e<r.length-r.l?r:(o(),r=n(Math.max(e+1,t)))};return{next:i,push:function(e){o(),null==(r=e).l&&(r.l=r.length),i(t)},end:function(){return o(),k(e)},_bufs:e}}function Fn(e,t,n,r){var o,i=+t;if(!isNaN(i)){r||(r=uu[i].p||(n||[]).length||0),o=1+(i>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var s=e.next(o);i<=127?s.write_shift(1,i):(s.write_shift(1,128+(127&i)),s.write_shift(1,i>>7));for(var a=0;4!=a;++a){if(!(r>=128)){s.write_shift(1,r);break}s.write_shift(1,128+(127&r)),r>>=7}r>0&&xn(n)&&e.push(n)}}function zn(e,t,n){var r=We(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function Bn(e,t,n){var r=We(e);return r.s=zn(r.s,t.s,n),r.e=zn(r.e,t.s,n),r}function Hn(e,t){if(e.cRel&&e.c<0)for(e=We(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=We(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=Yn(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),n}function Un(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Hn(e.s,t.biff)+":"+Hn(e.e,t.biff):(e.s.rRel?"":"$")+Wn(e.s.r)+":"+(e.e.rRel?"":"$")+Wn(e.e.r):(e.s.cRel?"":"$")+Qn(e.s.c)+":"+(e.e.cRel?"":"$")+Qn(e.e.c)}function qn(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Wn(e){return""+(e+1)}function $n(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function Qn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Gn(e){for(var t=0,n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function Yn(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function Zn(e){var t=e.indexOf(":");return-1==t?{s:Gn(e),e:Gn(e)}:{s:Gn(e.slice(0,t)),e:Gn(e.slice(t+1))}}function Kn(e,t){return void 0===t||"number"==typeof t?Kn(e.s,e.e):("string"!=typeof e&&(e=Yn(e)),"string"!=typeof t&&(t=Yn(t)),e==t?e:e+":"+t)}function Xn(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,o=0,i=e.length;for(n=0;r<i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.s.c=--n,n=0;r<i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;if(t.s.r=--n,r===i||10!=o)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.e.c=--n,n=0;r!=i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;return t.e.r=--n,t}function Jn(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Vr[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=be(e.z,n?De(t):t)}catch(e){}try{return e.w=be((e.XF||{}).numFmtId||(n?14:0),n?De(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function er(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function tr(e,t,n){var r=n||{},o=e?Array.isArray(e):r.dense,i=e||(o?[]:{}),s=0,a=0;if(i&&null!=r.origin){if("number"==typeof r.origin)s=r.origin;else{var l="string"==typeof r.origin?Gn(r.origin):r.origin;s=l.r,a=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Xn(i["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),-1==s&&(u.e.r=s=c.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[p].length;++d)if(void 0!==t[p][d]){var f={v:t[p][d]},h=s+p,m=a+d;if(u.s.r>h&&(u.s.r=h),u.s.c>m&&(u.s.c=m),u.e.r<h&&(u.e.r=h),u.e.c<m&&(u.e.c=m),!t[p][d]||"object"!=typeof t[p][d]||Array.isArray(t[p][d])||t[p][d]instanceof Date)if(Array.isArray(f.v)&&(f.f=t[p][d][1],f.v=f.v[0]),null===f.v)if(f.f)f.t="n";else if(r.nullError)f.t="e",f.v=0;else{if(!r.sheetStubs)continue;f.t="z"}else"number"==typeof f.v?f.t="n":"boolean"==typeof f.v?f.t="b":f.v instanceof Date?(f.z=r.dateNF||B[14],r.cellDates?(f.t="d",f.w=be(f.z,De(f.v))):(f.t="n",f.v=De(f.v),f.w=be(f.z,f.v))):f.t="s";else f=t[p][d];if(o)i[h]||(i[h]=[]),i[h][m]&&i[h][m].z&&(f.z=i[h][m].z),i[h][m]=f;else{var g=Yn({c:m,r:h});i[g]&&i[g].z&&(f.z=i[g].z),i[g]=f}}}return u.s.c<1e7&&(i["!ref"]=Kn(u)),i}function nr(e,t){return tr(null,e,t)}function rr(e,t){return t||(t=Nn(4)),t.write_shift(4,e),t}function or(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function ir(e,t){var n=!1;return null==t&&(n=!0,t=Nn(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function sr(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function ar(e,t){var n=e.l,r=e.read_shift(1),o=or(e),i=[],s={t:o,h:o};if(1&r){for(var a=e.read_shift(4),l=0;l!=a;++l)i.push(sr(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}var lr=ar;function ur(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function cr(e,t){return null==t&&(t=Nn(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function pr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function dr(e,t){return null==t&&(t=Nn(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var fr=or,hr=ir;function mr(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function gr(e,t){var n=!1;return null==t&&(n=!0,t=Nn(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var yr=or,vr=mr,br=gr;function wr(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var o=0===r?_n([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Tn(t,0)>>2;return n?o/100:o}function Cr(e,t){null==t&&(t=Nn(4));var n=0,r=0,o=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?o:e)<<2)+(n+2))}function _r(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var xr=_r,Er=function(e,t){return t||(t=Nn(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function Sr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Pr(e,t){return(t||Nn(8)).write_shift(8,e,"f")}function Or(e,t){if(t||(t=Nn(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function Tr(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var kr=80,Ar=[kr,81],Ir={1:{n:"CodePage",t:2},2:{n:"Category",t:kr},3:{n:"PresentationFormat",t:kr},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:kr},15:{n:"Company",t:kr},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:kr},27:{n:"ContentStatus",t:kr},28:{n:"Language",t:kr},29:{n:"Version",t:kr},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Rr={1:{n:"CodePage",t:2},2:{n:"Title",t:kr},3:{n:"Subject",t:kr},4:{n:"Author",t:kr},5:{n:"Keywords",t:kr},6:{n:"Comments",t:kr},7:{n:"Template",t:kr},8:{n:"LastAuthor",t:kr},9:{n:"RevNumber",t:kr},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:kr},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Mr={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Dr=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Lr(e){return e.map(function(e){return[e>>16&255,e>>8&255,255&e]})}var Nr=We(Lr([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Vr={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},jr={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Fr={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},zr={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Br(e,t){var n,r=function(e){for(var t=[],n=ke(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(Fr),o=[];o[o.length]=ut,o[o.length]=Ut("Types",null,{xmlns:Qt,"xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":Kt}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(e){return Ut("Default",null,{Extension:e[0],ContentType:e[1]})}));var i=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=Ut("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:zr[r][t.bookType]||zr[r].xlsx}))},s=function(n){(e[n]||[]).forEach(function(e){o[o.length]=Ut("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:zr[n][t.bookType]||zr[n].xlsx})})},a=function(t){(e[t]||[]).forEach(function(e){o[o.length]=Ut("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})})};return i("workbooks"),s("sheets"),s("charts"),a("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("threadedcomments"),a("drawings"),s("metadata"),a("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var Hr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ur(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function qr(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(dt)||[]).forEach(function(e){var o=mt(e);if("<Relationship"===o[0]){var i={};i.Type=o.Type,i.Target=o.Target,i.Id=o.Id,o.TargetMode&&(i.TargetMode=o.TargetMode);var s="External"===o.TargetMode?o.Target:lt(o.Target,t);n[s]=i,r[o.Id]=i}}),n["!id"]=r,n}function Wr(e){var t=[ut,Ut("Relationships",null,{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"})];return ke(e["!id"]).forEach(function(n){t[t.length]=Ut("Relationship",null,e["!id"][n])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function $r(e,t,n,r,o,i){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,i?o.TargetMode=i:[Hr.HLINK,Hr.XPATH,Hr.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function Qr(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function Gr(e,t){return['  <rdf:Description rdf:about="'+e+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n',"  </rdf:Description>\n"].join("")}function Yr(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+o+"</meta:generator></office:meta></office:document-meta>"}var Zr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Kr=function(){for(var e=new Array(Zr.length),t=0;t<Zr.length;++t){var n=Zr[t],r="(?:"+n[0].slice(0,n[0].indexOf(":"))+":)"+n[0].slice(n[0].indexOf(":")+1);e[t]=new RegExp("<"+r+"[^>]*>([\\s\\S]*?)</"+r+">")}return e}();function Xr(e){var t={};e=Rt(e);for(var n=0;n<Zr.length;++n){var r=Zr[n],o=e.match(Kr[n]);null!=o&&o.length>0&&(t[r[1]]=bt(o[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=Ue(t[r[1]]))}return t}function Jr(e,t,n,r,o){null==o[e]&&null!=t&&""!==t&&(o[e]=t,t=_t(t),r[r.length]=n?Ut(e,t,n):Bt(e,t))}function eo(e,t){var n=t||{},r=[ut,Ut("cp:coreProperties",null,{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":Kt})],o={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&Jr("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:qt(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o),null!=e.ModifiedDate&&Jr("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:qt(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o));for(var i=0;i!=Zr.length;++i){var s=Zr[i],a=n.Props&&null!=n.Props[s[1]]?n.Props[s[1]]:e?e[s[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&Jr(s[0],a,null,r,o)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var to=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],no=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ro(e,t,n,r){var o=[];if("string"==typeof e)o=Ft(e,r);else for(var i=0;i<e.length;++i)o=o.concat(e[i].map(function(e){return{v:e}}));var s="string"==typeof t?Ft(t,r).map(function(e){return e.v}):t,a=0,l=0;if(s.length>0)for(var u=0;u!==o.length;u+=2){switch(l=+o[u+1].v,o[u].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=s.slice(a,a+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=s.slice(a,a+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=s.slice(a,a+l)}a+=l}}function oo(e){var t=[],n=Ut;return e||(e={}),e.Application="SheetJS",t[t.length]=ut,t[t.length]=Ut("Properties",null,{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":Zt}),to.forEach(function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=_t(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}}),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+_t(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var io=/<[^>]+>[^<]*/g;function so(e){var t=[ut,Ut("Properties",null,{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":Zt})];if(!e)return t.join("");var n=1;return ke(e).forEach(function(r){++n,t[t.length]=Ut("property",function(e){switch(typeof e){case"string":var t=Ut("vt:lpwstr",_t(e));return t=t.replace(/&quot;/g,"_x0022_");case"number":return Ut((0|e)==e?"vt:i4":"vt:r8",_t(String(e)));case"boolean":return Ut("vt:bool",e?"true":"false")}if(e instanceof Date)return Ut("vt:filetime",qt(e));throw new Error("Unable to serialize "+e)}(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:_t(r)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var ao,lo={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function uo(e,t,n){ao||(ao=Ie(lo)),e[t=ao[t]||t]=n}function co(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function po(e,t,n){var r=e.l,o=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-r&3;)++e.l;return o}function fo(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function ho(e,t,n){return 31===t?fo(e):po(e,0,n)}function mo(e,t,n){return ho(e,t,!1===n?0:4)}function go(e){var t=e.l,n=bo(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[n,bo(e,3)]}function yo(e,t){for(var n=e.read_shift(4),r={},o=0;o!=n;++o){var i=e.read_shift(4),s=e.read_shift(4);r[i]=e.read_shift(s,1200===t?"utf16le":"utf8").replace(A,"").replace(I,"!"),1200===t&&s%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function vo(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function bo(e,t,n){var r,o=e.read_shift(2),i=n||{};if(e.l+=2,12!==t&&o!==t&&-1===Ar.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&o)))throw new Error("Expected type "+t+" saw "+o);switch(12===t?o:t){case 2:return r=e.read_shift(2,"i"),i.raw||(e.l+=2),r;case 3:return e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return e.read_shift(4);case 30:return po(e,0,4).replace(A,"");case 31:return fo(e);case 64:return co(e);case 65:return vo(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return mo(e,o,!i.raw).replace(A,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return ho(e,t,0)}(e,o).replace(A,"");case 4108:return function(e){for(var t=e.read_shift(4),n=[],r=0;r<t/2;++r)n.push(go(e));return n}(e);case 4126:case 4127:return 4127==o?function(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r){var o=e.l;n[r]=e.read_shift(0,"lpwstr").replace(A,""),e.l-o&2&&(e.l+=2)}return n}(e):function(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r)n[r]=e.read_shift(0,"lpstr-cp").replace(A,"");return n}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+o)}}function wo(e,t){var n=Nn(4),r=Nn(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=Nn(8)).write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var i=Nn(8);return i.write_shift(4,n),i.write_shift(4,r),i}(t);break;case 31:case 80:for((r=Nn(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return k([n,r])}function Co(e,t){var n=e.l,r=e.read_shift(4),o=e.read_shift(4),i=[],s=0,a=0,l=-1,u={};for(s=0;s!=o;++s){var p=e.read_shift(4),d=e.read_shift(4);i[s]=[p,d+n]}i.sort(function(e,t){return e[1]-t[1]});var f={};for(s=0;s!=o;++s){if(e.l!==i[s][1]){var h=!0;if(s>0&&t)switch(t[i[s-1][0]].t){case 2:e.l+2===i[s][1]&&(e.l+=2,h=!1);break;case 80:case 4108:e.l<=i[s][1]&&(e.l=i[s][1],h=!1)}if((!t||0==s)&&e.l<=i[s][1]&&(h=!1,e.l=i[s][1]),h)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(t){var m=t[i[s][0]];if(f[m.n]=bo(e,m.t,{raw:!0}),"version"===m.p&&(f[m.n]=String(f[m.n]>>16)+"."+("0000"+String(65535&f[m.n])).slice(-4)),"CodePage"==m.n)switch(f[m.n]){case 0:f[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:c(a=f[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[m.n])}}else if(1===i[s][0]){if(a=f.CodePage=bo(e,2),c(a),-1!==l){var g=e.l;e.l=i[l][1],u=yo(e,a),e.l=g}}else if(0===i[s][0]){if(0===a){l=s,e.l=i[s+1][1];continue}u=yo(e,a)}else{var y,v=u[i[s][0]];switch(e[e.l]){case 65:e.l+=4,y=vo(e);break;case 30:case 31:e.l+=4,y=mo(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,y=e.read_shift(4,"i");break;case 19:e.l+=4,y=e.read_shift(4);break;case 5:e.l+=4,y=e.read_shift(8,"f");break;case 11:e.l+=4,y=To(e,4);break;case 64:e.l+=4,y=Ue(co(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[v]=y}}return e.l=n+r,f}var _o=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xo(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Eo(e,t,n){var r=Nn(8),o=[],i=[],s=8,a=0,l=Nn(8),u=Nn(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),i.push(l),o.push(u),s+=8+l.length,!t){(u=Nn(8)).write_shift(4,0),o.unshift(u);var c=[Nn(4)];for(c[0].write_shift(4,e.length),a=0;a<e.length;++a){var p=e[a][0];for((l=Nn(8+2*(p.length+1)+(p.length%2?0:2))).write_shift(4,a+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=k(c),i.unshift(l),s+=8+l.length}for(a=0;a<e.length;++a)if((!t||t[e[a][0]])&&!(_o.indexOf(e[a][0])>-1||no.indexOf(e[a][0])>-1)&&null!=e[a][1]){var d=e[a][1],f=0;if(t){var h=n[f=+t[e[a][0]]];if("version"==h.p&&"string"==typeof d){var m=d.split(".");d=(+m[0]<<16)+(+m[1]||0)}l=wo(h.t,d)}else{var g=xo(d);-1==g&&(g=31,d=String(d)),l=wo(g,d)}i.push(l),(u=Nn(8)).write_shift(4,t?f:2+a),o.push(u),s+=8+l.length}var y=8*(i.length+1);for(a=0;a<i.length;++a)o[a].write_shift(4,y),y+=i[a].length;return r.write_shift(4,s),r.write_shift(4,i.length),k([r].concat(o).concat(i))}function So(e,t,n){var r=e.content;if(!r)return{};Dn(r,0);var o,i,s,a,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var u=r.read_shift(4),c=r.read_shift(16);if(c!==Pe.utils.consts.HEADER_CLSID&&c!==n)throw new Error("Bad PropertySet CLSID "+c);if(1!==(o=r.read_shift(4))&&2!==o)throw new Error("Unrecognized #Sets: "+o);if(i=r.read_shift(16),a=r.read_shift(4),1===o&&a!==r.l)throw new Error("Length mismatch: "+a+" !== "+r.l);2===o&&(s=r.read_shift(16),l=r.read_shift(4));var p,d=Co(r,t),f={SystemIdentifier:u};for(var h in d)f[h]=d[h];if(f.FMTID=i,1===o)return f;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{p=Co(r,null)}catch(e){}for(h in p)f[h]=p[h];return f.FMTID=[i,s],f}function Po(e,t,n,r,o,i){var s=Nn(o?68:48),a=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Pe.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,o?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,o?68:48);var l=Eo(e,n,r);if(a.push(l),o){var u=Eo(o,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+l.length),a.push(u)}return k(a)}function Oo(e,t){return e.read_shift(t),null}function To(e,t){return 1===e.read_shift(t)}function ko(e,t){return t||(t=Nn(2)),t.write_shift(2,+!!e),t}function Ao(e){return e.read_shift(2,"u")}function Io(e,t){return t||(t=Nn(2)),t.write_shift(2,e),t}function Ro(e,t){return function(e,t,n){for(var r=[],o=e.l+t;e.l<o;)r.push(n(e,o-e.l));if(o!==e.l)throw new Error("Slurp error");return r}(e,t,Ao)}function Mo(e,t,n){return n||(n=Nn(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Do(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),o="sbcs-cont",s=i;n&&n.biff>=8&&(i=1200),n&&8!=n.biff?12==n.biff&&(o="wstr"):e.read_shift(1)&&(o="dbcs-cont"),n.biff>=2&&n.biff<=5&&(o="cpstr");var a=r?e.read_shift(r,o):"";return i=s,a}function Lo(e){var t=i;i=1200;var n,r=e.read_shift(2),o=e.read_shift(1),s=4&o,a=8&o,l=1+(1&o),u=0,c={};a&&(u=e.read_shift(2)),s&&(n=e.read_shift(4));var p=2==l?"dbcs-cont":"sbcs-cont",d=0===r?"":e.read_shift(r,p);return a&&(e.l+=4*u),s&&(e.l+=n),c.t=d,a||(c.raw="<t>"+c.t+"</t>",c.r=c.t),i=t,c}function No(e){var t=e.t||"",n=Nn(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=Nn(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),k([n,r])}function Vo(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function jo(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):Vo(e,r,n)}function Fo(e,t,n){if(n.biff>5)return jo(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function zo(e,t,n){return n||(n=Nn(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function Bo(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(A,""):""}function Ho(e,t){t||(t=Nn(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function Uo(e){var t=Nn(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var o=r.indexOf("#"),i=o>-1?31:23;switch(r.charAt(0)){case"#":i=28;break;case".":i&=-3}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(n=0;n<s.length;++n)t.write_shift(4,s[n]);if(28==i)Ho(r=r.slice(1),t);else if(2&i){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));var a=o>-1?r.slice(0,o):r;for(t.write_shift(4,2*(a.length+1)),n=0;n<a.length;++n)t.write_shift(2,a.charCodeAt(n));t.write_shift(2,0),8&i&&Ho(o>-1?r.slice(o+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));for(var l=0;"../"==r.slice(3*l,3*l+3)||"..\\"==r.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function qo(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function Wo(e,t){var n=qo(e);return n[3]=0,n}function $o(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Qo(e,t,n,r){return r||(r=Nn(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function Go(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function Yo(e){return[e.read_shift(2),wr(e)]}function Zo(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Ko(e,t){return t||(t=Nn(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Xo(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var Jo=Xo;function ei(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function ti(e){e.l+=2,e.l+=e.read_shift(2)}var ni={0:ti,4:ti,5:ti,6:ti,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:ti,9:ti,10:ti,11:ti,12:ti,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:ti,15:ti,16:ti,17:ti,18:ti,19:ti,20:ti,21:ei};function ri(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),(t-=2)>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function oi(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;default:throw new Error("unsupported BIFF version")}var i=Nn(o);return i.write_shift(2,r),i.write_shift(2,t),o>4&&i.write_shift(2,29282),o>6&&i.write_shift(2,1997),o>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function ii(e,t){var n=!t||t.biff>=8?2:1,r=Nn(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var o=r.slice(0,r.l);return o.l=r.l,o}function si(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var o=e.read_shift(2);return n&&2==n.biff&&(r=1-(o>>15),o&=32767),[{Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3},o]}function ai(e,t,n,r){var o=n&&5==n.biff;r||(r=Nn(o?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(o?1:2,t.length),o||r.write_shift(1,1),r.write_shift((o?1:2)*t.length,t,o?"sbcs":"utf16le");var i=r.length>r.l?r.slice(0,r.l):r;return null==i.l&&(i.l=i.length),i}var li=Fo;function ui(e,t,n){var r=e.l+t,o=8!=n.biff&&n.biff?2:4,i=e.read_shift(o),s=e.read_shift(o),a=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:i,c:a},e:{r:s,c:l}}}function ci(e,t,n,r){var o=n&&5==n.biff;r||(r=Nn(o?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&o&&(i|=1024),r.write_shift(4,i),r.write_shift(4,0),o||r.write_shift(4,0),r.write_shift(2,0),r}function pi(e,t,n){var r=$o(e);2!=n.biff&&9!=t||++e.l;var o=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return r.val=o,r.t=!0===o||!1===o?"b":"e",r}var di=function(e,t,n){return 0===t?"":Fo(e,0,n)};function fi(e,t,n){var r,o=e.read_shift(2),i={fBuiltIn:1&o,fWantAdvise:o>>>1&1,fWantPict:o>>>2&1,fOle:o>>>3&1,fOleLink:o>>>4&1,cf:o>>>5&1023,fIcon:o>>>15&1};return 14849===n.sbcch&&(r=function(e,t,n){e.l+=4,t-=4;var r=e.l+t,o=Do(e,0,n),i=e.read_shift(2);if(i!==(r-=e.l))throw new Error("Malformed AddinUdf: padding = "+r+" != "+i);return e.l+=i,o}(e,t-2,n)),i.body=r||e.read_shift(t-2),"string"==typeof r&&(i.Name=r),i}var hi=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function mi(e,t,n){var r=e.l+t,o=e.read_shift(2),i=e.read_shift(1),s=e.read_shift(1),a=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var u=Vo(e,s,n);32&o&&(u=hi[u.charCodeAt(0)]);var c=r-e.l;n&&2==n.biff&&--c;var p=r!=e.l&&0!==a&&c>0?function(e,t,n,r){var o,i=e.l+t,s=Ca(e,r,n);return i!==e.l&&(o=wa(e,i-e.l,s,n)),[s,o]}(e,c,n,a):[];return{chKey:i,Name:u,itab:l,rgce:p}}function gi(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Do(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],o=e.l+t,i=e.read_shift(n.biff>8?4:2);0!==i--;)r.push(Go(e,n.biff,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}function yi(e,t,n){var r=Jo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Oa(e,t,n)]}var vi={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var o=e.read_shift(1);return e.l+=o,e.l=n,{fmt:r}}};function bi(e){var t=Nn(24),n=Gn(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)t.write_shift(1,parseInt(r[o],16));return k([t,Uo(e[1])])}function wi(e){var t=e[1].Tooltip,n=Nn(10+2*(t.length+1));n.write_shift(2,2048);var r=Gn(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var o=0;o<t.length;++o)n.write_shift(2,t.charCodeAt(o));return n.write_shift(2,0),n}function Ci(e,t,n){if(!n.cellStyles)return Ln(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),i=e.read_shift(r),s=e.read_shift(r),a=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var u={s:o,e:i,w:s,ixfe:a,flags:l};return(n.biff>=5||!n.biff)&&(u.level=l>>8&7),u}var _i=$o,xi=Ro,Ei=jo,Si=[2,3,48,49,131,139,140,245],Pi=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Ie({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var o=nr(function(t,n){var r=[],o=x(1);switch(n.type){case"base64":o=S(w(t));break;case"binary":o=S(t);break;case"buffer":case"array":o=t}Dn(o,0);var i=o.read_shift(1),s=!!(136&i),a=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:a=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var u=0,c=521;2==i&&(u=o.read_shift(2)),o.l+=3,2!=i&&(u=o.read_shift(4)),u>1048576&&(u=1e6),2!=i&&(c=o.read_shift(2));var p=o.read_shift(2),d=n.codepage||1252;2!=i&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(d=e[o[o.l]]),o.l+=1,o.l+=2),l&&(o.l+=36);for(var f=[],m={},g=Math.min(o.length,2==i?521:c-10-(a?264:0)),y=l?32:11;o.l<g&&13!=o[o.l];)switch((m={}).name=h.utils.decode(d,o.slice(o.l,o.l+y)).replace(/[\u0000\r\n].*$/g,""),o.l+=y,m.type=String.fromCharCode(o.read_shift(1)),2==i||l||(m.offset=o.read_shift(4)),m.len=o.read_shift(1),2==i&&(m.offset=o.read_shift(2)),m.dec=o.read_shift(1),m.name.length&&f.push(m),2!=i&&(o.l+=l?13:14),m.type){case"B":a&&8==m.len||!n.WTF||console.log("Skipping "+m.name+":"+m.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+m.name+":"+m.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+m.type)}if(13!==o[o.l]&&(o.l=c-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=c;var v=0,b=0;for(r[0]=[],b=0;b!=f.length;++b)r[0][b]=f[b].name;for(;u-- >0;)if(42!==o[o.l])for(++o.l,r[++v]=[],b=0,b=0;b!=f.length;++b){var C=o.slice(o.l,o.l+f[b].len);o.l+=f[b].len,Dn(C,0);var _=h.utils.decode(d,C);switch(f[b].type){case"C":_.trim().length&&(r[v][b]=_.replace(/\s+$/,""));break;case"D":8===_.length?r[v][b]=new Date(+_.slice(0,4),+_.slice(4,6)-1,+_.slice(6,8)):r[v][b]=_;break;case"F":r[v][b]=parseFloat(_.trim());break;case"+":case"I":r[v][b]=l?2147483648^C.read_shift(-4,"i"):C.read_shift(4,"i");break;case"L":switch(_.trim().toUpperCase()){case"Y":case"T":r[v][b]=!0;break;case"N":case"F":r[v][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+_+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));r[v][b]="##MEMO##"+(l?parseInt(_.trim(),10):C.read_shift(4));break;case"N":(_=_.replace(/\u0000/g,"").trim())&&"."!=_&&(r[v][b]=+_||0);break;case"@":r[v][b]=new Date(C.read_shift(-8,"f")-621356832e5);break;case"T":r[v][b]=new Date(864e5*(C.read_shift(4)-2440588)+C.read_shift(4));break;case"Y":r[v][b]=C.read_shift(4,"i")/1e4+C.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[v][b]=-C.read_shift(-8,"f");break;case"B":if(a&&8==f[b].len){r[v][b]=C.read_shift(8,"f");break}case"G":case"P":C.l+=f[b].len;break;case"0":if("_NullFlags"===f[b].name)break;default:throw new Error("DBF Unsupported data type "+f[b].type)}}else o.l+=p;if(2!=i&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=f,r}(t,r),r);return o["!cols"]=r.DBF.map(function(e){return{wch:e.len,DBF:e}}),delete r.DBF,o}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return er(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var o=n||{};if(+o.codepage>=0&&c(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var i=jn(),a=wc(e,{header:1,raw:!0,cellDates:!0}),l=a[0],u=a.slice(1),p=e["!cols"]||[],d=0,f=0,h=0,m=1;for(d=0;d<l.length;++d)if(((p[d]||{}).DBF||{}).name)l[d]=p[d].DBF.name,++h;else if(null!=l[d]){if(++h,"number"==typeof l[d]&&(l[d]=l[d].toString(10)),"string"!=typeof l[d])throw new Error("DBF Invalid column name "+l[d]+" |"+typeof l[d]+"|");if(l.indexOf(l[d])!==d)for(f=0;f<1024;++f)if(-1==l.indexOf(l[d]+"_"+f)){l[d]+="_"+f;break}}var g=Xn(e["!ref"]),y=[],v=[],b=[];for(d=0;d<=g.e.c-g.s.c;++d){var w="",C="",_=0,x=[];for(f=0;f<u.length;++f)null!=u[f][d]&&x.push(u[f][d]);if(0!=x.length&&null!=l[d]){for(f=0;f<x.length;++f){switch(typeof x[f]){case"number":C="B";break;case"string":default:C="C";break;case"boolean":C="L";break;case"object":C=x[f]instanceof Date?"D":"C"}_=Math.max(_,String(x[f]).length),w=w&&w!=C?"C":C}_>250&&(_=250),"C"==(C=((p[d]||{}).DBF||{}).type)&&p[d].DBF.len>_&&(_=p[d].DBF.len),"B"==w&&"N"==C&&(w="N",b[d]=p[d].DBF.dec,_=p[d].DBF.len),v[d]="C"==w||"N"==C?_:r[w]||0,m+=v[d],y[d]=w}else y[d]="?"}var E=i.next(32);for(E.write_shift(4,318902576),E.write_shift(4,u.length),E.write_shift(2,296+32*h),E.write_shift(2,m),d=0;d<4;++d)E.write_shift(4,0);for(E.write_shift(4,(+t[s]||3)<<8),d=0,f=0;d<l.length;++d)if(null!=l[d]){var S=i.next(32),P=(l[d].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);S.write_shift(1,P,"sbcs"),S.write_shift(1,"?"==y[d]?"C":y[d],"sbcs"),S.write_shift(4,f),S.write_shift(1,v[d]||r[y[d]]||0),S.write_shift(1,b[d]||0),S.write_shift(1,2),S.write_shift(4,0),S.write_shift(1,0),S.write_shift(4,0),S.write_shift(4,0),f+=v[d]||r[y[d]]||0}var O=i.next(264);for(O.write_shift(4,13),d=0;d<65;++d)O.write_shift(4,0);for(d=0;d<u.length;++d){var T=i.next(m);for(T.write_shift(1,0),f=0;f<l.length;++f)if(null!=l[f])switch(y[f]){case"L":T.write_shift(1,null==u[d][f]?63:u[d][f]?84:70);break;case"B":T.write_shift(8,u[d][f]||0,"f");break;case"N":var k="0";for("number"==typeof u[d][f]&&(k=u[d][f].toFixed(b[f]||0)),h=0;h<v[f]-k.length;++h)T.write_shift(1,32);T.write_shift(1,k,"sbcs");break;case"D":u[d][f]?(T.write_shift(4,("0000"+u[d][f].getFullYear()).slice(-4),"sbcs"),T.write_shift(2,("00"+(u[d][f].getMonth()+1)).slice(-2),"sbcs"),T.write_shift(2,("00"+u[d][f].getDate()).slice(-2),"sbcs")):T.write_shift(8,"00000000","sbcs");break;case"C":var A=String(null!=u[d][f]?u[d][f]:"").slice(0,v[f]);for(T.write_shift(1,A,"sbcs"),h=0;h<v[f]-A.length;++h)T.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),Oi=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+ke(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?y(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:y(r)};function o(e,o){var i,s=e.split(/[\n\r]+/),a=-1,l=-1,u=0,p=0,d=[],f=[],h=null,m={},g=[],y=[],v=[],b=0;for(+o.codepage>=0&&c(+o.codepage);u!==s.length;++u){b=0;var w,C=s[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),_=C.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")}),x=_[0];if(C.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==_[1].charAt(0)&&f.push(C.slice(3).replace(/;;/g,";"));break;case"C":var E=!1,S=!1,P=!1,O=!1,T=-1,k=-1;for(p=1;p<_.length;++p)switch(_[p].charAt(0)){case"A":case"G":break;case"X":l=parseInt(_[p].slice(1))-1,S=!0;break;case"Y":for(a=parseInt(_[p].slice(1))-1,S||(l=0),i=d.length;i<=a;++i)d[i]=[];break;case"K":'"'===(w=_[p].slice(1)).charAt(0)?w=w.slice(1,w.length-1):"TRUE"===w?w=!0:"FALSE"===w?w=!1:isNaN(Qe(w))?isNaN(Ye(w).getDate())||(w=Ue(w)):(w=Qe(w),null!==h&&ge(h)&&(w=je(w))),E=!0;break;case"E":O=!0;var A=Ys(_[p].slice(1),{r:a,c:l});d[a][l]=[d[a][l],A];break;case"S":P=!0,d[a][l]=[d[a][l],"S5S"];break;case"R":T=parseInt(_[p].slice(1))-1;break;case"C":k=parseInt(_[p].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}if(E&&(d[a][l]&&2==d[a][l].length?d[a][l][0]=w:d[a][l]=w,h=null),P){if(O)throw new Error("SYLK shared formula cannot have own formula");var I=T>-1&&d[T][k];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");d[a][l][1]=Xs(I[1],{r:a-T,c:l-k})}break;case"F":var R=0;for(p=1;p<_.length;++p)switch(_[p].charAt(0)){case"X":l=parseInt(_[p].slice(1))-1,++R;break;case"Y":for(a=parseInt(_[p].slice(1))-1,i=d.length;i<=a;++i)d[i]=[];break;case"M":b=parseInt(_[p].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=f[parseInt(_[p].slice(1))];break;case"W":for(v=_[p].slice(1).split(" "),i=parseInt(v[0],10);i<=parseInt(v[1],10);++i)b=parseInt(v[2],10),y[i-1]=0===b?{hidden:!0}:{wch:b},cs(y[i-1]);break;case"C":y[l=parseInt(_[p].slice(1))-1]||(y[l]={});break;case"R":g[a=parseInt(_[p].slice(1))-1]||(g[a]={}),b>0?(g[a].hpt=b,g[a].hpx=ds(b)):0===b&&(g[a].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}R<1&&(h=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}}return g.length>0&&(m["!rows"]=g),y.length>0&&(m["!cols"]=y),o&&o.sheetRows&&(d=d.slice(0,o.sheetRows)),[d,m]}function i(e,t){var n=function(e,t){switch(t.type){case"base64":return o(w(e),t);case"binary":return o(e,t);case"buffer":return o(C&&Buffer.isBuffer(e)?e.toString("binary"):O(e),t);case"array":return o(qe(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],i=n[1],s=nr(r,t);return ke(i).forEach(function(e){s[e]=i[e]}),s}function s(e,t,n,r){var o="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+Ks(e.f,{r:n,c:r}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return er(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var n,r,o=["ID;PWXL;N;E"],i=[],a=Xn(e["!ref"]),l=Array.isArray(e),u="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=o,e["!cols"].forEach(function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=is(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=ss(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)})),e["!rows"]&&function(e,t){t.forEach(function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*ps(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))})}(o,e["!rows"]),o.push("B;Y"+(a.e.r-a.s.r+1)+";X"+(a.e.c-a.s.c+1)+";D"+[a.s.c,a.s.r,a.e.c,a.e.r].join(" "));for(var c=a.s.r;c<=a.e.r;++c)for(var p=a.s.c;p<=a.e.c;++p){var d=Yn({r:c,c:p});(n=l?(e[c]||[])[p]:e[d])&&(null!=n.v||n.f&&!n.F)&&i.push(s(n,0,c,p))}return o.join(u)+u+i.join(u)+u+"E"+u}}}(),Ti=function(){function e(e,t){for(var n=e.split("\n"),r=-1,o=-1,i=0,s=[];i!==n.length;++i)if("BOT"!==n[i].trim()){if(!(r<0)){for(var a=n[i].trim().split(","),l=a[0],u=a[1],c=n[++i]||"";1&(c.match(/["]/g)||[]).length&&i<n.length-1;)c+="\n"+n[++i];switch(c=c.trim(),+l){case-1:if("BOT"===c){s[++r]=[],o=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?s[r][o]=!0:"FALSE"===c?s[r][o]=!1:isNaN(Qe(u))?isNaN(Ye(u).getDate())?s[r][o]=u:s[r][o]=Ue(u):s[r][o]=Qe(u),++o;break;case 1:(c=(c=c.slice(1,c.length-1)).replace(/""/g,'"'))&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),s[r][o++]=""!==c?c:null}if("EOD"===c)break}}else s[++r]=[],o=0;return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}function t(t,n){return nr(function(t,n){switch(n.type){case"base64":return e(w(t),n);case"binary":return e(t,n);case"buffer":return e(C&&Buffer.isBuffer(t)?t.toString("binary"):O(t),n);case"array":return e(qe(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return er(t(e,n),n)},to_sheet:t,from_sheet:function(){var e=function(e,t,n,r,o){e.push(t),e.push(n+","+r),e.push('"'+o.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,o=[],i=Xn(n["!ref"]),s=Array.isArray(n);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,i.e.r-i.s.r+1,""),e(o,"TUPLES",0,i.e.c-i.s.c+1,""),e(o,"DATA",0,0,"");for(var a=i.s.r;a<=i.e.r;++a){t(o,-1,0,"BOT");for(var l=i.s.c;l<=i.e.c;++l){var u=Yn({r:a,c:l});if(r=s?(n[a]||[])[l]:n[u])switch(r.t){case"n":var c=r.w;c||null==r.v||(c=r.v),null==c?r.f&&!r.F?t(o,1,0,"="+r.f):t(o,1,0,""):t(o,0,c,"V");break;case"b":t(o,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=be(r.z||B[14],De(Ue(r.v)))),t(o,0,r.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}return t(o,-1,0,"EOD"),o.join("\r\n")}}()}}(),ki=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){return nr(function(t,n){for(var r=t.split("\n"),o=-1,i=-1,s=0,a=[];s!==r.length;++s){var l=r[s].trim().split(":");if("cell"===l[0]){var u=Gn(l[1]);if(a.length<=u.r)for(o=a.length;o<=u.r;++o)a[o]||(a[o]=[]);switch(o=u.r,i=u.c,l[2]){case"t":a[o][i]=e(l[3]);break;case"v":a[o][i]=+l[3];break;case"vtf":var c=l[l.length-1];case"vtc":"nl"===l[3]?a[o][i]=!!+l[4]:a[o][i]=+l[4],"vtf"==l[2]&&(a[o][i]=[a[o][i],c])}}}return n&&n.sheetRows&&(a=a.slice(0,n.sheetRows)),a}(t,n),n)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function a(e){if(!e||!e["!ref"])return"";for(var n,r=[],o=[],i="",s=Zn(e["!ref"]),a=Array.isArray(e),l=s.s.r;l<=s.e.r;++l)for(var u=s.s.c;u<=s.e.c;++u)if(i=Yn({r:l,c:u}),(n=a?(e[l]||[])[u]:e[i])&&null!=n.v&&"z"!==n.t){switch(o=["cell",i,"t"],n.t){case"s":case"str":o.push(t(n.v));break;case"n":n.f?(o[2]="vtf",o[3]="n",o[4]=n.v,o[5]=t(n.f)):(o[2]="v",o[3]=n.v);break;case"b":o[2]="vt"+(n.f?"f":"c"),o[3]="nl",o[4]=n.v?"1":"0",o[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=De(Ue(n.v));o[2]="vtc",o[3]="nd",o[4]=""+c,o[5]=n.w||be(n.z||B[14],c);break;case"e":continue}r.push(o.join(":"))}return r.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,t){return er(n(e,t),t)},to_sheet:n,from_sheet:function(e){return[r,o,i,o,a(e),s].join("\n")}}}(),Ai=function(){function e(e,t,n,r,o){o.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(Qe(e))?isNaN(Ye(e).getDate())?t[n][r]=e:t[n][r]=Ue(e):t[n][r]=Qe(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},o=!1,i=0,s=0;i<e.length;++i)34==(s=e.charCodeAt(i))?o=!o:!o&&s in t&&(r[s]=(r[s]||0)+1);for(i in s=[],r)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);if(!s.length)for(i in r=n)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);return s.sort(function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]}),t[s.pop()[1]]||44}function o(e,t){var n=t||{},o="",i=n.dense?[]:{},s={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(o=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(o=e.charAt(4),e=e.slice(6)):o=r(e.slice(0,1024)):o=n&&n.FS?n.FS:r(e.slice(0,1024));var a=0,l=0,u=0,c=0,p=0,d=o.charCodeAt(0),f=!1,h=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var g,y,v=null!=n.dateNF?(y=(y="number"==typeof(g=n.dateNF)?B[g]:g).replace(Ee,"(\\d+)"),new RegExp("^"+y+"$")):null;function b(){var t=e.slice(c,p),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(u=Qe(t)))if(!isNaN(Ye(t).getDate())||v&&t.match(v)){r.z=n.dateNF||B[14];var o=0;v&&t.match(v)&&(t=function(e,t,n){var r=-1,o=-1,i=-1,s=-1,a=-1,l=-1;(t.match(Ee)||[]).forEach(function(e,t){var u=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=u;break;case"d":i=u;break;case"h":s=u;break;case"s":l=u;break;case"m":s>=0?a=u:o=u}}),l>=0&&-1==a&&o>=0&&(a=o,o=-1);var u=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==u.length&&(u="0"+u),8==u.length&&(u="20"+u);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==a&&-1==l?u:-1==r&&-1==o&&-1==i?c:u+"T"+c}(0,n.dateNF,t.match(v)||[]),o=1),n.cellDates?(r.t="d",r.v=Ue(t,o)):(r.t="n",r.v=De(Ue(t,o))),!1!==n.cellText&&(r.w=be(r.z,r.v instanceof Date?De(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=u;if("z"==r.t||(n.dense?(i[a]||(i[a]=[]),i[a][l]=r):i[Yn({c:l,r:a})]=r),c=p+1,m=e.charCodeAt(c),s.e.c<l&&(s.e.c=l),s.e.r<a&&(s.e.r=a),h==d)++l;else if(l=0,++a,n.sheetRows&&n.sheetRows<=a)return!0}e:for(;p<e.length;++p)switch(h=e.charCodeAt(p)){case 34:34===m&&(f=!f);break;case d:case 10:case 13:if(!f&&b())break e}return p-c>0&&b(),i["!ref"]=Kn(s),i}function i(t,n){var r="",i="string"==n.type?[0,0,0,0]:cc(t,n);switch(n.type){case"base64":r=w(t);break;case"binary":case"string":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):(n.codepage,C&&Buffer.isBuffer(t)?t.toString("binary"):O(t));break;case"array":r=qe(t);break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Rt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Rt(r):n.type,"socialcalc:version:"==r.slice(0,19)?ki.to_sheet("string"==n.type?r:Rt(r),n):function(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?o(t,n):nr(function(t,n){var r=n||{},o=[];if(!t||0===t.length)return o;for(var i=t.split(/[\r\n]/),s=i.length-1;s>=0&&0===i[s].length;)--s;for(var a=10,l=0,u=0;u<=s;++u)-1==(l=i[u].indexOf(" "))?l=i[u].length:l++,a=Math.max(a,l);for(u=0;u<=s;++u){o[u]=[];var c=0;for(e(i[u].slice(0,a).trim(),o,u,c,r),c=1;c<=(i[u].length-a)/10+1;++c)e(i[u].slice(a+10*(c-1),a+10*c).trim(),o,u,c,r)}return r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,n),n):o(t,n)}(r,n)}return{to_workbook:function(e,t){return er(i(e,t),t)},to_sheet:i,from_sheet:function(e){for(var t,n=[],r=Xn(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){for(var s=[],a=r.s.c;a<=r.e.c;++a){var l=Yn({r:i,c:a});if((t=o?(e[i]||[])[a]:e[l])&&null!=t.v){for(var u=(t.w||(Jn(t),t.w)||"").slice(0,10);u.length<10;)u+=" ";s.push(u+(0===a?" ":""))}else s.push("          ")}n.push(s.join(""))}return n.join("\n")}}}(),Ii=function(){function e(e,t,n){if(e){Dn(e,e.l||0);for(var r=n.Enum||v;e.l<e.length;){var o=e.read_shift(2),i=r[o]||r[65535],s=e.read_shift(2),a=e.l+s,l=i.f&&i.f(e,s,n);if(e.l=a,t(l,i,o))return}}}function t(t,n){if(!t)return t;var r=n||{},o=r.dense?[]:{},i="Sheet1",s="",a=0,l={},u=[],c=[],p={s:{r:0,c:0},e:{r:0,c:0}},d=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=v,e(t,function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:p=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||B[14],r.cellDates&&(e[1].t="d",e[1].v=je(e[1].v))),r.qpro&&e[3]>a&&(o["!ref"]=Kn(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i=s||"Sheet"+(a+1),s="");var c=r.dense?(o[e[0].r]||[])[e[0].c]:o[Yn(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[Yn(e[0])]=e[1]}},r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=b,14==t[2]&&(r.qpro=!0,t.l=0),e(t,function(e,t,n){switch(n){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>a&&(o["!ref"]=Kn(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i="Sheet"+(a+1)),d>0&&e[0].r>=d)break;r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[Yn(e[0])]=e[1],p.e.c<e[0].c&&(p.e.c=e[0].c),p.e.r<e[0].r&&(p.e.r=e[0].r);break;case 27:e[14e3]&&(c[e[14e3][0]]=e[14e3][1]);break;case 1537:c[e[0]]=e[1],e[0]==a&&(i=e[1])}},r)}if(o["!ref"]=Kn(p),l[s||i]=o,u.push(s||i),!c.length)return{SheetNames:u,Sheets:l};for(var f={},h=[],m=0;m<c.length;++m)l[u[m]]?(h.push(c[m]||u[m]),f[c[m]]=l[c[m]]||l[u[m]]):(h.push(c[m]),f[c[m]]={"!ref":"A1"});return{SheetNames:h,Sheets:f}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return i[1].v=e.read_shift(s,"utf8"),i}return r.qpro&&e.l++,i[1].v=e.read_shift(o-e.l,"cstr"),i}function o(e,t,n){var r=Nn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var o=0;o<r.length;++o){var i=n.charCodeAt(o);r.write_shift(1,i>=128?95:i)}return r.write_shift(1,0),r}function i(e,t,n){var r=Nn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function s(e,t,n){var r=Nn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function a(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?Qn(t):Wn(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function p(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function d(e,t,n,r){var o=Nn(6+r.length);o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),o.write_shift(1,39);for(var i=0;i<r.length;++i){var s=r.charCodeAt(i);o.write_shift(1,s>=128?95:s)}return o.write_shift(1,0),o}function f(e,t){var n=p(e),r=e.read_shift(4),o=e.read_shift(4),i=e.read_shift(2);if(65535==i)return 0===r&&3221225472===o?(n[1].t="e",n[1].v=15):0===r&&3489660928===o?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&i;return i=(32767&i)-16446,n[1].v=(1-2*s)*(o*Math.pow(2,i+32)+r*Math.pow(2,i)),n}function h(e,t,n,r){var o=Nn(14);if(o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),0==r)return o.write_shift(4,0),o.write_shift(4,0),o.write_shift(2,65535),o;var i,s=0,a=0,l=0;return r<0&&(s=1,r=-r),a=0|Math.log2(r),2147483648&(l=(r/=Math.pow(2,a-31))>>>0)||(++a,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,i=(r*=Math.pow(2,32))>>>0,o.write_shift(4,i),o.write_shift(4,l),a+=16383+(s?32768:0),o.write_shift(2,a),o}function m(e,t){var n=p(e),r=e.read_shift(8,"f");return n[1].v=r,n}function g(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function y(e,t){var n=Nn(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var o=e.charCodeAt(r);n[n.l++]=o>127?95:o}return n[n.l++]=0,n}var v={0:{n:"BOF",f:Ao},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(8,"f"),o}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].v=e.read_shift(8,"f"),r.qpro)e.l=o;else{var s=e.read_shift(2);!function(e,t){Dn(e,0);for(var n=[],r=0,o="",i="",s="",c="";e.l<e.length;){var p=e[e.l++];switch(p){case 0:n.push(e.read_shift(8,"f"));break;case 1:i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(i+o);break;case 2:var d=a(t[0].c,e.read_shift(2),!0),f=a(t[0].r,e.read_shift(2),!1);i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(d+f+":"+i+o);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var h="";p=e[e.l++];)h+=String.fromCharCode(p);n.push('"'+h.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:c=n.pop(),s=n.pop(),n.push(["AND","OR"][p-20]+"("+s+","+c+")");break;default:if(p<32&&u[p])c=n.pop(),s=n.pop(),n.push(s+u[p]+c);else{if(!l[p])return p<=7?console.error("WK1 invalid opcode "+p.toString(16)):p<=24?console.error("WK1 unsupported op "+p.toString(16)):p<=30?console.error("WK1 invalid opcode "+p.toString(16)):p<=115?console.error("WK1 unsupported function opcode "+p.toString(16)):console.error("WK1 unrecognized opcode "+p.toString(16));if(69==(r=l[p][1])&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+p.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-r);n.length-=r,n.push(l[p][0]+"("+m.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+s),i),e.l+=s}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:g},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},b={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=p(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f},24:{n:"NUMBER18",f:function(e,t){var n=p(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=f(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var o=e.read_shift(2);if(14e3==o){for(n[o]=[0,""],n[o][0]=e.read_shift(2);e[e.l];)n[o][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=p(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:m},40:{n:"FORMULA28",f:function(e,t){var n=m(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:g},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&c(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,a=jn(),l=Xn(e["!ref"]),u=Array.isArray(e),p=[];pu(a,0,((r=Nn(2)).write_shift(2,1030),r)),pu(a,6,function(e){var t=Nn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var d=Math.min(l.e.r,8191),f=l.s.r;f<=d;++f)for(var h=Wn(f),m=l.s.c;m<=l.e.c;++m){f===l.s.r&&(p[m]=Qn(m));var g=p[m]+h,y=u?(e[f]||[])[m]:e[g];y&&"z"!=y.t&&("n"==y.t?(0|y.v)==y.v&&y.v>=-32768&&y.v<=32767?pu(a,13,i(f,m,y.v)):pu(a,14,s(f,m,y.v)):pu(a,15,o(f,m,Jn(y).slice(0,239))))}return pu(a,1),a.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&c(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=jn();pu(r,0,function(e){var t=Nn(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,o=0,i=0;i<e.SheetNames.length;++i){var s=e.SheetNames[i],a=e.Sheets[s];if(a&&a["!ref"]){++o;var l=Zn(a["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var o=0,i=0;o<e.SheetNames.length;++o)(e.Sheets[e.SheetNames[o]]||{})["!ref"]&&pu(r,27,y(e.SheetNames[o],i++));var s=0;for(o=0;o<e.SheetNames.length;++o){var a=e.Sheets[e.SheetNames[o]];if(a&&a["!ref"]){for(var l=Xn(a["!ref"]),u=Array.isArray(a),p=[],f=Math.min(l.e.r,8191),m=l.s.r;m<=f;++m)for(var g=Wn(m),v=l.s.c;v<=l.e.c;++v){m===l.s.r&&(p[v]=Qn(v));var b=p[v]+g,w=u?(a[m]||[])[v]:a[b];w&&"z"!=w.t&&("n"==w.t?pu(r,23,h(m,v,s,w.v)):pu(r,22,d(m,v,s,Jn(w).slice(0,239))))}++s}}return pu(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(S(w(e)),n);case"binary":return t(S(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),Ri=function(){var e=Dt("t"),t=Dt("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var o={t:"s",v:bt(r[1])},i=n.match(t);return i&&(o.s=function(e){var t={},n=e.match(dt),r=0,o=!1;if(n)for(;r!=n.length;++r){var i=mt(n[r]);switch(i[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==i.val)break;t.cp=l[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=i.val;break;case"<sz":t.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==i.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==i.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":i.rgb&&(t.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(47!==i[0].charCodeAt(1)&&!o)throw new Error("Unrecognized rich format "+i[0])}}return t}(i[1])),o}var r=/<(?:\w+:)?r>/g,o=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(o).map(n).filter(function(e){return e.v})}}(),Mi=function(){var e=/(\r\n|\n)/g;function t(t){var n=[[],t.v,[]];return t.v?(t.s&&function(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push('<span style="'+r.join("")+'">'),e.b&&(t.push("<b>"),n.push("</b>")),e.i&&(t.push("<i>"),n.push("</i>")),e.strike&&(t.push("<s>"),n.push("</s>"));var o=e.valign||"";"superscript"==o||"super"==o?o="sup":"subscript"==o&&(o="sub"),""!=o&&(t.push("<"+o+">"),n.push("</"+o+">")),n.push("</span>")}(t.s,n[0],n[2]),n[0].join("")+n[1].replace(e,"<br/>")+n[2].join("")):""}return function(e){return e.map(t).join("")}}(),Di=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Li=/<(?:\w+:)?r>/,Ni=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Vi(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=bt(Rt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Rt(e),n&&(r.h=St(r.t))):e.match(Li)&&(r.r=Rt(e),r.t=bt(Rt((e.replace(Ni,"").match(Di)||[]).join("").replace(dt,""))),n&&(r.h=Mi(Ri(r.r)))),r):{t:""}}var ji=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Fi=/<(?:\w+:)?(?:si|sstItem)>/g,zi=/<\/(?:\w+:)?(?:si|sstItem)>/,Bi=/^\s|\s$|[\t\n\r]/;function Hi(e,t){if(!t.bookSST)return"";var n=[ut];n[n.length]=Ut("sst",null,{xmlns:Xt[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var o=e[r],i="<si>";o.r?i+=o.r:(i+="<t",o.t||(o.t=""),o.t.match(Bi)&&(i+=' xml:space="preserve"'),i+=">"+_t(o.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Ui=function(e,t){var n=!1;return null==t&&(n=!0,t=Nn(15+4*e.t.length)),t.write_shift(1,0),ir(e.t,t),n?t.slice(0,t.l):t};function qi(e){var t=jn();Fn(t,159,function(e,t){return t||(t=Nn(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)Fn(t,19,Ui(e[n]));return Fn(t,160),t.end()}function Wi(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function $i(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),n}function Qi(e){for(var t=e.read_shift(4),n=e.l+t-4,r={},o=e.read_shift(4),i=[];o-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=i,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function Gi(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var o=!1;switch(r.AlgID){case 26126:case 26127:case 26128:o=36==r.Flags;break;case 26625:o=4==r.Flags;break;case 0:o=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!o)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function Yi(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function Zi(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:Gi(e,t),v:Yi(e,e.length-e.l)}}function Ki(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Xi(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(dt,function(e){var n=mt(e);switch(gt(n[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach(function(e){r[e]=n[e]});break;case"<dataIntegrity":r.encryptedHmacKey=n.encryptedHmacKey,r.encryptedHmacValue=n.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"<keyEncryptor":r.uri=n.uri;break;case"<encryptedKey":r.encs.push(n);break;default:throw n[0]}}),r}function Ji(e){var t,n,r=0,o=Wi(e),i=o.length+1;for((t=x(i))[0]=o.length,n=1;n!=i;++n)t[n]=o[n-1];for(n=i-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}var es=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e,t){return 255&((n=e^t)/2|128*n);var n};return function(o){for(var i,s,a,l=Wi(o),u=function(e){for(var r=t[e.length-1],o=104,i=e.length-1;i>=0;--i)for(var s=e[i],a=0;7!=a;++a)64&s&&(r^=n[o]),s*=2,--o;return r}(l),c=l.length,p=x(16),d=0;16!=d;++d)p[d]=0;for(1&~c||(i=u>>8,p[c]=r(e[0],i),--c,i=255&u,s=l[l.length-1],p[c]=r(s,i));c>0;)i=u>>8,p[--c]=r(l[c],i),i=255&u,p[--c]=r(l[c],i);for(c=15,a=15-l.length;a>0;)i=u>>8,p[c]=r(e[a],i),--a,i=255&u,p[--c]=r(l[c],i),--c,--a;return p}}();var ts=function(){function e(e,n){switch(n.type){case"base64":return t(w(e),n);case"binary":return t(e,n);case"buffer":return t(C&&Buffer.isBuffer(e)?e.toString("binary"):O(e),n);case"array":return t(qe(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach(function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,i=/\\\w+\b/g,s=0,a=-1;r=i.exec(e);){if("\\cell"===r[0]){var l=e.slice(s,i.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++a,l.length){var u={v:l,t:"s"};Array.isArray(n)?n[t][a]=u:n[Yn({r:t,c:a})]=u}}s=i.lastIndex}a>o.e.c&&(o.e.c=a)}),n["!ref"]=Kn(o),n}return{to_workbook:function(t,n){return er(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=Xn(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){n.push("\\trowd\\trautofit1");for(var s=r.s.c;s<=r.e.c;++s)n.push("\\cellx"+(s+1));for(n.push("\\pard\\intbl"),s=r.s.c;s<=r.e.c;++s){var a=Yn({r:i,c:s});(t=o?(e[i]||[])[s]:e[a])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(Jn(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function ns(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function rs(e,t){if(0===t)return e;var n,r,o=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(t,n,r),i=Math.min(t,n,r),s=o-i;if(0===s)return[0,0,t];var a,l=0,u=o+i;switch(a=s/(u>1?2-u:u),o){case t:l=((n-r)/s+6)%6;break;case n:l=(r-t)/s+2;break;case r:l=(t-n)/s+4}return[l/6,a,u/2]}((r=(n=e).slice("#"===n[0]?1:0).slice(0,6),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]));return o[2]=t<0?o[2]*(1+t):1-(1-o[2])*(1-t),ns(function(e){var t,n=e[0],r=e[1],o=e[2],i=2*r*(o<.5?o:1-o),s=o-i/2,a=[s,s,s],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=i*l,a[0]+=i,a[1]+=t;break;case 1:t=i*(2-l),a[0]+=t,a[1]+=i;break;case 2:t=i*(l-2),a[1]+=i,a[2]+=t;break;case 3:t=i*(4-l),a[1]+=t,a[2]+=i;break;case 4:t=i*(l-4),a[2]+=i,a[0]+=t;break;case 5:t=i*(6-l),a[2]+=t,a[0]+=i}for(var u=0;3!=u;++u)a[u]=Math.round(255*a[u]);return a}(o))}var os=6;function is(e){return Math.floor((e+Math.round(128/os)/256)*os)}function ss(e){return Math.floor((e-5)/os*100+.5)/100}function as(e){return Math.round((e*os+5)/os*256)/256}function ls(e){return as(ss(is(e)))}function us(e){var t=Math.abs(e-ls(e)),n=os;if(t>.005)for(os=1;os<15;++os)Math.abs(e-ls(e))<=t&&(t=Math.abs(e-ls(e)),n=os);os=n}function cs(e){e.width?(e.wpx=is(e.width),e.wch=ss(e.wpx),e.MDW=os):e.wpx?(e.wch=ss(e.wpx),e.width=as(e.wch),e.MDW=os):"number"==typeof e.wch&&(e.width=as(e.wch),e.wpx=is(e.width),e.MDW=os),e.customWidth&&delete e.customWidth}function ps(e){return 96*e/96}function ds(e){return 96*e/96}var fs={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},hs=["numFmtId","fillId","fontId","borderId","xfId"],ms=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],gs=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,o=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(i,s,a){var u,c={};return i?((u=(i=i.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,n){t.NumberFmt=[];for(var r=ke(B),o=0;o<r.length;++o)t.NumberFmt[r[o]]=B[r[o]];var i=e[0].match(dt);if(i)for(o=0;o<i.length;++o){var s=mt(i[o]);switch(gt(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var a=bt(Rt(s.formatCode)),l=parseInt(s.numFmtId,10);if(t.NumberFmt[l]=a,l>0){if(l>392){for(l=392;l>60&&null!=t.NumberFmt[l];--l);t.NumberFmt[l]=a}we(a,l)}break;default:if(n.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}(u,c,a),(u=i.match(r))&&function(e,t,n,r){t.Fonts=[];var o={},i=!1;(e[0].match(dt)||[]).forEach(function(e){var s=mt(e);switch(gt(s[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(o),o={};break;case"<name":s.val&&(o.name=Rt(s.val));break;case"<b":o.bold=s.val?Ot(s.val):1;break;case"<b/>":o.bold=1;break;case"<i":o.italic=s.val?Ot(s.val):1;break;case"<i/>":o.italic=1;break;case"<u":switch(s.val){case"none":o.underline=0;break;case"single":o.underline=1;break;case"double":o.underline=2;break;case"singleAccounting":o.underline=33;break;case"doubleAccounting":o.underline=34}break;case"<u/>":o.underline=1;break;case"<strike":o.strike=s.val?Ot(s.val):1;break;case"<strike/>":o.strike=1;break;case"<outline":o.outline=s.val?Ot(s.val):1;break;case"<outline/>":o.outline=1;break;case"<shadow":o.shadow=s.val?Ot(s.val):1;break;case"<shadow/>":o.shadow=1;break;case"<condense":o.condense=s.val?Ot(s.val):1;break;case"<condense/>":o.condense=1;break;case"<extend":o.extend=s.val?Ot(s.val):1;break;case"<extend/>":o.extend=1;break;case"<sz":s.val&&(o.sz=+s.val);break;case"<vertAlign":s.val&&(o.vertAlign=s.val);break;case"<family":s.val&&(o.family=parseInt(s.val,10));break;case"<scheme":s.val&&(o.scheme=s.val);break;case"<charset":if("1"==s.val)break;s.codepage=l[parseInt(s.val,10)];break;case"<color":if(o.color||(o.color={}),s.auto&&(o.color.auto=Ot(s.auto)),s.rgb)o.color.rgb=s.rgb.slice(-6);else if(s.indexed){o.color.index=parseInt(s.indexed,10);var a=Nr[o.color.index];81==o.color.index&&(a=Nr[1]),a||(a=Nr[1]),o.color.rgb=a[0].toString(16)+a[1].toString(16)+a[2].toString(16)}else s.theme&&(o.color.theme=parseInt(s.theme,10),s.tint&&(o.color.tint=parseFloat(s.tint)),s.theme&&n.themeElements&&n.themeElements.clrScheme&&(o.color.rgb=rs(n.themeElements.clrScheme[o.color.theme].rgb,o.color.tint||0)));break;case"<AlternateContent":case"<ext":i=!0;break;case"</AlternateContent>":case"</ext>":i=!1;break;default:if(r&&r.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fonts")}})}(u,c,s,a),(u=i.match(n))&&function(e,t,n,r){t.Fills=[];var o={},i=!1;(e[0].match(dt)||[]).forEach(function(e){var n=mt(e);switch(gt(n[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":o={},t.Fills.push(o);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(o),o={};break;case"<patternFill":case"<patternFill>":n.patternType&&(o.patternType=n.patternType);break;case"<bgColor":o.bgColor||(o.bgColor={}),n.indexed&&(o.bgColor.indexed=parseInt(n.indexed,10)),n.theme&&(o.bgColor.theme=parseInt(n.theme,10)),n.tint&&(o.bgColor.tint=parseFloat(n.tint)),n.rgb&&(o.bgColor.rgb=n.rgb.slice(-6));break;case"<fgColor":o.fgColor||(o.fgColor={}),n.theme&&(o.fgColor.theme=parseInt(n.theme,10)),n.tint&&(o.fgColor.tint=parseFloat(n.tint)),null!=n.rgb&&(o.fgColor.rgb=n.rgb.slice(-6));break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(r&&r.WTF&&!i)throw new Error("unrecognized "+n[0]+" in fills")}})}(u,c,0,a),(u=i.match(o))&&function(e,t,n,r){t.Borders=[];var o={},i=!1;(e[0].match(dt)||[]).forEach(function(e){var n=mt(e);switch(gt(n[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":o={},n.diagonalUp&&(o.diagonalUp=Ot(n.diagonalUp)),n.diagonalDown&&(o.diagonalDown=Ot(n.diagonalDown)),t.Borders.push(o);break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(r&&r.WTF&&!i)throw new Error("unrecognized "+n[0]+" in borders")}})}(u,c,0,a),(u=i.match(t))&&function(e,t,n){var r;t.CellXf=[];var o=!1;(e[0].match(dt)||[]).forEach(function(e){var i=mt(e),s=0;switch(gt(i[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(r=i)[0],s=0;s<hs.length;++s)r[hs[s]]&&(r[hs[s]]=parseInt(r[hs[s]],10));for(s=0;s<ms.length;++s)r[ms[s]]&&(r[ms[s]]=Ot(r[ms[s]]));if(t.NumberFmt&&r.numFmtId>392)for(s=392;s>60;--s)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[s]){r.numFmtId=s;break}t.CellXf.push(r);break;case"<alignment":case"<alignment/>":var a={};i.vertical&&(a.vertical=i.vertical),i.horizontal&&(a.horizontal=i.horizontal),null!=i.textRotation&&(a.textRotation=i.textRotation),i.indent&&(a.indent=i.indent),i.wrapText&&(a.wrapText=Ot(i.wrapText)),r.alignment=a;break;case"<AlternateContent":case"<ext":o=!0;break;case"</AlternateContent>":case"</ext>":o=!1;break;default:if(n&&n.WTF&&!o)throw new Error("unrecognized "+i[0]+" in cellXfs")}})}(u,c,a),c):c}}();function ys(e,t){var n,r=[ut,Ut("styleSheet",null,{xmlns:Xt[0],"xmlns:vt":Zt})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=Ut("numFmt",null,{numFmtId:r,formatCode:_t(e[r])}))}),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Ut("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=Ut("cellXfs",null),e.forEach(function(e){t[t.length]=Ut("xf",null,e)}),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Ut("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function vs(e,t,n){n||(n=Nn(6+4*t.length)),n.write_shift(2,e),ir(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}var bs,ws=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Cs=Ln;function _s(e,t){t||(t=Nn(84)),bs||(bs=Ie(ws));var n=bs[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(Or({auto:1},t),Or({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function xs(e,t,n){return n||(n=Nn(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function Es(e,t){return t||(t=Nn(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Ss=Ln;function Ps(e,t){var n=jn();return Fn(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n}),0!=n&&(Fn(e,615,rr(n)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&Fn(e,44,vs(r,t[r]))}),Fn(e,616))}}(n,e.SSF),function(e){Fn(e,611,rr(1)),Fn(e,43,function(e,t){t||(t=Nn(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Nn(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Or(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),ir(e.name,t),t.length>t.l?t.slice(0,t.l):t}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Fn(e,612)}(n),function(e){Fn(e,603,rr(2)),Fn(e,45,_s({patternType:"none"})),Fn(e,45,_s({patternType:"gray125"})),Fn(e,604)}(n),function(e){var t;Fn(e,613,rr(1)),Fn(e,46,(t||(t=Nn(51)),t.write_shift(1,0),Es(0,t),Es(0,t),Es(0,t),Es(0,t),Es(0,t),t.length>t.l?t.slice(0,t.l):t)),Fn(e,614)}(n),function(e){Fn(e,626,rr(1)),Fn(e,47,xs({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Fn(e,627)}(n),function(e,t){Fn(e,617,rr(t.length)),t.forEach(function(t){Fn(e,47,xs(t,0))}),Fn(e,618)}(n,t.cellXfs),function(e){var t,n;Fn(e,619,rr(1)),Fn(e,48,(t={xfId:0,builtinId:0,name:"Normal"},n||(n=Nn(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),gr(t.name||"",n),n.length>n.l?n.slice(0,n.l):n)),Fn(e,620)}(n),function(e){Fn(e,505,rr(0)),Fn(e,506)}(n),function(e){var t;Fn(e,508,((t=Nn(2052)).write_shift(4,0),gr("TableStyleMedium9",t),gr("PivotStyleMedium4",t),t.length>t.l?t.slice(0,t.l):t)),Fn(e,509)}(n),Fn(n,279),n.end()}var Os=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Ts(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(dt)||[]).forEach(function(e){var o=mt(e);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=o.val;break;case"<a:sysClr":r.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===o[0].charAt(1)?(t.themeElements.clrScheme[Os.indexOf(o[0])]=r,r={}):r.name=o[0].slice(3,o[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}})}function ks(){}function As(){}var Is=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Rs=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Ms=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,Ds=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Ls(e,t){var n;e&&0!==e.length||(e=Ns());var r={};if(!(n=e.match(Ds)))throw new Error("themeElements not found in theme");return function(e,t,n){var r;t.themeElements={},[["clrScheme",Is,Ts],["fontScheme",Rs,ks],["fmtScheme",Ms,As]].forEach(function(o){if(!(r=e.match(o[1])))throw new Error(o[0]+" not found in themeElements");o[2](r,t,n)})}(n[0],r,t),r.raw=e,r}function Ns(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[ut];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Vs(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=function(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e){return Ln(e,4)}(e);break;case 2:t.xclrValue=qo(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}(e);break;case 6:r[1]=function(e,t){return Ln(e,t)}(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function js(e,t){t.forEach(function(e){e[0]})}function Fs(){var e,t,n=jn();return Fn(n,332),Fn(n,334,rr(1)),Fn(n,335,((t=Nn(12+2*(e={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),ir(e.name,t),t.slice(0,t.l))),Fn(n,336),Fn(n,339,function(e,t){var n=Nn(20);return n.write_shift(4,1),ir(t,n),n.slice(0,n.l)}(0,"XLDAPR")),Fn(n,52),Fn(n,35,rr(514)),Fn(n,4096,rr(0)),Fn(n,4097,Io(1)),Fn(n,36),Fn(n,53),Fn(n,340),Fn(n,337,function(){var e=Nn(8);return e.write_shift(4,1),e.write_shift(4,1),e}()),Fn(n,51,function(e){var t=Nn(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),Fn(n,338),Fn(n,333),n.end()}function zs(){var e=[ut];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}var Bs=1024;function Hs(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[Ut("xml",null,{"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":Jt,"xmlns:x":en,"xmlns:mv":"http://macVmlSchemaUri"}).replace(/\/>/,">"),Ut("o:shapelayout",Ut("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ut("v:shapetype",[Ut("v:stroke",null,{joinstyle:"miter"}),Ut("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];Bs<1e3*e;)Bs+=1e3;return t.forEach(function(e){var t=Gn(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Ut("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Ut("v:fill",r,n);++Bs,o=o.concat(["<v:shape"+Ht({id:"_x0000_s"+Bs,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Ut("v:shadow",null,{on:"t",obscured:"t"}),Ut("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Bt("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Bt("x:AutoFill","False"),Bt("x:Row",String(t.r)),Bt("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),o.push("</xml>"),o.join("")}function Us(e,t,n,r){var o,i=Array.isArray(e);t.forEach(function(t){var s=Gn(t.ref);if(i?(e[s.r]||(e[s.r]=[]),o=e[s.r][s.c]):o=e[t.ref],!o){o={t:"z"},i?e[s.r][s.c]=o:e[t.ref]=o;var a=Xn(e["!ref"]||"BDWGO1000001:A1");a.s.r>s.r&&(a.s.r=s.r),a.e.r<s.r&&(a.e.r=s.r),a.s.c>s.c&&(a.s.c=s.c),a.e.c<s.c&&(a.e.c=s.c);var l=Kn(a);l!==e["!ref"]&&(e["!ref"]=l)}o.c||(o.c=[]);var u={a:t.author,t:t.t,r:t.r,T:n};t.h&&(u.h=t.h);for(var c=o.c.length-1;c>=0;--c){if(!n&&o.c[c].T)return;n&&!o.c[c].T&&o.c.splice(c,1)}if(n&&r)for(c=0;c<r.length;++c)if(u.a==r[c].id){u.a=r[c].name||u.a;break}o.c.push(u)})}function qs(e){var t=[ut,Ut("comments",null,{xmlns:Xt[0]})],n=[];return t.push("<authors>"),e.forEach(function(e){e[1].forEach(function(e){var r=_t(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))})}),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(e){var r=0,o=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach(function(e){e.a&&(r=n.indexOf(_t(e.a))),o.push(e.t||"")}),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),o.length<=1)t.push(Bt("t",_t(o[0]||"")));else{for(var i="Comment:\n    "+o[0]+"\n",s=1;s<o.length;++s)i+="Reply:\n    "+o[s]+"\n";t.push(Bt("t",_t(i)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Ws(e,t,n){var r=[ut,Ut("ThreadedComments",null,{xmlns:Gt}).replace(/[\/]>/,">")];return e.forEach(function(e){var o="";(e[1]||[]).forEach(function(i,s){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var a={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==s?o=a.id:a.parentId=o,i.ID=a.id,i.a&&(a.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),r.push(Ut("threadedComment",Bt("text",i.t||""),a))}else delete i.ID})}),r.push("</ThreadedComments>"),r.join("")}var $s=or;function Qs(e){var t=jn(),n=[];return Fn(t,628),Fn(t,630),e.forEach(function(e){e[1].forEach(function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Fn(t,632,function(e){return ir(e.slice(0,54))}(e.a)))})}),Fn(t,631),Fn(t,633),e.forEach(function(e){e[1].forEach(function(r){r.iauthor=n.indexOf(r.a);var o,i,s,a={s:Gn(e[0]),e:Gn(e[0])};Fn(t,635,function(e,t){return null==t&&(t=Nn(36)),t.write_shift(4,e[1].iauthor),Er(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([a,r])),r.t&&r.t.length>0&&Fn(t,637,(o=r,s=!1,null==i&&(s=!0,i=Nn(23+4*o.t.length)),i.write_shift(1,1),ir(o.t,i),i.write_shift(4,1),function(e,t){t||(t=Nn(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},i),s?i.slice(0,i.l):i)),Fn(t,636),delete r.iauthor})}),Fn(t,634),Fn(t,629),t.end()}var Gs=["xlsb","xlsm","xlam","biff8","xla"],Ys=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,o){var i=!1,s=!1;0==r.length?s=!0:"["==r.charAt(0)&&(s=!0,r=r.slice(1,-1)),0==o.length?i=!0:"["==o.charAt(0)&&(i=!0,o=o.slice(1,-1));var a=r.length>0?0|parseInt(r,10):0,l=o.length>0?0|parseInt(o,10):0;return i?l+=t.c:--l,s?a+=t.r:--a,n+(i?"":"$")+Qn(l)+(s?"":"$")+Wn(a)}return function(r,o){return t=o,r.replace(e,n)}}(),Zs=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Ks=function(){return function(e,t){return e.replace(Zs,function(e,n,r,o,i,s){var a=$n(o)-(r?0:t.c),l=qn(s)-(i?0:t.r);return n+"R"+(0==l?"":i?l+1:"["+l+"]")+"C"+(0==a?"":r?a+1:"["+a+"]")})}}();function Xs(e,t){return e.replace(Zs,function(e,n,r,o,i,s){return n+("$"==r?r+o:Qn($n(o)+t.c))+("$"==i?i+s:Wn(qn(s)+t.r))})}function Js(e,t,n){var r=Zn(t).s,o=Gn(n);return Xs(e,{r:o.r-r.r,c:o.c-r.c})}function ea(e){return e.replace(/_xlfn\./g,"")}function ta(e){e.l+=1}function na(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function ra(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return oa(e);12==n.biff&&(r=4)}var o=e.read_shift(r),i=e.read_shift(r),s=na(e,2),a=na(e,2);return{s:{r:o,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function oa(e){var t=na(e,2),n=na(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function ia(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=na(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),o=na(e,2);return{r,c:o[0],cRel:o[1],rRel:o[2]}}function sa(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function aa(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function la(e){return[e.read_shift(1),e.read_shift(1)]}function ua(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=To(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Vr[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Sr(e);break;case 2:n[1]=Fo(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function ca(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),o=[],i=0;i!=r;++i)o.push((12==n.biff?xr:Zo)(e,8));return o}function pa(e,t,n){var r=0,o=0;12==n.biff?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--o&&(o=256));for(var i=0,s=[];i!=r&&(s[i]=[]);++i)for(var a=0;a!=o;++a)s[i][a]=ua(e,n.biff);return s}function da(e,t,n){return e.l+=2,[sa(e)]}function fa(e){return e.l+=6,[]}function ha(e){return e.l+=2,[Ao(e),1&e.read_shift(2)]}var ma=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],ga={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Ln},3:{n:"PtgAdd",f:ta},4:{n:"PtgSub",f:ta},5:{n:"PtgMul",f:ta},6:{n:"PtgDiv",f:ta},7:{n:"PtgPower",f:ta},8:{n:"PtgConcat",f:ta},9:{n:"PtgLt",f:ta},10:{n:"PtgLe",f:ta},11:{n:"PtgEq",f:ta},12:{n:"PtgGe",f:ta},13:{n:"PtgGt",f:ta},14:{n:"PtgNe",f:ta},15:{n:"PtgIsect",f:ta},16:{n:"PtgUnion",f:ta},17:{n:"PtgRange",f:ta},18:{n:"PtgUplus",f:ta},19:{n:"PtgUminus",f:ta},20:{n:"PtgPercent",f:ta},21:{n:"PtgParen",f:ta},22:{n:"PtgMissArg",f:ta},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Do(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Vr[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,Sr(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[Va[o],Na[o],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],o=e.read_shift(1),i=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[o,(0===i[0]?Na:La)[i[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,i=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,i]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,ia(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,ra(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Ln},40:{n:"PtgMemNoMem",f:Ln},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,o=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==o&&n>=128&&(n-=256),{r:t,c:n,cRel:o,rRel:r}}(e);var o=e.read_shift(r>=12?4:2),i=e.read_shift(2),s=(16384&i)>>14,a=(32768&i)>>15;if(i&=16383,1==a)for(;o>524287;)o-=1048576;if(1==s)for(;i>8191;)i-=16384;return{r:o,c:i,cRel:s,rRel:a}}(e,0,n);return[r,o]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=function(e,t,n){if(n.biff<8)return oa(e);var r=e.read_shift(12==n.biff?4:2),o=e.read_shift(12==n.biff?4:2),i=na(e,2),s=na(e,2);return{s:{r,c:i[0],cRel:i[1],rRel:i[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}(e,0,n);return[r,o]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,o,ia(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n&&5===n.biff)e.l+=12;return[r,o,ra(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=4;if(n)switch(n.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[r,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=8;if(n)switch(n.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[r,o]}},255:{}},ya={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},va={1:{n:"PtgElfLel",f:ha},2:{n:"PtgElfRw",f:da},3:{n:"PtgElfCol",f:da},6:{n:"PtgElfRwV",f:da},7:{n:"PtgElfColV",f:da},10:{n:"PtgElfRadical",f:da},11:{n:"PtgElfRadicalS",f:fa},13:{n:"PtgElfColS",f:fa},15:{n:"PtgElfColSV",f:fa},16:{n:"PtgElfRadicalLel",f:ha},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),i=e.read_shift(2);return{ixti:t,coltype:3&n,rt:ma[n>>2&31],idx:r,c:o,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},ba={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),o=[],i=0;i<=r;++i)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:aa},33:{n:"PtgAttrBaxcel",f:aa},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),la(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),la(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function wa(e,t,n,r){if(r.biff<8)return Ln(e,t);for(var o=e.l+t,i=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=pa(e,0,r),i.push(n[s][1]);break;case"PtgMemArea":n[s][2]=ca(e,n[s][1],r),i.push(n[s][2]);break;case"PtgExp":r&&12==r.biff&&(n[s][1][1]=e.read_shift(4),i.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!==(t=o-e.l)&&i.push(Ln(e,t)),i}function Ca(e,t,n){for(var r,o,i=e.l+t,s=[];i!=e.l;)t=i-e.l,o=e[e.l],r=ga[o]||ga[ya[o]],24!==o&&25!==o||(r=(24===o?va:ba)[e[e.l+1]]),r&&r.f?s.push([r.n,r.f(e,t,n)]):Ln(e,t);return s}function _a(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],o=[],i=0;i<r.length;++i){var s=r[i];s?2===s[0]?o.push('"'+s[1].replace(/"/g,'""')+'"'):o.push(s[1]):o.push("")}t.push(o.join(","))}return t.join(";")}var xa={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Ea(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map(function(e){return e.Name}).join(";;");default:return e[r[0]][0][3]?(o=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Sa(e,t,n){var r=Ea(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function Pa(e,t,n,r,o){var i,s,a,l,u=o&&o.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},p=[],d=0,f=0,h="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",y=0,v=e[0].length;y<v;++y){var b=e[0][y];switch(b[0]){case"PtgUminus":p.push("-"+p.pop());break;case"PtgUplus":p.push("+"+p.pop());break;case"PtgPercent":p.push(p.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=p.pop(),s=p.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=$e(" ",e[0][m][1][1]);break;case 1:g=$e("\r",e[0][m][1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=g,m=-1}p.push(s+xa[b[0]]+i);break;case"PtgIsect":i=p.pop(),s=p.pop(),p.push(s+" "+i);break;case"PtgUnion":i=p.pop(),s=p.pop(),p.push(s+","+i);break;case"PtgRange":i=p.pop(),s=p.pop(),p.push(s+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":a=zn(b[1][1],c,o),p.push(Hn(a,u));break;case"PtgRefN":a=n?zn(b[1][1],n,o):b[1][1],p.push(Hn(a,u));break;case"PtgRef3d":d=b[1][1],a=zn(b[1][2],c,o),h=Sa(r,d,o),p.push(h+"!"+Hn(a,u));break;case"PtgFunc":case"PtgFuncVar":var w=b[1][0],C=b[1][1];w||(w=0);var _=0==(w&=127)?[]:p.slice(-w);p.length-=w,"User"===C&&(C=_.shift()),p.push(C+"("+_.join(",")+")");break;case"PtgBool":p.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":p.push(b[1]);break;case"PtgNum":p.push(String(b[1]));break;case"PtgStr":p.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=Bn(b[1][1],n?{s:n}:c,o),p.push(Un(l,o));break;case"PtgArea":l=Bn(b[1][1],c,o),p.push(Un(l,o));break;case"PtgArea3d":d=b[1][1],l=b[1][2],h=Sa(r,d,o),p.push(h+"!"+Un(l,o));break;case"PtgAttrSum":p.push("SUM("+p.pop()+")");break;case"PtgName":f=b[1][2];var x=(r.names||[])[f-1]||(r[0]||[])[f],E=x?x.Name:"SH33TJSNAME"+String(f);E&&"_xlfn."==E.slice(0,6)&&!o.xlfn&&(E=E.slice(6)),p.push(E);break;case"PtgNameX":var S,P=b[1][1];if(f=b[1][2],!(o.biff<=5)){var O="";if(14849==((r[P]||[])[0]||[])[0]||(1025==((r[P]||[])[0]||[])[0]?r[P][f]&&r[P][f].itab>0&&(O=r.SheetNames[r[P][f].itab-1]+"!"):O=r.SheetNames[f-1]+"!"),r[P]&&r[P][f])O+=r[P][f].Name;else if(r[0]&&r[0][f])O+=r[0][f].Name;else{var T=(Ea(r,P,o)||"").split(";;");T[f-1]?O=T[f-1]:O+="SH33TJSERRX"}p.push(O);break}P<0&&(P=-P),r[P]&&(S=r[P][f]),S||(S={Name:"SH33TJSERRY"}),p.push(S.Name);break;case"PtgParen":var k="(",A=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:k=$e(" ",e[0][m][1][1])+k;break;case 3:k=$e("\r",e[0][m][1][1])+k;break;case 4:A=$e(" ",e[0][m][1][1])+A;break;case 5:A=$e("\r",e[0][m][1][1])+A;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}p.push(k+p.pop()+A);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":p.push("#REF!");break;case"PtgExp":a={c:b[1][1],r:b[1][0]};var I={c:n.c,r:n.r};if(r.sharedf[Yn(a)]){var R=r.sharedf[Yn(a)];p.push(Pa(R,0,I,r,o))}else{var M=!1;for(i=0;i!=r.arrayf.length;++i)if(s=r.arrayf[i],!(a.c<s[0].s.c||a.c>s[0].e.c||a.r<s[0].s.r||a.r>s[0].e.r)){p.push(Pa(s[1],0,I,r,o)),M=!0;break}M||p.push(b[1])}break;case"PtgArray":p.push("{"+_a(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=y;break;case"PtgMissArg":p.push("");break;case"PtgList":p.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(b))}if(3!=o.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][y][0])){var D=!0;switch((b=e[0][m])[1][0]){case 4:D=!1;case 0:g=$e(" ",b[1][1]);break;case 5:D=!1;case 1:g=$e("\r",b[1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}p.push((D?g:"")+p.pop()+(D?"":g)),m=-1}}if(p.length>1&&o.WTF)throw new Error("bad formula stack");return p[0]}function Oa(e,t,n){var r,o=e.l+t,i=2==n.biff?1:2,s=e.read_shift(i);if(65535==s)return[[],Ln(e,t-2)];var a=Ca(e,s,n);return t!==s+i&&(r=wa(e,t-s-i,a,n)),e.l=o,[a,r]}function Ta(e,t,n){var r,o=e.l+t,i=e.read_shift(2),s=Ca(e,i,n);return 65535==i?[[],Ln(e,t-2)]:(t!==i+2&&(r=wa(e,o-i-2,s,n)),[s,r])}function ka(e,t,n){var r=e.l+t,o=$o(e);2==n.biff&&++e.l;var i=function(e){var t;if(65535!==Sn(e,e.l+6))return[Sr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),s=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var a=function(e,t,n){var r,o=e.l+t,i=2==n.biff?1:2,s=e.read_shift(i);if(65535==s)return[[],Ln(e,t-2)];var a=Ca(e,s,n);return t!==s+i&&(r=wa(e,t-s-i,a,n)),e.l=o,[a,r]}(e,r-e.l,n);return{cell:o,val:i[0],formula:a,shared:s>>3&1,tt:i[1]}}function Aa(e,t,n){var r=e.read_shift(4),o=Ca(e,r,n),i=e.read_shift(4);return[o,i>0?wa(e,i,o,n):null]}var Ia=Aa,Ra=Aa,Ma=Aa,Da=Aa,La={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Na={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Va={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function ja(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,t){return t.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Fa(e){return("of:="+e.replace(Zs,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function za(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function Ba(e){return e.replace(/\./,"!")}var Ha={},Ua={},qa="undefined"!=typeof Map;function Wa(e,t,n){var r=0,o=e.length;if(n){if(qa?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var i=qa?n.get(t):n[t];r<i.length;++r)if(e[i[r]].t===t)return e.Count++,i[r]}else for(;r<o;++r)if(e[r].t===t)return e.Count++,r;return e[o]={t},e.Count++,e.Unique++,n&&(qa?(n.has(t)||n.set(t,[]),n.get(t).push(o)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(o))),o}function $a(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(os=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=ss(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=as(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function Qa(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function Ga(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],o=60,i=e.length;if(null==r&&n.ssf)for(;o<392;++o)if(null==n.ssf[o]){we(t.z,o),n.ssf[o]=t.z,n.revssf[t.z]=r=o;break}for(o=0;o!=i;++o)if(e[o].numFmtId===r)return o;return e[i]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Ya(e,t,n,r,o,i){try{r.cellNF&&(e.z=B[t])}catch(e){if(r.WTF)throw e}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=Ue(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==B[t]&&we(xe[t]||"General",t),"e"===e.t)e.w=e.w||Vr[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=X(e.v);else if("d"===e.t){var s=De(e.v);e.w=(0|s)===s?s.toString(10):X(s)}else{if(void 0===e.v)return"";e.w=J(e.v,Ua)}else"d"===e.t?e.w=be(t,De(e.v),Ua):e.w=be(t,e.v,Ua)}catch(e){if(r.WTF)throw e}if(r.cellStyles&&null!=n)try{e.s=i.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=rs(o.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=o.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=rs(o.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=o.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(e){if(r.WTF&&i.Fills)throw e}}}function Za(e,t,n){if(e&&e["!ref"]){var r=Xn(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var Ka=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Xa=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Ja=/<(?:\w:)?hyperlink [^>]*>/gm,el=/"(\w*:\w*)"/,tl=/<(?:\w:)?col\b[^>]*[\/]?>/g,nl=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,rl=/<(?:\w:)?pageMargins[^>]*\/>/g,ol=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,il=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,sl=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function al(e,t,n,r){var o=mt(e);n.Sheets[r]||(n.Sheets[r]={}),o.codeName&&(n.Sheets[r].CodeName=bt(Rt(o.codeName)))}var ll=["objects","scenarios","selectLockedCells","selectUnlockedCells"],ul=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],cl=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function pl(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",i=e.t,s=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=Vr[e.v];break;case"d":r&&r.cellDates?o=Ue(e.v,-1).toISOString():((e=We(e)).t="n",o=""+(e.v=De(Ue(e.v)))),void 0===e.z&&(e.z=B[14]);break;default:o=e.v}var a=Bt("v",_t(o)),l={r:t},u=Ga(r.cellXfs,e,r);switch(0!==u&&(l.s=u),e.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){a=Bt("v",""+Wa(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str"}if(e.t!=i&&(e.t=i,e.v=s),"string"==typeof e.f&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;a=Ut("f",_t(e.f),c)+(null!=e.v?a:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),Ut("c",a,l)}var dl=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,o=/ref=["']([^"']*)["']/,i=Dt("v"),s=Dt("f");return function(a,l,u,c,p,d){for(var f,h,m,g,y,v=0,b="",w=[],C=[],_=0,x=0,E=0,S="",P=0,O=0,T=0,k=0,A=Array.isArray(d.CellXf),I=[],R=[],M=Array.isArray(l),D=[],L={},N=!1,V=!!u.sheetStubs,j=a.split(t),F=0,z=j.length;F!=z;++F){var H=(b=j[F].trim()).length;if(0!==H){var U=0;e:for(v=0;v<H;++v)switch(b[v]){case">":if("/"!=b[v-1]){++v;break e}if(u&&u.cellStyles){if(P=null!=(h=mt(b.slice(U,v),!0)).r?parseInt(h.r,10):P+1,O=-1,u.sheetRows&&u.sheetRows<P)continue;L={},N=!1,h.ht&&(N=!0,L.hpt=parseFloat(h.ht),L.hpx=ds(L.hpt)),"1"==h.hidden&&(N=!0,L.hidden=!0),null!=h.outlineLevel&&(N=!0,L.level=+h.outlineLevel),N&&(D[P-1]=L)}break;case"<":U=v}if(U>=v)break;if(P=null!=(h=mt(b.slice(U,v),!0)).r?parseInt(h.r,10):P+1,O=-1,!(u.sheetRows&&u.sheetRows<P)){c.s.r>P-1&&(c.s.r=P-1),c.e.r<P-1&&(c.e.r=P-1),u&&u.cellStyles&&(L={},N=!1,h.ht&&(N=!0,L.hpt=parseFloat(h.ht),L.hpx=ds(L.hpt)),"1"==h.hidden&&(N=!0,L.hidden=!0),null!=h.outlineLevel&&(N=!0,L.level=+h.outlineLevel),N&&(D[P-1]=L)),w=b.slice(v).split(e);for(var q=0;q!=w.length&&"<"==w[q].trim().charAt(0);++q);for(w=w.slice(q),v=0;v!=w.length;++v)if(0!==(b=w[v].trim()).length){if(C=b.match(n),_=v,x=0,E=0,b="<c "+("<"==b.slice(0,1)?">":"")+b,null!=C&&2===C.length){for(_=0,S=C[1],x=0;x!=S.length&&!((E=S.charCodeAt(x)-64)<1||E>26);++x)_=26*_+E;O=--_}else++O;for(x=0;x!=b.length&&62!==b.charCodeAt(x);++x);if(++x,(h=mt(b.slice(0,x),!0)).r||(h.r=Yn({r:P-1,c:O})),f={t:""},null!=(C=(S=b.slice(x)).match(i))&&""!==C[1]&&(f.v=bt(C[1])),u.cellFormula){if(null!=(C=S.match(s))&&""!==C[1]){if(f.f=bt(Rt(C[1])).replace(/\r\n/g,"\n"),u.xlfn||(f.f=ea(f.f)),C[0].indexOf('t="array"')>-1)f.F=(S.match(o)||[])[1],f.F.indexOf(":")>-1&&I.push([Xn(f.F),f.F]);else if(C[0].indexOf('t="shared"')>-1){g=mt(C[0]);var W=bt(Rt(C[1]));u.xlfn||(W=ea(W)),R[parseInt(g.si,10)]=[g,W,h.r]}}else(C=S.match(/<f[^>]*\/>/))&&R[(g=mt(C[0])).si]&&(f.f=Js(R[g.si][1],R[g.si][2],h.r));var $=Gn(h.r);for(x=0;x<I.length;++x)$.r>=I[x][0].s.r&&$.r<=I[x][0].e.r&&$.c>=I[x][0].s.c&&$.c<=I[x][0].e.c&&(f.F=I[x][1])}if(null==h.t&&void 0===f.v)if(f.f||f.F)f.v=0,f.t="n";else{if(!V)continue;f.t="z"}else f.t=h.t||"n";switch(c.s.c>O&&(c.s.c=O),c.e.c<O&&(c.e.c=O),f.t){case"n":if(""==f.v||null==f.v){if(!V)continue;f.t="z"}else f.v=parseFloat(f.v);break;case"s":if(void 0===f.v){if(!V)continue;f.t="z"}else m=Ha[parseInt(f.v,10)],f.v=m.t,f.r=m.r,u.cellHTML&&(f.h=m.h);break;case"str":f.t="s",f.v=null!=f.v?Rt(f.v):"",u.cellHTML&&(f.h=St(f.v));break;case"inlineStr":C=S.match(r),f.t="s",null!=C&&(m=Vi(C[1]))?(f.v=m.t,u.cellHTML&&(f.h=m.h)):f.v="";break;case"b":f.v=Ot(f.v);break;case"d":u.cellDates?f.v=Ue(f.v,1):(f.v=De(Ue(f.v,1)),f.t="n");break;case"e":u&&!1===u.cellText||(f.w=f.v),f.v=jr[f.v]}if(T=k=0,y=null,A&&void 0!==h.s&&null!=(y=d.CellXf[h.s])&&(null!=y.numFmtId&&(T=y.numFmtId),u.cellStyles&&null!=y.fillId&&(k=y.fillId)),Ya(f,T,k,u,p,d),u.cellDates&&A&&"n"==f.t&&ge(B[T])&&(f.t="d",f.v=je(f.v)),h.cm&&u.xlmeta){var Q=(u.xlmeta.Cell||[])[+h.cm-1];Q&&"XLDAPR"==Q.type&&(f.D=!0)}if(M){var G=Gn(h.r);l[G.r]||(l[G.r]=[]),l[G.r][G.c]=f}else l[h.r]=f}}}}D.length>0&&(l["!rows"]=D)}}();function fl(e,t,n,r){var o,i=[ut,Ut("worksheet",null,{xmlns:Xt[0],"xmlns:r":Yt})],s=n.SheetNames[e],a="",l=n.Sheets[s];null==l&&(l={});var u=l["!ref"]||"A1",c=Xn(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=Kn(c)}r||(r={}),l["!comments"]=[];var p=[];!function(e,t,n,r,o){var i=!1,s={},a=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(e){}i=!0,s.codeName=Mt(_t(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),a=(a||"")+Ut("outlinePr",null,u)}(i||a)&&(o[o.length]=Ut("sheetPr",a,s))}(l,n,e,t,i),i[i.length]=Ut("dimension",null,{ref:u}),i[i.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Ut("sheetViews",Ut("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(i[i.length]=Ut("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(e,t){for(var n,r=["<cols>"],o=0;o!=t.length;++o)(n=t[o])&&(r[r.length]=Ut("col",null,$a(o,n)));return r[r.length]="</cols>",r.join("")}(0,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(a=function(e,t){var n,r,o=[],i=[],s=Xn(e["!ref"]),a="",l="",u=[],c=0,p=0,d=e["!rows"],f=Array.isArray(e),h={r:l},m=-1;for(p=s.s.c;p<=s.e.c;++p)u[p]=Qn(p);for(c=s.s.r;c<=s.e.r;++c){for(i=[],l=Wn(c),p=s.s.c;p<=s.e.c;++p){n=u[p]+l;var g=f?(e[c]||[])[p]:e[n];void 0!==g&&null!=(a=pl(g,n,e,t))&&i.push(a)}(i.length>0||d&&d[c])&&(h={r:l},d&&d[c]&&((r=d[c]).hidden&&(h.hidden=1),m=-1,r.hpx?m=ps(r.hpx):r.hpt&&(m=r.hpt),m>-1&&(h.ht=m,h.customHeight=1),r.level&&(h.outlineLevel=r.level)),o[o.length]=Ut("row",i.join(""),h))}if(d)for(;c<d.length;++c)d&&d[c]&&(h={r:c+1},(r=d[c]).hidden&&(h.hidden=1),m=-1,r.hpx?m=ps(r.hpx):r.hpt&&(m=r.hpt),m>-1&&(h.ht=m,h.customHeight=1),r.level&&(h.outlineLevel=r.level),o[o.length]=Ut("row","",h));return o.join("")}(l,t),a.length>0&&(i[i.length]=a)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return ll.forEach(function(n){null!=e[n]&&e[n]&&(t[n]="1")}),ul.forEach(function(n){null==e[n]||e[n]||(t[n]="0")}),e.password&&(t.password=Ji(e.password).toString(16).toUpperCase()),Ut("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(e,t,n,r){var o="string"==typeof e.ref?e.ref:Kn(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,s=Zn(o);s.s.r==s.e.r&&(s.e.r=Zn(t["!ref"]).e.r,o=Kn(s));for(var a=0;a<i.length;++a){var l=i[a];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+o;break}}return a==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),Ut("autoFilter",null,{ref:o})}(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Kn(e[n])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var d,f,h=-1,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(e){e[1].Target&&(d={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=$r(r,-1,_t(e[1].Target).replace(/#.*$/,""),Hr.HLINK),d["r:id"]="rId"+m),(h=e[1].Target.indexOf("#"))>-1&&(d.location=_t(e[1].Target.slice(h+1))),e[1].Tooltip&&(d.tooltip=_t(e[1].Tooltip)),i[i.length]=Ut("hyperlink",null,d))}),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(Qa(f=l["!margins"]),Ut("pageMargins",null,f))),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=Bt("ignoredErrors",Ut("ignoredError",null,{numberStoredAsText:1,sqref:u}))),p.length>0&&(m=$r(r,-1,"../drawings/drawing"+(e+1)+".xml",Hr.DRAW),i[i.length]=Ut("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=p),l["!comments"].length>0&&(m=$r(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Hr.VML),i[i.length]=Ut("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function hl(e,t,n,r){var o=function(e,t,n){var r=Nn(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var i=320;o.hpx?i=20*ps(o.hpx):o.hpt&&(i=20*o.hpt),r.write_shift(2,i),r.write_shift(1,0);var s=0;o.level&&(s|=o.level),o.hidden&&(s|=16),(o.hpx||o.hpt)&&(s|=32),r.write_shift(1,s),r.write_shift(1,0);var a=0,l=r.l;r.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var p=-1,d=-1,f=c<<10;f<c+1<<10;++f)u.c=f,(Array.isArray(n)?(n[u.r]||[])[u.c]:n[Yn(u)])&&(p<0&&(p=f),d=f);p<0||(++a,r.write_shift(4,p),r.write_shift(4,d))}var h=r.l;return r.l=l,r.write_shift(4,a),r.l=h,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&Fn(e,0,o)}var ml=xr,gl=Er;function yl(e){return[pr(e),Sr(e),"n"]}var vl=xr,bl=Er,wl=["left","right","top","bottom","header","footer"];function Cl(e,t,n,r,o,i,s){if(void 0===t.v)return!1;var a="";switch(t.t){case"b":a=t.v?"1":"0";break;case"d":(t=We(t)).z=t.z||B[14],t.v=De(Ue(t.v)),t.t="n";break;case"n":case"e":a=""+t.v;break;default:a=t.v}var l={r:n,c:r};switch(l.s=Ga(o.cellXfs,t,o),t.l&&i["!links"].push([Yn(l),t.l]),t.c&&i["!comments"].push([Yn(l),t.c]),t.t){case"s":case"str":return o.bookSST?(a=Wa(o.Strings,t.v,o.revStrings),l.t="s",l.v=a,s?Fn(e,18,function(e,t,n){return null==n&&(n=Nn(8)),dr(t,n),n.write_shift(4,t.v),n}(0,l)):Fn(e,7,function(e,t,n){return null==n&&(n=Nn(12)),cr(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",s?Fn(e,17,function(e,t,n){return null==n&&(n=Nn(8+4*e.v.length)),dr(t,n),ir(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):Fn(e,6,function(e,t,n){return null==n&&(n=Nn(12+4*e.v.length)),cr(t,n),ir(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?Fn(e,13,function(e,t,n){return null==n&&(n=Nn(8)),dr(t,n),Cr(e.v,n),n}(t,l)):Fn(e,2,function(e,t,n){return null==n&&(n=Nn(12)),cr(t,n),Cr(e.v,n),n}(t,l)):s?Fn(e,16,function(e,t,n){return null==n&&(n=Nn(12)),dr(t,n),Pr(e.v,n),n}(t,l)):Fn(e,5,function(e,t,n){return null==n&&(n=Nn(16)),cr(t,n),Pr(e.v,n),n}(t,l)),!0;case"b":return l.t="b",s?Fn(e,15,function(e,t,n){return null==n&&(n=Nn(5)),dr(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):Fn(e,4,function(e,t,n){return null==n&&(n=Nn(9)),cr(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",s?Fn(e,14,function(e,t,n){return null==n&&(n=Nn(8)),dr(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):Fn(e,3,function(e,t,n){return null==n&&(n=Nn(9)),cr(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return s?Fn(e,12,function(e,t,n){return null==n&&(n=Nn(4)),dr(t,n)}(0,l)):Fn(e,1,function(e,t,n){return null==n&&(n=Nn(8)),cr(t,n)}(0,l)),!0}function _l(e,t,n,r){var o=jn(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=i;try{n&&n.Workbook&&(a=n.Workbook.Sheets[e].CodeName||a)}catch(e){}var l,u,c=Xn(s["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Fn(o,129),(n.vbaraw||s["!outline"])&&Fn(o,147,function(e,t,n){null==n&&(n=Nn(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var o=1;o<3;++o)n.write_shift(1,0);return Or({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),hr(e,n),n.slice(0,n.l)}(a,s["!outline"])),Fn(o,148,gl(c)),function(e,t,n){Fn(e,133),Fn(e,137,function(e,t,n){null==n&&(n=Nn(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Fn(e,138),Fn(e,134)}(o,0,n.Workbook),function(e,t){t&&t["!cols"]&&(Fn(e,390),t["!cols"].forEach(function(t,n){t&&Fn(e,60,function(e,t,n){null==n&&(n=Nn(18));var r=$a(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var o=0;return t.hidden&&(o|=1),"number"==typeof r.width&&(o|=2),t.level&&(o|=t.level<<8),n.write_shift(2,o),n}(n,t))}),Fn(e,391))}(o,s),function(e,t,n,r){var o,i=Xn(t["!ref"]||"A1"),s="",a=[];Fn(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){s=Wn(c),hl(e,t,i,c);var p=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(a[d]=Qn(d)),o=a[d]+s;var f=l?(t[c]||[])[d]:t[o];p=!!f&&Cl(e,f,c,d,r,t,p)}}Fn(e,146)}(o,s,0,t),function(e,t){var n,r;t["!protect"]&&Fn(e,535,(n=t["!protect"],null==r&&(r=Nn(66)),r.write_shift(2,n.password?Ji(n.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)}),r))}(o,s),function(e,t,n,r){if(t["!autofilter"]){var o=t["!autofilter"],i="string"==typeof o.ref?o.ref:Kn(o.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,a=Zn(i);a.s.r==a.e.r&&(a.e.r=Zn(t["!ref"]).e.r,i=Kn(a));for(var l=0;l<s.length;++l){var u=s[l];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+i;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),Fn(e,161,Er(Xn(i))),Fn(e,162)}}(o,s,n,e),function(e,t){var n,r;t&&t["!merges"]&&(Fn(e,177,(n=t["!merges"].length,null==r&&(r=Nn(4)),r.write_shift(4,n),r)),t["!merges"].forEach(function(t){Fn(e,176,bl(t))}),Fn(e,178))}(o,s),function(e,t,n){t["!links"].forEach(function(t){if(t[1].Target){var r=$r(n,-1,t[1].Target.replace(/#.*$/,""),Hr.HLINK);Fn(e,494,function(e,t){var n=Nn(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Er({s:Gn(e[0]),e:Gn(e[0])},n),br("rId"+t,n);var r=e[1].Target.indexOf("#");return ir((-1==r?"":e[1].Target.slice(r+1))||"",n),ir(e[1].Tooltip||"",n),ir("",n),n.slice(0,n.l)}(t,r))}}),delete t["!links"]}(o,s,r),s["!margins"]&&Fn(o,476,(l=s["!margins"],null==u&&(u=Nn(48)),Qa(l),wl.forEach(function(e){Pr(l[e],u)}),u)),t&&!t.ignoreEC&&null!=t.ignoreEC||function(e,t){var n,r;t&&t["!ref"]&&(Fn(e,648),Fn(e,649,(n=Xn(t["!ref"]),(r=Nn(24)).write_shift(4,4),r.write_shift(4,1),Er(n,r),r)),Fn(e,650))}(o,s),function(e,t,n,r){if(t["!comments"].length>0){var o=$r(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Hr.VML);Fn(e,551,br("rId"+o)),t["!legacy"]=o}}(o,s,e,r),Fn(o,130),o.end()}var xl=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],El=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Sl=[],Pl=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Ol(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],o=0;o!=t.length;++o){var i=t[o];if(null==r[i[0]])r[i[0]]=i[1];else switch(i[2]){case"bool":"string"==typeof r[i[0]]&&(r[i[0]]=Ot(r[i[0]]));break;case"int":"string"==typeof r[i[0]]&&(r[i[0]]=parseInt(r[i[0]],10))}}}function Tl(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=Ot(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10))}}}function kl(e){Tl(e.WBProps,xl),Tl(e.CalcPr,Pl),Ol(e.WBView,El),Ol(e.Sheets,Sl),Ua.date1904=Ot(e.WBProps.date1904)}var Al="][*?/\\".split("");function Il(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return Al.forEach(function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}}),n}var Rl=/<\w+:workbook/;function Ml(e){var t=[ut];t[t.length]=Ut("workbook",null,{xmlns:Xt[0],"xmlns:r":Yt});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(xl.forEach(function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])}),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Ut("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:_t(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}t[t.length]=Ut("sheet",null,s)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Ut("definedName",_t(e.Ref),n))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Dl(e,t){return t||(t=Nn(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),br(e.strRelID,t),ir(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Ll(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function Nl(e,t){var n=jn();return Fn(n,131),Fn(n,128,function(e,t){t||(t=Nn(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return ir("SheetJS",t),ir(o,t),ir(o,t),ir("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Fn(n,153,function(e,t){t||(t=Nn(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),hr(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),function(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,o=t.Workbook.Sheets,i=0,s=-1,a=-1;i<o.length;++i)!o[i]||!o[i].Hidden&&-1==s?s=i:1==o[i].Hidden&&-1==a&&(a=i);a>s||(Fn(e,135),Fn(e,158,(n=s,r||(r=Nn(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),Fn(e,136))}}(n,e),function(e,t){Fn(e,143);for(var n=0;n!=t.SheetNames.length;++n)Fn(e,156,Dl({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]}));Fn(e,144)}(n,e),Fn(n,132),n.end()}function Vl(e,t,n,r,o,i,s,a){return".bin"===t.slice(-4)?function(e,t,n,r,o,i,s){if(!e)return e;var a=t||{};r||(r={"!id":{}});var l,u,c,p,d,f,h,m,g,y,v=a.dense?[]:{},b={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=[],C=!1,_=!1,x=[];a.biff=12,a["!row"]=0;var E=0,S=!1,P=[],O={},T=a.supbooks||o.supbooks||[[]];if(T.sharedf=O,T.arrayf=P,T.SheetNames=o.SheetNames||o.Sheets.map(function(e){return e.name}),!a.supbooks&&(a.supbooks=T,o.Names))for(var k=0;k<o.Names.length;++k)T[0][k+1]=o.Names[k];var A,I,R=[],M=[],D=!1;if(uu[16]={n:"BrtShortReal",f:yl},Vn(e,function(e,t,k){if(!_)switch(k){case 148:l=e;break;case 0:u=e,a.sheetRows&&a.sheetRows<=u.r&&(_=!0),g=Wn(d=u.r),a["!row"]=u.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=ds(e.hpt)),M[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(c={t:e[2]},e[2]){case"n":c.v=e[1];break;case"s":m=Ha[e[1]],c.v=m.t,c.r=m.r;break;case"b":c.v=!!e[1];break;case"e":c.v=e[1],!1!==a.cellText&&(c.w=Vr[c.v]);break;case"str":c.t="s",c.v=e[1];break;case"is":c.t="s",c.v=e[1].t}if((p=s.CellXf[e[0].iStyleRef])&&Ya(c,p.numFmtId,null,a,i,s),f=-1==e[0].c?f+1:e[0].c,a.dense?(v[d]||(v[d]=[]),v[d][f]=c):v[Qn(f)+g]=c,a.cellFormula){for(S=!1,E=0;E<P.length;++E){var L=P[E];u.r>=L[0].s.r&&u.r<=L[0].e.r&&f>=L[0].s.c&&f<=L[0].e.c&&(c.F=Kn(L[0]),S=!0)}!S&&e.length>3&&(c.f=e[3])}if(b.s.r>u.r&&(b.s.r=u.r),b.s.c>f&&(b.s.c=f),b.e.r<u.r&&(b.e.r=u.r),b.e.c<f&&(b.e.c=f),a.cellDates&&p&&"n"==c.t&&ge(B[p.numFmtId])){var N=W(c.v);N&&(c.t="d",c.v=new Date(N.y,N.m-1,N.d,N.H,N.M,N.S,N.u))}A&&("XLDAPR"==A.type&&(c.D=!0),A=void 0),I&&(I=void 0);break;case 1:case 12:if(!a.sheetStubs||C)break;c={t:"z",v:void 0},f=-1==e[0].c?f+1:e[0].c,a.dense?(v[d]||(v[d]=[]),v[d][f]=c):v[Qn(f)+g]=c,b.s.r>u.r&&(b.s.r=u.r),b.s.c>f&&(b.s.c=f),b.e.r<u.r&&(b.e.r=u.r),b.e.c<f&&(b.e.c=f),A&&("XLDAPR"==A.type&&(c.D=!0),A=void 0),I&&(I=void 0);break;case 176:x.push(e);break;case 49:A=((a.xlmeta||{}).Cell||[])[e-1];break;case 494:var V=r["!id"][e.relId];for(V?(e.Target=V.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=V):""==e.relId&&(e.Target="#"+e.loc),d=e.rfx.s.r;d<=e.rfx.e.r;++d)for(f=e.rfx.s.c;f<=e.rfx.e.c;++f)a.dense?(v[d]||(v[d]=[]),v[d][f]||(v[d][f]={t:"z",v:void 0}),v[d][f].l=e):(h=Yn({c:f,r:d}),v[h]||(v[h]={t:"z",v:void 0}),v[h].l=e);break;case 426:if(!a.cellFormula)break;P.push(e),(y=a.dense?v[d][f]:v[Qn(f)+g]).f=Pa(e[1],0,{r:u.r,c:f},T,a),y.F=Kn(e[0]);break;case 427:if(!a.cellFormula)break;O[Yn(e[0].s)]=e[1],(y=a.dense?v[d][f]:v[Qn(f)+g]).f=Pa(e[1],0,{r:u.r,c:f},T,a);break;case 60:if(!a.cellStyles)break;for(;e.e>=e.s;)R[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},D||(D=!0,us(e.w/256)),cs(R[e.e+1]);break;case 161:v["!autofilter"]={ref:Kn(e)};break;case 476:v["!margins"]=e;break;case 147:o.Sheets[n]||(o.Sheets[n]={}),e.name&&(o.Sheets[n].CodeName=e.name),(e.above||e.left)&&(v["!outline"]={above:e.above,left:e.left});break;case 137:o.Views||(o.Views=[{}]),o.Views[0]||(o.Views[0]={}),e.RTL&&(o.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:C=!0;break;case 36:C=!1;break;case 37:w.push(k),C=!0;break;case 38:w.pop(),C=!1;break;default:if(t.T);else if(!C||a.WTF)throw new Error("Unexpected record 0x"+k.toString(16))}},a),delete a.supbooks,delete a["!row"],!v["!ref"]&&(b.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(v["!ref"]=Kn(l||b)),a.sheetRows&&v["!ref"]){var L=Xn(v["!ref"]);a.sheetRows<=+L.e.r&&(L.e.r=a.sheetRows-1,L.e.r>b.e.r&&(L.e.r=b.e.r),L.e.r<L.s.r&&(L.s.r=L.e.r),L.e.c>b.e.c&&(L.e.c=b.e.c),L.e.c<L.s.c&&(L.s.c=L.e.c),v["!fullref"]=v["!ref"],v["!ref"]=Kn(L))}return x.length>0&&(v["!merges"]=x),R.length>0&&(v["!cols"]=R),M.length>0&&(v["!rows"]=M),v}(e,r,n,o,i,s,a):function(e,t,n,r,o,i,s){if(!e)return e;r||(r={"!id":{}});var a=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},u="",c="",p=e.match(Xa);p?(u=e.slice(0,p.index),c=e.slice(p.index+p[0].length)):u=c=e;var d=u.match(ol);d?al(d[0],0,o,n):(d=u.match(il))&&function(e,t,n,r,o){al(e.slice(0,e.indexOf(">")),0,r,o)}(d[0],d[1],0,o,n);var f=(u.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(f>0){var h=u.slice(f,f+50).match(el);h&&function(e,t){var n=Xn(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=Kn(n))}(a,h[1])}var m=u.match(sl);m&&m[1]&&function(e,t){t.Views||(t.Views=[{}]),(e.match(cl)||[]).forEach(function(e,n){var r=mt(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),Ot(r.rightToLeft)&&(t.Views[n].RTL=!0)})}(m[1],o);var g=[];if(t.cellStyles){var y=u.match(tl);y&&function(e,t){for(var n=!1,r=0;r!=t.length;++r){var o=mt(t[r],!0);o.hidden&&(o.hidden=Ot(o.hidden));var i=parseInt(o.min,10)-1,s=parseInt(o.max,10)-1;for(o.outlineLevel&&(o.level=+o.outlineLevel||0),delete o.min,delete o.max,o.width=+o.width,!n&&o.width&&(n=!0,us(o.width)),cs(o);i<=s;)e[i++]=We(o)}}(g,y)}p&&dl(p[1],a,t,l,i,s);var v=c.match(nl);v&&(a["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(v[0]));var b=[],w=c.match(Ka);if(w)for(f=0;f!=w.length;++f)b[f]=Xn(w[f].slice(w[f].indexOf('"')+1));var C=c.match(Ja);C&&function(e,t,n){for(var r=Array.isArray(e),o=0;o!=t.length;++o){var i=mt(Rt(t[o]),!0);if(!i.ref)return;var s=((n||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+bt(i.location))):(i.Target="#"+bt(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var a=Xn(i.ref),l=a.s.r;l<=a.e.r;++l)for(var u=a.s.c;u<=a.e.c;++u){var c=Yn({c:u,r:l});r?(e[l]||(e[l]=[]),e[l][u]||(e[l][u]={t:"z",v:void 0}),e[l][u].l=i):(e[c]||(e[c]={t:"z",v:void 0}),e[c].l=i)}}}(a,C,r);var _,x,E=c.match(rl);if(E&&(a["!margins"]=(_=mt(E[0]),x={},["left","right","top","bottom","header","footer"].forEach(function(e){_[e]&&(x[e]=parseFloat(_[e]))}),x)),!a["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(a["!ref"]=Kn(l)),t.sheetRows>0&&a["!ref"]){var S=Xn(a["!ref"]);t.sheetRows<=+S.e.r&&(S.e.r=t.sheetRows-1,S.e.r>l.e.r&&(S.e.r=l.e.r),S.e.r<S.s.r&&(S.s.r=S.e.r),S.e.c>l.e.c&&(S.e.c=l.e.c),S.e.c<S.s.c&&(S.s.c=S.e.c),a["!fullref"]=a["!ref"],a["!ref"]=Kn(S))}return g.length>0&&(a["!cols"]=g),b.length>0&&(a["!merges"]=b),a}(e,r,n,o,i,s,a)}function jl(e,t,n,r,o){return(".bin"===t.slice(-4)?_l:fl)(e,n,r,o)}function Fl(e,t,n){return(".bin"===t.slice(-4)?Qs:qs)(e,n)}var zl,Bl=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Hl=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ul(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var o,i,s,a=e.match(Bl);if(a)for(s=0;s!=a.length;++s)-1===(i=(o=a[s].match(Hl))[1].indexOf(":"))?r[o[1]]=o[2].slice(1,o[2].length-1):r["xmlns:"===o[1].slice(0,6)?"xmlns"+o[1].slice(6):o[1].slice(i+1)]=o[2].slice(1,o[2].length-1);return r}function ql(e){var t={};if(1===e.split(/\s+/).length)return t;var n,r,o,i=e.match(Bl);if(i)for(o=0;o!=i.length;++o)-1===(r=(n=i[o].match(Hl))[1].indexOf(":"))?t[n[1]]=n[2].slice(1,n[2].length-1):t["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(r+1)]=n[2].slice(1,n[2].length-1);return t}function Wl(e,t,n,r){var o=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":o=Ot(r);break;case"i2":case"int":o=parseInt(r,10);break;case"r4":case"float":o=parseFloat(r);break;case"date":case"dateTime.tz":o=Ue(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[bt(t)]=o}function $l(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=fs[r.Pattern]||r.Pattern)}e[t.ID]=t}function Ql(e,t,n,r,o,i,s,a,l,u){var c="General",p=r.StyleID,d={};u=u||{};var f=[],h=0;for(void 0===p&&a&&(p=a.StyleID),void 0===p&&s&&(p=s.StyleID);void 0!==i[p]&&(i[p].nf&&(c=i[p].nf),i[p].Interior&&f.push(i[p].Interior),i[p].Parent);)p=i[p].Parent;switch(n.Type){case"Boolean":r.t="b",r.v=Ot(e);break;case"String":r.t="s",r.r=Pt(bt(e)),r.v=e.indexOf("<")>-1?bt(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(Ue(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!=r.v?r.v=bt(e):r.v<60&&(r.v=r.v-1),c&&"General"!=c||(c="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=jr[e],!1!==u.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=Pt(t||e))}if(function(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||Vr[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=X(e.v):e.w=J(e.v):e.w=(r=t||"General",o=e.v,"General"===(i=zl[r]||bt(r))?J(o):be(i,o))}catch(e){if(n.WTF)throw e}var r,o,i;try{var s=zl[t]||t||"General";if(n.cellNF&&(e.z=s),n.cellDates&&"n"==e.t&&ge(s)){var a=W(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(e){if(n.WTF)throw e}}}(r,c,u),!1!==u.cellFormula)if(r.Formula){var m=bt(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=Ys(m,o),delete r.Formula,"RC"==r.ArrayRange?r.F=Ys("RC:RC",o):r.ArrayRange&&(r.F=Ys(r.ArrayRange,o),l.push([Xn(r.F),r.F]))}else for(h=0;h<l.length;++h)o.r>=l[h][0].s.r&&o.r<=l[h][0].e.r&&o.c>=l[h][0].s.c&&o.c<=l[h][0].e.c&&(r.F=l[h][1]);u.cellStyles&&(f.forEach(function(e){!d.patternType&&e.patternType&&(d.patternType=e.patternType)}),r.s=d),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function Gl(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Yl(e,t){var n=t||{};_e();var r=m(Wt(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r=Rt(r));var o,i=r.slice(0,1024).toLowerCase(),s=!1;if((1023&(i=i.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&i.indexOf(","),1023&i.indexOf(";"))){var a=We(n);return a.type="string",Ai.to_workbook(r,a)}if(-1==i.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach(function(e){i.indexOf("<"+e)>=0&&(s=!0)}),s)return function(e,t){var n=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find <table>");if(1==n.length)return er(vu(n[0],t),t);var r={SheetNames:[],Sheets:{}};return n.forEach(function(e,n){Oc(r,vu(e,t),"Sheet"+(n+1))}),r}(r,n);zl={"General Number":"General","General Date":B[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":B[15],"Short Date":B[14],"Long Time":B[19],"Medium Time":B[18],"Short Time":B[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:B[2],Standard:B[4],Percent:B[10],Scientific:B[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,u,c=[],p={},d=[],f=n.dense?[]:{},h="",g={},y={},v=Ul('<Data ss:Type="String">'),b=0,w=0,C=0,_={s:{r:2e6,c:2e6},e:{r:0,c:0}},x={},E={},S="",P=0,O=[],T={},k={},A=0,I=[],R=[],M={},D=[],L=!1,N=[],V=[],j={},F=0,z=0,H={Sheets:[],WBProps:{date1904:!1}},U={};$t.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/gm,"");for(var q="";o=$t.exec(r);)switch(o[3]=(q=o[3]).toLowerCase()){case"data":if("data"==q){if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&c.push([o[3],!0]);break}if(c[c.length-1][1])break;"/"===o[1]?Ql(r.slice(b,o.index),S,v,"comment"==c[c.length-1][0]?M:g,{c:w,r:C},x,D[w],y,N,n):(S="",v=Ul(o[0]),b=o.index+o[0].length);break;case"cell":if("/"===o[1])if(R.length>0&&(g.c=R),(!n.sheetRows||n.sheetRows>C)&&void 0!==g.v&&(n.dense?(f[C]||(f[C]=[]),f[C][w]=g):f[Qn(w)+Wn(C)]=g),g.HRef&&(g.l={Target:bt(g.HRef)},g.HRefScreenTip&&(g.l.Tooltip=g.HRefScreenTip),delete g.HRef,delete g.HRefScreenTip),(g.MergeAcross||g.MergeDown)&&(F=w+(0|parseInt(g.MergeAcross,10)),z=C+(0|parseInt(g.MergeDown,10)),O.push({s:{c:w,r:C},e:{c:F,r:z}})),n.sheetStubs)if(g.MergeAcross||g.MergeDown){for(var W=w;W<=F;++W)for(var $=C;$<=z;++$)(W>w||$>C)&&(n.dense?(f[$]||(f[$]=[]),f[$][W]={t:"z"}):f[Qn(W)+Wn($)]={t:"z"});w=F+1}else++w;else g.MergeAcross?w=F+1:++w;else(g=ql(o[0])).Index&&(w=+g.Index-1),w<_.s.c&&(_.s.c=w),w>_.e.c&&(_.e.c=w),"/>"===o[0].slice(-2)&&++w,R=[];break;case"row":"/"===o[1]||"/>"===o[0].slice(-2)?(C<_.s.r&&(_.s.r=C),C>_.e.r&&(_.e.r=C),"/>"===o[0].slice(-2)&&(y=Ul(o[0])).Index&&(C=+y.Index-1),w=0,++C):((y=Ul(o[0])).Index&&(C=+y.Index-1),j={},("0"==y.AutoFitHeight||y.Height)&&(j.hpx=parseInt(y.Height,10),j.hpt=ps(j.hpx),V[C]=j),"1"==y.Hidden&&(j.hidden=!0,V[C]=j));break;case"worksheet":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"));d.push(h),_.s.r<=_.e.r&&_.s.c<=_.e.c&&(f["!ref"]=Kn(_),n.sheetRows&&n.sheetRows<=_.e.r&&(f["!fullref"]=f["!ref"],_.e.r=n.sheetRows-1,f["!ref"]=Kn(_))),O.length&&(f["!merges"]=O),D.length>0&&(f["!cols"]=D),V.length>0&&(f["!rows"]=V),p[h]=f}else _={s:{r:2e6,c:2e6},e:{r:0,c:0}},C=w=0,c.push([o[3],!1]),l=Ul(o[0]),h=bt(l.Name),f=n.dense?[]:{},O=[],N=[],V=[],U={name:h,Hidden:0},H.Sheets.push(U);break;case"table":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==o[0].slice(-2))break;c.push([o[3],!1]),D=[],L=!1}break;case"style":"/"===o[1]?$l(x,E,n):E=Ul(o[0]);break;case"numberformat":E.nf=bt(Ul(o[0]).Format||"General"),zl[E.nf]&&(E.nf=zl[E.nf]);for(var Q=0;392!=Q&&B[Q]!=E.nf;++Q);if(392==Q)for(Q=57;392!=Q;++Q)if(null==B[Q]){we(E.nf,Q);break}break;case"column":if("table"!==c[c.length-1][0])break;if((u=Ul(o[0])).Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!L&&u.wpx>10){L=!0,os=6;for(var G=0;G<D.length;++G)D[G]&&cs(D[G])}L&&cs(u),D[u.Index-1||D.length]=u;for(var Y=0;Y<+u.Span;++Y)D[D.length]=We(u);break;case"namedrange":if("/"===o[1])break;H.Names||(H.Names=[]);var Z=mt(o[0]),K={Name:Z.Name,Ref:Ys(Z.RefersTo.slice(1),{r:0,c:0})};H.Sheets.length>0&&(K.Sheet=H.Sheets.length-1),H.Names.push(K);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===o[0].slice(-2))break;"/"===o[1]?S+=r.slice(P,o.index):P=o.index+o[0].length;break;case"interior":if(!n.cellStyles)break;E.Interior=Ul(o[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===o[0].slice(-2))break;"/"===o[1]?uo(T,q,r.slice(A,o.index)):A=o.index+o[0].length;break;case"styles":case"workbook":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else c.push([o[3],!1]);break;case"comment":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"));Gl(M),R.push(M)}else c.push([o[3],!1]),M={a:(l=Ul(o[0])).Author};break;case"autofilter":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==o[0].charAt(o[0].length-2)){var X=Ul(o[0]);f["!autofilter"]={ref:Ys(X.Range).replace(/\$/g,"")},c.push([o[3],!0])}break;case"datavalidation":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&c.push([o[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===o[1]){if((l=c.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&c.push([o[3],!0]);break;default:if(0==c.length&&"document"==o[3])return Tu(r,n);if(0==c.length&&"uof"==o[3])return Tu(r,n);var J=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:J=!1}break;case"componentoptions":switch(o[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:J=!1}break;case"excelworkbook":switch(o[3]){case"date1904":H.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:J=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":case"height":case"width":break;default:J=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if("/>"===o[0].slice(-2));else if("/"===o[1])switch(r.slice(A,o.index)){case"SheetHidden":U.Hidden=1;break;case"SheetVeryHidden":U.Hidden=2}else A=o.index+o[0].length;break;case"header":f["!margins"]||Qa(f["!margins"]={},"xlml"),isNaN(+mt(o[0]).Margin)||(f["!margins"].header=+mt(o[0]).Margin);break;case"footer":f["!margins"]||Qa(f["!margins"]={},"xlml"),isNaN(+mt(o[0]).Margin)||(f["!margins"].footer=+mt(o[0]).Margin);break;case"pagemargins":var ee=mt(o[0]);f["!margins"]||Qa(f["!margins"]={},"xlml"),isNaN(+ee.Top)||(f["!margins"].top=+ee.Top),isNaN(+ee.Left)||(f["!margins"].left=+ee.Left),isNaN(+ee.Right)||(f["!margins"].right=+ee.Right),isNaN(+ee.Bottom)||(f["!margins"].bottom=+ee.Bottom);break;case"displayrighttoleft":H.Views||(H.Views=[]),H.Views[0]||(H.Views[0]={}),H.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":f["!outline"]||(f["!outline"]={}),f["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":f["!outline"]||(f["!outline"]={}),f["!outline"].left=!0;break;default:J=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:J=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:J=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:J=!1}break;case"querytable":switch(o[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:J=!1}break;case"datavalidation":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:J=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:J=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:J=!1}break;case"smarttags":break;default:J=!1}if(J)break;if(o[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===o[0].slice(-2))break;"/"===o[1]?Wl(k,q,I,r.slice(A,o.index)):(I=o,A=o.index+o[0].length);break}if(n.WTF)throw"Unrecognized tag: "+o[3]+"|"+c.join("|")}var te={};return n.bookSheets||n.bookProps||(te.Sheets=p),te.SheetNames=d,te.Workbook=H,te.SSF=We(B),te.Props=T,te.Custprops=k,te}function Zl(e,t){switch(rc(t=t||{}),t.type||"base64"){case"base64":return Yl(w(e),t);case"binary":case"buffer":case"file":return Yl(e,t);case"array":return Yl(O(e),t)}}function Kl(e){return Ut("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Ks(e.Ref,{r:0,c:0})})}function Xl(e,t,n,r,o,i,s){if(!e||null==e.v&&null==e.f)return"";var a={};if(e.f&&(a["ss:Formula"]="="+_t(Ks(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=Gn(e.F.slice(t.length+1));a["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(a["ss:HRef"]=_t(e.l.Target),e.l.Tooltip&&(a["x:HRefScreenTip"]=_t(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],c=0;c!=u.length;++c)u[c].s.c==s.c&&u[c].s.r==s.r&&(u[c].e.c>u[c].s.c&&(a["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(a["ss:MergeDown"]=u[c].e.r-u[c].s.r));var p="",d="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":p="Number",d=String(e.v);break;case"b":p="Boolean",d=e.v?"1":"0";break;case"e":p="Error",d=Vr[e.v];break;case"d":p="DateTime",d=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||B[14]);break;case"s":p="String",d=((e.v||"")+"").replace(wt,function(e){return vt[e]}).replace(Et,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var f=Ga(r.cellXfs,e,r);a["ss:StyleID"]="s"+(21+f),a["ss:Index"]=s.c+1;var h=null!=e.v?d:"",m="z"==e.t?"":'<Data ss:Type="'+p+'">'+h+"</Data>";return(e.c||[]).length>0&&(m+=e.c.map(function(e){var t=Ut("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return Ut("Comment",t,{"ss:Author":e.a})}).join("")),Ut("Cell",m,a)}function Jl(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ds(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function eu(e,t,n){var r=[],o=n.SheetNames[e],i=n.Sheets[o],s=i?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,i=[],s=0;s<o.length;++s){var a=o[s];a.Sheet==n&&(a.Name.match(/^_xlfn\./)||i.push(Kl(a)))}return i.join("")}(i,0,e,n):"";return s.length>0&&r.push("<Names>"+s+"</Names>"),s=i?function(e,t){if(!e["!ref"])return"";var n=Xn(e["!ref"]),r=e["!merges"]||[],o=0,i=[];e["!cols"]&&e["!cols"].forEach(function(e,t){cs(e);var n=!!e.width,r=$a(t,e),o={"ss:Index":t+1};n&&(o["ss:Width"]=is(r.width)),e.hidden&&(o["ss:Hidden"]="1"),i.push(Ut("Column",null,o))});for(var s=Array.isArray(e),a=n.s.r;a<=n.e.r;++a){for(var l=[Jl(a,(e["!rows"]||[])[a])],u=n.s.c;u<=n.e.c;++u){var c=!1;for(o=0;o!=r.length;++o)if(!(r[o].s.c>u||r[o].s.r>a||r[o].e.c<u||r[o].e.r<a)){r[o].s.c==u&&r[o].s.r==a||(c=!0);break}if(!c){var p={r:a,c:u},d=Yn(p),f=s?(e[a]||[])[u]:e[d];l.push(Xl(f,d,e,t,0,0,p))}}l.push("</Row>"),l.length>2&&i.push(l.join(""))}return i.join("")}(i,t):"",s.length>0&&r.push("<Table>"+s+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Ut("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Ut("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Ut("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(Ut("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!r.Workbook.Sheets[i]||r.Workbook.Sheets[i].Hidden);++i);i==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(Bt("ProtectContents","True")),e["!protect"].objects&&o.push(Bt("ProtectObjects","True")),e["!protect"].scenarios&&o.push(Bt("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(Bt("EnableSelection","UnlockedCells")):o.push(Bt("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")})),0==o.length?"":Ut("WorksheetOptions",o.join(""),{xmlns:en})}(i,0,e,n)),r.join("")}function tu(e,t){t||(t={}),e.SSF||(e.SSF=We(B)),e.SSF&&(_e(),Ce(e.SSF),t.revssf=Re(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Ga(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(function(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return ke(lo).map(function(e){for(var t=0;t<Zr.length;++t)if(Zr[t][1]==e)return Zr[t];for(t=0;t<to.length;++t)if(to[t][1]==e)return to[t];throw e}).forEach(function(r){if(null!=e[r[1]]){var o=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];"date"===r[2]&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof o?o=String(o):!0===o||!1===o?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),n.push(Bt(lo[r[1]]||r[1],o))}}),Ut("DocumentProperties",n.join(""),{xmlns:Jt})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&ke(e).forEach(function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<Zr.length;++r)if(t==Zr[r][1])return;for(r=0;r<to.length;++r)if(t==to[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var i=e[t],s="string";"number"==typeof i?(s="float",i=String(i)):!0===i||!1===i?(s="boolean",i=i?"1":"0"):i=String(i),o.push(Ut(xt(t),i,{"dt:dt":s}))}}),t&&ke(t).forEach(function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],i="string";"number"==typeof r?(i="float",r=String(r)):!0===r||!1===r?(i="boolean",r=r?"1":"0"):r instanceof Date?(i="dateTime.tz",r=r.toISOString()):r=String(r),o.push(Ut(xt(n),r,{"dt:dt":i}))}}),"<"+r+' xmlns="'+Jt+'">'+o.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(Ut("Worksheet",eu(r,t,e),{"ss:Name":_t(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(e,t){var r=[];r.push(Ut("NumberFormat",null,{"ss:Format":_t(B[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};n.push(Ut("Style",r.join(""),o))}),Ut("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var o=t[r];null==o.Sheet&&(o.Name.match(/^_xlfn\./)||n.push(Kl(o)))}return Ut("Names",n.join(""))}(e),ut+Ut("Workbook",n.join(""),{xmlns:tn,"xmlns:o":Jt,"xmlns:x":en,"xmlns:ss":tn,"xmlns:dt":"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882","xmlns:html":"http://www.w3.org/TR/REC-html40"})}var nu=[60,1084,2066,2165,2175];function ru(e,t,n,r,o){var i=r,s=[],a=n.slice(n.l,n.l+i);if(o&&o.enc&&o.enc.insitu&&a.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:o.enc.insitu(a)}s.push(a),n.l+=i;for(var l=Sn(n,n.l),u=cu[l],c=0;null!=u&&nu.indexOf(l)>-1;)i=Sn(n,n.l+2),c=n.l+4,2066==l?c+=4:2165!=l&&2175!=l||(c+=12),a=n.slice(c,n.l+4+i),s.push(a),n.l+=4+i,u=cu[l=Sn(n,n.l)];var p=k(s);Dn(p,0);var d=0;p.lens=[];for(var f=0;f<s.length;++f)p.lens.push(d),d+=s[f].length;if(p.length<r)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+p.length+" < "+r;return t.f(p,p.length,o)}function ou(e,t,n){if("z"!==e.t&&e.XF){var r=0;try{r=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=B[r])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Vr[e.v]:0===r||"General"==r?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=X(e.v):e.w=J(e.v):e.w=be(r,e.v,{date1904:!!n,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}if(t.cellDates&&r&&"n"==e.t&&ge(B[r]||String(r))){var o=W(e.v);o&&(e.t="d",e.v=new Date(o.y,o.m-1,o.d,o.H,o.M,o.S,o.u))}}}function iu(e,t,n){return{v:e,ixfe:t,t:n}}var su="e0859ff2f94f6810ab9108002b27b3d9",au="02d5cdd59c2e1b10939708002b2cf9ae";function lu(e,t){var n,r,o,i;if(t||(t={}),rc(t),p(),t.codepage&&u(t.codepage),e.FullPaths){if(Pe.find(e,"/encryption"))throw new Error("File is password-protected");n=Pe.find(e,"!CompObj"),r=Pe.find(e,"/Workbook")||Pe.find(e,"/Book")}else{switch(t.type){case"base64":e=S(w(e));break;case"binary":e=S(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}Dn(e,0),r={content:e}}if(n&&function(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Tr(e,1)}(n),n.length-n.l<=4)return t;var r=n.read_shift(4);0==r||r>40||(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4||1907505652!==(r=n.read_shift(4))||(t.UnicodeClipboardFormat=function(e){return Tr(e,2)}(n),0==(r=n.read_shift(4))||r>40||(n.l-=4,t.Reserved2=n.read_shift(0,"lpwstr"))))}(n),t.bookProps&&!t.bookSheets)o={};else{var s=C?"buffer":"array";if(r&&r.content)o=function(e,t){var n,r,o,i,s,a,l,u,p={opts:{}},d={},f=t.dense?[]:{},h={},m={},g=null,y=[],v="",b={},w="",C={},_=[],x=[],E=[],S={Sheets:[],WBProps:{date1904:!1},Views:[{}]},P={},O=function(e){return e<8?Nr[e]:e<64&&E[e-8]||Nr[e]},T=function(e,t,r){if(!(j>1||r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,n){var r,o=t.XF.data;o&&o.patternType&&n&&n.cellStyles&&(t.s={},t.s.patternType=o.patternType,(r=ns(O(o.icvFore)))&&(t.s.fgColor={rgb:r}),(r=ns(O(o.icvBack)))&&(t.s.bgColor={rgb:r}))}(0,t,r),delete t.ixfe,delete t.XF,n=e,w=Yn(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.r<m.s.r&&(m.s.r=e.r),e.c<m.s.c&&(m.s.c=e.c),e.r+1>m.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),r.cellFormula&&t.f)for(var o=0;o<_.length;++o)if(!(_[o][0].s.c>e.c||_[o][0].s.r>e.r||_[o][0].e.c<e.c||_[o][0].e.r<e.r)){t.F=Kn(_[o][0]),_[o][0].s.c==e.c&&_[o][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Pa(_[o][1],0,e,L,k));break}r.dense?(f[e.r]||(f[e.r]=[]),f[e.r][e.c]=t):f[w]=t}},k={enc:!1,sbcch:0,snames:[],sharedf:C,arrayf:_,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(k.password=t.password);var A=[],I=[],R=[],M=[],D=!1,L=[];L.SheetNames=k.snames,L.sharedf=k.sharedf,L.arrayf=k.arrayf,L.names=[],L.XTI=[];var N,V=0,j=0,F=0,z=[],H=[];k.codepage=1200,c(1200);for(var U=!1;e.l<e.length-1;){var q=e.l,W=e.read_shift(2);if(0===W&&10===V)break;var $=e.l===e.length?0:e.read_shift(2),Q=cu[W];if(Q&&Q.f){if(t.bookSheets&&133===V&&133!==W)break;if(V=W,2===Q.r||12==Q.r){var G=e.read_shift(2);if($-=2,!k.enc&&G!==W&&((255&G)<<8|G>>8)!==W)throw new Error("rt mismatch: "+G+"!="+W);12==Q.r&&(e.l+=10,$-=10)}var Y={};if(Y=10===W?Q.f(e,$,k):ru(W,Q,e,$,k),0==j&&-1===[9,521,1033,2057].indexOf(V))continue;switch(W){case 34:p.opts.Date1904=S.WBProps.date1904=Y;break;case 134:p.opts.WriteProtect=!0;break;case 47:if(k.enc||(e.l=0),k.enc=Y,!t.password)throw new Error("File is password-protected");if(null==Y.valid)throw new Error("Encryption scheme unsupported");if(!Y.valid)throw new Error("Password is incorrect");break;case 92:k.lastuser=Y;break;case 66:var Z=Number(Y);switch(Z){case 21010:Z=1200;break;case 32768:Z=1e4;break;case 32769:Z=1252}c(k.codepage=Z),U=!0;break;case 317:k.rrtabid=Y;break;case 25:k.winlocked=Y;break;case 439:p.opts.RefreshAll=Y;break;case 12:p.opts.CalcCount=Y;break;case 16:p.opts.CalcDelta=Y;break;case 17:p.opts.CalcIter=Y;break;case 13:p.opts.CalcMode=Y;break;case 14:p.opts.CalcPrecision=Y;break;case 95:p.opts.CalcSaveRecalc=Y;break;case 15:k.CalcRefMode=Y;break;case 2211:p.opts.FullCalc=Y;break;case 129:Y.fDialog&&(f["!type"]="dialog"),Y.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),Y.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:x.push(Y);break;case 430:L.push([Y]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(Y);break;case 24:case 536:N={Name:Y.Name,Ref:Pa(Y.rgce,0,null,L,k)},Y.itab>0&&(N.Sheet=Y.itab-1),L.names.push(N),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(Y),"_xlnm._FilterDatabase"==Y.Name&&Y.itab>0&&Y.rgce&&Y.rgce[0]&&Y.rgce[0][0]&&"PtgArea3d"==Y.rgce[0][0][0]&&(H[Y.itab-1]={ref:Kn(Y.rgce[0][0][1][2])});break;case 22:k.ExternCount=Y;break;case 23:0==L.length&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(Y),L.XTI=L.XTI.concat(Y);break;case 2196:if(k.biff<8)break;null!=N&&(N.Comment=Y[1]);break;case 18:f["!protect"]=Y;break;case 19:0!==Y&&k.WTF&&console.error("Password verifier: "+Y);break;case 133:h[Y.pos]=Y,k.snames.push(Y.name);break;case 10:if(--j)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,f["!ref"]=Kn(m),t.sheetRows&&t.sheetRows<=m.e.r){var K=m.e.r;m.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=Kn(m),m.e.r=K}m.e.r++,m.e.c++}A.length>0&&(f["!merges"]=A),I.length>0&&(f["!objects"]=I),R.length>0&&(f["!cols"]=R),M.length>0&&(f["!rows"]=M),S.Sheets.push(P)}""===v?b=f:d[v]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===k.biff&&(k.biff={9:2,521:3,1033:4}[W]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Y.BIFFVer]||8),k.biffguess=0==Y.BIFFVer,0==Y.BIFFVer&&4096==Y.dt&&(k.biff=5,U=!0,c(k.codepage=28591)),8==k.biff&&0==Y.BIFFVer&&16==Y.dt&&(k.biff=2),j++)break;if(f=t.dense?[]:{},k.biff<8&&!U&&(U=!0,c(k.codepage=t.codepage||1252)),k.biff<5||0==Y.BIFFVer&&4096==Y.dt){""===v&&(v="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var X={pos:e.l-$,name:v};h[X.pos]=X,k.snames.push(v)}else v=(h[q]||{name:""}).name;32==Y.dt&&(f["!type"]="chart"),64==Y.dt&&(f["!type"]="macro"),A=[],I=[],k.arrayf=_=[],R=[],M=[],D=!1,P={Hidden:(h[q]||{hs:0}).hs,name:v};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[Y.r]||[])[Y.c]:f[Yn({c:Y.c,r:Y.r})])&&++Y.c,a={ixfe:Y.ixfe,XF:x[Y.ixfe]||{},v:Y.val,t:"n"},F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:Y.c,r:Y.r},a,t);break;case 5:case 517:a={ixfe:Y.ixfe,XF:x[Y.ixfe],v:Y.val,t:Y.t},F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:Y.c,r:Y.r},a,t);break;case 638:a={ixfe:Y.ixfe,XF:x[Y.ixfe],v:Y.rknum,t:"n"},F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:Y.c,r:Y.r},a,t);break;case 189:for(var J=Y.c;J<=Y.C;++J){var ee=Y.rkrec[J-Y.c][0];a={ixfe:ee,XF:x[ee],v:Y.rkrec[J-Y.c][1],t:"n"},F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:J,r:Y.r},a,t)}break;case 6:case 518:case 1030:if("String"==Y.val){g=Y;break}if((a=iu(Y.val,Y.cell.ixfe,Y.tt)).XF=x[a.ixfe],t.cellFormula){var te=Y.formula;if(te&&te[0]&&te[0][0]&&"PtgExp"==te[0][0][0]){var ne=te[0][0][1][0],re=te[0][0][1][1],oe=Yn({r:ne,c:re});C[oe]?a.f=""+Pa(Y.formula,0,Y.cell,L,k):a.F=((t.dense?(f[ne]||[])[re]:f[oe])||{}).F}else a.f=""+Pa(Y.formula,0,Y.cell,L,k)}F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T(Y.cell,a,t),g=Y;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=Y,(a=iu(Y,g.cell.ixfe,"s")).XF=x[a.ixfe],t.cellFormula&&(a.f=""+Pa(g.formula,0,g.cell,L,k)),F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T(g.cell,a,t),g=null;break;case 33:case 545:_.push(Y);var ie=Yn(Y[0].s);if(r=t.dense?(f[Y[0].s.r]||[])[Y[0].s.c]:f[ie],t.cellFormula&&r){if(!g)break;if(!ie||!r)break;r.f=""+Pa(Y[1],0,Y[0],L,k),r.F=Kn(Y[0])}break;case 1212:if(!t.cellFormula)break;if(w){if(!g)break;C[Yn(g.cell)]=Y[0],((r=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[Yn(g.cell)])||{}).f=""+Pa(Y[0],0,n,L,k)}break;case 253:a=iu(y[Y.isst].t,Y.ixfe,"s"),y[Y.isst].h&&(a.h=y[Y.isst].h),a.XF=x[a.ixfe],F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:Y.c,r:Y.r},a,t);break;case 513:t.sheetStubs&&(a={ixfe:Y.ixfe,XF:x[Y.ixfe],t:"z"},F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:Y.c,r:Y.r},a,t));break;case 190:if(t.sheetStubs)for(var se=Y.c;se<=Y.C;++se){var ae=Y.ixfe[se-Y.c];a={ixfe:ae,XF:x[ae],t:"z"},F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:se,r:Y.r},a,t)}break;case 214:case 516:case 4:(a=iu(Y.val,Y.ixfe,"s")).XF=x[a.ixfe],F>0&&(a.z=z[a.ixfe>>8&63]),ou(a,t,p.opts.Date1904),T({c:Y.c,r:Y.r},a,t);break;case 0:case 512:1===j&&(m=Y);break;case 252:y=Y;break;case 1054:if(4==k.biff){z[F++]=Y[1];for(var le=0;le<F+163&&B[le]!=Y[1];++le);le>=163&&we(Y[1],F+163)}else we(Y[1],Y[0]);break;case 30:z[F++]=Y;for(var ue=0;ue<F+163&&B[ue]!=Y;++ue);ue>=163&&we(Y,F+163);break;case 229:A=A.concat(Y);break;case 93:I[Y.cmo[0]]=k.lastobj=Y;break;case 438:k.lastobj.TxO=Y;break;case 127:k.lastobj.ImData=Y;break;case 440:for(s=Y[0].s.r;s<=Y[0].e.r;++s)for(i=Y[0].s.c;i<=Y[0].e.c;++i)(r=t.dense?(f[s]||[])[i]:f[Yn({c:i,r:s})])&&(r.l=Y[1]);break;case 2048:for(s=Y[0].s.r;s<=Y[0].e.r;++s)for(i=Y[0].s.c;i<=Y[0].e.c;++i)(r=t.dense?(f[s]||[])[i]:f[Yn({c:i,r:s})])&&r.l&&(r.l.Tooltip=Y[1]);break;case 28:if(k.biff<=5&&k.biff>=2)break;r=t.dense?(f[Y[0].r]||[])[Y[0].c]:f[Yn(Y[0])];var ce=I[Y[2]];r||(t.dense?(f[Y[0].r]||(f[Y[0].r]=[]),r=f[Y[0].r][Y[0].c]={t:"z"}):r=f[Yn(Y[0])]={t:"z"},m.e.r=Math.max(m.e.r,Y[0].r),m.s.r=Math.min(m.s.r,Y[0].r),m.e.c=Math.max(m.e.c,Y[0].c),m.s.c=Math.min(m.s.c,Y[0].c)),r.c||(r.c=[]),o={a:Y[1],t:ce.TxO.t},r.c.push(o);break;case 2173:js(x[Y.ixfe],Y.ext);break;case 125:if(!k.cellStyles)break;for(;Y.e>=Y.s;)R[Y.e--]={width:Y.w/256,level:Y.level||0,hidden:!!(1&Y.flags)},D||(D=!0,us(Y.w/256)),cs(R[Y.e+1]);break;case 520:var pe={};null!=Y.level&&(M[Y.r]=pe,pe.level=Y.level),Y.hidden&&(M[Y.r]=pe,pe.hidden=!0),Y.hpt&&(M[Y.r]=pe,pe.hpt=Y.hpt,pe.hpx=ds(Y.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||Qa(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[W]]=Y;break;case 161:f["!margins"]||Qa(f["!margins"]={}),f["!margins"].header=Y.header,f["!margins"].footer=Y.footer;break;case 574:Y.RTL&&(S.Views[0].RTL=!0);break;case 146:E=Y;break;case 2198:u=Y;break;case 140:l=Y;break;case 442:v?P.CodeName=Y||P.name:S.WBProps.CodeName=Y||"ThisWorkbook"}}else Q||console.error("Missing Info for XLS Record 0x"+W.toString(16)),e.l+=$}return p.SheetNames=ke(h).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return h[e].name}),t.bookSheets||(p.Sheets=d),!p.SheetNames.length&&b["!ref"]?(p.SheetNames.push("Sheet1"),p.Sheets&&(p.Sheets.Sheet1=b)):p.Preamble=b,p.Sheets&&H.forEach(function(e,t){p.Sheets[p.SheetNames[t]]["!autofilter"]=e}),p.Strings=y,p.SSF=We(B),k.enc&&(p.Encryption=k.enc),u&&(p.Themes=u),p.Metadata={},void 0!==l&&(p.Metadata.Country=l),L.names.length>0&&(S.Names=L.names),p.Workbook=S,p}(r.content,t);else if((i=Pe.find(e,"PerfectOffice_MAIN"))&&i.content)o=Ii.to_workbook(i.content,(t.type=s,t));else{if(!(i=Pe.find(e,"NativeContent_MAIN"))||!i.content)throw(i=Pe.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");o=Ii.to_workbook(i.content,(t.type=s,t))}t.bookVBA&&e.FullPaths&&Pe.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(o.vbaraw=function(e){var t=Pe.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var o=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Pe.utils.cfb_add(t,o,e.FileIndex[r].content)}}),Pe.write(t)}(e))}var a={};return e.FullPaths&&function(e,t,n){var r=Pe.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var o=So(r,Ir,au);for(var i in o)t[i]=o[i]}catch(e){if(n.WTF)throw e}var s=Pe.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var a=So(s,Rr,su);for(var l in a)null==t[l]&&(t[l]=a[l])}catch(e){if(n.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(ro(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,a,t),o.Props=o.Custprops=a,t.bookFiles&&(o.cfb=e),o}var uu={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var o=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=r,7&i&&(n.level=7&i),16&i&&(n.hidden=!0),32&i&&(n.hpt=o/20),n}},1:{f:function(e){return[ur(e)]}},2:{f:function(e){return[ur(e),wr(e),"n"]}},3:{f:function(e){return[ur(e),e.read_shift(1),"e"]}},4:{f:function(e){return[ur(e),e.read_shift(1),"b"]}},5:{f:function(e){return[ur(e),Sr(e),"n"]}},6:{f:function(e){return[ur(e),or(e),"str"]}},7:{f:function(e){return[ur(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,o=ur(e);o.r=n["!row"];var i=[o,or(e),"str"];if(n.cellFormula){e.l+=2;var s=Ra(e,r-e.l,n);i[3]=Pa(s,0,o,n.supbooks,n)}else e.l=r;return i}},9:{f:function(e,t,n){var r=e.l+t,o=ur(e);o.r=n["!row"];var i=[o,Sr(e),"n"];if(n.cellFormula){e.l+=2;var s=Ra(e,r-e.l,n);i[3]=Pa(s,0,o,n.supbooks,n)}else e.l=r;return i}},10:{f:function(e,t,n){var r=e.l+t,o=ur(e);o.r=n["!row"];var i=[o,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var s=Ra(e,r-e.l,n);i[3]=Pa(s,0,o,n.supbooks,n)}else e.l=r;return i}},11:{f:function(e,t,n){var r=e.l+t,o=ur(e);o.r=n["!row"];var i=[o,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var s=Ra(e,r-e.l,n);i[3]=Pa(s,0,o,n.supbooks,n)}else e.l=r;return i}},12:{f:function(e){return[pr(e)]}},13:{f:function(e){return[pr(e),wr(e),"n"]}},14:{f:function(e){return[pr(e),e.read_shift(1),"e"]}},15:{f:function(e){return[pr(e),e.read_shift(1),"b"]}},16:{f:yl},17:{f:function(e){return[pr(e),or(e),"str"]}},18:{f:function(e){return[pr(e),e.read_shift(4),"s"]}},19:{f:ar},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var o=e.read_shift(4),i=yr(e),s=Ma(e,0,n),a=mr(e);e.l=r;var l={Name:i,Ptg:s};return o<268435455&&(l.Sheet=o),a&&(l.Comment=a),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var o=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(o.fItalic&&(r.italic=1),o.fCondense&&(r.condense=1),o.fExtend&&(r.extend=1),o.fShadow&&(r.shadow=1),o.fOutline&&(r.outline=1),o.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var i=e.read_shift(1);0!=i&&(r.underline=i);var s=e.read_shift(1);s>0&&(r.family=s);var a=e.read_shift(1);switch(a>0&&(r.charset=a),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),o=e.read_shift(2,"i"),i=e.read_shift(1),s=e.read_shift(1),a=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=Nr[r];l&&(t.rgb=ns(l));break;case 2:t.rgb=ns([i,s,a]);break;case 3:t.theme=r}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=or(e),r}},44:{f:function(e,t){return[e.read_shift(2),or(e)]}},45:{f:Cs},46:{f:Ss},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),o=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:o}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ci},62:{f:function(e){return[ur(e),ar(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=Yn(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ln,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=fr(e,t-19),n}},148:{f:ml,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var o=t>8?or(e):"";return o.length>0&&(n.CodeName=o),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=vr(e,t-8),n.name=or(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:xr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:vl},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:or(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:vr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:gi},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,o=_r(e),i=e.read_shift(1),s=[o];if(s[2]=i,n.cellFormula){var a=Ia(e,r-e.l,n);s[1]=a}else e.l=r;return s}},427:{f:function(e,t,n){var r=e.l+t,o=[xr(e,16)];if(n.cellFormula){var i=Da(e,r-e.l,n);o[1]=i,e.l=r}else e.l=r;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return wl.forEach(function(n){t[n]=Sr(e)}),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=xr(e,16),o=mr(e),i=or(e),s=or(e),a=or(e);e.l=n;var l={rfx:r,relId:o,loc:i,display:a};return s&&(l.Tooltip=s),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:vr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:$s},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=xr(e,16);return t.rfx=n.s,t.ref=Yn(n.s),e.l+=16,t}},636:{T:-1},637:{f:lr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:or(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},cu={6:{f:ka},10:{f:Oo},12:{f:Ao},13:{f:Ao},14:{f:To},15:{f:To},16:{f:Sr},17:{f:To},18:{f:To},19:{f:Ao},20:{f:di},21:{f:di},23:{f:gi},24:{f:mi},25:{f:To},26:{},27:{},28:{f:function(e,t,n){return function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),o=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),a=Fo(e,0,n);return n.biff<8&&e.read_shift(1),[{r,c:o},a,s,i]}}(e,0,n)}},29:{},34:{f:To},35:{f:fi},38:{f:Sr},39:{f:Sr},40:{f:Sr},41:{f:Sr},42:{f:To},43:{f:To},47:{f:function(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?function(e,t,n){var r=n||{};r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=function(e){var t={},n=t.EncryptionVersionInfo=$i(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):r.Data=function(e,t){var n={},r=n.EncryptionVersionInfo=$i(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var o=e.read_shift(4);return t-=4,n.EncryptionHeader=Gi(e,o),t-=o,n.EncryptionVerifier=Yi(e,t),n}(e,t)}(e,t-2,r):function(e,t,n,r){var o,i,s,a={key:Ao(e),verificationBytes:Ao(e)};n.password&&(a.verifier=Ji(n.password)),r.valid=a.verificationBytes===a.verifier,r.valid&&(r.insitu=(o=n.password,i=0,s=es(o),function(e){var t=function(e,t,n,r,o){var i,s;for(o||(o=t),r||(r=es("")),i=0;i!=t.length;++i)s=t[i],s=255&((s^=r[n])>>5|s<<3),o[i]=s,++n;return[o,n,r]}(0,e,i,s);return i=t[1],t[0]}))}(e,n.biff,n,r),r}},49:{f:function(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return r.name=Do(e,0,n),r}},51:{f:Ao},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:To},65:{f:function(){}},66:{f:Ao},77:{},80:{},81:{},82:{},85:{f:Ao},89:{},90:{},91:{},92:{f:function(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,o=Fo(e,0,n);return e.read_shift(t+r-e.l),o}},93:{f:function(e,t,n){if(n&&n.biff<8)return function(e,t,n){e.l+=4;var r=e.read_shift(2),o=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((vi[r]||Ln)(e,t,n)),{cmo:[o,r,i],ft:s}}(e,t,n);var r=ei(e),o=function(e,t){for(var n=e.l+t,r=[];e.l<n;){var o=e.read_shift(2);e.l-=2;try{r.push(ni[o](e,n-e.l))}catch(t){return e.l=n,r}}return e.l!=n&&(e.l=n),r}(e,t-22,r[1]);return{cmo:r,ft:o}}},94:{},95:{f:To},96:{},97:{},99:{f:To},125:{f:Ci},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}},130:{f:Ao},131:{f:To},132:{f:To},133:{f:function(e,t,n){var r=e.read_shift(4),o=3&e.read_shift(1),i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule"}var s=Do(e,0,n);return 0===s.length&&(s="Sheet1"),{pos:r,hs:o,dt:i,name:s}}},134:{},140:{f:function(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=Mr[t]||t,t=e.read_shift(2),n[1]=Mr[t]||t,n}},141:{f:Ao},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Wo(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:Ao},157:{},158:{},160:{f:xi},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=Sr(e),n.footer=Sr(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),o=e.read_shift(2),i=[];e.l<n;)i.push(Yo(e));if(e.l!==n)throw new Error("MulRK read error");var s=e.read_shift(2);if(i.length!=s-o+1)throw new Error("MulRK length mismatch");return{r,c:o,C:s,rkrec:i}}},190:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),o=e.read_shift(2),i=[];e.l<n;)i.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var s=e.read_shift(2);if(i.length!=s-o+1)throw new Error("MulBlank length mismatch");return{r,c:o,C:s,ixfe:i}}},193:{f:Oo},197:{},198:{},199:{},200:{},201:{},202:{f:To},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Ao},220:{},221:{f:To},222:{},224:{f:function(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,r.data=function(e,t,n,r){var o={},i=e.read_shift(4),s=e.read_shift(4),a=e.read_shift(4),l=e.read_shift(2);return o.patternType=Dr[a>>26],r.cellStyles?(o.alc=7&i,o.fWrap=i>>3&1,o.alcV=i>>4&7,o.fJustLast=i>>7&1,o.trot=i>>8&255,o.cIndent=i>>16&15,o.fShrinkToFit=i>>20&1,o.iReadOrder=i>>22&2,o.fAtrNum=i>>26&1,o.fAtrFnt=i>>27&1,o.fAtrAlc=i>>28&1,o.fAtrBdr=i>>29&1,o.fAtrPat=i>>30&1,o.fAtrProt=i>>31&1,o.dgLeft=15&s,o.dgRight=s>>4&15,o.dgTop=s>>8&15,o.dgBottom=s>>12&15,o.icvLeft=s>>16&127,o.icvRight=s>>23&127,o.grbitDiag=s>>30&3,o.icvTop=127&a,o.icvBottom=a>>7&127,o.icvDiag=a>>14&127,o.dgDiag=a>>21&15,o.icvFore=127&l,o.icvBack=l>>7&127,o.fsxButton=l>>14&1,o):o}(e,0,r.fStyle,n),r}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:Oo},227:{},229:{f:function(e,t){for(var n=[],r=e.read_shift(2);r--;)n.push(Zo(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n=e.l+t,r=e.read_shift(4),o=e.read_shift(4),i=[],s=0;s!=o&&e.l<n;++s)i.push(Lo(e));return i.Count=r,i.Unique=o,i}},253:{f:function(e){var t=$o(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Ro},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:To},353:{f:Oo},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,n){var r=e.l+t,o=e.read_shift(2),i=e.read_shift(2);if(n.sbcch=i,1025==i||14849==i)return[i,o];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var s=Vo(e,i),a=[];r>e.l;)a.push(jo(e));return[i,o,s,a]}},431:{f:To},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var r=e.l,o="";try{e.l+=4;var i=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(i)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);e.l+=2}(e);var s=e.read_shift(2);e.read_shift(2),Ao(e);var a=e.read_shift(2);e.l+=a;for(var l=1;l<e.lens.length-1;++l){if(e.l-r!=e.lens[l])throw new Error("TxO: bad continue record");var u=e[e.l];if((o+=Vo(e,e.lens[l+1]-e.lens[l]-1)).length>=(u?s:2*s))break}if(o.length!==s&&o.length!==2*s)throw new Error("cchText: "+s+" != "+o.length);return e.l=r+t,{t:o}}catch(n){return e.l=r+t,{t:o}}}},439:{f:To},440:{f:function(e,t){var n=Zo(e);e.l+=16;var r=function(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var o=e.read_shift(2);e.l+=2;var i,s,a,l,u,c,p="";16&o&&(i=Bo(e,e.l)),128&o&&(s=Bo(e,e.l)),257&~o||(a=Bo(e,e.l)),1==(257&o)&&(l=function(e){var t=e.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var o=e.read_shift((r?t-24:t)>>1,"utf16le").replace(A,"");return r&&(e.l+=24),o}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),n="";t-- >0;)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return n+e.read_shift(o>>1,"utf16le").replace(A,"")}(e);default:throw new Error("Unsupported Moniker "+t)}}(e,e.l)),8&o&&(p=Bo(e,e.l)),32&o&&(u=e.read_shift(16)),64&o&&(c=co(e)),e.l=n;var d=s||a||l||"";d&&p&&(d+="#"+p),d||(d="#"+p),2&o&&"/"==d.charAt(0)&&"/"!=d.charAt(1)&&(d="file://"+d);var f={Target:d};return u&&(f.guid=u),c&&(f.time=c),i&&(f.Tooltip=i),f}(e,t-24);return[n,r]}},441:{},442:{f:jo},443:{},444:{f:Ao},445:{},446:{},448:{f:Oo},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:Oo},512:{f:ui},513:{f:_i},515:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=$o(e),o=Sr(e);return r.val=o,r}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var r=$o(e);2==n.biff&&e.l++;var o=jo(e,e.l,n);return r.val=o,r}},517:{f:pi},519:{f:Ei},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}},523:{},545:{f:yi},549:{f:si},566:{},574:{f:function(e,t,n){return n&&n.biff>=2&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=Yo(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),Fo(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var r=Xo(e);e.l++;var o=e.read_shift(1);return[Ta(e,t-=8,n),o,r]}},2048:{f:function(e,t){e.read_shift(2);var n=Zo(e),r=e.read_shift((t-10)/2,"dbcs-cont");return[n,r=r.replace(A,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:ri},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Oo},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var n=e.read_shift(2);e.l+=2;for(var r=e.read_shift(2),o=[];r-- >0;)o.push(Vs(e,e.l));return{ixfe:n,ext:o}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:To,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),o=e.read_shift(2);return[Vo(e,r,n),Vo(e,o,n)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){var r=e.l+t;if(124226!==e.read_shift(4))if(n.cellStyles){var o,i=e.slice(e.l);e.l=r;try{o=at(i,{type:"array"})}catch(e){return}var s=nt(o,"theme/theme/theme1.xml",!0);if(s)return Ls(s,n)}else e.l=r},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:Oo},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Ao},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var o=e.read_shift(1);return e.l+=3,16&o&&(r.area=!0),r}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Wo(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:ui},1:{},2:{f:function(e){var t=$o(e);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}},3:{f:function(e){var t=$o(e);++e.l;var n=Sr(e);return t.t="n",t.val=n,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=$o(e);++e.l;var o=Fo(e,0,n);return r.t="str",r.val=o,r}},5:{f:pi},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:ri},11:{},22:{f:Ao},30:{f:li},31:{},32:{},33:{f:yi},36:{},37:{f:si},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:Ao},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,o}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){var r=e.l+t,o=$o(e),i=e.read_shift(2),s=Vo(e,i,n);return e.l=r,o.t="str",o.val=s,o}},223:{},234:{},354:{},421:{},518:{f:ka},521:{f:ri},536:{f:mi},547:{f:fi},561:{},579:{},1030:{f:ka},1033:{f:ri},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function pu(e,t,n,r){var o=t;if(!isNaN(o)){var i=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,o),s.write_shift(2,i),i>0&&xn(n)&&e.push(n)}}function du(e,t,n){return e||(e=Nn(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function fu(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?De(Ue(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?pu(e,2,(i=n,s=r,a=o,l=Nn(9),du(l,i,s),l.write_shift(2,a),l)):pu(e,3,function(e,t,n){var r=Nn(15);return du(r,e,t),r.write_shift(8,n,"f"),r}(n,r,o)));case"b":case"e":return void pu(e,5,function(e,t,n,r){var o=Nn(9);return du(o,e,t),Mo(n,r||"b",o),o}(n,r,t.v,t.t));case"s":case"str":return void pu(e,4,function(e,t,n){var r=Nn(8+2*n.length);return du(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}var i,s,a,l;pu(e,1,du(null,n,r))}function hu(e,t,n,r,o){var i=16+Ga(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)pu(e,6,function(e,t,n,r,o){var i=Qo(t,n,o),s=function(e){if(null==e){var t=Nn(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Pr("number"==typeof e?e:0)}(e.v),a=Nn(6);a.write_shift(2,33),a.write_shift(4,0);for(var l=Nn(e.bf.length),u=0;u<e.bf.length;++u)l[u]=e.bf[u];return k([i,s,a,l])}(t,n,r,0,i));else switch(t.t){case"d":case"n":pu(e,515,function(e,t,n,r){var o=Nn(14);return Qo(e,t,r,o),Pr(n,o),o}(n,r,"d"==t.t?De(Ue(t.v)):t.v,i));break;case"b":case"e":pu(e,517,function(e,t,n,r,o,i){var s=Nn(8);return Qo(e,t,r,s),Mo(n,i,s),s}(n,r,t.v,i,0,t.t));break;case"s":case"str":o.bookSST?pu(e,253,function(e,t,n,r){var o=Nn(10);return Qo(e,t,r,o),o.write_shift(4,n),o}(n,r,Wa(o.Strings,t.v,o.revStrings),i)):pu(e,516,function(e,t,n,r,o){var i=!o||8==o.biff,s=Nn(+i+8+(1+i)*n.length);return Qo(e,t,r,s),s.write_shift(2,n.length),i&&s.write_shift(1,1),s.write_shift((1+i)*n.length,n,i?"utf16le":"sbcs"),s}(n,r,(t.v||"").slice(0,255),i,o));break;default:pu(e,513,Qo(n,r,i))}else pu(e,513,Qo(n,r,i))}function mu(e,t,n){var r,o,i,s=jn(),a=n.SheetNames[e],l=n.Sheets[a]||{},u=(n||{}).Workbook||{},c=(u.Sheets||[])[e]||{},p=Array.isArray(l),d=8==t.biff,f="",h=[],m=Xn(l["!ref"]||"A1"),g=d?65536:16384;if(m.e.c>255||m.e.r>=g){if(t.WTF)throw new Error("Range "+(l["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,g-1)}pu(s,2057,oi(0,16,t)),pu(s,13,Io(1)),pu(s,12,Io(100)),pu(s,15,ko(!0)),pu(s,17,ko(!1)),pu(s,16,Pr(.001)),pu(s,95,ko(!0)),pu(s,42,ko(!1)),pu(s,43,ko(!1)),pu(s,130,Io(1)),pu(s,128,(o=[0,0],(i=Nn(8)).write_shift(4,0),i.write_shift(2,o[0]?o[0]+1:0),i.write_shift(2,o[1]?o[1]+1:0),i)),pu(s,131,ko(!1)),pu(s,132,ko(!1)),d&&function(e,t){if(t){var n=0;t.forEach(function(t,r){++n<=256&&t&&pu(e,125,function(e,t){var n=Nn(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}($a(r,t),r))})}}(s,l["!cols"]),pu(s,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=Nn(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(m,t)),d&&(l["!links"]=[]);for(var y=m.s.r;y<=m.e.r;++y){f=Wn(y);for(var v=m.s.c;v<=m.e.c;++v){y===m.s.r&&(h[v]=Qn(v)),r=h[v]+f;var b=p?(l[y]||[])[v]:l[r];b&&(hu(s,b,y,v,t),d&&b.l&&l["!links"].push([r,b.l]))}}var w=c.CodeName||c.name||a;return d&&pu(s,574,function(e){var t=Nn(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((u.Views||[])[0])),d&&(l["!merges"]||[]).length&&pu(s,229,function(e){var t=Nn(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)Ko(e[n],t);return t}(l["!merges"])),d&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];pu(e,440,bi(r)),r[1].Tooltip&&pu(e,2048,wi(r))}delete t["!links"]}(s,l),pu(s,442,zo(w)),d&&function(e,t){var n=Nn(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),pu(e,2151,n),(n=Nn(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),Ko(Xn(t["!ref"]||"A1"),n),n.write_shift(4,4),pu(e,2152,n)}(s,l),pu(s,10),s.end()}function gu(e,t,n){var r,o=jn(),i=(e||{}).Workbook||{},s=i.Sheets||[],a=i.WBProps||{},l=8==n.biff,u=5==n.biff;pu(o,2057,oi(0,5,n)),"xla"==n.bookType&&pu(o,135),pu(o,225,l?Io(1200):null),pu(o,193,function(e,t){t||(t=Nn(2));for(var n=0;n<2;++n)t.write_shift(1,0);return t}()),u&&pu(o,191),u&&pu(o,192),pu(o,226),pu(o,92,function(e,t){var n=!t||8==t.biff,r=Nn(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),pu(o,66,Io(l?1200:1252)),l&&pu(o,353,Io(0)),l&&pu(o,448),pu(o,317,function(e){for(var t=Nn(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),l&&e.vbaraw&&pu(o,211),l&&e.vbaraw&&pu(o,442,zo(a.CodeName||"ThisWorkbook")),pu(o,156,Io(17)),pu(o,25,ko(!1)),pu(o,18,ko(!1)),pu(o,19,Io(0)),l&&pu(o,431,ko(!1)),l&&pu(o,444,Io(0)),pu(o,61,((r=Nn(18)).write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r)),pu(o,64,ko(!1)),pu(o,141,Io(0)),pu(o,34,ko("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&Ot(e.Workbook.WBProps.date1904)?"true":"false"}(e))),pu(o,14,ko(!0)),l&&pu(o,439,ko(!1)),pu(o,218,Io(0)),function(e,t,n){pu(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,o=Nn(r?15+n.length:16+2*n.length);return o.write_shift(2,20*(e.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,n.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}(o,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var o=r[0];o<=r[1];++o)null!=t[o]&&pu(e,1054,ai(o,t[o],n))})}(o,e.SSF,n),function(e,t){for(var n=0;n<16;++n)pu(e,224,ci({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){pu(e,224,ci(n,0,t))})}(o,n),l&&pu(o,352,ko(!1));var c=o.end(),p=jn();l&&pu(p,140,function(e){return e||(e=Nn(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),l&&n.Strings&&function(e,t,n){var r=(n||[]).length||0;if(r<=8224)return pu(e,252,n,r);if(!isNaN(252)){for(var o=n.parts||[],i=0,s=0,a=0;a+(o[i]||8224)<=8224;)a+=o[i]||8224,i++;var l=e.next(4);for(l.write_shift(2,252),l.write_shift(2,a),e.push(n.slice(s,s+a)),s+=a;s<r;){for((l=e.next(4)).write_shift(2,60),a=0;a+(o[i]||8224)<=8224;)a+=o[i]||8224,i++;l.write_shift(2,a),e.push(n.slice(s,s+a)),s+=a}}}(p,0,function(e){var t=Nn(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],r=0;r<e.length;++r)n[r]=No(e[r]);var o=k([t].concat(n));return o.parts=[t.length].concat(n.map(function(e){return e.length})),o}(n.Strings)),pu(p,10);var d=p.end(),f=jn(),h=0,m=0;for(m=0;m<e.SheetNames.length;++m)h+=(l?12:11)+(l?2:1)*e.SheetNames[m].length;var g=c.length+h+d.length;for(m=0;m<e.SheetNames.length;++m)pu(f,133,ii({pos:g,hs:(s[m]||{}).Hidden||0,dt:0,name:e.SheetNames[m]},n)),g+=t[m].length;var y=f.end();if(h!=y.length)throw new Error("BS8 "+h+" != "+y.length);var v=[];return c.length&&v.push(c),y.length&&v.push(y),d.length&&v.push(d),k(v)}function yu(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];r&&r["!ref"]&&Zn(r["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255).  Data may be lost.")}var o=t||{};switch(o.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=We(B)),e&&e.SSF&&(_e(),Ce(e.SSF),n.revssf=Re(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,oc(n),n.cellXfs=[],Ga(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var o=0;o<e.SheetNames.length;++o)r[r.length]=mu(o,n,e);return r.unshift(gu(e,r,n)),k(r)}(e,t);case 4:case 3:case 2:return function(e,t){for(var n=t||{},r=jn(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==n.sheet&&(o=i);if(0==o&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return pu(r,4==n.biff?1033:3==n.biff?521:9,oi(0,16,n)),function(e,t,n,r){var o,i=Array.isArray(t),s=Xn(t["!ref"]||"A1"),a="",l=[];if(s.e.c>255||s.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=Kn(s)}for(var u=s.s.r;u<=s.e.r;++u){a=Wn(u);for(var c=s.s.c;c<=s.e.c;++c){u===s.s.r&&(l[c]=Qn(c)),o=l[c]+a;var p=i?(t[u]||[])[c]:t[o];p&&fu(e,p,u,c)}}}(r,e.Sheets[e.SheetNames[o]],0,n),pu(r,10),r.end()}(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function vu(e,t){var n=t||{},r=n.dense?[]:{},o=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!o)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),s=o.index,a=i&&i.index||e.length,l=Ze(e.slice(s,a),/(:?<tr[^>]*>)/i,"<tr>"),u=-1,c=0,p=0,d=0,f={s:{r:1e7,c:1e7},e:{r:0,c:0}},h=[];for(s=0;s<l.length;++s){var m=l[s].trim(),g=m.slice(0,3).toLowerCase();if("<tr"!=g){if("<td"==g||"<th"==g){var y=m.split(/<\/t[dh]>/i);for(a=0;a<y.length;++a){var v=y[a].trim();if(v.match(/<t[dh]/i)){for(var b=v,w=0;"<"==b.charAt(0)&&(w=b.indexOf(">"))>-1;)b=b.slice(w+1);for(var C=0;C<h.length;++C){var _=h[C];_.s.c==c&&_.s.r<u&&u<=_.e.r&&(c=_.e.c+1,C=-1)}var x=mt(v.slice(0,v.indexOf(">")));d=x.colspan?+x.colspan:1,((p=+x.rowspan)>1||d>1)&&h.push({s:{r:u,c},e:{r:u+(p||1)-1,c:c+d-1}});var E=x.t||x["data-t"]||"";if(b.length)if(b=Lt(b),f.s.r>u&&(f.s.r=u),f.e.r<u&&(f.e.r=u),f.s.c>c&&(f.s.c=c),f.e.c<c&&(f.e.c=c),b.length){var S={t:"s",v:b};n.raw||!b.trim().length||"s"==E||("TRUE"===b?S={t:"b",v:!0}:"FALSE"===b?S={t:"b",v:!1}:isNaN(Qe(b))?isNaN(Ye(b).getDate())||(S={t:"d",v:Ue(b)},n.cellDates||(S={t:"n",v:De(S.v)}),S.z=n.dateNF||B[14]):S={t:"n",v:Qe(b)}),n.dense?(r[u]||(r[u]=[]),r[u][c]=S):r[Yn({r:u,c})]=S,c+=d}else c+=d;else c+=d}}}}else{if(++u,n.sheetRows&&n.sheetRows<=u){--u;break}c=0}}return r["!ref"]=Kn(f),h.length&&(r["!merges"]=h),r}function bu(e,t,n,r){for(var o=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var a=0,l=0,u=0;u<o.length;++u)if(!(o[u].s.r>n||o[u].s.c>s||o[u].e.r<n||o[u].e.c<s)){if(o[u].s.r<n||o[u].s.c<s){a=-1;break}a=o[u].e.r-o[u].s.r+1,l=o[u].e.c-o[u].s.c+1;break}if(!(a<0)){var c=Yn({r:n,c:s}),p=r.dense?(e[n]||[])[s]:e[c],d=p&&null!=p.v&&(p.h||St(p.w||(Jn(p),p.w)||""))||"",f={};a>1&&(f.rowspan=a),l>1&&(f.colspan=l),r.editable?d='<span contenteditable="true">'+d+"</span>":p&&(f["data-t"]=p&&p.t||"z",null!=p.v&&(f["data-v"]=p.v),null!=p.z&&(f["data-z"]=p.z),p.l&&"#"!=(p.l.Target||"#").charAt(0)&&(d='<a href="'+p.l.Target+'">'+d+"</a>")),f.id=(r.id||"sjs")+"-"+c,i.push(Ut("td",d,f))}}return"<tr>"+i.join("")+"</tr>"}function wu(e,t){var n=t||{},r=null!=n.header?n.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',o=null!=n.footer?n.footer:"</body></html>",i=[r],s=Zn(e["!ref"]);n.dense=Array.isArray(e),i.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var a=s.s.r;a<=s.e.r;++a)i.push(bu(e,s,a,n));return i.push("</table>"+o),i.join("")}function Cu(e,t,n){var r=n||{},o=0,i=0;if(null!=r.origin)if("number"==typeof r.origin)o=r.origin;else{var s="string"==typeof r.origin?Gn(r.origin):r.origin;o=s.r,i=s.c}var a=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,a.length),u={s:{r:0,c:0},e:{r:o,c:i}};if(e["!ref"]){var c=Zn(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),-1==o&&(u.e.r=o=c.e.r+1)}var p=[],d=0,f=e["!rows"]||(e["!rows"]=[]),h=0,m=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);h<a.length&&m<l;++h){var w=a[h];if(xu(w)){if(r.display)continue;f[m]={hidden:!0}}var C=w.children;for(g=y=0;g<C.length;++g){var _=C[g];if(!r.display||!xu(_)){var x=_.hasAttribute("data-v")?_.getAttribute("data-v"):_.hasAttribute("v")?_.getAttribute("v"):Lt(_.innerHTML),E=_.getAttribute("data-z")||_.getAttribute("z");for(d=0;d<p.length;++d){var S=p[d];S.s.c==y+i&&S.s.r<m+o&&m+o<=S.e.r&&(y=S.e.c+1-i,d=-1)}b=+_.getAttribute("colspan")||1,((v=+_.getAttribute("rowspan")||1)>1||b>1)&&p.push({s:{r:m+o,c:y+i},e:{r:m+o+(v||1)-1,c:y+i+(b||1)-1}});var P={t:"s",v:x},O=_.getAttribute("data-t")||_.getAttribute("t")||"";null!=x&&(0==x.length?P.t=O||"z":r.raw||0==x.trim().length||"s"==O||("TRUE"===x?P={t:"b",v:!0}:"FALSE"===x?P={t:"b",v:!1}:isNaN(Qe(x))?isNaN(Ye(x).getDate())||(P={t:"d",v:Ue(x)},r.cellDates||(P={t:"n",v:De(P.v)}),P.z=r.dateNF||B[14]):P={t:"n",v:Qe(x)})),void 0===P.z&&null!=E&&(P.z=E);var T="",k=_.getElementsByTagName("A");if(k&&k.length)for(var A=0;A<k.length&&(!k[A].hasAttribute("href")||"#"==(T=k[A].getAttribute("href")).charAt(0));++A);T&&"#"!=T.charAt(0)&&(P.l={Target:T}),r.dense?(e[m+o]||(e[m+o]=[]),e[m+o][y+i]=P):e[Yn({c:y+i,r:m+o})]=P,u.e.c<y+i&&(u.e.c=y+i),y+=b}}++m}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),u.e.r=Math.max(u.e.r,m-1+o),e["!ref"]=Kn(u),m>=l&&(e["!fullref"]=Kn((u.e.r=a.length-h+m-1+o,u))),e}function _u(e,t){return Cu((t||{}).dense?[]:{},e,t)}function xu(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Eu(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(e,t){return Array(parseInt(t,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n");return[bt(t.replace(/<[^>]*>/g,""))]}var Su={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Pu(e,t){var n,r,o,i,s,a,l=t||{},u=Wt(e),c=[],p={name:""},d="",f=0,h={},m=[],g=l.dense?[]:{},y={value:""},v="",b=0,w=[],C=-1,_=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}},E=0,S={},P=[],O={},T=[],k=1,A=1,I=[],R={Names:[]},M={},D=["",""],L=[],N={},V="",j=0,F=!1,z=!1,B=0;for($t.lastIndex=0,u=u.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");s=$t.exec(u);)switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(x.e.c>=x.s.c&&x.e.r>=x.s.r?g["!ref"]=Kn(x):g["!ref"]="A1:A1",l.sheetRows>0&&l.sheetRows<=x.e.r&&(g["!fullref"]=g["!ref"],x.e.r=l.sheetRows-1,g["!ref"]=Kn(x)),P.length&&(g["!merges"]=P),T.length&&(g["!rows"]=T),o.name=o["名称"]||o.name,"undefined"!=typeof JSON&&JSON.stringify(o),m.push(o.name),h[o.name]=g,z=!1):"/"!==s[0].charAt(s[0].length-2)&&(o=mt(s[0],!1),C=_=-1,x.s.r=x.s.c=1e7,x.e.r=x.e.c=0,g=l.dense?[]:{},P=[],T=[],z=!0);break;case"table-row-group":"/"===s[1]?--E:++E;break;case"table-row":case"行":if("/"===s[1]){C+=k,k=1;break}if((i=mt(s[0],!1))["行号"]?C=i["行号"]-1:-1==C&&(C=0),(k=+i["number-rows-repeated"]||1)<10)for(B=0;B<k;++B)E>0&&(T[C+B]={level:E});_=-1;break;case"covered-table-cell":"/"!==s[1]&&++_,l.sheetStubs&&(l.dense?(g[C]||(g[C]=[]),g[C][_]={t:"z"}):g[Yn({r:C,c:_})]={t:"z"}),v="",w=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++_,y=mt(s[0],!1),A=parseInt(y["number-columns-repeated"]||"1",10),a={t:"z",v:null},y.formula&&0!=l.cellFormula&&(a.f=ja(bt(y.formula))),"string"==(y["数据类型"]||y["value-type"])&&(a.t="s",a.v=bt(y["string-value"]||""),l.dense?(g[C]||(g[C]=[]),g[C][_]=a):g[Yn({r:C,c:_})]=a),_+=A-1;else if("/"!==s[1]){v="",b=0,w=[],A=1;var H=k?C+k-1:C;if(++_>x.e.c&&(x.e.c=_),_<x.s.c&&(x.s.c=_),C<x.s.r&&(x.s.r=C),H>x.e.r&&(x.e.r=H),L=[],N={},a={t:(y=mt(s[0],!1))["数据类型"]||y["value-type"],v:null},l.cellFormula)if(y.formula&&(y.formula=bt(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(O={s:{r:C,c:_},e:{r:C+(parseInt(y["number-matrix-rows-spanned"],10)||0)-1,c:_+(parseInt(y["number-matrix-columns-spanned"],10)||0)-1}},a.F=Kn(O),I.push([O,a.F])),y.formula)a.f=ja(y.formula);else for(B=0;B<I.length;++B)C>=I[B][0].s.r&&C<=I[B][0].e.r&&_>=I[B][0].s.c&&_<=I[B][0].e.c&&(a.F=I[B][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(O={s:{r:C,c:_},e:{r:C+(parseInt(y["number-rows-spanned"],10)||0)-1,c:_+(parseInt(y["number-columns-spanned"],10)||0)-1}},P.push(O)),y["number-columns-repeated"]&&(A=parseInt(y["number-columns-repeated"],10)),a.t){case"boolean":a.t="b",a.v=Ot(y["boolean-value"]);break;case"float":case"percentage":case"currency":a.t="n",a.v=parseFloat(y.value);break;case"date":a.t="d",a.v=Ue(y["date-value"]),l.cellDates||(a.t="n",a.v=De(a.v)),a.z="m/d/yy";break;case"time":a.t="n",a.v=Fe(y["time-value"])/86400,l.cellDates&&(a.t="d",a.v=je(a.v)),a.z="HH:MM:SS";break;case"number":a.t="n",a.v=parseFloat(y["数据数值"]);break;default:if("string"!==a.t&&"text"!==a.t&&a.t)throw new Error("Unsupported value type "+a.t);a.t="s",null!=y["string-value"]&&(v=bt(y["string-value"]),w=[])}}else{if(F=!1,"s"===a.t&&(a.v=v||"",w.length&&(a.R=w),F=0==b),M.Target&&(a.l=M),L.length>0&&(a.c=L,L=[]),v&&!1!==l.cellText&&(a.w=v),F&&(a.t="z",delete a.v),(!F||l.sheetStubs)&&!(l.sheetRows&&l.sheetRows<=C))for(var U=0;U<k;++U){if(A=parseInt(y["number-columns-repeated"]||"1",10),l.dense)for(g[C+U]||(g[C+U]=[]),g[C+U][_]=0==U?a:We(a);--A>0;)g[C+U][_+A]=We(a);else for(g[Yn({r:C+U,c:_})]=a;--A>0;)g[Yn({r:C+U,c:_+A})]=We(a);x.e.c<=_&&(x.e.c=_)}_+=(A=parseInt(y["number-columns-repeated"]||"1",10))-1,A=0,a={},v="",w=[]}M={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((n=c.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&c.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((n=c.pop())[0]!==s[3])throw"Bad state: "+n;N.t=v,w.length&&(N.R=w),N.a=V,L.push(N)}else"/"!==s[0].charAt(s[0].length-2)&&c.push([s[3],!1]);V="",j=0,v="",b=0,w=[];break;case"creator":"/"===s[1]?V=u.slice(j,s.index):j=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((n=c.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&c.push([s[3],!1]);v="",b=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(S[p.name]=d,(n=c.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&(d="",p=mt(s[0],!1),c.push([s[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(c[c.length-1][0]){case"time-style":case"date-style":r=mt(s[0],!1),d+=Su[s[3]]["long"===r.style?1:0]}break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(c[c.length-1][0]){case"number-style":case"date-style":case"time-style":d+=u.slice(f,s.index)}else f=s.index+s[0].length;break;case"named-range":D=za((r=mt(s[0],!1))["cell-range-address"]);var q={Name:r.name,Ref:D[0]+"!"+D[1]};z&&(q.Sheet=m.length),R.Names.push(q);break;case"p":case"文本串":if(["master-styles"].indexOf(c[c.length-1][0])>-1)break;if("/"!==s[1]||y&&y["string-value"])mt(s[0],!1),b=s.index+s[0].length;else{var W=Eu(u.slice(b,s.index));v=(v.length>0?v+"\n":"")+W[0]}break;case"database-range":if("/"===s[1])break;try{h[(D=za(mt(s[0])["target-range-address"]))[0]]["!autofilter"]={ref:D[1]}}catch(e){}break;case"a":if("/"!==s[1]){if(!(M=mt(s[0],!1)).href)break;M.Target=bt(M.href),delete M.href,"#"==M.Target.charAt(0)&&M.Target.indexOf(".")>-1?(D=za(M.Target.slice(1)),M.Target="#"+D[0]+"!"+D[1]):M.Target.match(/^\.\.[\\\/]/)&&(M.Target=M.Target.slice(3))}break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(l.WTF)throw new Error(s)}}var $={Sheets:h,SheetNames:m,Workbook:R};return l.bookSheets&&delete $.Sheets,$}function Ou(e,t){t=t||{},Je(e,"META-INF/manifest.xml")&&function(e,t){for(var n,r,o=Wt(e);n=$t.exec(o);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(r=mt(n[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==r.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}(tt(e,"META-INF/manifest.xml"),t);var n=nt(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=Pu(Rt(n),t);return Je(e,"meta.xml")&&(r.Props=Xr(tt(e,"meta.xml"))),r}function Tu(e,t){return Pu(e,t)}var ku=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ht({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return ut+t}}(),Au=function(){var e=function(e){return _t(e).replace(/  +/g,function(e){return'<text:s text:c="'+e.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t="          <table:table-cell />\n",n=function(n,r,o){var i=[];i.push('      <table:table table:name="'+_t(r.SheetNames[o])+'" table:style-name="ta1">\n');var s=0,a=0,l=Zn(n["!ref"]||"A1"),u=n["!merges"]||[],c=0,p=Array.isArray(n);if(n["!cols"])for(a=0;a<=l.e.c;++a)i.push("        <table:table-column"+(n["!cols"][a]?' table:style-name="co'+n["!cols"][a].ods+'"':"")+"></table:table-column>\n");var d="",f=n["!rows"]||[];for(s=0;s<l.s.r;++s)d=f[s]?' table:style-name="ro'+f[s].ods+'"':"",i.push("        <table:table-row"+d+"></table:table-row>\n");for(;s<=l.e.r;++s){for(d=f[s]?' table:style-name="ro'+f[s].ods+'"':"",i.push("        <table:table-row"+d+">\n"),a=0;a<l.s.c;++a)i.push(t);for(;a<=l.e.c;++a){var h=!1,m={},g="";for(c=0;c!=u.length;++c)if(!(u[c].s.c>a||u[c].s.r>s||u[c].e.c<a||u[c].e.r<s)){u[c].s.c==a&&u[c].s.r==s||(h=!0),m["table:number-columns-spanned"]=u[c].e.c-u[c].s.c+1,m["table:number-rows-spanned"]=u[c].e.r-u[c].s.r+1;break}if(h)i.push("          <table:covered-table-cell/>\n");else{var y=Yn({r:s,c:a}),v=p?(n[s]||[])[a]:n[y];if(v&&v.f&&(m["table:formula"]=_t(Fa(v.f)),v.F&&v.F.slice(0,y.length)==y)){var b=Zn(v.F);m["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,m["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(v){switch(v.t){case"b":g=v.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=v.v?"true":"false";break;case"n":g=v.w||String(v.v||0),m["office:value-type"]="float",m["office:value"]=v.v||0;break;case"s":case"str":g=null==v.v?"":v.v,m["office:value-type"]="string";break;case"d":g=v.w||Ue(v.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=Ue(v.v).toISOString(),m["table:style-name"]="ce1";break;default:i.push(t);continue}var w=e(g);if(v.l&&v.l.Target){var C=v.l.Target;"#"==(C="#"==C.charAt(0)?"#"+Ba(C.slice(1)):C).charAt(0)||C.match(/^\w+:/)||(C="../"+C),w=Ut("text:a",w,{"xlink:href":C.replace(/&/g,"&amp;")})}i.push("          "+Ut("table:table-cell",Ut("text:p",w,{}),m)+"\n")}else i.push(t)}}i.push("        </table:table-row>\n")}return i.push("      </table:table>\n"),i.join("")};return function(e,t){var r=[ut],o=Ht({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=Ht({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(r.push("<office:document"+o+i+">\n"),r.push(Yr().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n");var n=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var o=t["!cols"][r];if(null==o.width&&null==o.wpx&&null==o.wch)continue;cs(o),o.ods=n;var i=t["!cols"][r].wpx+"px";e.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),e.push("  </style:style>\n"),++n}});var r=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var o=t["!rows"][n].hpx+"px";e.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push("  </style:style>\n"),++r}}),e.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push("  <office:body>\n"),r.push("    <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)r.push(n(e.Sheets[e.SheetNames[s]],e,s));return r.push("    </office:spreadsheet>\n"),r.push("  </office:body>\n"),"fods"==t.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function Iu(e,t){if("fods"==t.bookType)return Au(e,t);var n=st(),r="",o=[],i=[];return it(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),it(n,r="content.xml",Au(e,t)),o.push([r,"text/xml"]),i.push([r,"ContentFile"]),it(n,r="styles.xml",ku(e,t)),o.push([r,"text/xml"]),i.push([r,"StylesFile"]),it(n,r="meta.xml",ut+Yr()),o.push([r,"text/xml"]),i.push([r,"MetadataFile"]),it(n,r="manifest.rdf",function(e){var t=[ut];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(Qr(e[n][0],e[n][1])),t.push(Gr("",e[n][0]));return t.push(Qr("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(i)),o.push([r,"application/rdf+xml"]),it(n,r="META-INF/manifest.xml",function(e){var t=[ut];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),n}function Ru(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Mu(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Rt(O(e))}function Du(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):S(Mt(e))}function Lu(e){var t=e.reduce(function(e,t){return e+t.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(e){n.set(e,r),r+=e.length}),n}function Nu(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function Vu(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function ju(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function Fu(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function zu(e){for(var t=[],n=[0];n[0]<e.length;){var r,o=n[0],i=Vu(e,n),s=7&i,a=0;if(0==(i=Math.floor(i/8)))break;switch(s){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:a=4,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 1:a=8,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 2:a=Vu(e,n),r=e.slice(n[0],n[0]+a),n[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(o))}var u={data:r,type:s};null==t[i]?t[i]=[u]:t[i].push(u)}return t}function Bu(e){var t=[];return e.forEach(function(e,n){e.forEach(function(e){e.data&&(t.push(ju(8*n+e.type)),2==e.type&&t.push(ju(e.data.length)),t.push(e.data))})}),Lu(t)}function Hu(e,t){return(null==e?void 0:e.map(function(e){return t(e.data)}))||[]}function Uu(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=Vu(e,r),i=zu(e.slice(r[0],r[0]+o));r[0]+=o;var s={id:Fu(i[1][0].data),messages:[]};i[2].forEach(function(t){var n=zu(t.data),o=Fu(n[3][0].data);s.messages.push({meta:n,data:e.slice(r[0],r[0]+o)}),r[0]+=o}),(null==(t=i[3])?void 0:t[0])&&(s.merge=Fu(i[3][0].data)>>>0>0),n.push(s)}return n}function qu(e){var t=[];return e.forEach(function(e){var n=[];n[1]=[{data:ju(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:ju(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(e){r.push(e.data),e.meta[3]=[{type:0,data:ju(e.data.length)}],n[2].push({data:Bu(e.meta),type:2})});var o=Bu(n);t.push(ju(o.length)),t.push(o),r.forEach(function(e){return t.push(e)})}),Lu(t)}function Wu(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Vu(t,n),o=[];n[0]<t.length;){var i=3&t[n[0]];if(0!=i){var s=0,a=0;if(1==i?(a=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(a=1+(t[n[0]++]>>2),2==i?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[Lu(o)],0==s)throw new Error("Invalid offset 0");if(s>o[0].length)throw new Error("Invalid offset beyond length");if(a>=s)for(o.push(o[0].slice(-s)),a-=s;a>=o[o.length-1].length;)o.push(o[o.length-1]),a-=o[o.length-1].length;o.push(o[0].slice(-s,-s+a))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var u=l-59;l=t[n[0]],u>1&&(l|=t[n[0]+1]<<8),u>2&&(l|=t[n[0]+2]<<16),u>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=u}o.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var c=Lu(o);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function $u(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(Wu(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Lu(t)}function Qu(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var i=ju(r),s=i.length;t.push(i),r<=60?(s++,t.push(new Uint8Array([r-1<<2]))):r<=256?(s+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(s+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(s+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(s+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),s+=r,o[0]=0,o[1]=255&s,o[2]=s>>8&255,o[3]=s>>16&255,n+=r}return Lu(t)}function Gu(e,t){var n=new Uint8Array(32),r=Ru(n),o=12,i=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=n>=0?0:128}(n,o,e.v),i|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),i|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,i,!0),n.slice(0,o)}function Yu(e,t){var n=new Uint8Array(32),r=Ru(n),o=12,i=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),i|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),i|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,i,!0),n.slice(0,o)}function Zu(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,n,r){var o,i=Ru(e),s=i.getUint32(4,!0),a=(r>1?12:8)+4*Nu(s&(r>1?3470:398)),l=-1,u=-1,c=NaN,p=new Date(2001,0,1);switch(512&s&&(l=i.getUint32(a,!0),a+=4),a+=4*Nu(s&(r>1?12288:4096)),16&s&&(u=i.getUint32(a,!0),a+=4),32&s&&(c=i.getFloat64(a,!0),a+=8),64&s&&(p.setTime(p.getTime()+1e3*i.getFloat64(a,!0)),a+=8),e[2]){case 0:break;case 2:o={t:"n",v:c};break;case 3:o={t:"s",v:t[u]};break;case 5:o={t:"d",v:p};break;case 6:o={t:"b",v:c>0};break;case 7:o={t:"n",v:c/86400};break;case 8:o={t:"e",v:0};break;case 9:if(l>-1)o={t:"s",v:n[l]};else if(u>-1)o={t:"s",v:t[u]};else{if(isNaN(c))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));o={t:"n",v:c}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return o}(e,t,n,e[0]);case 5:return function(e,t,n){var r,o=Ru(e),i=o.getUint32(8,!0),s=12,a=-1,l=-1,u=NaN,c=NaN,p=new Date(2001,0,1);switch(1&i&&(u=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],o=t+13;o>=t;--o)r=256*r+e[o];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}(e,s),s+=16),2&i&&(c=o.getFloat64(s,!0),s+=8),4&i&&(p.setTime(p.getTime()+1e3*o.getFloat64(s,!0)),s+=8),8&i&&(l=o.getUint32(s,!0),s+=4),16&i&&(a=o.getUint32(s,!0),s+=4),e[1]){case 0:break;case 2:case 10:r={t:"n",v:u};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:p};break;case 6:r={t:"b",v:c>0};break;case 7:r={t:"n",v:c/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(a>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&i," : ").concat(e.slice(0,4)));r={t:"s",v:n[a]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&i," : ").concat(e.slice(0,4)))}return r}(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ku(e){return Vu(zu(e)[1][0].data)}function Xu(e,t){var n=zu(t.data),r=Fu(n[1][0].data),o=n[3],i=[];return(o||[]).forEach(function(t){var n=zu(t.data),o=Fu(n[1][0].data)>>>0;switch(r){case 1:i[o]=Mu(n[3][0].data);break;case 8:var s=zu(e[Ku(n[9][0].data)][0].data),a=e[Ku(s[1][0].data)][0],l=Fu(a.meta[1][0].data);if(2001!=l)throw new Error("2000 unexpected reference to ".concat(l));var u=zu(a.data);i[o]=u[3].map(function(e){return Mu(e.data)}).join("")}}),i}function Ju(e,t){var n={"!ref":"A1"},r=e[Ku(zu(t.data)[2][0].data)],o=Fu(r[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return function(e,t,n){var r,o=zu(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Fu(o[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(o[6][0].data));if(i.e.c=(Fu(o[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(o[7][0].data));n["!ref"]=Kn(i);var s=zu(o[4][0].data),a=Xu(e,e[Ku(s[4][0].data)][0]),l=(null==(r=s[17])?void 0:r[0])?Xu(e,e[Ku(s[17][0].data)][0]):[],u=zu(s[3][0].data),c=0;u[1].forEach(function(t){var r=zu(t.data),o=e[Ku(r[2][0].data)][0],i=Fu(o.meta[1][0].data);if(6002!=i)throw new Error("6001 unexpected reference to ".concat(i));var s=function(e,t){var n,r=zu(t.data),o=(null==(n=null==r?void 0:r[7])?void 0:n[0])?Fu(r[7][0].data)>>>0>0?1:0:-1,i=Hu(r[5],function(e){return function(e,t){var n,r,o,i,s,a,l,u,c,p,d,f,h,m,g,y,v=zu(e),b=Fu(v[1][0].data)>>>0,w=Fu(v[2][0].data)>>>0,C=(null==(r=null==(n=v[8])?void 0:n[0])?void 0:r.data)&&Fu(v[8][0].data)>0||!1;if((null==(i=null==(o=v[7])?void 0:o[0])?void 0:i.data)&&0!=t)g=null==(a=null==(s=v[7])?void 0:s[0])?void 0:a.data,y=null==(u=null==(l=v[6])?void 0:l[0])?void 0:u.data;else{if(!(null==(p=null==(c=v[4])?void 0:c[0])?void 0:p.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(f=null==(d=v[4])?void 0:d[0])?void 0:f.data,y=null==(m=null==(h=v[3])?void 0:h[0])?void 0:m.data}for(var _=C?4:1,x=Ru(g),E=[],S=0;S<g.length/2;++S){var P=x.getUint16(2*S,!0);P<65535&&E.push([S,P])}if(E.length!=w)throw"Expected ".concat(w," cells, found ").concat(E.length);var O=[];for(S=0;S<E.length-1;++S)O[E[S][0]]=y.subarray(E[S][1]*_,E[S+1][1]*_);return E.length>=1&&(O[E[E.length-1][0]]=y.subarray(E[E.length-1][1]*_)),{R:b,cells:O}}(e,o)});return{nrows:Fu(r[4][0].data)>>>0,data:i.reduce(function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach(function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n}),e},[])}}(0,o);s.data.forEach(function(e,t){e.forEach(function(e,r){var o=Yn({r:c+t,c:r}),i=Zu(e,a,l);i&&(n[o]=i)})}),c+=s.nrows})}(e,r[0],n),n}function ec(e){var t,n,r,o,i={},s=[];if(e.FullPaths.forEach(function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=$u(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}try{n=Uu(t)}catch(e){return console.log("## "+(e.message||e))}n.forEach(function(e){i[e.id]=e.messages,s.push(e.id)})}}),!s.length)throw new Error("File has no messages");var a=(null==(o=null==(r=null==(n=null==(t=null==i?void 0:i[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:o[0].data)&&1==Fu(i[1][0].meta[1][0].data)&&i[1][0];if(a||s.forEach(function(e){i[e].forEach(function(e){if(1==Fu(e.meta[1][0].data)>>>0){if(a)throw new Error("Document has multiple roots");a=e}})}),!a)throw new Error("Cannot find Document root");return function(e,t){var n={SheetNames:[],Sheets:{}};if(Hu(zu(t.data)[1],Ku).forEach(function(t){e[t].forEach(function(t){if(2==Fu(t.meta[1][0].data)){var r=function(e,t){var n,r=zu(t.data),o={name:(null==(n=r[1])?void 0:n[0])?Mu(r[1][0].data):"",sheets:[]};return Hu(r[2],Ku).forEach(function(t){e[t].forEach(function(t){6e3==Fu(t.meta[1][0].data)&&o.sheets.push(Ju(e,t))})}),o}(e,t);r.sheets.forEach(function(e,t){Oc(n,e,0==t?r.name:r.name+"_"+t,!0)})}})}),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}(i,a)}function tc(e,t,n){var r,o,i,s;if(!(null==(r=e[6])?void 0:r[0])||!(null==(o=e[7])?void 0:o[0]))throw"Mutation only works on post-BNC storages!";if((null==(s=null==(i=e[8])?void 0:i[0])?void 0:s.data)&&Fu(e[8][0].data)>0)throw"Math only works with normal offsets";for(var a=0,l=Ru(e[7][0].data),u=0,c=[],p=Ru(e[4][0].data),d=0,f=[],h=0;h<t.length;++h)if(null!=t[h]){var m,g;switch(l.setUint16(2*h,u,!0),p.setUint16(2*h,d,!0),typeof t[h]){case"string":m=Gu({t:"s",v:t[h]},n),g=Yu({t:"s",v:t[h]},n);break;case"number":m=Gu({t:"n",v:t[h]},n),g=Yu({t:"n",v:t[h]},n);break;case"boolean":m=Gu({t:"b",v:t[h]},n),g=Yu({t:"b",v:t[h]},n);break;default:throw new Error("Unsupported value "+t[h])}c.push(m),u+=m.length,f.push(g),d+=g.length,++a}else l.setUint16(2*h,65535,!0),p.setUint16(2*h,65535);for(e[2][0].data=ju(a);h<e[7][0].data.length/2;++h)l.setUint16(2*h,65535,!0),p.setUint16(2*h,65535,!0);return e[6][0].data=Lu(c),e[3][0].data=Lu(f),a}function nc(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function rc(e){nc([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function oc(e){nc([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function ic(e,t,n,r,o,i,s,a,l,u,c,p){try{i[r]=qr(nt(e,n,!0),t);var d,f=tt(e,t);switch(a){case"sheet":d=Vl(f,t,o,l,i[r],u,c,p);break;case"chart":if(!(d=function(e,t,n,r,o,i){return".bin"===t.slice(-4)?function(e,t,n,r,o){if(!e)return e;r||(r={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s=[],a=!1;return Vn(e,function(e,r,l){switch(l){case 550:i["!rel"]=e;break;case 651:o.Sheets[n]||(o.Sheets[n]={}),e.name&&(o.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:s.push(l);break;case 38:s.pop();break;default:if(r.T>0)s.push(l);else if(r.T<0)s.pop();else if(!a||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}},t),r["!id"][i["!rel"]]&&(i["!drawel"]=r["!id"][i["!rel"]]),i}(e,r,n,o,i):function(e,t,n,r,o){if(!e)return e;r||(r={"!id":{}});var i,s={"!type":"chart","!drawel":null,"!rel":""},a=e.match(ol);return a&&al(a[0],0,o,n),(i=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=i[1]),r["!id"][s["!rel"]]&&(s["!drawel"]=r["!id"][s["!rel"]]),s}(e,0,n,o,i)}(f,t,o,l,i[r],u))||!d["!drawel"])break;var h=lt(d["!drawel"].Target,t),m=Ur(h),g=function(e,t){if(!e)return"??";var n=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}(nt(e,h,!0),qr(nt(e,m,!0),h)),y=lt(g,h),v=Ur(y);d=function(e,t,n,r,o,i){var s=i||{"!type":"chart"};if(!e)return i;var a=0,l=0,u="A",c={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var t=function(e){var t,n=[],r=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])});var o=bt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(e){t=e.replace(/<.*?>/g,"")}),[n,o,t]}(e);c.s.r=c.s.c=0,c.e.c=a,u=Qn(a),t[0].forEach(function(e,n){s[u+Wn(n)]={t:"n",v:e,z:t[1]},l=n}),c.e.r<l&&(c.e.r=l),++a}),a>0&&(s["!ref"]=Kn(c)),s}(nt(e,y,!0),0,0,qr(nt(e,v,!0),y),0,d);break;case"macro":w=t,i[r],w.slice(-4),d={"!type":"macro"};break;case"dialog":d=function(e,t){return t.slice(-4),{"!type":"dialog"}}(0,t,i[r]);break;default:throw new Error("Unrecognized sheet type "+a)}s[r]=d;var b=[];i&&i[r]&&ke(i[r]).forEach(function(n){var o="";if(i[r][n].Type==Hr.CMNT){o=lt(i[r][n].Target,t);var s=function(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=[],o={},i=!1;return Vn(e,function(e,s,a){switch(a){case 632:r.push(e);break;case 635:o=e;break;case 637:o.t=e.t,o.h=e.h,o.r=e.r;break;case 636:if(o.author=r[o.iauthor],delete o.iauthor,t.sheetRows&&o.rfx&&t.sheetRows<=o.rfx.r)break;o.t||(o.t=""),delete o.rfx,n.push(o);break;case 3072:case 37:case 38:break;case 35:i=!0;break;case 36:i=!1;break;default:if(s.T);else if(!i||t.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}}),n}(e,n):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var n=[],r=[],o=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);o&&o[1]&&o[1].split(/<\/\w*:?author>/).forEach(function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(""!==e&&""!==e.trim()){var o=e.match(/<(?:\w+:)?comment[^>]*>/);if(o){var i=mt(o[0]),s={author:i.authorId&&n[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid},a=Gn(i.ref);if(!(t.sheetRows&&t.sheetRows<=a.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),u=!!l&&!!l[1]&&Vi(l[1])||{r:"",t:"",h:""};s.r=u.r,"<t></t>"==u.r&&(u.t=u.h=""),s.t=(u.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(s.h=u.h),r.push(s)}}}}),r}(e,n)}(tt(e,o,!0),o,l);if(!s||!s.length)return;Us(d,s,!1)}i[r][n].Type==Hr.TCMNT&&(o=lt(i[r][n].Target,t),b=b.concat(function(e,t){var n=[],r=!1,o={},i=0;return e.replace(dt,function(s,a){var l=mt(s);switch(gt(l[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":o={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":null!=o.t&&n.push(o);break;case"<text>":case"<text":i=a+s.length;break;case"</text>":o.t=e.slice(i,a).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":r=!0;break;case"</mentions>":case"</ext>":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return s}),n}(tt(e,o,!0),l)))}),b&&b.length&&Us(d,b,!0,l.people||[])}catch(e){if(l.WTF)throw e}var w}function sc(e){return"/"==e.charAt(0)?e.slice(1):e}function ac(e,t){if(_e(),rc(t=t||{}),Je(e,"META-INF/manifest.xml"))return Ou(e,t);if(Je(e,"objectdata.xml"))return Ou(e,t);if(Je(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(void 0!==ec){if(e.FileIndex)return ec(e);var n=Pe.utils.cfb_new();return ot(e).forEach(function(t){it(n,t,rt(e,t))}),ec(n)}throw new Error("Unsupported NUMBERS file")}if(!Je(e,"[Content_Types].xml")){if(Je(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Je(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,o,i=ot(e),s=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var n={};if((e.match(dt)||[]).forEach(function(e){var r=mt(e);switch(r[0].replace(ft,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[r.Extension]=r.ContentType;break;case"<Override":void 0!==t[Fr[r.ContentType]]&&t[Fr[r.ContentType]].push(r.PartName)}}),t.xmlns!==Qt)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}(nt(e,"[Content_Types].xml")),a=!1;if(0===s.workbooks.length&&tt(e,o="xl/workbook.xml",!0)&&s.workbooks.push(o),0===s.workbooks.length){if(!tt(e,o="xl/workbook.bin",!0))throw new Error("Could not find workbook");s.workbooks.push(o),a=!0}"bin"==s.workbooks[0].slice(-3)&&(a=!0);var l={},u={};if(!t.bookSheets&&!t.bookProps){if(Ha=[],s.sst)try{Ha=function(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=!1;return Vn(e,function(e,o,i){switch(i){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(o.T,!r||t.WTF)throw new Error("Unexpected record 0x"+i.toString(16))}}),n}(e,n):function(e,t){var n=[],r="";if(!e)return n;var o=e.match(ji);if(o){r=o[2].replace(Fi,"").split(zi);for(var i=0;i!=r.length;++i){var s=Vi(r[i].trim(),t);null!=s&&(n[n.length]=s)}o=mt(o[1]),n.Count=o.count,n.Unique=o.uniqueCount}return n}(e,n)}(tt(e,sc(s.sst)),s.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&s.themes.length&&(l=function(e,t,n){return Ls(e,n)}(nt(e,s.themes[0].replace(/^\//,""),!0)||"",s.themes[0],t)),s.style&&(u=function(e,t,n,r){return".bin"===t.slice(-4)?function(e,t,n){var r={NumberFmt:[]};for(var o in B)r.NumberFmt[o]=B[o];r.CellXf=[],r.Fonts=[];var i=[],s=!1;return Vn(e,function(e,o,a){switch(a){case 44:r.NumberFmt[e[0]]=e[1],we(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=rs(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==i[i.length-1]&&r.CellXf.push(e);break;case 35:s=!0;break;case 36:s=!1;break;case 37:i.push(a),s=!0;break;case 38:i.pop(),s=!1;break;default:if(o.T>0)i.push(a);else if(o.T<0)i.pop();else if(!s||n.WTF&&37!=i[i.length-1])throw new Error("Unexpected record 0x"+a.toString(16))}}),r}(e,n,r):gs(e,n,r)}(tt(e,sc(s.style)),s.style,l,t))}s.links.map(function(n){try{return qr(nt(e,Ur(sc(n))),n),function(e,t,n,r){if(".bin"===n.slice(-4))return function(e,t,n,r){if(!e)return e;var o=r||{},i=!1;Vn(e,function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(t.T);else if(!i||o.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}},o)}(e,0,0,r)}(tt(e,sc(n)),0,n,t)}catch(e){}});var c=function(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],o=!1;t||(t={}),t.biff=12;var i=[],s=[[]];return s.SheetNames=[],s.XTI=[],uu[16]={n:"BrtFRTArchID$",f:Ll},Vn(e,function(e,a,l){switch(l){case 156:s.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Pa(e.Ptg,0,null,s,t),delete t.SID,delete e.Ptg,i.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:s[0].length?s.push([l,e]):s[0]=[l,e],s[s.length-1].XTI=[];break;case 362:0===s.length&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(e),s.XTI=s.XTI.concat(e);break;case 35:case 37:r.push(l),o=!0;break;case 36:case 38:r.pop(),o=!1;break;default:if(a.T);else if(!o||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}},t),kl(n),n.Names=i,n.supbooks=s,n}(e,n):function(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,o="xmlns",i={},s=0;if(e.replace(dt,function(a,l){var u=mt(a);switch(gt(u[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":a.match(Rl)&&(o="xmlns"+a.match(/<(\w+):/)[1]),n.xmlns=u[o];break;case"<fileVersion":delete u[0],n.AppVersion=u;break;case"<workbookPr":case"<workbookPr/>":xl.forEach(function(e){if(null!=u[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=Ot(u[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(u[e[0]],10);break;default:n.WBProps[e[0]]=u[e[0]]}}),u.codeName&&(n.WBProps.CodeName=Rt(u.codeName));break;case"<workbookView":case"<workbookView/>":delete u[0],n.WBView.push(u);break;case"<sheet":switch(u.state){case"hidden":u.Hidden=1;break;case"veryHidden":u.Hidden=2;break;default:u.Hidden=0}delete u.state,u.name=bt(Rt(u.name)),delete u[0],n.Sheets.push(u);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":r=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":r=!1;break;case"<definedName":(i={}).Name=Rt(u.name),u.comment&&(i.Comment=u.comment),u.localSheetId&&(i.Sheet=+u.localSheetId),Ot(u.hidden||"0")&&(i.Hidden=!0),s=l+a.length;break;case"</definedName>":i.Ref=bt(Rt(e.slice(s,l))),n.Names.push(i);break;case"<calcPr":case"<calcPr/>":delete u[0],n.CalcPr=u;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+u[0]+" in workbook")}return a}),-1===Xt.indexOf(n.xmlns))throw new Error("Unknown Namespace: "+n.xmlns);return kl(n),n}(e,n)}(tt(e,sc(s.workbooks[0])),s.workbooks[0],t),p={},d="";s.coreprops.length&&((d=tt(e,sc(s.coreprops[0]),!0))&&(p=Xr(d)),0!==s.extprops.length&&(d=tt(e,sc(s.extprops[0]),!0))&&function(e,t,n){var r={};t||(t={}),e=Rt(e),to.forEach(function(n){var o=(e.match(Dt(n[0]))||[])[1];switch(n[2]){case"string":o&&(t[n[1]]=bt(o));break;case"bool":t[n[1]]="true"===o;break;case"raw":var i=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));i&&i.length>0&&(r[n[1]]=i[1])}}),r.HeadingPairs&&r.TitlesOfParts&&ro(r.HeadingPairs,r.TitlesOfParts,t,n)}(d,p,t));var f={};t.bookSheets&&!t.bookProps||0!==s.custprops.length&&(d=nt(e,sc(s.custprops[0]),!0))&&(f=function(e,t){var n={},r="",o=e.match(io);if(o)for(var i=0;i!=o.length;++i){var s=o[i],a=mt(s);switch(a[0]){case"<?xml":case"<Properties":break;case"<property":r=bt(a.name);break;case"</property>":r=null;break;default:if(0===s.indexOf("<vt:")){var l=s.split(">"),u=l[0].slice(4),c=l[1];switch(u){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":n[r]=bt(c);break;case"bool":n[r]=Ot(c);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(c,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(c);break;case"filetime":case"date":n[r]=Ue(c);break;default:if("/"==u.slice(-1))break;t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",s,u,l)}}else if("</"===s.slice(0,2));else if(t.WTF)throw new Error(s)}}return n}(d,t));var h={};if((t.bookSheets||t.bookProps)&&(c.Sheets?r=c.Sheets.map(function(e){return e.name}):p.Worksheets&&p.SheetNames.length>0&&(r=p.SheetNames),t.bookProps&&(h.Props=p,h.Custprops=f),t.bookSheets&&void 0!==r&&(h.SheetNames=r),t.bookSheets?h.SheetNames:t.bookProps))return h;r={};var m,g={};t.bookDeps&&s.calcchain&&(m=tt(e,sc(s.calcchain)),g=".bin"===s.calcchain.slice(-4)?function(e){var t=[];return Vn(e,function(e,n,r){if(63===r)t.push(e);else if(!n.T)throw new Error("Unexpected record 0x"+r.toString(16))}),t}(m):function(e){var t=[];if(!e)return t;var n=1;return(e.match(dt)||[]).forEach(function(e){var r=mt(e);switch(r[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete r[0],r.i?n=r.i:r.i=n,t.push(r)}}),t}(m));var y,v,b=0,w={},C=c.Sheets;p.Worksheets=C.length,p.SheetNames=[];for(var _=0;_!=C.length;++_)p.SheetNames[_]=C[_].name;var x=a?"bin":"xml",E=s.workbooks[0].lastIndexOf("/"),S=(s.workbooks[0].slice(0,E+1)+"_rels/"+s.workbooks[0].slice(E+1)+".rels").replace(/^\//,"");Je(e,S)||(S="xl/_rels/workbook."+x+".rels");var P=qr(nt(e,S,!0),S.replace(/_rels.*/,"s5s"));(s.metadata||[]).length>=1&&(t.xlmeta=function(e,t,n){return".bin"===t.slice(-4)?function(e,t,n){var r={Types:[],Cell:[],Value:[]},o=n||{},i=[],s=!1,a=2;return Vn(e,function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach(function(e){1==a?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==a&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})});break;case 337:a=e?1:0;break;case 338:a=2;break;case 35:i.push(n),s=!0;break;case 36:i.pop(),s=!1;break;default:if(t.T);else if(!s||o.WTF&&35!=i[i.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}}),r}(e,0,n):function(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var o,i=!1,s=2;return e.replace(dt,function(e){var t=mt(e);switch(gt(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":r.Types.push({name:t.name});break;case"<futureMetadata":for(var a=0;a<r.Types.length;++a)r.Types[a].name==t.name&&(o=r.Types[a]);break;case"<rc":1==s?r.Cell.push({type:r.Types[t.t-1].name,index:+t.v}):0==s&&r.Value.push({type:r.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":s=1;break;case"</cellMetadata>":case"</valueMetadata>":s=2;break;case"<valueMetadata":s=0;break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+t.i);break;default:if(!i&&n.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e}),r}(e,0,n)}(tt(e,sc(s.metadata[0])),s.metadata[0],t)),(s.people||[]).length>=1&&(t.people=function(e,t){var n=[],r=!1;return e.replace(dt,function(e){var o=mt(e);switch(gt(o[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":n.push({name:o.displayname,id:o.id});break;case"<ext":r=!0;break;case"</ext>":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return e}),n}(tt(e,sc(s.people[0])),t)),P&&(P=function(e,t){if(!e)return 0;try{e=t.map(function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(n=e["!id"][t.id].Type,Hr.WS.indexOf(n)>-1?"sheet":Hr.CS&&n==Hr.CS?"chart":Hr.DS&&n==Hr.DS?"dialog":Hr.MS&&n==Hr.MS?"macro":n&&n.length?n:"sheet")];var n})}catch(e){return null}return e&&0!==e.length?e:null}(P,c.Sheets));var O=tt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=p.Worksheets;++b){var T="sheet";if(P&&P[b]?(y="xl/"+P[b][1].replace(/[\/]?xl\//,""),Je(e,y)||(y=P[b][1]),Je(e,y)||(y=S.replace(/_rels\/.*$/,"")+P[b][1]),T=P[b][2]):y=(y="xl/worksheets/sheet"+(b+1-O)+"."+x).replace(/sheet0\./,"sheet."),v=y.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(p.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var k=!1,A=0;A!=t.sheets.length;++A)"number"==typeof t.sheets[A]&&t.sheets[A]==b&&(k=1),"string"==typeof t.sheets[A]&&t.sheets[A].toLowerCase()==p.SheetNames[b].toLowerCase()&&(k=1);if(!k)continue e}}ic(e,y,v,p.SheetNames[b],b,w,r,T,t,c,l,u)}return h={Directory:s,Workbook:c,Props:p,Custprops:f,Deps:g,Sheets:r,SheetNames:p.SheetNames,Strings:Ha,Styles:u,Themes:l,SSF:We(B)},t&&t.bookFiles&&(e.files?(h.keys=i,h.files=e.files):(h.keys=[],h.files={},e.FullPaths.forEach(function(t,n){t=t.replace(/^Root Entry[\/]/,""),h.keys.push(t),h.files[t]=e.FileIndex[n]}))),t&&t.bookVBA&&(s.vba.length>0?h.vbaraw=tt(e,sc(s.vba[0]),!0):s.defaults&&"application/vnd.ms-office.vbaProject"===s.defaults.bin&&(h.vbaraw=tt(e,"xl/vbaProject.bin",!0))),h}function lc(e,t){var n,r,o=t||{},i="Workbook",s=Pe.find(e,i);try{if(i="/!DataSpaces/Version",!(s=Pe.find(e,i))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(n=s.content,(r={}).id=n.read_shift(0,"lpp4"),r.R=$i(n,4),r.U=$i(n,4),r.W=$i(n,4),i="/!DataSpaces/DataSpaceMap",!(s=Pe.find(e,i))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+i);var a=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(Qi(e));return t}(s.content);if(1!==a.length||1!==a[0].comps.length||0!==a[0].comps[0].t||"StrongEncryptionDataSpace"!==a[0].name||"EncryptedPackage"!==a[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(s=Pe.find(e,i))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+i);var l=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(s.content);if(1!=l.length||"StrongEncryptionTransform"!=l[0])throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(s=Pe.find(e,i))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+i);!function(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=$i(e,4),t.U=$i(e,4),t.W=$i(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record")}(s.content)}catch(e){}if(i="/EncryptionInfo",!(s=Pe.find(e,i))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+i);var u=function(e){var t=$i(e);switch(t.Minor){case 2:return[t.Minor,Zi(e)];case 3:return[t.Minor,Ki()];case 4:return[t.Minor,Xi(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(s.content);if(i="/EncryptedPackage",!(s=Pe.find(e,i))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(4==u[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(u[1],s.content,o.password||"",o);if(2==u[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(u[1],s.content,o.password||"",o);throw new Error("File is password-protected")}function uc(e,t){return"ods"==t.bookType?Iu(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=Zn(n["!ref"]);r.s.r=r.s.c=0;var o=!1;r.e.c>9&&(o=!0,r.e.c=9),r.e.r>49&&(o=!0,r.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(Kn(r)));var i=wc(n,{range:r,header:1}),s=["~Sh33tJ5~"];i.forEach(function(e){return e.forEach(function(e){"string"==typeof e&&s.push(e)})});var a={},l=[],u=Pe.read(t.numbers,{type:"base64"});u.FileIndex.map(function(e,t){return[e,u.FullPaths[t]]}).forEach(function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&Uu($u(t.content)).forEach(function(e){l.push(e.id),a[e.id]={deps:[],location:n,type:Fu(e.messages[0].meta[1][0].data)}})}),l.sort(function(e,t){return e-t});var c=l.filter(function(e){return e>1}).map(function(e){return[e,ju(e)]});u.FileIndex.map(function(e,t){return[e,u.FullPaths[t]]}).forEach(function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&Uu($u(t.content)).forEach(function(e){e.messages.forEach(function(t){c.forEach(function(t){e.messages.some(function(e){return 11006!=Fu(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])})&&a[t[0]].deps.push(e.id)})})})});for(var p,d=Pe.find(u,a[1].location),f=Uu($u(d.content)),h=0;h<f.length;++h){var m=f[h];1==m.id&&(p=m)}var g=Ku(zu(p.messages[0].data)[1][0].data);for(f=Uu($u((d=Pe.find(u,a[g].location)).content)),h=0;h<f.length;++h)(m=f[h]).id==g&&(p=m);for(g=Ku(zu(p.messages[0].data)[2][0].data),f=Uu($u((d=Pe.find(u,a[g].location)).content)),h=0;h<f.length;++h)(m=f[h]).id==g&&(p=m);for(g=Ku(zu(p.messages[0].data)[2][0].data),f=Uu($u((d=Pe.find(u,a[g].location)).content)),h=0;h<f.length;++h)(m=f[h]).id==g&&(p=m);var y=zu(p.messages[0].data);y[6][0].data=ju(r.e.r+1),y[7][0].data=ju(r.e.c+1);for(var v=Ku(y[46][0].data),b=Pe.find(u,a[v].location),w=Uu($u(b.content)),C=0;C<w.length&&w[C].id!=v;++C);if(w[C].id!=v)throw"Bad ColumnRowUIDMapArchive";var _=zu(w[C].messages[0].data);_[1]=[],_[2]=[],_[3]=[];for(var x=0;x<=r.e.c;++x){var E=[];E[1]=E[2]=[{type:0,data:ju(x+420690)}],_[1].push({type:2,data:Bu(E)}),_[2].push({type:0,data:ju(x)}),_[3].push({type:0,data:ju(x)})}_[4]=[],_[5]=[],_[6]=[];for(var S=0;S<=r.e.r;++S)(E=[])[1]=E[2]=[{type:0,data:ju(S+726270)}],_[4].push({type:2,data:Bu(E)}),_[5].push({type:0,data:ju(S)}),_[6].push({type:0,data:ju(S)});w[C].messages[0].data=Bu(_),b.content=Qu(qu(w)),b.size=b.content.length,delete y[46];var P=zu(y[4][0].data);P[7][0].data=ju(r.e.r+1);var O=Ku(zu(P[1][0].data)[2][0].data);if((w=Uu($u((b=Pe.find(u,a[O].location)).content)))[0].id!=O)throw"Bad HeaderStorageBucket";var T=zu(w[0].messages[0].data);for(S=0;S<i.length;++S){var k=zu(T[2][0].data);k[1][0].data=ju(S),k[4][0].data=ju(i[S].length),T[2][S]={type:T[2][0].type,data:Bu(k)}}w[0].messages[0].data=Bu(T),b.content=Qu(qu(w)),b.size=b.content.length;var A=Ku(P[2][0].data);if((w=Uu($u((b=Pe.find(u,a[A].location)).content)))[0].id!=A)throw"Bad HeaderStorageBucket";for(T=zu(w[0].messages[0].data),x=0;x<=r.e.c;++x)(k=zu(T[2][0].data))[1][0].data=ju(x),k[4][0].data=ju(r.e.r+1),T[2][x]={type:T[2][0].type,data:Bu(k)};w[0].messages[0].data=Bu(T),b.content=Qu(qu(w)),b.size=b.content.length;var I=Ku(P[4][0].data);!function(){for(var e,t=Pe.find(u,a[I].location),n=Uu($u(t.content)),r=0;r<n.length;++r){var o=n[r];o.id==I&&(e=o)}var i=zu(e.messages[0].data);i[3]=[];var l=[];s.forEach(function(e,t){l[1]=[{type:0,data:ju(t)}],l[2]=[{type:0,data:ju(1)}],l[3]=[{type:2,data:Du(e)}],i[3].push({type:2,data:Bu(l)})}),e.messages[0].data=Bu(i);var c=Qu(qu(n));t.content=c,t.size=t.content.length}();var R=zu(P[3][0].data),M=R[1][0];delete R[2];var D=zu(M.data),L=Ku(D[2][0].data);!function(){for(var e,t=Pe.find(u,a[L].location),n=Uu($u(t.content)),o=0;o<n.length;++o){var l=n[o];l.id==L&&(e=l)}var c=zu(e.messages[0].data);delete c[6],delete R[7];var p=new Uint8Array(c[5][0].data);c[5]=[];for(var d=0,f=0;f<=r.e.r;++f){var h=zu(p);d+=tc(h,i[f],s),h[1][0].data=ju(f),c[5].push({data:Bu(h),type:2})}c[1]=[{type:0,data:ju(r.e.c+1)}],c[2]=[{type:0,data:ju(r.e.r+1)}],c[3]=[{type:0,data:ju(d)}],c[4]=[{type:0,data:ju(r.e.r+1)}],e.messages[0].data=Bu(c);var m=Qu(qu(n));t.content=m,t.size=t.content.length}(),M.data=Bu(D),P[3][0].data=Bu(R),y[4][0].data=Bu(P),p.messages[0].data=Bu(y);var N=Qu(qu(f));return d.content=N,d.size=d.content.length,u}(e,t):"xlsb"==t.bookType?function(e,t){Bs=1024,e&&!e.SSF&&(e.SSF=We(B)),e&&e.SSF&&(_e(),Ce(e.SSF),t.revssf=Re(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,qa?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=Gs.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};oc(t=t||{});var i=st(),s="",a=0;if(t.cellXfs=[],Ga(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),it(i,s="docProps/core.xml",eo(e.Props,t)),o.coreprops.push(s),$r(t.rels,2,s,Hr.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,it(i,s,oo(e.Props)),o.extprops.push(s),$r(t.rels,3,s,Hr.EXT_PROPS),e.Custprops!==e.Props&&ke(e.Custprops||{}).length>0&&(it(i,s="docProps/custom.xml",so(e.Custprops)),o.custprops.push(s),$r(t.rels,4,s,Hr.CUST_PROPS)),a=1;a<=e.SheetNames.length;++a){var c={"!id":{}},p=e.Sheets[e.SheetNames[a-1]];if((p||{})["!type"],it(i,s="xl/worksheets/sheet"+a+"."+n,jl(a-1,s,t,e,c)),o.sheets.push(s),$r(t.wbrels,-1,"worksheets/sheet"+a+"."+n,Hr.WS[0]),p){var d=p["!comments"],f=!1,h="";d&&d.length>0&&(it(i,h="xl/comments"+a+"."+n,Fl(d,h,t)),o.comments.push(h),$r(c,-1,"../comments"+a+"."+n,Hr.CMNT),f=!0),p["!legacy"]&&f&&it(i,"xl/drawings/vmlDrawing"+a+".vml",Hs(a,p["!comments"])),delete p["!comments"],delete p["!legacy"]}c["!id"].rId1&&it(i,Ur(s),Wr(c))}return null!=t.Strings&&t.Strings.length>0&&(it(i,s="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?qi:Hi)(e,n)}(t.Strings,s,t)),o.strs.push(s),$r(t.wbrels,-1,"sharedStrings."+n,Hr.SST)),it(i,s="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?Nl:Ml)(e,n)}(e,s,t)),o.workbooks.push(s),$r(t.rels,1,s,Hr.WB),it(i,s="xl/theme/theme1.xml",Ns(e.Themes,t)),o.themes.push(s),$r(t.wbrels,-1,"theme/theme1.xml",Hr.THEME),it(i,s="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?Ps:ys)(e,n)}(e,s,t)),o.styles.push(s),$r(t.wbrels,-1,"styles."+n,Hr.STY),e.vbaraw&&r&&(it(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),$r(t.wbrels,-1,"vbaProject.bin",Hr.VBA)),it(i,s="xl/metadata."+n,(".bin"===s.slice(-4)?Fs:zs)()),o.metadata.push(s),$r(t.wbrels,-1,"metadata."+n,Hr.XLMETA),it(i,"[Content_Types].xml",Br(o,t)),it(i,"_rels/.rels",Wr(t.rels)),it(i,"xl/_rels/workbook."+n+".rels",Wr(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):function(e,t){Bs=1024,e&&!e.SSF&&(e.SSF=We(B)),e&&e.SSF&&(_e(),Ce(e.SSF),t.revssf=Re(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,qa?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=Gs.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};oc(t=t||{});var i=st(),s="",a=0;if(t.cellXfs=[],Ga(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),it(i,s="docProps/core.xml",eo(e.Props,t)),o.coreprops.push(s),$r(t.rels,2,s,Hr.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,it(i,s,oo(e.Props)),o.extprops.push(s),$r(t.rels,3,s,Hr.EXT_PROPS),e.Custprops!==e.Props&&ke(e.Custprops||{}).length>0&&(it(i,s="docProps/custom.xml",so(e.Custprops)),o.custprops.push(s),$r(t.rels,4,s,Hr.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,a=1;a<=e.SheetNames.length;++a){var p={"!id":{}},d=e.Sheets[e.SheetNames[a-1]];if((d||{})["!type"],it(i,s="xl/worksheets/sheet"+a+"."+n,fl(a-1,t,e,p)),o.sheets.push(s),$r(t.wbrels,-1,"worksheets/sheet"+a+"."+n,Hr.WS[0]),d){var f=d["!comments"],h=!1,m="";if(f&&f.length>0){var g=!1;f.forEach(function(e){e[1].forEach(function(e){1==e.T&&(g=!0)})}),g&&(it(i,m="xl/threadedComments/threadedComment"+a+"."+n,Ws(f,c,t)),o.threadedcomments.push(m),$r(p,-1,"../threadedComments/threadedComment"+a+"."+n,Hr.TCMNT)),it(i,m="xl/comments"+a+"."+n,qs(f)),o.comments.push(m),$r(p,-1,"../comments"+a+"."+n,Hr.CMNT),h=!0}d["!legacy"]&&h&&it(i,"xl/drawings/vmlDrawing"+a+".vml",Hs(a,d["!comments"])),delete d["!comments"],delete d["!legacy"]}p["!id"].rId1&&it(i,Ur(s),Wr(p))}return null!=t.Strings&&t.Strings.length>0&&(it(i,s="xl/sharedStrings."+n,Hi(t.Strings,t)),o.strs.push(s),$r(t.wbrels,-1,"sharedStrings."+n,Hr.SST)),it(i,s="xl/workbook."+n,Ml(e)),o.workbooks.push(s),$r(t.rels,1,s,Hr.WB),it(i,s="xl/theme/theme1.xml",Ns(e.Themes,t)),o.themes.push(s),$r(t.wbrels,-1,"theme/theme1.xml",Hr.THEME),it(i,s="xl/styles."+n,ys(e,t)),o.styles.push(s),$r(t.wbrels,-1,"styles."+n,Hr.STY),e.vbaraw&&r&&(it(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),$r(t.wbrels,-1,"vbaProject.bin",Hr.VBA)),it(i,s="xl/metadata."+n,zs()),o.metadata.push(s),$r(t.wbrels,-1,"metadata."+n,Hr.XLMETA),c.length>1&&(it(i,s="xl/persons/person.xml",function(e){var t=[ut,Ut("personList",null,{xmlns:Gt,"xmlns:x":Xt[0]}).replace(/[\/]>/,">")];return e.forEach(function(e,n){t.push(Ut("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),t.push("</personList>"),t.join("")}(c)),o.people.push(s),$r(t.wbrels,-1,"persons/person.xml",Hr.PEOPLE)),it(i,"[Content_Types].xml",Br(o,t)),it(i,"_rels/.rels",Wr(t.rels)),it(i,"xl/_rels/workbook.xml.rels",Wr(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t)}function cc(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=w(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function pc(e,t){var n=0;e:for(;n<e.length;)switch(e.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return Zl(e.slice(n),t);default:break e}return Ai.to_workbook(e,t)}function dc(e,t,n,r){return r?(n.type="string",Ai.to_workbook(e,n)):Ai.to_workbook(t,n)}function fc(e,t){p();var n=t||{};if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return fc(new Uint8Array(e),((n=We(n)).type="array",n));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!n.type&&(n.type="undefined"!=typeof Deno?"buffer":"array");var r,o=e,i=!1;if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),Ua={},n.dateNF&&(Ua.dateNF=n.dateNF),n.type||(n.type=C&&Buffer.isBuffer(e)?"buffer":"base64"),"file"==n.type&&(n.type=C?"buffer":"binary",o=function(e){if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e);t.open("r"),t.encoding="binary";var n=t.read();return t.close(),n}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||C||(n.type="array")),"string"==n.type&&(i=!0,n.type="binary",n.codepage=65001,o=function(e){return e.match(/[^\x00-\x7F]/)?Mt(e):e}(e)),"array"==n.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var s=new ArrayBuffer(3),a=new Uint8Array(s);if(a.foo="bar",!a.foo)return(n=We(n)).type="array",fc(T(o),n)}switch((r=cc(o,n))[0]){case 208:if(207===r[1]&&17===r[2]&&224===r[3]&&161===r[4]&&177===r[5]&&26===r[6]&&225===r[7])return function(e,t){return Pe.find(e,"EncryptedPackage")?lc(e,t):lu(e,t)}(Pe.read(o,n),n);break;case 9:if(r[1]<=8)return lu(o,n);break;case 60:return Zl(o,n);case 73:if(73===r[1]&&42===r[2]&&0===r[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===r[1])return function(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var o=Oi.to_workbook(e,n);return n.WTF=r,o}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return Ai.to_workbook(e,t)}}(o,n);break;case 84:if(65===r[1]&&66===r[2]&&76===r[3])return Ti.to_workbook(o,n);break;case 80:return 75===r[1]&&r[2]<9&&r[3]<9?function(e,t){var n=e,r=t||{};return r.type||(r.type=C&&Buffer.isBuffer(e)?"buffer":"base64"),ac(at(n,r),r)}(o,n):dc(e,o,n,i);case 239:return 60===r[3]?Zl(o,n):dc(e,o,n,i);case 255:if(254===r[1])return function(e,t){var n=e;return"base64"==t.type&&(n=w(n)),n=h.utils.decode(1200,n.slice(2),"str"),t.type="binary",pc(n,t)}(o,n);if(0===r[1]&&2===r[2]&&0===r[3])return Ii.to_workbook(o,n);break;case 0:if(0===r[1]){if(r[2]>=2&&0===r[3])return Ii.to_workbook(o,n);if(0===r[2]&&(8===r[3]||9===r[3]))return Ii.to_workbook(o,n)}break;case 3:case 131:case 139:case 140:return Pi.to_workbook(o,n);case 123:if(92===r[1]&&114===r[2]&&116===r[3])return ts.to_workbook(o,n);break;case 10:case 13:case 32:return function(e,t){var n="",r=cc(e,t);switch(t.type){case"base64":n=w(e);break;case"binary":n=e;break;case"buffer":n=e.toString("binary");break;case"array":n=qe(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]&&(n=Rt(n)),t.type="binary",pc(n,t)}(o,n);case 137:if(80===r[1]&&78===r[2]&&71===r[3])throw new Error("PNG Image File is not a spreadsheet")}return Si.indexOf(r[0])>-1&&r[2]<=12&&r[3]<=31?Pi.to_workbook(o,n):dc(e,o,n,i)}function hc(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Te(t.file,Pe.write(e,{type:C?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Pe.write(e,t)}function mc(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return b(Mt(r));case"binary":return Mt(r);case"string":return e;case"file":return Te(t.file,r,"utf8");case"buffer":return C?_(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):mc(r,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function gc(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?b(n):"string"==t.type?Rt(n):n;case"file":return Te(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function yc(e,t){p(),function(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,r,o=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=o,r=!!e.vbaraw,t.forEach(function(e,o){Il(e);for(var i=0;i<o;++i)if(e==t[i])throw new Error("Duplicate Sheet Name: "+e);if(r){var s=n&&n[o]&&n[o].CodeName||e;if(95==s.charCodeAt(0)&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}});for(var i=0;i<e.SheetNames.length;++i)Za(e.Sheets[e.SheetNames[i]],e.SheetNames[i],i)}(e);var n=We(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=yc(e,n);return n.type="array",P(r)}var o=0;if(n.sheet&&(o="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return mc(tu(e,n),n);case"slk":case"sylk":return mc(Oi.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return mc(wu(e.Sheets[e.SheetNames[o]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return b(e);case"binary":case"string":return e;case"file":return Te(t.file,e,"binary");case"buffer":return C?_(e,"binary"):e.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}(Ec(e.Sheets[e.SheetNames[o]],n),n);case"csv":return mc(xc(e.Sheets[e.SheetNames[o]],n),n,"\ufeff");case"dif":return mc(Ti.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return gc(Pi.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return mc(Ai.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return mc(ts.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return mc(ki.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return mc(Iu(e,n),n);case"wk1":return gc(Ii.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return gc(Ii.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),gc(yu(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return hc(function(e,t){var n=t||{},r=Pe.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return Pe.utils.cfb_add(r,o,yu(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],o=[],i=[],s=0,a=Ae(Ir,"n"),l=Ae(Rr,"n");if(e.Props)for(n=ke(e.Props),s=0;s<n.length;++s)(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Props[n[s]]]);if(e.Custprops)for(n=ke(e.Custprops),s=0;s<n.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},n[s])||(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Custprops[n[s]]]);var u=[];for(s=0;s<i.length;++s)_o.indexOf(i[s][0])>-1||no.indexOf(i[s][0])>-1||null!=i[s][1]&&u.push(i[s]);o.length&&Pe.utils.cfb_add(t,"/SummaryInformation",Po(o,su,l,Rr)),(r.length||u.length)&&Pe.utils.cfb_add(t,"/DocumentSummaryInformation",Po(r,au,a,Ir,u.length?u:null,"05d5cdd59c2e1b10939708002b2cf9ae"))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach(function(n,r){if(0!=r){var o=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&Pe.utils.cfb_add(e,o,t.FileIndex[r].content)}})}(r,Pe.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var n=We(t||{});return function(e,t){var n={},r=C?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?Pe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(P(o))}return t.password&&"undefined"!=typeof encrypt_agile?hc(encrypt_agile(o,t.password),t):"file"===t.type?Te(t.file,o):"string"==t.type?Rt(o):o}(uc(e,n),n)}(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function vc(e,t,n){var r=n||{};return r.type="file",r.file=t,function(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}}(r),yc(e,r)}function bc(e,t,n,r,o,i,s,a){var l=Wn(n),u=a.defval,c=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),p=!0,d=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(e){d.__rowNum__=n}else d.__rowNum__=n;if(!s||e[n])for(var f=t.s.c;f<=t.e.c;++f){var h=s?e[n][f]:e[r[f]+l];if(void 0!==h&&void 0!==h.t){var m=h.v;switch(h.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+h.t)}if(null!=i[f]){if(null==m)if("e"==h.t&&null===m)d[i[f]]=null;else if(void 0!==u)d[i[f]]=u;else{if(!c||null!==m)continue;d[i[f]]=null}else d[i[f]]=c&&("n"!==h.t||"n"===h.t&&!1!==a.rawNumbers)?m:Jn(h,m,a);null!=m&&(p=!1)}}else{if(void 0===u)continue;null!=i[f]&&(d[i[f]]=u)}}return{row:d,isempty:p}}function wc(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,o=1,i=[],s=0,a="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=null!=u.range?u.range:e["!ref"];switch(1===u.header?r=1:"A"===u.header?r=2:Array.isArray(u.header)?r=3:null==u.header&&(r=0),typeof c){case"string":l=Xn(c);break;case"number":(l=Xn(e["!ref"])).s.r=c;break;default:l=c}r>0&&(o=0);var p=Wn(l.s.r),d=[],f=[],h=0,m=0,g=Array.isArray(e),y=l.s.r,v=0,b={};g&&!e[y]&&(e[y]=[]);var w=u.skipHidden&&e["!cols"]||[],C=u.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(w[v]||{}).hidden)switch(d[v]=Qn(v),n=g?e[y][v]:e[d[v]+p],r){case 1:i[v]=v-l.s.c;break;case 2:i[v]=d[v];break;case 3:i[v]=u.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),a=s=Jn(n,null,u),m=b[s]||0){do{a=s+"_"+m++}while(b[a]);b[s]=m,b[a]=1}else b[s]=1;i[v]=a}for(y=l.s.r+o;y<=l.e.r;++y)if(!(C[y]||{}).hidden){var _=bc(e,l,y,d,r,i,g,u);(!1===_.isempty||(1===r?!1!==u.blankrows:u.blankrows))&&(f[h++]=_.row)}return f.length=h,f}var Cc=/"/g;function _c(e,t,n,r,o,i,s,a){for(var l=!0,u=[],c="",p=Wn(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var f=a.dense?(e[n]||[])[d]:e[r[d]+p];if(null==f)c="";else if(null!=f.v){l=!1,c=""+(a.rawNumbers&&"n"==f.t?f.v:Jn(f,null,a));for(var h=0,m=0;h!==c.length;++h)if((m=c.charCodeAt(h))===o||m===i||34===m||a.forceQuotes){c='"'+c.replace(Cc,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==f.f||f.F?c="":(l=!1,(c="="+f.f).indexOf(",")>=0&&(c='"'+c.replace(Cc,'""')+'"'));u.push(c)}return!1===a.blankrows&&l?null:u.join(s)}function xc(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=Xn(e["!ref"]),i=void 0!==r.FS?r.FS:",",s=i.charCodeAt(0),a=void 0!==r.RS?r.RS:"\n",l=a.charCodeAt(0),u=new RegExp(("|"==i?"\\|":i)+"+$"),c="",p=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],h=o.s.c;h<=o.e.c;++h)(d[h]||{}).hidden||(p[h]=Qn(h));for(var m=0,g=o.s.r;g<=o.e.r;++g)(f[g]||{}).hidden||null!=(c=_c(e,o,g,p,s,l,i,r))&&(r.strip&&(c=c.replace(u,"")),(c||!1!==r.blankrows)&&n.push((m++?a:"")+c));return delete r.dense,n.join("")}function Ec(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=xc(e,t);return n}function Sc(e,t,n){var r,o=n||{},i=+!o.skipHeader,s=e||{},a=0,l=0;if(s&&null!=o.origin)if("number"==typeof o.origin)a=o.origin;else{var u="string"==typeof o.origin?Gn(o.origin):o.origin;a=u.r,l=u.c}var c={s:{c:0,r:0},e:{c:l,r:a+t.length-1+i}};if(s["!ref"]){var p=Xn(s["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),-1==a&&(a=p.e.r+1,c.e.r=a+t.length-1+i)}else-1==a&&(a=0,c.e.r=t.length-1+i);var d=o.header||[],f=0;t.forEach(function(e,t){ke(e).forEach(function(n){-1==(f=d.indexOf(n))&&(d[f=d.length]=n);var u=e[n],c="z",p="",h=Yn({c:l+f,r:a+t+i});r=Pc(s,h),!u||"object"!=typeof u||u instanceof Date?("number"==typeof u?c="n":"boolean"==typeof u?c="b":"string"==typeof u?c="s":u instanceof Date?(c="d",o.cellDates||(c="n",u=De(u)),p=o.dateNF||B[14]):null===u&&o.nullError&&(c="e",u=0),r?(r.t=c,r.v=u,delete r.w,delete r.R,p&&(r.z=p)):s[h]=r={t:c,v:u},p&&(r.z=p)):s[h]=u})}),c.e.c=Math.max(c.e.c,l+d.length-1);var h=Wn(a);if(i)for(f=0;f<d.length;++f)s[Qn(f+l)+h]={t:"s",v:d[f]};return s["!ref"]=Kn(c),s}function Pc(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=Gn(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Pc(e,Yn("number"!=typeof t?t:{r:t,c:n||0}))}function Oc(e,t,n,r){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var i=n.match(/(^.*?)(\d+)$/);o=i&&+i[2]||0;var s=i&&i[1]||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=s+o);++o);}if(Il(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Tc(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var kc={encode_col:Qn,encode_row:Wn,encode_cell:Yn,encode_range:Kn,decode_col:$n,decode_row:qn,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Gn,decode_range:Zn,format_cell:Jn,sheet_add_aoa:tr,sheet_add_json:Sc,sheet_add_dom:Cu,aoa_to_sheet:nr,json_to_sheet:function(e,t){return Sc(null,e,t)},table_to_sheet:_u,table_to_book:function(e,t){return er(_u(e,t),t)},sheet_to_csv:xc,sheet_to_txt:Ec,sheet_to_json:wc,sheet_to_html:wu,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var o,i=Xn(e["!ref"]),s="",a=[],l=[],u=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)a[o]=Qn(o);for(var c=i.s.r;c<=i.e.r;++c)for(s=Wn(c),o=i.s.c;o<=i.e.c;++o)if(n=a[o]+s,r="",void 0!==(t=u?(e[c]||[])[o]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l},sheet_to_row_object_array:wc,sheet_get_cell:Pc,book_new:function(){return{SheetNames:[],Sheets:{}}},book_append_sheet:Oc,book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Tc,cell_set_internal_link:function(e,t,n){return Tc(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:Xn(t),i="string"==typeof t?t:Kn(t),s=o.s.r;s<=o.e.r;++s)for(var a=o.s.c;a<=o.e.c;++a){var l=Pc(e,s,a);l.t="n",l.F=i,delete l.v,s==o.s.r&&a==o.s.c&&(l.f=n,r&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}}},80399(e){"use strict";e.exports=JSON.parse('["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]')}}]);
//# sourceMappingURL=803.1077b420869fd4795fcb.js.map