andoncloud-dashboard-toolkit 1.2.21 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/dist/graphql-request.d.ts +23285 -21739
- package/dist/helpers/sdk.d.ts +47 -45
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/operations/generated/index.d.ts +3 -0
- package/dist/operations/generated/mutations/index.d.ts +20 -0
- package/dist/operations/generated/queries/index.d.ts +25 -0
- package/dist/operations/generated/subscriptions/index.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +35 -34
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var e=require("react"),t=require("@mui/material"),n=require("@emotion/react"),r=require("react-dom"),i=require("prop-types"),o=require("react-i18next"),a=require("@mui/icons-material"),s=require("./assets/drag-icon.svg"),u=require("./assets/resize-icon.svg"),c=require("actioncable"),l=require("graphql-request"),d=require("andoncloud-sdk");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(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,t}var f=/*#__PURE__*/h(e),g=/*#__PURE__*/p(e),m=/*#__PURE__*/h(i),b=/*#__PURE__*/h(u),y=/*#__PURE__*/h(c);function I(){return I=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},I.apply(null,arguments)}function v(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function C(e,t){return t||(t=e.slice(0)),e.raw=t,e}var x={buttons:{paddingTop:function(e){return e.spacing(2)}},cancelButton:{marginRight:"10px"},popper:{".MuiTooltip-tooltip":{padding:"20px",fontSize:"14px",color:"rgba(0, 0, 0, 0.75)",borderRadius:"8px",backgroundColor:"white"},".MuiTooltip-arrow":{color:"white"}}},w=["children","confirmMessage","confirmButtonText","cancelButtonText","onCancel","onConfirm"],A=function(e){var n=e.children,r=e.confirmMessage,i=e.confirmButtonText,o=e.cancelButtonText,a=e.onCancel,s=e.onConfirm,u=v(e,w);return f.default.createElement(t.Tooltip,I({},u,{placement:"bottom-end",title:f.default.createElement(t.Box,null,f.default.createElement(t.Typography,null,r),f.default.createElement(t.Stack,{direction:"row",justifyContent:"flex-end",sx:x.buttons},f.default.createElement(t.Button,{color:"secondary",onClick:function(e){e.stopPropagation(),a()},sx:x.cancelButton},o),f.default.createElement(t.Button,{color:"error",onClick:function(e){e.stopPropagation(),s()}},i))),PopperProps:{sx:x.popper},arrow:!0}),n)};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 N(e){var t=function(e){if("object"!=T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}function S(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(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?E(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(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}function O(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function G(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||O(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 R(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t.includes(n=o[r])||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function M(){return M=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},M.apply(null,arguments)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(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,N(r.key),r)}}function P(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}function F(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)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Y=function(){return!!e})()}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(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 X(e)}function H(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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.")}()}const j=Math.min,U=Math.max,J=Math.round,z=Math.floor,Q=e=>({x:e,y:e});function q(e){return ee(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $(e){var t;return null==(t=(ee(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ee(e){return e instanceof Node||e instanceof K(e).Node}function te(e){return e instanceof Element||e instanceof K(e).Element}function ne(e){return e instanceof HTMLElement||e instanceof K(e).HTMLElement}function re(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof K(e).ShadowRoot)}function ie(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function oe(e){return K(e).getComputedStyle(e)}function ae(e){const t=function(e){if("html"===q(e))return e;const t=e.assignedSlot||e.parentNode||re(e)&&e.host||$(e);return re(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(q(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&ie(t)?t:ae(t)}function se(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=ae(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=K(i);if(o){const e=ue(a);return t.concat(a,a.visualViewport||[],ie(i)?i:[],e&&n?se(e):[])}return t.concat(i,se(i,[],n))}function ue(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ce(e){return te(e)?e:e.contextElement}function le(e){const t=ce(e);if(!ne(t))return Q(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ne(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=J(n)!==o||J(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t);let a=(o?J(n.width):n.width)/r,s=(o?J(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const de=/*#__PURE__*/Q(0);function he(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=ce(e);let a=Q(1);t&&(r?te(r)&&(a=le(r)):a=le(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==K(e))&&t}(o,n,r)?function(e){const t=K(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:de}(o):Q(0);let u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,d=i.height/a.y;if(o){const e=K(o),t=r&&te(r)?K(r):r;let n=e,i=ue(n);for(;i&&r&&t!==n;){const e=le(i),t=i.getBoundingClientRect(),r=oe(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,d*=e.y,u+=o,c+=a,n=K(i),i=ue(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:l,height:d,x:u,y:c})}var pe=e.useLayoutEffect,fe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ge=function(){};function me(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(me(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ye=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===T(e)&&null!==e?[e]:[]},Ie=function(e){return D({},R(e,fe))},ve=function(e,t,n){var r=e.cx,i=e.getClassNames,o=e.className;return{css:(0,e.getStyles)(t,e),className:r(null!=n?n:{},i(t,e),o)}};function Ce(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xe(e){return Ce(e)?window.pageYOffset:e.scrollTop}function we(e,t){Ce(e)?window.scrollTo(0,t):e.scrollTop=t}function Ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ge,i=xe(e),o=t-i,a=0;!function t(){var s,u=o*((s=(s=a+=10)/n-1)*s*s+1)+i;we(e,u),a<n?window.requestAnimationFrame(t):r(e)}()}function Te(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?we(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&we(e,Math.max(t.offsetTop-i,0))}function Ne(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Se=!1,Ee="undefined"!=typeof window?window:{};Ee.addEventListener&&Ee.removeEventListener&&(Ee.addEventListener("p",ge,{get passive(){return Se=!0}}),Ee.removeEventListener("p",ge,!1));var De=Se;function ke(e){return null!=e}function Oe(e,t,n){return e?t:n}var Ge,Re,_e,Me=["children","innerProps"],We=["children","innerProps"],Be=function(e){return"auto"===e?"bottom":e},Pe=/*#__PURE__*/e.createContext(null),Ve=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=(e.useContext(Pe)||{}).setPortalPlacement,l=e.useRef(null),d=G(e.useState(i),2),h=d[0],p=d[1],f=G(e.useState(null),2),g=f[0],m=f[1],b=u.spacing.controlHeight;return pe(function(){var e=l.current;if(e){var t="fixed"===a,n=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l,d=u.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,f=h.height,g=h.top,m=n.offsetParent.getBoundingClientRect().top,b=a||Ce(l=u)?window.innerHeight:l.clientHeight,y=xe(u),I=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),C=m-v,x=b-g,w=C+y,A=d-y-g,T=p-b+y+I,N=y+g-v,S=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(A>=f&&!a)return o&&Ae(u,T,S),{placement:"bottom",maxHeight:t};if(!a&&A>=r||a&&x>=r)return o&&Ae(u,T,S),{placement:"bottom",maxHeight:a?x-I:A-I};if("auto"===i||a){var E=t,D=a?C:w;return D>=r&&(E=Math.min(D-I-s,t)),{placement:"top",maxHeight:E}}if("bottom"===i)return o&&we(u,T),{placement:"bottom",maxHeight:t};break;case"top":if(C>=f)return{placement:"top",maxHeight:t};if(w>=f&&!a)return o&&Ae(u,N,S),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&C>=r){var k=t;return(!a&&w>=r||a&&C>=r)&&(k=a?C-v:w-v),o&&Ae(u,N,S),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});p(n.maxHeight),m(n.placement),null==c||c(n.placement)}},[i,o,a,s,r,c,b]),n({ref:l,placerProps:D(D({},t),{},{placement:g||Be(o),maxHeight:h})})},Fe=function(e,t){var n=e.theme,r=n.spacing.baseUnit;return D({textAlign:"center"},t?{}:{color:n.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Le=Fe,Ye=Fe,Xe=["size"],Ze=["innerProps","isRtl","size"],He="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcG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9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},je=function(e){var t=e.size,r=R(e,Xe);return n.jsx("svg",M({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:He},r))},Ue=function(e){return n.jsx(je,M({size:20},e),n.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"}))},Je=function(e){return n.jsx(je,M({size:20},e),n.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"}))},ze=function(e,t){var n=e.isFocused,r=e.theme,i=r.colors;return D({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit,":hover":{color:n?i.neutral80:i.neutral40}})},Qe=ze,qe=ze,Ke=n.keyframes(Ge||(Re=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],_e||(_e=Re.slice(0)),Ge=Object.freeze(Object.defineProperties(Re,{raw:{value:Object.freeze(_e)}})))),$e=function(e){var t=e.delay,r=e.offset;return n.jsx("span",{css:/*#__PURE__*/n.css({animation:"".concat(Ke," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10g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+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},et=["data"],tt=["innerRef","isDisabled","isHidden","inputClassName"],nt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},rt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":D({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},nt)},it=function(e){return D({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},nt)},ot=function(e){return n.jsx("div",e.innerProps,e.children)},at={ClearIndicator:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||n.jsx(Ue,null))},Control:function(e){var t=e.children,r=e.isDisabled,i=e.innerProps;return n.jsx("div",M({ref:e.innerRef},ve(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":e.isFocused,"control--menu-is-open":e.menuIsOpen}),i,{"aria-disabled":r||void 0}),t)},DropdownIndicator:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||n.jsx(Je,null))},DownChevron:Je,CrossIcon:Ue,Group:function(e){var t=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,c=e.label,l=e.theme,d=e.selectProps;return n.jsx("div",M({},ve(e,"group",{group:!0}),u),n.jsx(a,M({},s,{selectProps:d,theme:l,getStyles:i,getClassNames:o,cx:r}),c),n.jsx("div",null,t))},GroupHeading:function(e){var t=R(Ie(e),et);return n.jsx("div",M({},ve(e,"groupHeading",{"group-heading":!0}),t))},IndicatorsContainer:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"indicatorsContainer",{indicators:!0}),r),t)},IndicatorSeparator:function(e){return n.jsx("span",M({},e.innerProps,ve(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,r=e.value,i=Ie(e),o=i.innerRef,a=i.isDisabled,s=i.isHidden,u=i.inputClassName,c=R(i,tt);return n.jsx("div",M({},ve(e,"input",{"input-container":!0}),{"data-value":r||""}),n.jsx("input",M({className:t({input:!0},u),ref:o,style:it(s),disabled:a},c)))},LoadingIndicator:function(e){var t=e.innerProps,r=e.isRtl,i=e.size,o=void 0===i?4:i,a=R(e,Ze);return n.jsx("div",M({},ve(D(D({},a),{},{innerProps:t,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),n.jsx($e,{delay:0,offset:r}),n.jsx($e,{delay:160,offset:!0}),n.jsx($e,{delay:320,offset:!r}))},Menu:function(e){var t=e.children,r=e.innerRef,i=e.innerProps;return n.jsx("div",M({},ve(e,"menu",{menu:!0}),{ref:r},i),t)},MenuList:function(e){var t=e.children,r=e.innerProps,i=e.innerRef;return n.jsx("div",M({},ve(e,"menuList",{"menu-list":!0,"menu-list--is-multi":e.isMulti}),{ref:i},r),t)},MenuPortal:function(t){var i=t.appendTo,o=t.children,a=t.controlElement,s=t.innerProps,u=t.menuPlacement,c=t.menuPosition,l=e.useRef(null),d=e.useRef(null),h=G(e.useState(Be(u)),2),p=h[0],f=h[1],g=e.useMemo(function(){return{setPortalPlacement:f}},[]),m=G(e.useState(null),2),b=m[0],y=m[1],I=e.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[p]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||y({offset:n,rect:e})}},[a,c,p,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);pe(function(){I()},[I]);var v=e.useCallback(function(){"function"==typeof d.current&&(d.current(),d.current=null),a&&l.current&&(d.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ce(e),l=i||o?[...c?se(c):[],...se(t)]:[];l.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const i=$(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();const{left:c,top:l,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const p={rootMargin:-z(l)+"px "+-z(i.clientWidth-(c+d))+"px "+-z(i.clientHeight-(l+h))+"px "+-z(c)+"px",threshold:U(0,j(1,u))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!f)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(g,{...p,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),o}(c,n):null;let h,p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!u&&f.observe(c),f.observe(t));let g=u?he(e):null;return u&&function t(){const r=he(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(h)}}(a,l.current,I,{elementResize:"ResizeObserver"in window}))},[a,I]);pe(function(){v()},[v]);var C=e.useCallback(function(e){l.current=e,v()},[v]);if(!i&&"fixed"!==c||!b)return null;var x=n.jsx("div",M({ref:C},ve(D(D({},t),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),o);return n.jsx(Pe.Provider,{value:g},i?/*#__PURE__*/r.createPortal(x,i):x)},LoadingMessage:function(e){var t=e.children,r=void 0===t?"Loading...":t,i=e.innerProps,o=R(e,We);return n.jsx("div",M({},ve(D(D({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},NoOptionsMessage:function(e){var t=e.children,r=void 0===t?"No options":t,i=e.innerProps,o=R(e,Me);return n.jsx("div",M({},ve(D(D({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},MultiValue:function(e){var t=e.children,r=e.components,i=e.data,o=e.innerProps,a=e.removeProps,s=e.selectProps,u=r.Label,c=r.Remove;return n.jsx(r.Container,{data:i,innerProps:D(D({},ve(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":e.isDisabled})),o),selectProps:s},n.jsx(u,{data:i,innerProps:D({},ve(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),n.jsx(c,{data:i,innerProps:D(D({},ve(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ot,MultiValueLabel:ot,MultiValueRemove:function(e){var t=e.children;return n.jsx("div",M({role:"button"},e.innerProps),t||n.jsx(Ue,{size:14}))},Option:function(e){var t=e.children,r=e.isDisabled,i=e.innerRef,o=e.innerProps;return n.jsx("div",M({},ve(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":e.isFocused,"option--is-selected":e.isSelected}),{ref:i,"aria-disabled":r},o),t)},Placeholder:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"placeholder",{placeholder:!0}),r),t)},SelectContainer:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"container",{"--is-disabled":e.isDisabled,"--is-rtl":e.isRtl}),r),t)},SingleValue:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"singleValue",{"single-value":!0,"single-value--is-disabled":e.isDisabled}),r),t)},ValueContainer:function(e){var t=e.children,r=e.innerProps;return n.jsx("div",M({},ve(e,"valueContainer",{"value-container":!0,"value-container--is-multi":e.isMulti,"value-container--has-value":e.hasValue}),r),t)}},st=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ut(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(i=t[n])||st(r)&&st(i)))return!1;var r,i;return!0}for(var ct="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},lt=function(e){return n.jsx("span",M({css:ct},e))},dt={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.isInitialFocus;switch(e.context){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.label,n=void 0===t?"":t,r=e.labels,i=e.isDisabled;switch(e.action){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(n,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(l(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",h="".concat(u?" selected":"").concat(d);return"".concat(o).concat(h,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue;return"".concat(e.resultsMessage).concat(t?" for search term "+t:"",".")}},ht=function(t){var r=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,s=t.isFocused,u=t.selectValue,c=t.selectProps,l=t.id,d=t.isAppleDevice,h=c.ariaLiveMessages,p=c.getOptionLabel,f=c.inputValue,g=c.isMulti,m=c.isOptionDisabled,b=c.isSearchable,y=c.menuIsOpen,I=c.options,v=c.screenReaderStatus,C=c.tabSelectsValue,x=c.isLoading,w=c["aria-label"],A=c["aria-live"],T=e.useMemo(function(){return D(D({},dt),h||{})},[h]),N=e.useMemo(function(){var e,t="";if(r&&T.onChange){var n=r.options,i=r.removedValues,o=r.removedValue||r.option||(e=r.value,Array.isArray(e)?null:e),a=o?p(o):"",s=n||i||void 0,c=s?s.map(p):[],l=D({isDisabled:o&&m(o,u),label:a,labels:c},r);t=T.onChange(l)}return t},[r,T,m,u,p]),S=e.useMemo(function(){var e="",t=i||o,n=!!(i&&u&&u.includes(i));if(t&&T.onFocus){var r={focused:t,label:p(t),isDisabled:m(t,u),isSelected:n,options:a,context:t===i?"menu":"value",selectValue:u,isAppleDevice:d};e=T.onFocus(r)}return e},[i,o,p,m,T,a,u,d]),E=e.useMemo(function(){var e="";if(y&&I.length&&!x&&T.onFilter){var t=v({count:a.length});e=T.onFilter({inputValue:f,resultsMessage:t})}return e},[a,f,y,T,I,v,x]),k="initial-input-focus"===(null==r?void 0:r.action),O=e.useMemo(function(){var e="";return T.guidance&&(e=T.guidance({"aria-label":w,context:o?"value":y?"menu":"input",isDisabled:i&&m(i,u),isMulti:g,isSearchable:b,tabSelectsValue:C,isInitialFocus:k})),e},[w,i,o,g,m,b,y,T,u,C,k]),G=n.jsx(e.Fragment,null,n.jsx("span",{id:"aria-selection"},N),n.jsx("span",{id:"aria-focused"},S),n.jsx("span",{id:"aria-results"},E),n.jsx("span",{id:"aria-guidance"},O));return n.jsx(e.Fragment,null,n.jsx(lt,{id:l},k&&G),n.jsx(lt,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!k&&G))},pt=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ft=new RegExp("["+pt.map(function(e){return e.letters}).join("")+"]","g"),gt={},mt=0;mt<pt.length;mt++)for(var bt=pt[mt],yt=0;yt<bt.letters.length;yt++)gt[bt.letters[yt]]=bt.base;var It=function(e){return e.replace(ft,function(e){return gt[e]})},vt=function(e,t){void 0===t&&(t=ut);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(It),Ct=function(e){return e.replace(/^\s+|\s+$/g,"")},xt=function(e){return"".concat(e.label," ").concat(e.value)},wt=["innerRef"];function At(e){var t=e.innerRef,r=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];var i=Object.entries(e).filter(function(e){var t=G(e,1);return!n.includes(t[0])});return i.reduce(function(e,t){var n=G(t,2);return e[n[0]]=n[1],e},{})}(R(e,wt),"onExited","in","enter","exit","appear");return n.jsx("input",M({ref:t},r,{css:/*#__PURE__*/n.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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var Tt=["boxSizing","height","overflow","paddingRight","position"],Nt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function St(e){e.preventDefault()}function Et(e){e.stopPropagation()}function Dt(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function kt(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ot=!("undefined"==typeof window||!window.document||!window.document.createElement),Gt=0,Rt={capture:!1,passive:!1},_t=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Mt="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2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ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Wt(t){var r=t.children,i=t.lockEnabled,o=t.captureEnabled,a=function(t){var n=t.isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,s=e.useRef(!1),u=e.useRef(!1),c=e.useRef(0),l=e.useRef(null),d=e.useCallback(function(e,t){if(null!==l.current){var n=l.current,c=n.scrollTop,d=n.scrollHeight,h=l.current,p=t>0,f=d-n.clientHeight-c,g=!1;f>t&&s.current&&(i&&i(e),s.current=!1),p&&u.current&&(a&&a(e),u.current=!1),p&&t>f?(r&&!s.current&&r(e),h.scrollTop=d,g=!0,s.current=!0):!p&&-t>c&&(o&&!u.current&&o(e),h.scrollTop=0,g=!0,u.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[r,i,o,a]),h=e.useCallback(function(e){d(e,e.deltaY)},[d]),p=e.useCallback(function(e){c.current=e.changedTouches[0].clientY},[]),f=e.useCallback(function(e){d(e,c.current-e.changedTouches[0].clientY)},[d]),g=e.useCallback(function(e){if(e){var t=!!De&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}},[f,p,h]),m=e.useCallback(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))},[f,p,h]);return e.useEffect(function(){if(n){var e=l.current;return g(e),function(){m(e)}}},[n,g,m]),function(e){l.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),s=function(t){var n=t.isEnabled,r=t.accountForScrollbars,i=void 0===r||r,o=e.useRef({}),a=e.useRef(null),s=e.useCallback(function(e){if(Ot){var t=document.body,n=t&&t.style;if(i&&Tt.forEach(function(e){o.current[e]=n&&n[e]}),i&&Gt<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Nt).forEach(function(e){n&&(n[e]=Nt[e])}),n&&(n.paddingRight="".concat(s,"px"))}t&&kt()&&(t.addEventListener("touchmove",St,Rt),e&&(e.addEventListener("touchstart",Dt,Rt),e.addEventListener("touchmove",Et,Rt))),Gt+=1}},[i]),u=e.useCallback(function(e){if(Ot){var t=document.body,n=t&&t.style;Gt=Math.max(Gt-1,0),i&&Gt<1&&Tt.forEach(function(e){n&&(n[e]=o.current[e])}),t&&kt()&&(t.removeEventListener("touchmove",St,Rt),e&&(e.removeEventListener("touchstart",Dt,Rt),e.removeEventListener("touchmove",Et,Rt)))}},[i]);return e.useEffect(function(){if(n){var e=a.current;return s(e),function(){u(e)}}},[n,s,u]),function(e){a.current=e}}({isEnabled:i});return n.jsx(e.Fragment,null,i&&n.jsx("div",{onClick:_t,css:Mt}),r(function(e){a(e),s(e)}))}var Bt="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Pt=function(e){return n.jsx("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:Bt,value:"",onChange:function(){}})};function Vt(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 Ft(){return Vt(/^Mac/i)}var Lt={clearIndicator:qe,container:function(e){return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:e.isDisabled?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors;return D({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:i.borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Qe,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.spacing;return D({label:"group",cursor:"default",display:"block"},t?{}:{color:n.colors.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return D({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:e.isDisabled?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return D(D({visibility:e.isDisabled?"hidden":"visible",transform:e.value?"translateZ(0)":""},rt),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.size,r=e.theme,i=r.colors;return D({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:e.isFocused?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit})},loadingMessage:Ye,menu:function(e,t){var n,r,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return D((S(n={label:"menu"},(r=e.placement)?{bottom:"top",top:"bottom"}[r]:"bottom","100%"),S(n,"position","absolute"),S(n,"width","100%"),S(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,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})},menuList:function(e,t){var n=e.theme.spacing.baseUnit;return D({maxHeight:e.maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(e){var t=e.rect;return{left:t.left,position:e.position,top:e.offset,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme;return D({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:n.colors.neutral10,borderRadius:n.borderRadius/2,margin:n.spacing.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=e.cropWithEllipsis;return D({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n.borderRadius/2,color:n.colors.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return D({alignItems:"center",display:"flex"},t?{}:{borderRadius:n.borderRadius/2,backgroundColor:e.isFocused?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Le,option:function(e,t){var n=e.isDisabled,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return D({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?a.primary:e.isFocused?a.primary25:"transparent",color:n?a.neutral20:r?a.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing;return D({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return D({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:e.isDisabled?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing;return D({alignItems:"center",display:e.isMulti&&e.hasValue&&e.selectProps.controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Yt={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}},Xt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ne(),captureMenuScroll:!Ne(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=D({ignoreCase:!0,ignoreAccents:!0,stringify:xt,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,u=a?Ct(t):t,c=a?Ct(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=vt(u),c=It(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),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 Zt(e,t,n,r){return{type:"option",data:t,isDisabled:Kt(e,t,n),isSelected:$t(e,t,n),label:Qt(e,t),value:qt(e,t),index:r}}function Ht(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return Zt(e,n,t,r)}).filter(function(t){return Jt(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Zt(e,n,t,r);return Jt(e,o)?o:void 0}).filter(ke)}function jt(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,H(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Ut(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,H(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 Jt(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!tn(e)||!o)&&en(e,{label:a,value:s,data:i},r)}var zt=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Qt=function(e,t){return e.getOptionLabel(t)},qt=function(e,t){return e.getOptionValue(t)};function Kt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function $t(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=qt(e,t);return n.some(function(t){return qt(e,t)===r})}function en(e,t,n){return!e.filterOption||e.filterOption(t,n)}var tn=function(e){var t=e.hideSelectedOptions;return void 0===t?e.isMulti:t},nn=1,rn=/*#__PURE__*/function(){F(n,e.Component);var t=function(e){var t=Y();return function(){var n,r=L(e);if(t){var i=L(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Z(this,n)}}(n);function n(e){var r;if(W(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:""},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.isAppleDevice=Ft()||Vt(/^iPhone/i)||Vt(/^iPad/i)||Ft()&&navigator.maxTouchPoints>1,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,i=n.onChange;t.name=n.name,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value",prevInputValue:i.inputValue}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(H(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),a=Oe(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Oe(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],i=t.slice(0,t.length-1),o=Oe(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return zt(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Ut(Ht(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 be.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Qt(r.props,e)},r.getOptionValue=function(e){return qt(r.props,e)},r.getStyles=function(e,t){var n=Lt[e](t,r.props.unstyled);n.boxSizing="border-box";var i=r.props.styles[e];return i?i(n,t):n},r.getClassNames=function(e,t){var n,i;return null===(n=(i=r.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,D(D({},at),e.components);var e},r.buildCategorizedOptions=function(){return Ht(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return jt(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:D({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,i=t.menuIsOpen;r.focusInput(),i?(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&&Ce(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 i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>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 tn(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.menuIsOpen,c=t.onKeyDown,l=t.tabSelectsValue,d=t.openMenuOnFocus,h=r.state,p=h.focusedOption,f=h.focusedValue,g=h.selectValue;if(!(t.isDisabled||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(f)r.removeValue(f);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!l||!p||d&&r.isOptionSelected(p,g))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!p)return;r.selectOption(p);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||++nn),r.state.selectValue=ye(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=zt(i,o[a])}return r}return P(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&&Te(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&t.menuIsOpen&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Te(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,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},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 i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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 i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Yt):D(D({},Yt),this.props.theme):Yt}},{key:"getCommonProps",value:function(){var e=this.selectOption,t=this.setValue,n=this.props,r=n.isMulti,i=n.isRtl,o=n.options;return{clearValue:this.clearValue,cx:this.cx,getStyles:this.getStyles,getClassNames:this.getClassNames,getValue:this.getValue,hasValue:this.hasValue(),isMulti:r,isRtl:i,options:o,selectOption:e,selectProps:n,setValue:t,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;return void 0===t?e.isMulti:t}},{key:"isOptionDisabled",value:function(e,t){return Kt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return $t(this.props,e,t)}},{key:"filterOption",value:function(e,t){return en(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){return"function"==typeof this.props.formatOptionLabel?this.props.formatOptionLabel(e,{context:t,inputValue:this.props.inputValue,selectValue:this.state.selectValue}):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,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,l=this.state,d=l.inputIsHidden,h=l.ariaSelection,p=this.commonProps,f=r||this.getElementId("input"),m=D(D(D({"aria-autocomplete":"list","aria-expanded":s,"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":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?/*#__PURE__*/g.createElement(c,M({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},m)):/*#__PURE__*/g.createElement(At,M({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ge,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,d=c.isDisabled,h=c.isMulti,p=c.inputValue,f=c.placeholder,m=this.state,b=m.selectValue,y=m.focusedValue,I=m.isFocused;if(!this.hasValue()||!l)return p?null:/*#__PURE__*/g.createElement(s,M({},u,{key:"placeholder",isDisabled:d,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),f);if(h)return b.map(function(t,a){var s=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));/*#__PURE__*/
|
|
2
|
-
return
|
|
3
|
-
return
|
|
4
|
-
return
|
|
5
|
-
return
|
|
6
|
-
return
|
|
7
|
-
return
|
|
8
|
-
return
|
|
9
|
-
return
|
|
10
|
-
return
|
|
11
|
-
return
|
|
12
|
-
return
|
|
13
|
-
return
|
|
14
|
-
return
|
|
15
|
-
return g.createElement(rn,M({ref:n},r))}),an=on;function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){S(e,t,n[t])})}return e}var un=function(e,t,n,r,i,o,a,s){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},cn=function(){function e(){W(this,e),S(this,"refs",{})}return P(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){return this.refs[arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection].sort(ln)}}]),e}();function ln(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function dn(e,t){return Object.keys(e).reduce(function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n},{})}var hn={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},pn=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function fn(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function gn(e,t){e.style["".concat(pn,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function mn(e,t){e.style["".concat(pn,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function bn(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function yn(e,t,n){return Math.max(e,Math.min(n,t))}function In(e){return"px"===e.substr(-2)?parseFloat(e):0}function vn(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Cn(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function xn(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:wn(e.parentNode,t,r)}}function An(e){var t=e.lockOffset,n=e.width,r=e.height,i=t,o=t,a="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);un(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=parseFloat(t),o=parseFloat(t),a=s[1]}return un(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",t),"%"===a&&(i=i*n/100,o=o*r/100),{x:i,y:o}}function Tn(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:Tn(e.parentNode):null}var Nn={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Sn(e){return null!=e.sortableHandle}var En=function(){function e(t,n){W(this,e),this.container=t,this.onScrollCallback=n}return P(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,i=e.maxTranslate,o=e.width,a=e.height,s={x:0,y:0},u={x:1,y:1},c=this.container,l=c.scrollTop,d=c.scrollLeft,h=0===l,p=0===d,f=c.scrollWidth-d-c.clientWidth==0;n.y>=i.y-a/2&&c.scrollHeight-l-c.clientHeight!=0?(s.y=1,u.y=10*Math.abs((i.y-a/2-n.y)/a)):n.x>=i.x-o/2&&!f?(s.x=1,u.x=10*Math.abs((i.x-o/2-n.x)/o)):n.y<=r.y+a/2&&!h?(s.y=-1,u.y=10*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+o/2&&!p&&(s.x=-1,u.x=10*Math.abs((n.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:u.x*s.x,top:u.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}(),Dn={axis:m.default.oneOf(["x","y","xy"]),contentWindow:m.default.any,disableAutoscroll:m.default.bool,distance:m.default.number,getContainer:m.default.func,getHelperDimensions:m.default.func,helperClass:m.default.string,helperContainer:m.default.oneOfType([m.default.func,"undefined"==typeof HTMLElement?m.default.any:m.default.instanceOf(HTMLElement)]),hideSortableGhost:m.default.bool,keyboardSortingTransitionDuration:m.default.number,lockAxis:m.default.string,lockOffset:m.default.oneOfType([m.default.number,m.default.string,m.default.arrayOf(m.default.oneOfType([m.default.number,m.default.string]))]),lockToContainerEdges:m.default.bool,onSortEnd:m.default.func,onSortMove:m.default.func,onSortOver:m.default.func,onSortStart:m.default.func,pressDelay:m.default.number,pressThreshold:m.default.number,keyCodes:m.default.shape({lift:m.default.arrayOf(m.default.number),drop:m.default.arrayOf(m.default.number),cancel:m.default.arrayOf(m.default.number),up:m.default.arrayOf(m.default.number),down:m.default.arrayOf(m.default.number)}),shouldCancelStart:m.default.func,transitionDuration:m.default.number,updateBeforeSortStart:m.default.func,useDragHandle:m.default.bool,useWindowAsScrollContainer:m.default.bool},kn={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},On={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:kn,shouldCancelStart:function(e){return-1!==[Nn.Input,Nn.Textarea,Nn.Select,Nn.Option,Nn.Button].indexOf(e.target.tagName)||!!bn(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},Gn=Object.keys(Dn),Rn=e.createContext({manager:{}}),_n={index:m.default.number.isRequired,collection:m.default.oneOfType([m.default.number,m.default.string]),disabled:m.default.bool},Mn=Object.keys(_n),Wn=function(t){var n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return i=n=function(){function n(){var t,r;W(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return S(X(X(r=Z(this,(t=L(n)).call.apply(t,[this].concat(o))))),"wrappedInstance",e.createRef()),r}return F(n,e.Component),P(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,i=e.index,o=r.findDOMNode(this);o.sortableInfo={collection:t,disabled:n,index:i,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){this.context.manager.remove(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection,this.ref)}},{key:"getWrappedInstance",value:function(){return un(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){return e.createElement(t,M({ref:o.withRef?this.wrappedInstance:null},dn(this.props,Mn)))}}]),n}(),S(n,"displayName",vn("sortableElement",t)),S(n,"contextType",Rn),S(n,"propTypes",_n),S(n,"defaultProps",{collection:0}),i}(function(e){var t=I({},e.innerProps,{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},style:{zIndex:1500}});return f.default.createElement(at.MultiValue,I({},e,{innerProps:t}))}),Bn=function(t){var n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return i=n=function(){function n(){var t,r;W(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return S(X(X(r=Z(this,(t=L(n)).call.apply(t,[this].concat(o))))),"wrappedInstance",e.createRef()),r}return F(n,e.Component),P(n,[{key:"componentDidMount",value:function(){r.findDOMNode(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return un(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){return e.createElement(t,M({ref:o.withRef?this.wrappedInstance:null},this.props))}}]),n}(),S(n,"displayName",vn("sortableHandle",t)),i}(function(e){return f.default.createElement(at.MultiValueLabel,I({},e))}),Pn=function(t){var n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return i=n=function(){function n(t){var r;W(this,n),S(X(X(r=Z(this,L(n).call(this,t)))),"state",{}),S(X(X(r)),"handleStart",function(e){var t=r.props,n=t.distance;if(2!==e.button&&!(0,t.shouldCancelStart)(e)){r.touched=!0,r.position=xn(e);var i=bn(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&r.nodeIsChild(i)&&!r.state.sorting){var o=i.sortableInfo,a=o.index,s=o.collection;if(o.disabled)return;if(r.props.useDragHandle&&!bn(e.target,Sn))return;r.manager.active={collection:s,index:a},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==Nn.Anchor||e.preventDefault(),n||(0===r.props.pressDelay?r.handlePress(e):r.pressTimer=setTimeout(function(){return r.handlePress(e)},r.props.pressDelay))}}}),S(X(X(r)),"nodeIsChild",function(e){return e.sortableInfo.manager===r.manager}),S(X(X(r)),"handleMove",function(e){var t=r.props,n=t.distance,i=t.pressThreshold;if(!r.state.sorting&&r.touched&&!r._awaitingUpdateBeforeSortStart){var o=xn(e),a={x:r.position.x-o.x,y:r.position.y-o.y},s=Math.abs(a.x)+Math.abs(a.y);r.delta=a,n||i&&!(s>=i)?n&&s>=n&&r.manager.isActive()&&r.handlePress(e):(clearTimeout(r.cancelTimer),r.cancelTimer=setTimeout(r.cancel,0))}}),S(X(X(r)),"handleEnd",function(){r.touched=!1,r.cancel()}),S(X(X(r)),"cancel",function(){r.state.sorting||(r.props.distance||clearTimeout(r.pressTimer),r.manager.active=null)}),S(X(X(r)),"handlePress",function(e){try{var t=r.manager.getActive(),n=function(){if(t){var n=function(){var t,n,i,c,g=h.sortableInfo.index,m={bottom:In((t=window.getComputedStyle(h)).marginBottom),left:In(t.marginLeft),right:In(t.marginRight),top:In(t.marginTop)},b=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:In(t.gridColumnGap),y:In(t.gridRowGap)}:{x:0,y:0}}(r.container),y=r.scrollContainer.getBoundingClientRect(),I=a({index:g,node:h,collection:p});if(r.node=h,r.margin=m,r.gridGap=b,r.width=I.width,r.height=I.height,r.marginOffset={x:r.margin.left+r.margin.right+r.gridGap.x,y:Math.max(r.margin.top,r.margin.bottom,r.gridGap.y)},r.boundingClientRect=h.getBoundingClientRect(),r.containerBoundingRect=y,r.index=g,r.newIndex=g,r.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},r.offsetEdge=wn(h,r.container),r.initialOffset=xn(f?sn({},e,{pageX:r.boundingClientRect.left,pageY:r.boundingClientRect.top}):e),r.initialScroll={left:r.scrollContainer.scrollLeft,top:r.scrollContainer.scrollTop},r.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},r.helper=r.helperContainer.appendChild((i=(n=h).querySelectorAll("input, textarea, select, canvas, [contenteditable]"),H((c=n.cloneNode(!0)).querySelectorAll("input, textarea, select, canvas, [contenteditable]")).forEach(function(e,t){"file"!==e.type&&(e.value=i[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===Nn.Canvas&&i[t].width>0&&i[t].height>0&&e.getContext("2d").drawImage(i[t],0,0)}),c)),fn(r.helper,{boxSizing:"border-box",height:"".concat(r.height,"px"),left:"".concat(r.boundingClientRect.left-m.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(r.boundingClientRect.top-m.top,"px"),width:"".concat(r.width,"px")}),f&&r.helper.focus(),u&&(r.sortableGhost=h,fn(h,{opacity:0,visibility:"hidden"})),r.minTranslate={},r.maxTranslate={},f){var v=d?{top:0,left:0,width:r.contentWindow.innerWidth,height:r.contentWindow.innerHeight}:r.containerBoundingRect,C=v.top,x=v.left,w=C+v.height,A=x+v.width;r.axis.x&&(r.minTranslate.x=x-r.boundingClientRect.left,r.maxTranslate.x=A-(r.boundingClientRect.left+r.width)),r.axis.y&&(r.minTranslate.y=C-r.boundingClientRect.top,r.maxTranslate.y=w-(r.boundingClientRect.top+r.height))}else r.axis.x&&(r.minTranslate.x=(d?0:y.left)-r.boundingClientRect.left-r.width/2,r.maxTranslate.x=(d?r.contentWindow.innerWidth:y.left+y.width)-r.boundingClientRect.left-r.width/2),r.axis.y&&(r.minTranslate.y=(d?0:y.top)-r.boundingClientRect.top-r.height/2,r.maxTranslate.y=(d?r.contentWindow.innerHeight:y.top+y.height)-r.boundingClientRect.top-r.height/2);s&&s.split(" ").forEach(function(e){return r.helper.classList.add(e)}),r.listenerNode=e.touches?e.target:r.contentWindow,f?(r.listenerNode.addEventListener("wheel",r.handleKeyEnd,!0),r.listenerNode.addEventListener("mousedown",r.handleKeyEnd,!0),r.listenerNode.addEventListener("keydown",r.handleKeyDown)):(hn.move.forEach(function(e){return r.listenerNode.addEventListener(e,r.handleSortMove,!1)}),hn.end.forEach(function(e){return r.listenerNode.addEventListener(e,r.handleSortEnd,!1)})),r.setState({sorting:!0,sortingIndex:g}),l&&l({node:h,index:g,collection:p,isKeySorting:f,nodes:r.manager.getOrderedRefs(),helper:r.helper},e),f&&r.keyMove(0)},i=r.props,o=i.axis,a=i.getHelperDimensions,s=i.helperClass,u=i.hideSortableGhost,c=i.updateBeforeSortStart,l=i.onSortStart,d=i.useWindowAsScrollContainer,h=t.node,p=t.collection,f=r.manager.isKeySorting,g=function(){if("function"==typeof c){r._awaitingUpdateBeforeSortStart=!0;var t=function(t,n){try{var r=Promise.resolve(c({collection:p,index:h.sortableInfo.index,node:h,isKeySorting:f},e)).then(function(){})}catch(e){return n(!0,e)}return r&&r.then?r.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}(0,function(e,t){if(r._awaitingUpdateBeforeSortStart=!1,e)throw t;return t});if(t&&t.then)return t.then(function(){})}}();return g&&g.then?g.then(n):n()}}();return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),S(X(X(r)),"handleSortMove",function(e){var t=r.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),r.updateHelperPosition(e),r.animateNodes(),r.autoscroll(),t&&t(e)}),S(X(X(r)),"handleSortEnd",function(e){var t=r.props,n=t.hideSortableGhost,i=t.onSortEnd,o=r.manager,a=o.active.collection,s=o.isKeySorting,u=r.manager.getOrderedRefs();r.listenerNode&&(s?(r.listenerNode.removeEventListener("wheel",r.handleKeyEnd,!0),r.listenerNode.removeEventListener("mousedown",r.handleKeyEnd,!0),r.listenerNode.removeEventListener("keydown",r.handleKeyDown)):(hn.move.forEach(function(e){return r.listenerNode.removeEventListener(e,r.handleSortMove)}),hn.end.forEach(function(e){return r.listenerNode.removeEventListener(e,r.handleSortEnd)}))),r.helper.parentNode.removeChild(r.helper),n&&r.sortableGhost&&fn(r.sortableGhost,{opacity:"",visibility:""});for(var c=0,l=u.length;c<l;c++){var d=u[c],h=d.node;d.edgeOffset=null,d.boundingClientRect=null,gn(h,null),mn(h,null),d.translate=null}r.autoScroller.clear(),r.manager.active=null,r.manager.isKeySorting=!1,r.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({collection:a,newIndex:r.newIndex,oldIndex:r.index,isKeySorting:s,nodes:u},e),r.touched=!1}),S(X(X(r)),"autoscroll",function(){var e=r.manager.isKeySorting;if(r.props.disableAutoscroll)r.autoScroller.clear();else{if(e){var t=sn({},r.translate),n=0,i=0;return r.axis.x&&(t.x=Math.min(r.maxTranslate.x,Math.max(r.minTranslate.x,r.translate.x)),n=r.translate.x-t.x),r.axis.y&&(t.y=Math.min(r.maxTranslate.y,Math.max(r.minTranslate.y,r.translate.y)),i=r.translate.y-t.y),r.translate=t,gn(r.helper,r.translate),r.scrollContainer.scrollLeft+=n,void(r.scrollContainer.scrollTop+=i)}r.autoScroller.update({height:r.height,maxTranslate:r.maxTranslate,minTranslate:r.minTranslate,translate:r.translate,width:r.width})}}),S(X(X(r)),"onAutoScroll",function(e){r.translate.x+=e.left,r.translate.y+=e.top,r.animateNodes()}),S(X(X(r)),"handleKeyDown",function(e){var t=e.keyCode,n=r.props,i=n.shouldCancelStart,o=n.keyCodes,a=sn({},kn,void 0===o?{}:o);r.manager.active&&!r.manager.isKeySorting||!(r.manager.active||a.lift.includes(t)&&!i(e)&&r.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(t)&&!r.manager.active?r.keyLift(e):a.drop.includes(t)&&r.manager.active?r.keyDrop(e):a.cancel.includes(t)?(r.newIndex=r.manager.active.index,r.keyDrop(e)):a.up.includes(t)?r.keyMove(-1):a.down.includes(t)&&r.keyMove(1))}),S(X(X(r)),"keyLift",function(e){var t=e.target,n=bn(t,function(e){return null!=e.sortableInfo}).sortableInfo,i=n.index,o=n.collection;r.initialFocusedNode=t,r.manager.isKeySorting=!0,r.manager.active={index:i,collection:o},r.handlePress(e)}),S(X(X(r)),"keyMove",function(e){var t=r.manager.getOrderedRefs(),n=r.newIndex+e,i=r.newIndex;if(!(n<0||n>t[t.length-1].node.sortableInfo.index)){r.prevIndex=i,r.newIndex=n;var o=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(r.newIndex,r.prevIndex,r.index),a=t.find(function(e){return e.node.sortableInfo.index===o}),s=a.node,u=r.containerScrollDelta,c=a.boundingClientRect||Cn(s,u),l=a.translate||{x:0,y:0},d=i<n;r.handleSortMove({pageX:c.left+l.x-u.left+(d&&r.axis.x?s.offsetWidth-r.width:0),pageY:c.top+l.y-u.top+(d&&r.axis.y?s.offsetHeight-r.height:0),ignoreTransition:0===e})}}),S(X(X(r)),"keyDrop",function(e){r.handleSortEnd(e),r.initialFocusedNode&&r.initialFocusedNode.focus()}),S(X(X(r)),"handleKeyEnd",function(e){r.manager.active&&r.keyDrop(e)}),S(X(X(r)),"isValidSortingTarget",function(e){var t=r.props.useDragHandle,n=e.target,i=bn(n,function(e){return null!=e.sortableInfo});return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(t?Sn(n):n.sortableInfo)});var i=new cn;return function(e){un(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(t),r.manager=i,r.wrappedInstance=e.createRef(),r.sortableContextValue={manager:i},r.events={end:r.handleEnd,move:r.handleMove,start:r.handleStart},r}return F(n,e.Component),P(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Tn(e.container)||e.container,e.autoScroller=new En(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return hn[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return hn[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,o=t.keyboardSortingTransitionDuration,a=void 0===o?t.transitionDuration:o,s=this.manager.isKeySorting,u=e.ignoreTransition,c=xn(e),l={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(l.y-=window.pageYOffset-this.initialWindowScroll.top,l.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=l,i){var d=function(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];un(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=G(i,2),a=o[1];return[An({height:t,lockOffset:o[0],width:n}),An({height:t,lockOffset:a,width:n})]}({height:this.height,lockOffset:r,width:this.width}),h=G(d,2),p=h[0],f=h[1],g={x:this.width/2-p.x,y:this.height/2-p.y},m={x:this.width/2-f.x,y:this.height/2-f.y};l.x=yn(this.minTranslate.x+g.x,this.maxTranslate.x-m.x,l.x),l.y=yn(this.minTranslate.y+g.y,this.maxTranslate.y-m.y,l.y)}"x"===n?l.y=0:"y"===n&&(l.x=0),s&&a&&!u&&mn(this.helper,a),gn(this.helper,l)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,i=this.containerScrollDelta,o=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+i.left,u=this.offsetEdge.top+this.translate.y+i.top,c=this.manager.isKeySorting,l=this.newIndex;this.newIndex=null;for(var d=0,h=a.length;d<h;d++){var p=a[d].node,f=p.sortableInfo.index,g=p.offsetWidth,m=p.offsetHeight,b={height:this.height>m?m/2:this.height/2,width:this.width>g?g/2:this.width/2},y=c&&f>this.index&&f<=l,I=c&&f<this.index&&f>=l,v={x:0,y:0},C=a[d].edgeOffset;C||(C=wn(p,this.container),a[d].edgeOffset=C,c&&(a[d].boundingClientRect=Cn(p,i)));var x=d<a.length-1&&a[d+1],w=d>0&&a[d-1];x&&!x.edgeOffset&&(x.edgeOffset=wn(x.node,this.container),c&&(x.boundingClientRect=Cn(x.node,i))),f!==this.index?(t&&mn(p,t),this.axis.x?this.axis.y?I||f<this.index&&(s+o.left-b.width<=C.left&&u+o.top<=C.top+b.height||u+o.top+b.height<=C.top)?(v.x=this.width+this.marginOffset.x,C.left+v.x>this.containerBoundingRect.width-b.width&&x&&(v.x=x.edgeOffset.left-C.left,v.y=x.edgeOffset.top-C.top),null===this.newIndex&&(this.newIndex=f)):(y||f>this.index&&(s+o.left+b.width>=C.left&&u+o.top+b.height>=C.top||u+o.top+b.height>=C.top+m))&&(v.x=-(this.width+this.marginOffset.x),C.left+v.x<this.containerBoundingRect.left+b.width&&w&&(v.x=w.edgeOffset.left-C.left,v.y=w.edgeOffset.top-C.top),this.newIndex=f):y||f>this.index&&s+o.left+b.width>=C.left?(v.x=-(this.width+this.marginOffset.x),this.newIndex=f):(I||f<this.index&&s+o.left<=C.left+b.width)&&(v.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=f)):this.axis.y&&(y||f>this.index&&u+o.top+b.height>=C.top?(v.y=-(this.height+this.marginOffset.y),this.newIndex=f):(I||f<this.index&&u+o.top<=C.top+b.height)&&(v.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=f))),gn(p,v),a[d].translate=v):n&&(this.sortableGhost=p,fn(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=l);var A=c?this.prevIndex:l;r&&this.newIndex!==A&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:A,isKeySorting:c,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return un(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?r.findDOMNode(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){return e.createElement(Rn.Provider,{value:this.sortableContextValue},e.createElement(t,M({ref:o.withRef?this.wrappedInstance:null},dn(this.props,Gn))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(),S(n,"displayName",vn("sortableList",t)),S(n,"defaultProps",On),S(n,"propTypes",Dn),i}(an),Vn={en:{translation:{"Are you sure you want to delete this widget?":"Are you sure you want to delete this widget?",Cancel:"Cancel",Delete:"Delete"}},pl:{translation:{"Are you sure you want to delete this widget?":"Czy na pewno chcesz usunąć ten widżet?",Cancel:"Anuluj",Delete:"Usuń"}}},Fn={root:{boxShadow:"none","& .react-resizable-handle":{width:"24px",height:"24px",borderRadius:"4px",background:function(e){return e.palette.primary.main+" url("+b.default+")"},backgroundRepeat:"no-repeat",backgroundSize:"50%",backgroundPosition:"50%","&:hover":{backgroundColor:function(e){return e.palette.primary.dark}}},"& .react-resizable-handle:after":{display:"none"}},header:{height:"40px"},dragIcon:{width:"30px",height:"30px",marginLeft:function(e){return"-"+e.spacing(1)},padding:"8px",borderRadius:"4px",background:function(e){return e.palette.primary.main},"&:hover":{cursor:"move",background:function(e){return e.palette.primary.dark}}},actionButtons:{height:"30px",marginTop:"-7px"},settingsButton:{color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopRightRadius:0,borderBottomRightRadius:0},infoButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:0},deleteButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopLeftRadius:0,borderBottomLeftRadius:0},content:{height:"calc(100% - 40px)",padding:0,background:"transparent",border:"1px solid rgba(255, 255, 255, 0.2)",borderTop:"none",borderRadius:"4px",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.25)","&:last-child":{paddingBottom:0}}},Ln=["children","title","Widget","id","url","wsUrl","lang","data","settings","openSettingsModal","onSettingsModalOpened","onSettingsModalClosed","onDelete","editMode","version"],Yn=f.default.forwardRef(function(n,r){var i=n.children,u=n.title,c=n.Widget,l=n.id,d=n.url,h=n.wsUrl,p=n.lang,g=n.data,m=n.settings,b=n.openSettingsModal,y=n.onSettingsModalOpened,C=n.onSettingsModalClosed,x=n.onDelete,w=n.editMode,T=n.version,N=v(n,Ln),S=e.useState(!1),E=S[0],D=S[1],k=e.useState(!1),O=k[0],G=k[1],R=o.useTranslation(),_=R.i18n,M=R.t;return e.useEffect(function(){for(var e="translation",t=0,n=Object.entries(Vn);t<n.length;t++){var r=n[t];_.addResources(r[0],e,r[1][e])}},[_]),f.default.createElement(t.Card,I({ref:r,sx:Fn.root},N),f.default.createElement(t.CardHeader,{avatar:w&&f.default.createElement(t.SvgIcon,{component:s.ReactComponent,className:"draggable-handle",sx:Fn.dragIcon,inheritViewBox:!0}),title:u,titleTypographyProps:{variant:"subtitle1"},action:w&&f.default.createElement(t.Stack,{direction:"row",sx:Fn.actionButtons},f.default.createElement(t.Button,{color:"secondary",sx:Fn.settingsButton,onClick:function(){y&&y()}},f.default.createElement(a.Settings,null)),T&&f.default.createElement(f.default.Fragment,null,f.default.createElement(t.Tooltip,{title:T},f.default.createElement(t.Button,{color:"secondary",sx:Fn.infoButton},f.default.createElement(a.Info,null)))),f.default.createElement(A,{open:O,confirmMessage:M("Are you sure you want to delete this widget?"),confirmButtonText:M("Delete"),cancelButtonText:M("Cancel"),onCancel:function(){return G(!1)},onConfirm:function(){try{var e=function(){D(!1)};D(!0),G(!1);var t=function(){if(x)return Promise.resolve(x()).then(function(){})}();return Promise.resolve(t&&t.then?t.then(e):e())}catch(e){return Promise.reject(e)}}},f.default.createElement(t.Button,{color:"secondary",sx:Fn.deleteButton,onClick:function(e){e.stopPropagation(),G(!0)},disabled:E},f.default.createElement(a.Delete,null)))),sx:Fn.header}),f.default.createElement(t.CardContent,{sx:Fn.content},f.default.createElement(c,{id:l,url:d,wsUrl:h,lang:p,data:g,settings:m,openSettingsModal:b,onSettingsModalOpened:y,onSettingsModalClosed:C,editMode:w})),w&&i)}),Xn=function(){return Xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xn.apply(this,arguments)};function Zn(e){return Zn="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},Zn(e)}"function"==typeof SuppressedError&&SuppressedError;var Hn="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function jn(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function Un(e,t){var n=e.locationOffset.column-1,r=zn(n)+e.body,i=t.line-1,o=t.line+(e.locationOffset.line-1),a=t.column+(1===t.line?n:0),s="".concat(e.name,":").concat(o,":").concat(a,"\n"),u=r.split(/\r\n|[\n\r]/g),c=u[i];if(c.length>120){for(var l=Math.floor(a/80),d=a%80,h=[],p=0;p<c.length;p+=80)h.push(c.slice(p,p+80));return s+Jn([["".concat(o),h[0]]].concat(h.slice(1,l+1).map(function(e){return["",e]}),[[" ",zn(d-1)+"^"],["",h[l+1]]]))}return s+Jn([["".concat(o-1),u[i-1]],["".concat(o),c],["",zn(a-1)+"^"],["".concat(o+1),u[i+1]]])}function Jn(e){var t=e.filter(function(e){return void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,r=e[1];return zn(n-(t=e[0]).length)+t+(r?" | "+r:" |")}).join("\n")}function zn(e){return Array(e+1).join(" ")}function Qn(e){return Qn="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},Qn(e)}function qn(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 Kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){return!t||"object"!==Qn(t)&&"function"!=typeof t?er(e):t}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e){var t="function"==typeof Map?new Map:void 0;return tr=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return nr(e,arguments,or(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ir(n,e)},tr(e)}function nr(e,t,n){return nr=rr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ir(i,n.prototype),i},nr.apply(null,arguments)}function rr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function ir(e,t){return ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ir(e,t)}function or(e){return or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},or(e)}var ar=/*#__PURE__*/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}}),t&&ir(e,t)}(i,/*#__PURE__*/tr(Error));var e,t,n,r=(e=i,t=rr(),function(){var n,r=or(e);if(t){var i=or(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $n(this,n)});function i(e,t,n,o,a,s,u){var c,l,d,h;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(h=r.call(this,e)).name="GraphQLError",h.originalError=null!=s?s:void 0,h.nodes=sr(Array.isArray(t)?t:t?[t]:void 0);for(var p=[],f=0,g=null!==(m=h.nodes)&&void 0!==m?m:[];f<g.length;f++){var m,b=g[f].loc;null!=b&&p.push(b)}p=sr(p),h.source=null!=n?n:null===(c=p)||void 0===c?void 0:c[0].source,h.positions=null!=o?o:null===(l=p)||void 0===l?void 0:l.map(function(e){return e.start}),h.locations=o&&n?o.map(function(e){return jn(n,e)}):null===(d=p)||void 0===d?void 0:d.map(function(e){return jn(e.source,e.start)}),h.path=null!=a?a:void 0;var y=null==s?void 0:s.extensions;return h.extensions=null==u&&function(e){return"object"==Zn(e)&&null!==e}(y)?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach(function(t){Kn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},y):null!=u?u:{},Object.defineProperties(er(h),{message:{enumerable:!0},locations:{enumerable:null!=h.locations},path:{enumerable:null!=h.path},extensions:{enumerable:null!=h.extensions&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(er(h),"stack",{value:s.stack,writable:!0,configurable:!0}),$n(h)):(Error.captureStackTrace?Error.captureStackTrace(er(h),i):Object.defineProperty(er(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return(n=[{key:"toString",value:function(){return function(e){var t,n=e.message;if(e.nodes)for(var r=0,i=e.nodes;r<i.length;r++){var o=i[r];o.loc&&(n+="\n\n"+Un((t=o.loc).source,jn(t.source,t.start)))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++)n+="\n\n"+Un(e.source,s[a]);return n}(this)}},{key:Hn,get:function(){return"Object"}}])&&function(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)}}(i.prototype,n),i}();function sr(e){return void 0===e||0===e.length?void 0:e}function ur(e,t,n){return new ar("Syntax Error: ".concat(n),void 0,e,[t])}var cr=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),lr="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function dr(e){var t=e.prototype.toJSON;"function"==typeof t||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,lr&&(e.prototype[lr]=t)}var hr=/*#__PURE__*/function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();dr(hr);var pr=/*#__PURE__*/function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();dr(pr);var fr=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function gr(e){return gr="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},gr(e)}var mr=10,br=2;function yr(e){return Ir(e,[])}function Ir(e,t){switch(gr(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(lr)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:Ir(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>br)return"[Array]";for(var n=Math.min(mr,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(Ir(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>br?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(function(n){return n+": "+Ir(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function vr(e,t){if(!Boolean(e))throw new Error(t)}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},Cr(e)}var xr="production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===Cr(e)&&null!==e){var n,r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var i=yr(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},wr=/*#__PURE__*/function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||vr(0,"Body must be a string. Received: ".concat(yr(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||vr(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||vr(0,"column in locationOffset is 1-indexed and must be positive.")}var t;return(t=[{key:Hn,get:function(){return"Source"}}])&&function(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)}}(e.prototype,t),e}(),Ar=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Tr(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&Nr(t[i]);)++i;for(var o=t.length;o>i&&Nr(t[o-1]);)--o;return t.slice(i,o).join("\n")}function Nr(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var Sr=/*#__PURE__*/function(){function e(e){var t=new pr(fr.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==fr.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Dr(this,e)}while(e.kind===fr.COMMENT);return e},e}();function Er(e){return isNaN(e)?fr.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Dr(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new pr(fr.BANG,o,o+1,s,u,t);case 35:return Or(n,o,s,u,t);case 36:return new pr(fr.DOLLAR,o,o+1,s,u,t);case 38:return new pr(fr.AMP,o,o+1,s,u,t);case 40:return new pr(fr.PAREN_L,o,o+1,s,u,t);case 41:return new pr(fr.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new pr(fr.SPREAD,o,o+3,s,u,t);break;case 58:return new pr(fr.COLON,o,o+1,s,u,t);case 61:return new pr(fr.EQUALS,o,o+1,s,u,t);case 64:return new pr(fr.AT,o,o+1,s,u,t);case 91:return new pr(fr.BRACKET_L,o,o+1,s,u,t);case 93:return new pr(fr.BRACKET_R,o,o+1,s,u,t);case 123:return new pr(fr.BRACE_L,o,o+1,s,u,t);case 124:return new pr(fr.PIPE,o,o+1,s,u,t);case 125:return new pr(fr.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?Mr(n,o,s,u,t,e):_r(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Gr(n,o,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Br(n,o,s,u,t)}throw ur(n,o,kr(a))}return new pr(fr.EOF,i,i,e.line,1+o-e.lineStart,t)}function kr(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Er(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Er(e),".")}function Or(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new pr(fr.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function Gr(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw ur(e,u,"Invalid number, unexpected digit after 0: ".concat(Er(s),"."))}else u=Rr(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=Rr(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=Rr(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw ur(e,u,"Invalid number, expected digit but got: ".concat(Er(s),"."));return new pr(c?fr.FLOAT:fr.INT,t,u,r,i,o,a.slice(t,u))}function Rr(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw ur(e,i,"Invalid number, expected digit but got: ".concat(Er(o),"."))}function _r(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,d=l,h=0,p="";l<c.length&&!isNaN(h=c.charCodeAt(l))&&10!==h&&13!==h;){if(34===h)return p+=c.slice(d,l),new pr(fr.STRING,t,l+1,n,r,i,p);if(h<32&&9!==h)throw ur(e,l,"Invalid character within String: ".concat(Er(h),"."));if(++l,92===h){switch(p+=c.slice(d,l-1),h=c.charCodeAt(l)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var f=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),Wr(o)<<12|Wr(a)<<8|Wr(s)<<4|Wr(u));if(f<0){var g=c.slice(l+1,l+5);throw ur(e,l,"Invalid character escape sequence: \\u".concat(g,"."))}p+=String.fromCharCode(f),l+=4;break;default:throw ur(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(h),"."))}d=++l}}throw ur(e,l,"Unterminated string.")}function Mr(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new pr(fr.BLOCK_STRING,t,s+3,n,r,i,Tr(l));if(c<32&&9!==c&&10!==c&&13!==c)throw ur(e,s,"Invalid character within String: ".concat(Er(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw ur(e,s,"Unterminated string.")}function Wr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Br(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new pr(fr.NAME,t,s,n,r,i,o.slice(t,s))}var Pr=/*#__PURE__*/function(){function e(e,t){var n=function(e){return xr(e,wr)}(e)?e:new wr(e);this._lexer=new Sr(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(fr.NAME);return{kind:cr.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:cr.DOCUMENT,definitions:this.many(fr.SOF,this.parseDefinition,fr.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(fr.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(fr.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(fr.BRACE_L))return{kind:cr.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(fr.NAME)&&(t=this.parseName()),{kind:cr.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(fr.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(fr.PAREN_L,this.parseVariableDefinition,fr.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:cr.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(fr.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(fr.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(fr.DOLLAR),{kind:cr.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:cr.SELECTION_SET,selections:this.many(fr.BRACE_L,this.parseSelection,fr.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(fr.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(fr.COLON)?(e=r,t=this.parseName()):t=r,{kind:cr.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(fr.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){return this.optionalMany(fr.PAREN_L,e?this.parseConstArgument:this.parseArgument,fr.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(fr.COLON),{kind:cr.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:cr.ARGUMENT,name:this.parseName(),value:(this.expectToken(fr.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(fr.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(fr.NAME)?{kind:cr.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:cr.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:cr.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:cr.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case fr.BRACKET_L:return this.parseList(e);case fr.BRACE_L:return this.parseObject(e);case fr.INT:return this._lexer.advance(),{kind:cr.INT,value:t.value,loc:this.loc(t)};case fr.FLOAT:return this._lexer.advance(),{kind:cr.FLOAT,value:t.value,loc:this.loc(t)};case fr.STRING:case fr.BLOCK_STRING:return this.parseStringLiteral();case fr.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:cr.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:cr.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:cr.NULL,loc:this.loc(t)};default:return{kind:cr.ENUM,value:t.value,loc:this.loc(t)}}case fr.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:cr.STRING,value:e.value,block:e.kind===fr.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:cr.LIST,values:this.any(fr.BRACKET_L,function(){return t.parseValueLiteral(e)},fr.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:cr.OBJECT,fields:this.any(fr.BRACE_L,function(){return t.parseObjectField(e)},fr.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(fr.COLON),{kind:cr.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(fr.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(fr.AT),{kind:cr.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(fr.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(fr.BRACKET_R),e={kind:cr.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(fr.BANG)?{kind:cr.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:cr.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===fr.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(fr.STRING)||this.peek(fr.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(fr.BRACE_L,this.parseOperationTypeDefinition,fr.BRACE_R);return{kind:cr.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(fr.COLON);var n=this.parseNamedType();return{kind:cr.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:cr.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:cr.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(fr.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(fr.AMP)||this.peek(fr.NAME));return t}return this.delimitedMany(fr.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(fr.BRACE_L)&&this._lexer.lookahead().kind===fr.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(fr.BRACE_L,this.parseFieldDefinition,fr.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(fr.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:cr.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(fr.PAREN_L,this.parseInputValueDef,fr.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(fr.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(fr.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:cr.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:cr.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:cr.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(fr.EQUALS)?this.delimitedMany(fr.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:cr.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(fr.BRACE_L,this.parseEnumValueDefinition,fr.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:cr.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:cr.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(fr.BRACE_L,this.parseInputValueDef,fr.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===fr.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(fr.BRACE_L,this.parseOperationTypeDefinition,fr.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:cr.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:cr.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:cr.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:cr.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:cr.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:cr.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:cr.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(fr.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:cr.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(fr.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Ar[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new hr(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw ur(this._lexer.source,t.start,"Expected ".concat(Fr(e),", found ").concat(Vr(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==fr.NAME||t.value!==e)throw ur(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Vr(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===fr.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return ur(this._lexer.source,t.start,"Unexpected ".concat(Vr(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function Vr(e){var t=e.value;return Fr(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Fr(e){return function(e){return e===fr.BANG||e===fr.DOLLAR||e===fr.AMP||e===fr.PAREN_L||e===fr.PAREN_R||e===fr.SPREAD||e===fr.COLON||e===fr.EQUALS||e===fr.AT||e===fr.BRACKET_L||e===fr.BRACKET_R||e===fr.BRACE_L||e===fr.PIPE||e===fr.BRACE_R}(e)?'"'.concat(e,'"'):e}var Lr=new Map,Yr=new Map,Xr=!0,Zr=!1;function Hr(e){return e.replace(/[\s,]+/g," ").trim()}function jr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=e[n+1]}),function(e){var t,n,r,i=Hr(e);if(!Lr.has(i)){var o=function(e){return new Pr(e,{experimentalFragmentVariables:Zr,allowLegacyFragmentVariables:Zr}).parseDocument()}(e);if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");Lr.set(i,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=o,n=new Set,r=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Hr((a=e.loc).source.body.substring(a.start,a.end)),o=Yr.get(t);o&&!o.has(i)?Xr&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Yr.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a}),Xn(Xn({},t),{definitions:r}))))}return Lr.get(i)}(r)}var Ur,Jr=jr;(Ur=jr||(jr={})).gql=Jr,Ur.resetCaches=function(){Lr.clear(),Yr.clear()},Ur.disableFragmentWarnings=function(){Xr=!1},Ur.enableExperimentalFragmentVariables=function(){Zr=!0},Ur.disableExperimentalFragmentVariables=function(){Zr=!1},jr.default=jr;var zr,Qr,qr,Kr,$r,ei,ti,ni,ri,ii,oi,ai,si,ui,ci,li,di,hi,pi,fi,gi,mi,bi,yi,Ii,vi,Ci,xi,wi,Ai,Ti,Ni,Si,Ei,Di,ki,Oi,Gi,Ri,_i,Mi,Wi,Bi,Pi,Vi,Fi,Li,Yi,Xi,Zi,Hi,ji,Ui,Ji,zi,Qi=jr;exports.AndonLightColor=void 0,(Fi=exports.AndonLightColor||(exports.AndonLightColor={})).Gray="gray",Fi.Green="green",Fi.Red="red",Fi.Yellow="yellow",exports.CounterKindEnum=void 0,(Li=exports.CounterKindEnum||(exports.CounterKindEnum={})).Bad="bad",Li.Good="good",exports.MetricTypeEnum=void 0,(Yi=exports.MetricTypeEnum||(exports.MetricTypeEnum={})).Counter="COUNTER",Yi.Empty="EMPTY",Yi.Indicator="INDICATOR",Yi.Kpi="KPI",Yi.Timer="TIMER",exports.MetricUnitEnum=void 0,(Xi=exports.MetricUnitEnum||(exports.MetricUnitEnum={})).Duration="DURATION",Xi.Percent="PERCENT",Xi.Round="ROUND",exports.Period=void 0,(Zi=exports.Period||(exports.Period={})).CurrentShift="CURRENT_SHIFT",Zi.LastShift="LAST_SHIFT",exports.ProductionMode=void 0,(Hi=exports.ProductionMode||(exports.ProductionMode={})).Manual="MANUAL",Hi.Planned="PLANNED",exports.ScreenEnum=void 0,(ji=exports.ScreenEnum||(exports.ScreenEnum={})).Counters="COUNTERS",ji.Statuses="STATUSES",ji.StatusScreen="STATUS_SCREEN",ji.Workplaces="WORKPLACES",exports.StatusScreenDisplayBlocksEnum=void 0,(Ui=exports.StatusScreenDisplayBlocksEnum||(exports.StatusScreenDisplayBlocksEnum={})).Kpi="KPI",Ui.Livetime="LIVETIME",Ui.Orders="ORDERS",Ui.Presences="PRESENCES",exports.TrainingStatus=void 0,(Ji=exports.TrainingStatus||(exports.TrainingStatus={})).Disabled="DISABLED",Ji.InsufficientData="INSUFFICIENT_DATA",Ji.ServerError="SERVER_ERROR",Ji.Trained="TRAINED",Ji.Training="TRAINING",exports.WorkplaceEvent=void 0,(zi=exports.WorkplaceEvent||(exports.WorkplaceEvent={})).AllStatusChangeTransitionPermissionsUpdated="ALL_STATUS_CHANGE_TRANSITION_PERMISSIONS_UPDATED",zi.CounterUpdated="COUNTER_UPDATED",zi.CurrentShiftChanged="CURRENT_SHIFT_CHANGED",zi.MetricValueUpdated="METRIC_VALUE_UPDATED",zi.NotificationCreated="NOTIFICATION_CREATED",zi.OrderExecutionUpdated="ORDER_EXECUTION_UPDATED",zi.OrderUpdated="ORDER_UPDATED",zi.StatusChangeCreated="STATUS_CHANGE_CREATED",zi.UserPresenceCreated="USER_PRESENCE_CREATED",zi.UserPresenceUpdated="USER_PRESENCE_UPDATED";var qi=Qi(zr||(zr=C(["\n mutation createDashboard($gridLayout: String, $id: ID!, $name: String!) {\n createDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),Ki=Qi(Qr||(Qr=C(["\n mutation createOrder($id: ID!, $number: String!) {\n createOrder(id: $id, number: $number) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n }\n}\n "]))),$i=Qi(qr||(qr=C(["\n mutation createProduct($id: ID!, $name: String, $number: String!) {\n createProduct(id: $id, name: $name, number: $number) {\n errors {\n field\n messages\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n}\n "]))),eo=Qi(Kr||(Kr=C(["\n mutation createStatusChange($id: ID!, $note: String, $reasonId: ID!, $reasonHasBeenRecommended: Boolean, $startedAt: String, $userId: ID, $workplaceId: ID!) {\n createStatusChange(\n id: $id\n note: $note\n reasonId: $reasonId\n reasonHasBeenRecommended: $reasonHasBeenRecommended\n startedAt: $startedAt\n userId: $userId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),to=Qi($r||($r=C(["\n mutation createUserPresence($id: ID!, $userToken: String!, $workplaceId: ID!) {\n createUserPresence(id: $id, userToken: $userToken, workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n userPresence {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n}\n "]))),no=Qi(ei||(ei=C(["\n mutation createWidget($config: String, $id: ID!) {\n createWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),ro=Qi(ti||(ti=C(["\n mutation pauseOrderExecution($id: ID!, $statusChangeId: ID!) {\n pauseOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n quantity\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),io=Qi(ni||(ni=C(["\n mutation removeDashboard($id: ID!) {\n removeDashboard(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),oo=Qi(ri||(ri=C(["\n mutation removeUserPresence($id: ID!) {\n removeUserPresence(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),ao=Qi(ii||(ii=C(["\n mutation removeWidget($id: ID!) {\n removeWidget(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),so=Qi(oi||(oi=C(["\n mutation removeWorkplaceUsersPresences($workplaceId: ID!) {\n removeWorkplaceUsersPresences(workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n }\n}\n "]))),uo=Qi(ai||(ai=C(["\n mutation setCounter($id: ID!, $note: String, $value: Float!) {\n setCounter(id: $id, note: $note, value: $value) {\n counter {\n directoryId\n hasNote\n id\n kind\n name\n position\n reasonId\n value\n workplaceId\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),co=Qi(si||(si=C(["\n mutation startOrderExecution($id: ID!, $note: String, $orderId: ID!, $productId: ID, $itemCount: Float, $statusChangeId: ID!, $workplaceId: ID!) {\n startOrderExecution(\n id: $id\n note: $note\n orderId: $orderId\n productId: $productId\n itemCount: $itemCount\n statusChangeId: $statusChangeId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n quantity\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),lo=Qi(ui||(ui=C(["\n mutation stopOrderExecution($id: ID!, $statusChangeId: ID!) {\n stopOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n quantity\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),ho=Qi(ci||(ci=C(["\n mutation updateDashboard($gridLayout: String!, $id: ID!, $name: String) {\n updateDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),po=Qi(li||(li=C(["\n mutation updateNotification($id: ID!, $status: String!) {\n updateNotification(id: $id, status: $status) {\n errors {\n field\n messages\n }\n notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n }\n}\n "]))),fo=Qi(di||(di=C(["\n mutation updateOrderExecution($id: ID!, $standardRateId: ID!) {\n updateOrderExecution(id: $id, standardRateId: $standardRateId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n quantity\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),go=Qi(hi||(hi=C(["\n mutation updateWidget($config: String!, $id: ID!) {\n updateWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),mo=Qi(pi||(pi=C(["\n query applicationInfo {\n applicationInfo {\n apiVersion\n }\n}\n "]))),bo=Qi(fi||(fi=C(["\n query companyConfig {\n companyConfig {\n devicesConfigs {\n defaultWorkplaceId\n deviceId\n name\n }\n displayedKpiItems\n productConfig {\n alternativeName\n formFieldsConfigs {\n name\n prefix\n regexp\n unit\n }\n }\n reasonsRecommendationsEnabled\n roleConfig {\n historyVisibilityEnabled\n }\n statusChangeTransitionPermissionsUpdatedAt\n workplacesConfigs {\n defaultScreen\n menuDisplayItems\n orderConfig {\n afterPauseOrderExecutionReasonId\n afterStartOrderExecutionReasonId\n afterStopOrderExecutionReasonId\n alternativeName\n featureEnabled\n orderExecutionFormFieldsConfigs {\n name\n prefix\n regexp\n unit\n }\n orderFormFieldsConfigs {\n name\n prefix\n regexp\n unit\n }\n stopOrderExecutionEnabled\n }\n productionMode\n screenSaverConfig {\n autoSignOut\n displayAfterIdle\n displayAfterOrderCreated\n displayAfterStatusChangeCreated\n enabled\n idleTime\n }\n statusScreenDisplayBlocks\n workplaceId\n }\n }\n}\n "]))),yo=Qi(gi||(gi=C(["\n query counterDirectories($filter: CounterDirectoryFilter) {\n counterDirectories(filter: $filter) {\n directoryId\n id\n name\n position\n workplaceId\n }\n}\n "]))),Io=Qi(mi||(mi=C(["\n query counters($filter: CounterFilter) {\n counters(filter: $filter) {\n directoryId\n hasNote\n id\n kind\n name\n position\n reasonId\n value\n workplaceId\n }\n}\n "]))),vo=Qi(bi||(bi=C(["\n query currentUser {\n currentUser {\n id\n login\n name\n }\n}\n "]))),Co=Qi(yi||(yi=C(["\n query dashboards($filter: DashboardFilter) {\n dashboards(filter: $filter) {\n gridLayout\n id\n name\n }\n}\n "]))),xo=Qi(Ii||(Ii=C(["\n query departments($filter: DepartmentFilter) {\n departments(filter: $filter) {\n id\n name\n }\n}\n "]))),wo=Qi(vi||(vi=C(["\n query floorPlans($filter: FloorPlanFilter) {\n floorPlans(filter: $filter) {\n id\n imageUrl\n name\n }\n}\n "]))),Ao=Qi(Ci||(Ci=C(["\n query items($filter: ItemFilter) {\n items(filter: $filter) {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n}\n "]))),To=Qi(xi||(xi=C(["\n query metricValues($metricIds: [ID!], $workplaceIds: [ID!]) {\n metricValues(metricIds: $metricIds, workplaceIds: $workplaceIds) {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n}\n "]))),No=Qi(wi||(wi=C(["\n query metrics {\n metrics {\n id\n name\n }\n}\n "]))),So=Qi(Ai||(Ai=C(["\n query notifications($filter: NotificationFilter) {\n notifications(filter: $filter) {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n}\n "]))),Eo=Qi(Ti||(Ti=C(["\n query orders($filter: OrderFilter) {\n orders(filter: $filter) {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n}\n "]))),Do=Qi(Ni||(Ni=C(["\n query ordersExecutions($filter: OrderExecutionFilter) {\n ordersExecutions(filter: $filter) {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n quantity\n standardRateMismatched\n startedAt\n workplaceId\n }\n}\n "]))),ko=Qi(Si||(Si=C(["\n query products($filter: ProductFilter) {\n products(filter: $filter) {\n assemblyManual\n id\n name\n number\n }\n}\n "]))),Oo=Qi(Ei||(Ei=C(["\n query reasons($filter: ReasonFilter) {\n reasons(filter: $filter) {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n}\n "]))),Go=Qi(Di||(Di=C(["\n query reasonsRecommendation($workplaceId: String!) {\n reasonsRecommendation(workplaceId: $workplaceId) {\n reasons {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n trainingStatus\n }\n}\n "]))),Ro=Qi(ki||(ki=C(["\n query shifts {\n shifts {\n finishedAt\n id\n name\n startedAt\n }\n}\n "]))),_o=Qi(Oi||(Oi=C(["\n query standardRates($orderExecutionId: ID!) {\n standardRates(orderExecutionId: $orderExecutionId) {\n id\n label\n }\n}\n "]))),Mo=Qi(Gi||(Gi=C(["\n query statusChangeTransitionPermissions($filter: StatusChangeTransitionPermissionFilter) {\n statusChangeTransitionPermissions(filter: $filter) {\n fromReasonId\n roleId\n toReasonId\n workplaceId\n }\n}\n "]))),Wo=Qi(Ri||(Ri=C(["\n query statusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),Bo=Qi(_i||(_i=C(["\n query users($filter: UserFilter) {\n users(filter: $filter) {\n id\n login\n name\n }\n}\n "]))),Po=Qi(Mi||(Mi=C(["\n query usersPresences($filter: UserPresenceFilter) {\n usersPresences(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n}\n "]))),Vo=Qi(Wi||(Wi=C(["\n query widget($id: ID!) {\n widget(id: $id) {\n config\n id\n }\n}\n "]))),Fo=Qi(Bi||(Bi=C(["\n query widgets($filter: WidgetFilter) {\n widgets(filter: $filter) {\n config\n id\n }\n}\n "]))),Lo=Qi(Pi||(Pi=C(["\n query workplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n id\n note\n number\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Yo=Qi(Vi||(Vi=C(["\n subscription workplaceEvent($id: ID!) {\n workplaceEvent(id: $id) {\n event\n subject {\n __typename\n ... on Counter {\n directoryId\n hasNote\n id\n kind\n name\n position\n reasonId\n value\n workplaceId\n }\n ... on Item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n ... on MetricValue {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n ... on Notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n ... on Shift {\n shitFinishedAt: finishedAt\n id\n name\n shiftStartedAt: startedAt\n }\n ... on Order {\n executedCount\n id\n note\n number\n plannedCount\n orderPosition: position\n }\n ... on OrderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n quantity\n standardRateMismatched\n startedAt\n workplaceId\n }\n ... on StatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n ... on UserPresence {\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n }\n}\n "]))),Xo=function(e,t,n){return e()};function Zo(e,t){return void 0===t&&(t=Xo),{createDashboard:function(n,r){return t(function(t){return e.request(qi,n,I({},r,t))},"createDashboard","mutation")},createOrder:function(n,r){return t(function(t){return e.request(Ki,n,I({},r,t))},"createOrder","mutation")},createProduct:function(n,r){return t(function(t){return e.request($i,n,I({},r,t))},"createProduct","mutation")},createStatusChange:function(n,r){return t(function(t){return e.request(eo,n,I({},r,t))},"createStatusChange","mutation")},createUserPresence:function(n,r){return t(function(t){return e.request(to,n,I({},r,t))},"createUserPresence","mutation")},createWidget:function(n,r){return t(function(t){return e.request(no,n,I({},r,t))},"createWidget","mutation")},pauseOrderExecution:function(n,r){return t(function(t){return e.request(ro,n,I({},r,t))},"pauseOrderExecution","mutation")},removeDashboard:function(n,r){return t(function(t){return e.request(io,n,I({},r,t))},"removeDashboard","mutation")},removeUserPresence:function(n,r){return t(function(t){return e.request(oo,n,I({},r,t))},"removeUserPresence","mutation")},removeWidget:function(n,r){return t(function(t){return e.request(ao,n,I({},r,t))},"removeWidget","mutation")},removeWorkplaceUsersPresences:function(n,r){return t(function(t){return e.request(so,n,I({},r,t))},"removeWorkplaceUsersPresences","mutation")},setCounter:function(n,r){return t(function(t){return e.request(uo,n,I({},r,t))},"setCounter","mutation")},startOrderExecution:function(n,r){return t(function(t){return e.request(co,n,I({},r,t))},"startOrderExecution","mutation")},stopOrderExecution:function(n,r){return t(function(t){return e.request(lo,n,I({},r,t))},"stopOrderExecution","mutation")},updateDashboard:function(n,r){return t(function(t){return e.request(ho,n,I({},r,t))},"updateDashboard","mutation")},updateNotification:function(n,r){return t(function(t){return e.request(po,n,I({},r,t))},"updateNotification","mutation")},updateOrderExecution:function(n,r){return t(function(t){return e.request(fo,n,I({},r,t))},"updateOrderExecution","mutation")},updateWidget:function(n,r){return t(function(t){return e.request(go,n,I({},r,t))},"updateWidget","mutation")},applicationInfo:function(n,r){return t(function(t){return e.request(mo,n,I({},r,t))},"applicationInfo","query")},companyConfig:function(n,r){return t(function(t){return e.request(bo,n,I({},r,t))},"companyConfig","query")},counterDirectories:function(n,r){return t(function(t){return e.request(yo,n,I({},r,t))},"counterDirectories","query")},counters:function(n,r){return t(function(t){return e.request(Io,n,I({},r,t))},"counters","query")},currentUser:function(n,r){return t(function(t){return e.request(vo,n,I({},r,t))},"currentUser","query")},dashboards:function(n,r){return t(function(t){return e.request(Co,n,I({},r,t))},"dashboards","query")},departments:function(n,r){return t(function(t){return e.request(xo,n,I({},r,t))},"departments","query")},floorPlans:function(n,r){return t(function(t){return e.request(wo,n,I({},r,t))},"floorPlans","query")},items:function(n,r){return t(function(t){return e.request(Ao,n,I({},r,t))},"items","query")},metricValues:function(n,r){return t(function(t){return e.request(To,n,I({},r,t))},"metricValues","query")},metrics:function(n,r){return t(function(t){return e.request(No,n,I({},r,t))},"metrics","query")},notifications:function(n,r){return t(function(t){return e.request(So,n,I({},r,t))},"notifications","query")},orders:function(n,r){return t(function(t){return e.request(Eo,n,I({},r,t))},"orders","query")},ordersExecutions:function(n,r){return t(function(t){return e.request(Do,n,I({},r,t))},"ordersExecutions","query")},products:function(n,r){return t(function(t){return e.request(ko,n,I({},r,t))},"products","query")},reasons:function(n,r){return t(function(t){return e.request(Oo,n,I({},r,t))},"reasons","query")},reasonsRecommendation:function(n,r){return t(function(t){return e.request(Go,n,I({},r,t))},"reasonsRecommendation","query")},shifts:function(n,r){return t(function(t){return e.request(Ro,n,I({},r,t))},"shifts","query")},standardRates:function(n,r){return t(function(t){return e.request(_o,n,I({},r,t))},"standardRates","query")},statusChangeTransitionPermissions:function(n,r){return t(function(t){return e.request(Mo,n,I({},r,t))},"statusChangeTransitionPermissions","query")},statusChanges:function(n,r){return t(function(t){return e.request(Wo,n,I({},r,t))},"statusChanges","query")},users:function(n,r){return t(function(t){return e.request(Bo,n,I({},r,t))},"users","query")},usersPresences:function(n,r){return t(function(t){return e.request(Po,n,I({},r,t))},"usersPresences","query")},widget:function(n,r){return t(function(t){return e.request(Vo,n,I({},r,t))},"widget","query")},widgets:function(n,r){return t(function(t){return e.request(Fo,n,I({},r,t))},"widgets","query")},workplaces:function(n,r){return t(function(t){return e.request(Lo,n,I({},r,t))},"workplaces","query")},workplaceEvent:function(n,r){return t(function(t){return e.request(Yo,n,I({},r,t))},"workplaceEvent","subscription")}}}var Ho="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function jo(e){var t={exports:{}};return e(t,t.exports),t.exports}var Uo=jo(function(e,t){var n,r,i,o="[object Function]",a="[object GeneratorFunction]",s="[object Map]",u="[object Promise]",c="[object Set]",l="[object WeakMap]",d="[object DataView]",h=/^\[object .+?Constructor\]$/,p="object"==typeof self&&self&&self.Object===Object&&self,f="object"==typeof Ho&&Ho&&Ho.Object===Object&&Ho||p||Function("return this")(),g=t&&!t.nodeType&&t,m=g&&e&&!e.nodeType&&e,b=m&&m.exports===g,y=Function.prototype,I=Object.prototype,v=f["__core-js_shared__"],C=(n=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",x=y.toString,w=I.hasOwnProperty,A=I.toString,T=RegExp("^"+x.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=b?f.Buffer:void 0,S=I.propertyIsEnumerable,E=N?N.isBuffer:void 0,D=(r=Object.keys,i=Object,function(e){return r(i(e))}),k=L(f,"DataView"),O=L(f,"Map"),G=L(f,"Promise"),R=L(f,"Set"),_=L(f,"WeakMap"),M=!S.call({valueOf:1},"valueOf"),W=X(k),B=X(O),P=X(G),V=X(R),F=X(_);function L(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!J(e)||function(e){return!!C&&C in e}(e))return!1;var t=U(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?T:h;return t.test(X(e))}(n)?n:void 0}var Y=function(e){return A.call(e)};function X(e){if(null!=e){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(k&&Y(new k(new ArrayBuffer(1)))!=d||O&&Y(new O)!=s||G&&Y(G.resolve())!=u||R&&Y(new R)!=c||_&&Y(new _)!=l)&&(Y=function(e){var t=A.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?X(n):void 0;if(r)switch(r){case W:return d;case B:return s;case P:return u;case V:return c;case F:return l}return t});var Z=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!U(e)}var j=E||function(){return!1};function U(e){var t=J(e)?A.call(e):"";return t==o||t==a}function J(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(H(e)&&(Z(e)||"string"==typeof e||"function"==typeof e.splice||j(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}(e)&&w.call(e,"callee")&&(!S.call(e,"callee")||"[object Arguments]"==A.call(e))}(e)))return!e.length;var t=Y(e);if(t==s||t==c)return!e.size;if(M||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||I)}(e))return!D(e).length;for(var n in e)if(w.call(e,n))return!1;return!0}}),Jo=function(e,t){return Jo=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])},Jo(e,t)};function zo(e,t){function n(){this.constructor=e}Jo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Qo(e){return"function"==typeof e}var qo=!1,Ko={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){qo=e},get useDeprecatedSynchronousErrorHandling(){return qo}};function $o(e){setTimeout(function(){throw e},0)}var ea={closed:!0,next:function(e){},error:function(e){if(Ko.useDeprecatedSynchronousErrorHandling)throw e;$o(e)},complete:function(){}},ta=/*@__PURE__*/function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),na=/*@__PURE__*/function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=/*@__PURE__*/Object.create(Error.prototype),e}(),ra=na,ia=/*@__PURE__*/function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,r=this,i=r._parentOrParents,o=r._ctorUnsubscribe,a=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof e)i.remove(this);else if(null!==i)for(var u=0;u<i.length;++u)i[u].remove(this);if(Qo(a)){o&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){t=e instanceof ra?oa(e.errors):[e]}}if(ta(s)){u=-1;for(var c=s.length;++u<c;){var l=s[u];if(null!==(n=l)&&"object"==typeof n)try{l.unsubscribe()}catch(e){t=t||[],e instanceof ra?t=t.concat(oa(e.errors)):t.push(e)}}}if(t)throw new ra(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function oa(e){return e.reduce(function(e,t){return e.concat(t instanceof ra?t.errors:t)},[])}var aa=/*@__PURE__*/function(){return"function"==typeof Symbol?/*@__PURE__*/Symbol("rxSubscriber"):"@@rxSubscriber_"+/*@__PURE__*/Math.random()}(),sa=/*@__PURE__*/function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=ea;break;case 1:if(!n){o.destination=ea;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new ua(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new ua(o,n,r,i)}return o}return zo(t,e),t.prototype[aa]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(ia),ua=/*@__PURE__*/function(e){function t(t,n,r,i){var o,a=e.call(this)||this;a._parentSubscriber=t;var s=a;return Qo(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==ea&&(Qo((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return zo(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;Ko.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=Ko.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):$o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;$o(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};Ko.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),Ko.useDeprecatedSynchronousErrorHandling)throw e;$o(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!Ko.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return Ko.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):($o(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(sa),ca=/*@__PURE__*/function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function la(e){return e}var da=/*@__PURE__*/function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof sa)return e;if(e[aa])return e[aa]()}return e||t||n?new sa(e,t,n):new sa(ea)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||Ko.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Ko.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){Ko.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof sa?t:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=ha(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[ca]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this:(0===(e=t).length?la:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ha(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function ha(e){if(e||(e=Ko.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var pa=/*#__PURE__*/function(){function e(e){var t=this;this.wsURL=void 0,this.cable=null,this.subscriptions=new Map,this.addSubscription=function(e,n){t.subscriptions.set(e,n)},this.wsURL=e}var t=e.prototype;return t.connect=function(e,t){this.cable=y.default.createConsumer(this.wsURL+"?token="+e+"&lang="+t)},t.request=function(e){var t,n=this.cable,r=this.subscriptions,i=this.addSubscription;return new da(function(o){if(n){var a,s=(null==(a=e.variables)?void 0:a.id)||"company";r.has(s)||(t=n.subscriptions.create({channel:"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{connected:function(){this.perform("execute",e)},received:function(e){e.more?e.result.errors?o.error&&o.error(e.result.errors[0]):e.result.data&&o.next&&(Uo(e.result.data)||o.next(e.result)):o.complete&&o.complete()}}),i(s,t))}})},t.hasSubscription=function(e){return this.subscriptions.has(e)},e}(),fa=/*#__PURE__*/function(){function e(e,t,n){this.actionCableClient=null,this.actionCableClient=new pa(e),this.actionCableClient.connect(t,n)}return e.prototype.subscribe=function(e,t,n,r){if(void 0===r&&(r=function(e){throw e}),!this.actionCableClient)throw new Error("No WS client available");var i=this.actionCableClient.request({query:e,variables:t}).subscribe({next:function(e){var t=e.data,i=e.errors;if(i)return r(new Error(JSON.stringify(i)));t&&n&&n(function(e){var t=Object.keys(e);if(1!==t.length)throw new Error("Expected exactly one response key, got: "+t.join(", "));return e[t[0]]}(t))}});return function(){return i.unsubscribe()}},e}(),ga=function(e,t,n){return new fa(e,t,n)},ma=function(e,t){return Zo(new l.GraphQLClient(e,{fetch:t}))},ba=jo(function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Gt(e,t,n,r,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=f(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function m(e){var t=p(NaN);return null!=e?h(f(t),e):f(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],y=!1;function I(e,t){var n,r,i,o=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=f(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)u(i=t[r=b[n]])||(e[r]=i);return e}function v(e){I(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function C(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,t){var n=!0;return h(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var A,T={};function N(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),T[e]||(x(t),T[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,t){var n,r=h({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function D(e){null!=e&&this.set(e)}function k(e,t,n){var r=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,A=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},_={};function M(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(_[e]=i),t&&(_[t[0]]=function(){return k(i.apply(this,arguments),t[1],t[2])}),n&&(_[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function W(e,t){return e.isValid()?(t=B(t,e.localeData()),R[t]=R[t]||function(e){var t,n,r,i=e.match(O);for(t=0,n=i.length;t<n;t++)i[t]=_[i[t]]?_[i[t]]:(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=S(i[r])?i[r].call(t,e):i[r];return o}}(t),R[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(G.lastIndex=0;n>=0&&G.test(e);)e=e.replace(G,r),G.lastIndex=0,n-=1;return e}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function V(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)a(e,n)&&(t=V(n))&&(r[t]=e[n]);return r}var L,Y={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},X=/\d/,Z=/\d\d/,H=/\d{3}/,j=/\d{4}/,U=/[+-]?\d{6}/,J=/\d\d?/,z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,ee=/\d+/,te=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function se(e,t,n){L[e]=S(t)?t:function(e,r){return e&&n?n:t}}function ue(e,t){return a(L,e)?L[e](t._strict,t._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}L={};var he={};function pe(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=de(e)}),r=e.length,n=0;n<r;n++)he[e[n]]=i}function fe(e,t){pe(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ge(e,t,n){null!=t&&a(he,e)&&he[e](t,n._a,n,e)}function me(e){return e%4==0&&e%100!=0||e%400==0}var be=0,ye=1,Ie=2,ve=3,Ce=4,xe=5,we=6,Ae=7,Te=8;function Ne(e){return me(e)?366:365}M("Y",0,0,function(){var e=this.year();return e<=9999?k(e,4):"+"+e}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),se("Y",te),se("YY",J,Z),se("YYYY",K,j),se("YYYYY",$,U),se("YYYYYY",$,U),pe(["YYYYY","YYYYYY"],be),pe("YYYY",function(e,t){t[be]=2===e.length?r.parseTwoDigitYear(e):de(e)}),pe("YY",function(e,t){t[be]=r.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[be]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Se,Ee=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Oe(this,e,n),r.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Oe(e,t,n){var r,i,o,a,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=29!==(s=e.date())||1!==a||me(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Ge(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?me(e)?29:28:31-n%7%2}Se=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),M("MMMM",0,0,function(e){return this.localeData().months(this,e)}),se("M",J,oe),se("MM",J,Z),se("MMM",function(e,t){return t.monthsShortRegex(e)}),se("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[ye]=de(e)-1}),pe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:f(n).invalidMonth=e});var Re="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,We=ie,Be=ie;function Pe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Se.call(this._shortMonthsParse,a))?i:null:-1!==(i=Se.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Se.call(this._shortMonthsParse,a))||-1!==(i=Se.call(this._longMonthsParse,a))?i:null:-1!==(i=Se.call(this._longMonthsParse,a))||-1!==(i=Se.call(this._shortMonthsParse,a))?i:null}function Ve(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,Ge(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Fe(e){return null!=e?(Ve(this,e),r.updateOffset(this,!0),this):ke(this,"Month")}function Le(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],a=[],s=[];for(t=0;t<12;t++)n=p([2e3,t]),r=ce(this.monthsShort(n,"")),i=ce(this.months(n,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ye(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Xe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ze(e,t,n){var r=7+t-n;return-(7+Xe(e,0,r).getUTCDay()-t)%7+r-1}function He(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Ze(e,r,i);return s<=0?a=Ne(o=e-1)+s:s>Ne(e)?(o=e+1,a=s-Ne(e)):(o=e,a=s),{year:o,dayOfYear:a}}function je(e,t,n){var r,i,o=Ze(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ue(i=e.year()-1,t,n):a>Ue(e.year(),t,n)?(r=a-Ue(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ue(e,t,n){var r=Ze(e,t,n),i=Ze(e+1,t,n);return(Ne(e)-r+i)/7}function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),se("w",J,oe),se("ww",J,Z),se("W",J,oe),se("WW",J,Z),fe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=de(e)}),M("d",0,"do","day"),M("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),M("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),M("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),se("d",J),se("e",J),se("E",J),se("dd",function(e,t){return t.weekdaysMinRegex(e)}),se("ddd",function(e,t){return t.weekdaysShortRegex(e)}),se("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,r){t[r]=de(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ie,$e=ie,et=ie;function tt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Se.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Se.call(this._weekdaysParse,a))||-1!==(i=Se.call(this._shortWeekdaysParse,a))||-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Se.call(this._shortWeekdaysParse,a))||-1!==(i=Se.call(this._weekdaysParse,a))||-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Se.call(this._minWeekdaysParse,a))||-1!==(i=Se.call(this._weekdaysParse,a))||-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:null}function nt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=ce(this.weekdaysMin(n,"")),i=ce(this.weekdaysShort(n,"")),o=ce(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rt(){return this.hours()%12||12}function it(e,t){M(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,rt),M("k",["kk",2],0,function(){return this.hours()||24}),M("hmm",0,0,function(){return""+rt.apply(this)+k(this.minutes(),2)}),M("hmmss",0,0,function(){return""+rt.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+k(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)}),it("a",!0),it("A",!1),se("a",ot),se("A",ot),se("H",J,ae),se("h",J,oe),se("k",J,oe),se("HH",J,Z),se("hh",J,Z),se("kk",J,Z),se("hmm",z),se("hmmss",Q),se("Hmm",z),se("Hmmss",Q),pe(["H","HH"],ve),pe(["k","kk"],function(e,t,n){var r=de(e);t[ve]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[ve]=de(e),f(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[ve]=de(e.substr(0,r)),t[Ce]=de(e.substr(r)),f(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=de(e.substr(0,r)),t[Ce]=de(e.substr(r,2)),t[xe]=de(e.substr(i)),f(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[ve]=de(e.substr(0,r)),t[Ce]=de(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=de(e.substr(0,r)),t[Ce]=de(e.substr(r,2)),t[xe]=de(e.substr(i))});var at,st=De("Hours",!0),ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:_e,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},ct={},lt={};function dt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function pt(t){var n=null;if(void 0===ct[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{n=at._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}("./locale/"+t),ft(n)}catch(e){ct[t]=null}return ct[t]}function ft(e,t){var n;return e&&((n=u(t)?mt(e):gt(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function gt(e,t){if(null!==t){var n,r=ut;if(t.abbr=e,null!=ct[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])r=ct[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ct[e]=new D(E(r,t)),lt[e]&<[e].forEach(function(e){gt(e.name,e.config)}),ft(e),ct[e]}return delete ct[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!i(e)){if(t=pt(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(r=pt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dt(i,n)>=t-1)break;t--}o++}return at}(e)}function bt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[Ie]<1||n[Ie]>Ge(n[be],n[ye])?Ie:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[Ce]||0!==n[xe]||0!==n[we])?ve:n[Ce]<0||n[Ce]>59?Ce:n[xe]<0||n[xe]>59?xe:n[we]<0||n[we]>999?we:-1,f(e)._overflowDayOfYear&&(t<be||t>Ie)&&(t=Ie),f(e)._overflowWeeks&&-1===t&&(t=Ae),f(e)._overflowWeekday&&-1===t&&(t=Te),f(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,It=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,Ct=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,At=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nt(e){var t,n,r,i,o,a,s=e._i,u=yt.exec(s)||It.exec(s),c=Ct.length,l=xt.length;if(u){for(f(e).iso=!0,t=0,n=c;t<n;t++)if(Ct[t][1].exec(u[1])){i=Ct[t][0],r=!1!==Ct[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=l;t<n;t++)if(xt[t][1].exec(u[3])){o=(u[2]||" ")+xt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!vt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),kt(e)}else e._isValid=!1}function St(e){var t,n,r,i,o,a,s,u,c,l=At.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[(u=l[4],c=parseInt(u,10),c<=49?2e3+c:c<=999?1900+c:c),_e.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),!function(e,t,n){return!e||Qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t=s,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Tt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Xe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Et(e,t,n){return null!=e?e:null!=t?t:n}function Dt(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Ie]&&null==e._a[ye]&&function(e){var t,n,r,i,o,a,s,u,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Et(t.GG,e._a[be],je(Rt(),1,4).year),r=Et(t.W,1),((i=Et(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=je(Rt(),o,a),n=Et(t.gg,e._a[be],c.year),r=Et(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Ue(n,o,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(s=He(n,r,i,o,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Et(e._a[be],i[be]),(e._dayOfYear>Ne(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Xe(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[Ie]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[Ce]&&0===e._a[xe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Xe:Ye).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,i,o,a,s,u,c=""+e._i,l=c.length,d=0;for(u=(i=B(e._f,e._locale).match(O)||[]).length,t=0;t<u;t++)(n=(c.match(ue(o=i[t],e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&f(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),_[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),ge(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-d,c.length>0&&f(e).unusedInput.push(c),e._a[ve]<=12&&!0===f(e).bigHour&&e._a[ve]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[ve],e._meridiem),null!==(s=f(e).era)&&(e._a[be]=e._locale.erasConvertYear(s,e._a[be])),Dt(e),bt(e)}else St(e);else Nt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new v(bt(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1,u=e._f.length;if(0===u)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,t=I({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),g(t)&&(a=!0),o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;u(t)?e._d=new Date(r.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Nt(e),!1===e._isValid&&(delete e._isValid,St(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Dt(e)):o(t)?function(e){if(!e._d){var t=F(e._i);e._a=d([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Dt(e)}}(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Gt(e,t,n,r,a){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,function(e){var t=new v(bt(Ot(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(u)}function Rt(e,t,n,r){return Gt(e,t,n,r,!1)}r.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var _t=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Mt=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()});function Wt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Rt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=F(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,u=t.hour||0,c=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=Bt.length;for(t in e)if(a(e,t)&&(-1===Se.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Bt[n]]){if(r)return!1;parseFloat(e[Bt[n]])!==de(e[Bt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*l+6e4*c+1e3*u*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=mt(),this._bubble()}function Vt(e){return e instanceof Pt}function Ft(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){M(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+k(~~(e/60),2)+t+k(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),se("Z",re),se("ZZ",re),pe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Xt(re,e)});var Yt=/([\+\-]|\d\d)/gi;function Xt(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Yt)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function Zt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(C(e)||l(e)?e.valueOf():Rt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Rt(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,i,o,s,u,l=e,d=null;return Vt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(d=Ut.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:de(d[Ie])*n,h:de(d[ve])*n,m:de(d[Ce])*n,s:de(d[xe])*n,ms:de(Ft(1e3*d[we]))*n}):(d=Jt.exec(e))?l={y:Qt(d[2],n="-"===d[1]?-1:1),M:Qt(d[3],n),w:Qt(d[4],n),d:Qt(d[5],n),h:Qt(d[6],n),m:Qt(d[7],n),s:Qt(d[8],n)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Rt(l.from),s=Rt(l.to),i=o.isValid()&&s.isValid()?(s=Zt(s,o),o.isBefore(s)?u=qt(o,s):((u=qt(s,o)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Pt(l),Vt(e)&&a(e,"_locale")&&(r._locale=e._locale),Vt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Kt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),$t(this,zt(n,r),e),this}}function $t(e,t,n,i){var o=t._milliseconds,a=Ft(t._days),s=Ft(t._months);e.isValid()&&(i=null==i||i,s&&Ve(e,ke(e,"Month")+s*n),a&&Oe(e,"Date",ke(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}zt.fn=Pt.prototype,zt.invalid=function(){return zt(NaN)};var en=Kt(1,"add"),tn=Kt(-1,"subtract");function nn(e){return"string"==typeof e||e instanceof String}function rn(e,t){if(e.date()<t.date())return-rn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function on(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var an=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function sn(){return this._locale}var un=1e3,cn=6e4,ln=36e5,dn=126227808e5;function hn(e,t){return(e%t+t)%t}function pn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-dn:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dn:Date.UTC(e,t,n)}function gn(e,t){return t.erasAbbrRegex(e)}function mn(){var e,t,n,r,i,o=[],a=[],s=[],u=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ce(c[e].name),r=ce(c[e].abbr),i=ce(c[e].narrow),a.push(n),o.push(r),s.push(i),u.push(n),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function bn(e,t){M(0,[e,e.length],0,t)}function yn(e,t,n,r,i){var o;return null==e?je(this,r,i).year:(t>(o=Ue(e,r,i))&&(t=o),In.call(this,e,t,n,r,i))}function In(e,t,n,r,i){var o=He(e,t,n,r,i),a=Xe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),se("N",gn),se("NN",gn),se("NNN",gn),se("NNNN",function(e,t){return t.erasNameRegex(e)}),se("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),pe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?f(n).era=i:f(n).invalidEra=e}),se("y",ee),se("yy",ee),se("yyy",ee),se("yyyy",ee),se("yo",function(e,t){return t._eraYearOrdinalRegex||ee}),pe(["y","yy","yyy","yyyy"],be),pe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),t[be]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,i):parseInt(e,10)}),M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100}),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),se("G",te),se("g",te),se("GG",J,Z),se("gg",J,Z),se("GGGG",K,j),se("gggg",K,j),se("GGGGG",$,U),se("ggggg",$,U),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=de(e)}),fe(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),M("Q",0,"Qo","quarter"),se("Q",X),pe("Q",function(e,t){t[ye]=3*(de(e)-1)}),M("D",["DD",2],"Do","date"),se("D",J,oe),se("DD",J,Z),se("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],Ie),pe("Do",function(e,t){t[Ie]=de(e.match(J)[0])});var vn=De("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",q),se("DDDD",H),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=de(e)}),M("m",["mm",2],0,"minute"),se("m",J,ae),se("mm",J,Z),pe(["m","mm"],Ce);var Cn=De("Minutes",!1);M("s",["ss",2],0,"second"),se("s",J,ae),se("ss",J,Z),pe(["s","ss"],xe);var xn,wn,An=De("Seconds",!1);for(M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return 10*this.millisecond()}),M(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),M(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),M(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),M(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),M(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),se("S",q,X),se("SS",q,Z),se("SSS",q,H),xn="SSSS";xn.length<=9;xn+="S")se(xn,ee);function Tn(e,t){t[we]=de(1e3*("0."+e))}for(xn="S";xn.length<=9;xn+="S")pe(xn,Tn);wn=De("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");var Nn=v.prototype;function Sn(e){return e}Nn.add=en,Nn.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?C(n=arguments[0])||l(n)||nn(n)||c(n)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&nn(e)}).length),t&&n}(n)||function(e){var t,n=o(e)&&!s(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(t=0;t<u;t+=1)r=r||a(e,i[t]);return n&&r}(n)||null==n?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||a(e,i[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var u=e||Rt(),d=Zt(u,this).startOf("day"),h=r.calendarFormat(this,d)||"sameElse",p=t&&(S(t[h])?t[h].call(this,u):t[h]);return this.format(p||this.localeData().calendar(h,this,Rt(u)))},Nn.clone=function(){return new v(this)},Nn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=V(t)){case"year":o=rn(this,r)/12;break;case"month":o=rn(this,r);break;case"quarter":o=rn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:le(o)},Nn.endOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?fn:pn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ln-hn(t+(this._isUTC?0:this.utcOffset()*cn),ln)-1;break;case"minute":t=this._d.valueOf(),t+=cn-hn(t,cn)-1;break;case"second":t=this._d.valueOf(),t+=un-hn(t,un)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},Nn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)},Nn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Rt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nn.fromNow=function(e){return this.from(Rt(),e)},Nn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Rt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nn.toNow=function(e){return this.to(Rt(),e)},Nn.get=function(e){return S(this[e=V(e)])?this[e]():this},Nn.invalidAt=function(){return f(this).overflow},Nn.isAfter=function(e,t){var n=C(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Nn.isBefore=function(e,t){var n=C(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Nn.isBetween=function(e,t,n,r){var i=C(e)?e:Rt(e),o=C(t)?t:Rt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},Nn.isSame=function(e,t){var n,r=C(e)?e:Rt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Nn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Nn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Nn.isValid=function(){return g(this)},Nn.lang=an,Nn.locale=on,Nn.localeData=sn,Nn.max=Mt,Nn.min=_t,Nn.parsingFlags=function(){return h({},f(this))},Nn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:Y[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=F(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=V(e)]))return this[e](t);return this},Nn.startOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?fn:pn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hn(t+(this._isUTC?0:this.utcOffset()*cn),ln);break;case"minute":t=this._d.valueOf(),t-=hn(t,cn);break;case"second":t=this._d.valueOf(),t-=hn(t,un)}return this._d.setTime(t),r.updateOffset(this,!0),this},Nn.subtract=tn,Nn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Nn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Nn.toDate=function(){return new Date(this.valueOf())},Nn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Nn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Nn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},Nn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},Nn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},Nn.eraYear=function(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()},Nn.year=Ee,Nn.isLeapYear=function(){return me(this.year())},Nn.weekYear=function(e){return yn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Nn.isoWeekYear=function(e){return yn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Nn.quarter=Nn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Nn.month=Fe,Nn.daysInMonth=function(){return Ge(this.year(),this.month())},Nn.week=Nn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Nn.isoWeek=Nn.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Nn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},Nn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ue(this.weekYear(),e.dow,e.doy)},Nn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},Nn.isoWeeksInISOWeekYear=function(){return Ue(this.isoWeekYear(),1,4)},Nn.date=vn,Nn.day=Nn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=ke(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Nn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Nn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Nn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Nn.hour=Nn.hours=st,Nn.minute=Nn.minutes=Cn,Nn.second=Nn.seconds=An,Nn.millisecond=Nn.milliseconds=wn,Nn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Xt(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Ht(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?$t(this,zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ht(this)},Nn.utc=function(e){return this.utcOffset(0,e)},Nn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},Nn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Xt(ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Nn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Rt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Nn.isUtc=jt,Nn.isUTC=jt,Nn.zoneAbbr=function(){return this._isUTC?"UTC":""},Nn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Nn.dates=w("dates accessor is deprecated. Use date instead.",vn),Nn.months=w("months accessor is deprecated. Use month instead",Fe),Nn.years=w("years accessor is deprecated. Use year instead",Ee),Nn.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Nn.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return I(t,this),(t=Ot(t))._a?(e=t._isUTC?p(t._a):Rt(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var n,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(n=0;n<r;n++)de(e[n])!==de(t[n])&&o++;return o+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var En=D.prototype;function Dn(e,t,n,r){var i=mt(),o=p().set(r,t);return i[n](o,e)}function kn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Dn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Dn(e,r,n,"month");return i}function On(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=mt(),a=e?o._week.dow:0,s=[];if(null!=n)return Dn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=Dn(t,(i+a)%7,r,"day");return s}En.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r},En.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(e){return this._ordinal.replace("%d",e)},En.preparse=Sn,En.postformat=Sn,En.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return S(i)?i(e,t,n,r):i.replace(/%d/i,e)},En.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},En.set=function(e){var t,n;for(n in e)a(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},En.eras=function(e,t){var n,i,o,a=this._eras||mt("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=Infinity;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},En.erasParse=function(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]},En.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},En.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||mn.call(this),e?this._erasAbbrRegex:this._erasRegex},En.erasNameRegex=function(e){return a(this,"_erasNameRegex")||mn.call(this),e?this._erasNameRegex:this._erasRegex},En.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||mn.call(this),e?this._erasNarrowRegex:this._erasRegex},En.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},En.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Me.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},En.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Be),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(e){return je(e,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Je(n,this._week.dow):e?n[e.day()]:n},En.weekdaysMin=function(e){return!0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},En.weekdaysShort=function(e){return!0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},En.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},En.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},En.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=w("moment.lang is deprecated. Use moment.locale instead.",ft),r.langData=w("moment.langData is deprecated. Use moment.localeData instead.",mt);var Gn=Math.abs;function Rn(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function Mn(e){return 4800*e/146097}function Wn(e){return 146097*e/4800}function Bn(e){return function(){return this.as(e)}}var Pn=Bn("ms"),Vn=Bn("s"),Fn=Bn("m"),Ln=Bn("h"),Yn=Bn("d"),Xn=Bn("w"),Zn=Bn("M"),Hn=Bn("Q"),jn=Bn("y"),Un=Pn;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Jn("milliseconds"),Qn=Jn("seconds"),qn=Jn("minutes"),Kn=Jn("hours"),$n=Jn("days"),er=Jn("months"),tr=Jn("years"),nr=Math.round,rr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ir(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var or=Math.abs;function ar(e){return(e>0)-(e<0)||+e}function sr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=or(this._milliseconds)/1e3,c=or(this._days),l=or(this._months),d=this.asSeconds();return d?(e=le(u/60),t=le(e/60),u%=60,e%=60,n=le(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ar(this._months)!==ar(d)?"-":"",a=ar(this._days)!==ar(d)?"-":"",s=ar(this._milliseconds)!==ar(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ur=Pt.prototype;return ur.isValid=function(){return this._isValid},ur.abs=function(){var e=this._data;return this._milliseconds=Gn(this._milliseconds),this._days=Gn(this._days),this._months=Gn(this._months),e.milliseconds=Gn(e.milliseconds),e.seconds=Gn(e.seconds),e.minutes=Gn(e.minutes),e.hours=Gn(e.hours),e.months=Gn(e.months),e.years=Gn(e.years),this},ur.add=function(e,t){return Rn(this,e,t,1)},ur.subtract=function(e,t){return Rn(this,e,t,-1)},ur.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(n=this._months+Mn(t=this._days+r/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},ur.asMilliseconds=Pn,ur.asSeconds=Vn,ur.asMinutes=Fn,ur.asHours=Ln,ur.asDays=Yn,ur.asWeeks=Xn,ur.asMonths=Zn,ur.asQuarters=Hn,ur.asYears=jn,ur.valueOf=Un,ur._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*_n(Wn(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,n=le(t/60),u.hours=n%24,a+=le(n/24),s+=i=le(Mn(a)),a-=_n(Wn(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},ur.clone=function(){return zt(this)},ur.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},ur.milliseconds=zn,ur.seconds=Qn,ur.minutes=qn,ur.hours=Kn,ur.days=$n,ur.weeks=function(){return le(this.days()/7)},ur.months=er,ur.years=tr,ur.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=rr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},rr,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=function(e,t,n,r){var i=zt(e).abs(),o=nr(i.as("s")),a=nr(i.as("m")),s=nr(i.as("h")),u=nr(i.as("d")),c=nr(i.as("M")),l=nr(i.as("w")),d=nr(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(h=h||l<=1&&["w"]||l<n.w&&["ww",l]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ir.apply(null,h)}(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},ur.toISOString=sr,ur.toString=sr,ur.toJSON=sr,ur.locale=on,ur.localeData=sn,ur.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sr),ur.lang=an,M("X",0,0,"unix"),M("x",0,0,"valueOf"),se("x",te),se("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),pe("x",function(e,t,n){n._d=new Date(de(e))}),r.version="2.30.1",t=Rt,r.fn=Nn,r.min=function(){return Wt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Wt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Rt(1e3*e)},r.months=function(e,t){return kn(e,t,"months")},r.isDate=l,r.locale=ft,r.invalid=m,r.duration=zt,r.isMoment=C,r.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},r.parseZone=function(){return Rt.apply(null,arguments).parseZone()},r.localeData=mt,r.isDuration=Vt,r.monthsShort=function(e,t){return kn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},r.defineLocale=gt,r.updateLocale=function(e,t){if(null!=t){var n,r,i=ut;null!=ct[e]&&null!=ct[e].parentLocale?ct[e].set(E(ct[e]._config,t)):(null!=(r=pt(e))&&(i=r._config),t=E(i,t),null==r&&(t.abbr=e),(n=new D(t)).parentLocale=ct[e],ct[e]=n),ft(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?(ct[e]=ct[e].parentLocale,e===ft()&&ft(e)):null!=ct[e]&&delete ct[e]);return ct[e]},r.locales=function(){return A(ct)},r.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},r.normalizeUnits=V,r.relativeTimeRounding=function(e){return void 0===e?nr:"function"==typeof e&&(nr=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==rr[e]&&(void 0===t?rr[e]:(rr[e]=t,"s"===e&&(rr.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=Nn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}),ya=function(e,t){t.set("year",e.year()).set("month",e.month()).set("day",e.day())};exports.ApplicationInfoDocument=mo,exports.CompanyConfigDocument=bo,exports.ConfirmTooltip=A,exports.CounterDirectoriesDocument=yo,exports.CountersDocument=Io,exports.CreateDashboardDocument=qi,exports.CreateOrderDocument=Ki,exports.CreateProductDocument=$i,exports.CreateStatusChangeDocument=eo,exports.CreateUserPresenceDocument=to,exports.CreateWidgetDocument=no,exports.CurrentUserDocument=vo,exports.DashboardsDocument=Co,exports.DepartmentsDocument=xo,exports.FloorPlansDocument=wo,exports.GraphqlWsClient=fa,exports.ItemsDocument=Ao,exports.MetricValuesDocument=To,exports.MetricsDocument=No,exports.NotificationsDocument=So,exports.OrdersDocument=Eo,exports.OrdersExecutionsDocument=Do,exports.PauseOrderExecutionDocument=ro,exports.ProductsDocument=ko,exports.ReasonsDocument=Oo,exports.ReasonsRecommendationDocument=Go,exports.RemoveDashboardDocument=io,exports.RemoveUserPresenceDocument=oo,exports.RemoveWidgetDocument=ao,exports.RemoveWorkplaceUsersPresencesDocument=so,exports.SetCounterDocument=uo,exports.ShiftsDocument=Ro,exports.SortableSelect=function(e){var t=e.options,n=e.selected,r=e.onChange;return f.default.createElement(Pn,{placeholder:e.placeholder,useDragHandle:!0,axis:"xy",onSortEnd:function(e){var t,i,o;r((t=n,i=e.oldIndex,o=e.newIndex,function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}}(t=[...t],i,o),t))},distance:4,getHelperDimensions:function(e){return e.node.getBoundingClientRect()},isMulti:!0,options:t,value:n.map(function(e){return t.find(function(t){return t.value===e})}),onChange:function(e){return r(e.map(function(e){return e.value}))},components:{MultiValue:Wn,MultiValueLabel:Bn},closeMenuOnSelect:!1})},exports.StandardRatesDocument=_o,exports.StartOrderExecutionDocument=co,exports.StatusChangeTransitionPermissionsDocument=Mo,exports.StatusChangesDocument=Wo,exports.StopOrderExecutionDocument=lo,exports.UpdateDashboardDocument=ho,exports.UpdateNotificationDocument=po,exports.UpdateOrderExecutionDocument=fo,exports.UpdateWidgetDocument=go,exports.UsersDocument=Bo,exports.UsersPresencesDocument=Po,exports.WidgetCard=Yn,exports.WidgetDocument=Vo,exports.WidgetsDocument=Fo,exports.WorkplaceEventDocument=Yo,exports.WorkplacesDocument=Lo,exports.getCurrentShift=function(e,t){return t.find(function(t){return e.isBetween(t.startedAt,t.finishedAt)})||null},exports.getGqlWsClient=ga,exports.getGraphqlSdk=ma,exports.getRecentShift=function(e,t){return t.length?t.reduce(function(t,n){return Math.abs(e.diff(n.finishedAt))<Math.abs(e.diff(t.finishedAt))?n:t}):null},exports.getSdk=Zo,exports.normalizeShifts=function(e,t){var n=[];return e.forEach(function(e){var r=ba(e.startedAt,"YYYY-MM-DD HH:mm:ss ZZ"),i=ba(e.finishedAt,"YYYY-MM-DD HH:mm:ss ZZ");if(ya(t,r),ya(t,i),r.isAfter(i)){var o=ba(r);o.subtract(1,"day");var a=ba(i);a.add(1,"day"),n.push({name:e.name,startedAt:o,finishedAt:i}),n.push({name:e.name,startedAt:r,finishedAt:a})}else n.push({name:e.name,startedAt:r,finishedAt:i})}),n},exports.useGqlClients=function(t){var n,r=t.url,i=t.wsUrl,o=t.lang,a=d.useStore().sessionStore,s=e.useState(),u=s[0],c=s[1],l=e.useState(),h=l[0],p=l[1],f=i||r.replace("graphql","cable"),g=(null==(n=a.loginStatus.authResponse)?void 0:n.accessToken)||"";return e.useEffect(function(){r&&c(ma(r,d.fetch))},[r]),e.useEffect(function(){r&&g&&p(ga(f||r.replace("graphql","cable"),g,o))},[r,f,g,o]),{graphqlSdk:u,gqlWsClient:h}};
|
|
1
|
+
var e=require("react"),n=require("@mui/material"),t=require("@emotion/react"),r=require("react-dom"),i=require("prop-types"),o=require("react-i18next"),a=require("@mui/icons-material"),s=require("./assets/drag-icon.svg"),u=require("./assets/resize-icon.svg"),c=require("actioncable"),l=require("graphql-request"),d=require("andoncloud-sdk");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function h(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,n}var f=/*#__PURE__*/p(e),m=/*#__PURE__*/h(e),g=/*#__PURE__*/p(i),b=/*#__PURE__*/p(u),I=/*#__PURE__*/p(c);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},v.apply(null,arguments)}function y(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}function C(e,n){return n||(n=e.slice(0)),e.raw=n,e}var x={buttons:{paddingTop:function(e){return e.spacing(2)}},cancelButton:{marginRight:"10px"},popper:{".MuiTooltip-tooltip":{padding:"20px",fontSize:"14px",color:"rgba(0, 0, 0, 0.75)",borderRadius:"8px",backgroundColor:"white"},".MuiTooltip-arrow":{color:"white"}}},A=["children","confirmMessage","confirmButtonText","cancelButtonText","onCancel","onConfirm"],w=function(e){var t=e.children,r=e.confirmMessage,i=e.confirmButtonText,o=e.cancelButtonText,a=e.onCancel,s=e.onConfirm,u=y(e,A);return f.default.createElement(n.Tooltip,v({},u,{placement:"bottom-end",title:f.default.createElement(n.Box,null,f.default.createElement(n.Typography,null,r),f.default.createElement(n.Stack,{direction:"row",justifyContent:"flex-end",sx:x.buttons},f.default.createElement(n.Button,{color:"secondary",onClick:function(e){e.stopPropagation(),a()},sx:x.cancelButton},o),f.default.createElement(n.Button,{color:"error",onClick:function(e){e.stopPropagation(),s()}},i))),PopperProps:{sx:x.popper},arrow:!0}),t)};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 T(e){var n=function(e){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=S(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(n)?n:n+""}function N(e,n,t){return(n=T(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach(function(n){N(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function G(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function O(e,n){if(e){if("string"==typeof e)return G(e,n);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)?G(e,n):void 0}}function k(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=o.call(t)).done)&&(s.push(r.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,n)||O(e,n)||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,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n.includes(t=o[r])||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var M=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _(){return _=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},_.apply(null,arguments)}function B(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function V(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T(r.key),r)}}function P(e,n,t){return n&&V(e.prototype,n),t&&V(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y(e,n){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Y(e,n)}function W(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Y(e,n)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F=function(){return!!e})()}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e,n){if(n&&("object"==S(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function Z(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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.")}()}const j=Math.min,J=Math.max,U=Math.round,z=Math.floor,Q=e=>({x:e,y:e});function q(){return"undefined"!=typeof window}function K(e){return ne(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var n;return(null==e||null==(n=e.ownerDocument)?void 0:n.defaultView)||window}function ee(e){var n;return null==(n=(ne(e)?e.ownerDocument:e.document)||window.document)?void 0:n.documentElement}function ne(e){return!!q()&&(e instanceof Node||e instanceof $(e).Node)}function te(e){return!!q()&&(e instanceof Element||e instanceof $(e).Element)}function re(e){return!!q()&&(e instanceof HTMLElement||e instanceof $(e).HTMLElement)}function ie(e){return!(!q()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $(e).ShadowRoot)}function oe(e){const{overflow:n,overflowX:t,overflowY:r,display:i}=ae(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!["inline","contents"].includes(i)}function ae(e){return $(e).getComputedStyle(e)}function se(e){const n=function(e){if("html"===K(e))return e;const n=e.assignedSlot||e.parentNode||ie(e)&&e.host||ee(e);return ie(n)?n.host:n}(e);return function(e){return["html","body","#document"].includes(K(e))}(n)?e.ownerDocument?e.ownerDocument.body:e.body:re(n)&&oe(n)?n:se(n)}function ue(e,n,t){var r;void 0===n&&(n=[]),void 0===t&&(t=!0);const i=se(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=$(i);if(o){const e=ce(a);return n.concat(a,a.visualViewport||[],oe(i)?i:[],e&&t?ue(e):[])}return n.concat(i,ue(i,[],t))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function le(e){return te(e)?e:e.contextElement}function de(e){const n=le(e);if(!re(n))return Q(1);const t=n.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const n=ae(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=re(e),o=i?e.offsetWidth:t,a=i?e.offsetHeight:r,s=U(t)!==o||U(r)!==a;return s&&(t=o,r=a),{width:t,height:r,$:s}}(n);let a=(o?U(t.width):t.width)/r,s=(o?U(t.height):t.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const pe=/*#__PURE__*/Q(0);function he(e,n,t,r){void 0===n&&(n=!1),void 0===t&&(t=!1);const i=e.getBoundingClientRect(),o=le(e);let a=Q(1);n&&(r?te(r)&&(a=de(r)):a=de(e));const s=function(e,n,t){return void 0===n&&(n=!1),!(!t||n&&t!==$(e))&&n}(o,t,r)?function(e){const n=$(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:pe}(o):Q(0);let u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,d=i.height/a.y;if(o){const e=$(o),n=r&&te(r)?$(r):r;let t=e,i=ce(t);for(;i&&r&&n!==t;){const e=de(i),n=i.getBoundingClientRect(),r=ae(i),o=n.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=n.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,d*=e.y,u+=o,c+=a,t=$(i),i=ce(t)}}return function(e){const{x:n,y:t,width:r,height:i}=e;return{width:r,height:i,top:t,left:n,right:n+r,bottom:t+i,x:n,y:t}}({width:l,height:d,x:u,y:c})}function fe(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}var me=e.useLayoutEffect,ge=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],be=function(){};function Ie(e,n){return n?"-"===n[0]?e+n:e+"__"+n:e}function ve(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var o=[].concat(r);if(n&&e)for(var a in n)n.hasOwnProperty(a)&&n[a]&&o.push("".concat(Ie(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ye=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===S(e)&&null!==e?[e]:[]},Ce=function(e){return R({},D(e,ge))},xe=function(e,n,t){var r=e.cx,i=e.getClassNames,o=e.className;return{css:(0,e.getStyles)(n,e),className:r(null!=t?t:{},i(n,e),o)}};function Ae(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function we(e){return Ae(e)?window.pageYOffset:e.scrollTop}function Se(e,n){Ae(e)?window.scrollTo(0,n):e.scrollTop=n}function Te(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:be,i=we(e),o=n-i,a=0;!function n(){var s,u=o*((s=(s=a+=10)/t-1)*s*s+1)+i;Se(e,u),a<t?window.requestAnimationFrame(n):r(e)}()}function Ne(e,n){var t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),i=n.offsetHeight/3;r.bottom+i>t.bottom?Se(e,Math.min(n.offsetTop+n.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<t.top&&Se(e,Math.max(n.offsetTop-i,0))}function Ee(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Re=!1,Ge="undefined"!=typeof window?window:{};Ge.addEventListener&&Ge.removeEventListener&&(Ge.addEventListener("p",be,{get passive(){return Re=!0}}),Ge.removeEventListener("p",be,!1));var Oe=Re;function ke(e){return null!=e}function De(e,n,t){return e?n:t}var Me,_e,Be,Ve=["children","innerProps"],Pe=["children","innerProps"],Ye=function(e){return"auto"===e?"bottom":e},We=/*#__PURE__*/e.createContext(null),Xe=function(n){var t=n.children,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme,c=(e.useContext(We)||{}).setPortalPlacement,l=e.useRef(null),d=k(e.useState(i),2),p=d[0],h=d[1],f=k(e.useState(null),2),m=f[0],g=f[1],b=u.spacing.controlHeight;return me(function(){var e=l.current;if(e){var n="fixed"===a,t=function(e){var n=e.maxHeight,t=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var n=getComputedStyle(e),t="absolute"===n.position,r=/(auto|scroll)/;if("fixed"===n.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(n=getComputedStyle(i),(!t||"static"!==n.position)&&r.test(n.overflow+n.overflowY+n.overflowX))return i;return document.documentElement}(t),c={placement:"bottom",maxHeight:n};if(!t||!t.offsetParent)return c;var l,d=u.getBoundingClientRect().height,p=t.getBoundingClientRect(),h=p.bottom,f=p.height,m=p.top,g=t.offsetParent.getBoundingClientRect().top,b=a||Ae(l=u)?window.innerHeight:l.clientHeight,I=we(u),v=parseInt(getComputedStyle(t).marginBottom,10),y=parseInt(getComputedStyle(t).marginTop,10),C=g-y,x=b-m,A=C+I,w=d-I-m,S=h-b+I+v,T=I+m-y,N=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:n};if(w>=f&&!a)return o&&Te(u,S,N),{placement:"bottom",maxHeight:n};if(!a&&w>=r||a&&x>=r)return o&&Te(u,S,N),{placement:"bottom",maxHeight:a?x-v:w-v};if("auto"===i||a){var E=n,R=a?C:A;return R>=r&&(E=Math.min(R-v-s,n)),{placement:"top",maxHeight:E}}if("bottom"===i)return o&&Se(u,S),{placement:"bottom",maxHeight:n};break;case"top":if(C>=f)return{placement:"top",maxHeight:n};if(A>=f&&!a)return o&&Te(u,T,N),{placement:"top",maxHeight:n};if(!a&&A>=r||a&&C>=r){var G=n;return(!a&&A>=r||a&&C>=r)&&(G=a?C-y:A-y),o&&Te(u,T,N),{placement:"top",maxHeight:G}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!n,isFixedPosition:n,controlHeight:b});h(t.maxHeight),g(t.placement),null==c||c(t.placement)}},[i,o,a,s,r,c,b]),t({ref:l,placerProps:R(R({},n),{},{placement:m||Ye(o),maxHeight:p})})},Fe=function(e,n){var t=e.theme,r=t.spacing.baseUnit;return R({textAlign:"center"},n?{}:{color:t.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Le=Fe,He=Fe,Ze=["size"],je=["innerProps","isRtl","size"],Je="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcg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pbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Ue=function(e){var n=e.size,r=D(e,Ze);return t.jsx("svg",_({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Je},r))},ze=function(e){return t.jsx(Ue,_({size:20},e),t.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"}))},Qe=function(e){return t.jsx(Ue,_({size:20},e),t.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"}))},qe=function(e,n){var t=e.isFocused,r=e.theme,i=r.colors;return R({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:t?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit,":hover":{color:t?i.neutral80:i.neutral40}})},Ke=qe,$e=qe,en=t.keyframes(Me||(_e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Be||(Be=_e.slice(0)),Me=Object.freeze(Object.defineProperties(_e,{raw:{value:Object.freeze(Be)}})))),nn=function(e){var n=e.delay,r=e.offset;return t.jsx("span",{css:/*#__PURE__*/t.css({animation:"".concat(en," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIs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AgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},tn=["data"],rn=["innerRef","isDisabled","isHidden","inputClassName"],on={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},an={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":R({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},on)},sn=function(e){return R({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},on)},un=function(e){return t.jsx("div",e.innerProps,e.children)},cn={ClearIndicator:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||t.jsx(ze,null))},Control:function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return t.jsx("div",_({ref:e.innerRef},xe(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":e.isFocused,"control--menu-is-open":e.menuIsOpen}),i,{"aria-disabled":r||void 0}),n)},DropdownIndicator:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||t.jsx(Qe,null))},DownChevron:Qe,CrossIcon:ze,Group:function(e){var n=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,c=e.label,l=e.theme,d=e.selectProps;return t.jsx("div",_({},xe(e,"group",{group:!0}),u),t.jsx(a,_({},s,{selectProps:d,theme:l,getStyles:i,getClassNames:o,cx:r}),c),t.jsx("div",null,n))},GroupHeading:function(e){var n=D(Ce(e),tn);return t.jsx("div",_({},xe(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"indicatorsContainer",{indicators:!0}),r),n)},IndicatorSeparator:function(e){return t.jsx("span",_({},e.innerProps,xe(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var n=e.cx,r=e.value,i=Ce(e),o=i.innerRef,a=i.isDisabled,s=i.isHidden,u=i.inputClassName,c=D(i,rn);return t.jsx("div",_({},xe(e,"input",{"input-container":!0}),{"data-value":r||""}),t.jsx("input",_({className:n({input:!0},u),ref:o,style:sn(s),disabled:a},c)))},LoadingIndicator:function(e){var n=e.innerProps,r=e.isRtl,i=e.size,o=void 0===i?4:i,a=D(e,je);return t.jsx("div",_({},xe(R(R({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),t.jsx(nn,{delay:0,offset:r}),t.jsx(nn,{delay:160,offset:!0}),t.jsx(nn,{delay:320,offset:!r}))},Menu:function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return t.jsx("div",_({},xe(e,"menu",{menu:!0}),{ref:r},i),n)},MenuList:function(e){var n=e.children,r=e.innerProps,i=e.innerRef;return t.jsx("div",_({},xe(e,"menuList",{"menu-list":!0,"menu-list--is-multi":e.isMulti}),{ref:i},r),n)},MenuPortal:function(n){var i=n.appendTo,o=n.children,a=n.controlElement,s=n.innerProps,u=n.menuPlacement,c=n.menuPosition,l=e.useRef(null),d=e.useRef(null),p=k(e.useState(Ye(u)),2),h=p[0],f=p[1],m=e.useMemo(function(){return{setPortalPlacement:f}},[]),g=k(e.useState(null),2),b=g[0],I=g[1],v=e.useCallback(function(){if(a){var e=function(e){var n=e.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}(a),n="fixed"===c?0:window.pageYOffset,t=e[h]+n;t===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||I({offset:t,rect:e})}},[a,c,h,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);me(function(){v()},[v]);var y=e.useCallback(function(){"function"==typeof d.current&&(d.current(),d.current=null),a&&l.current&&(d.current=function(e,n,t,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=le(e),l=i||o?[...c?ue(c):[],...ue(n)]:[];l.forEach(e=>{i&&e.addEventListener("scroll",t,{passive:!0}),o&&e.addEventListener("resize",t)});const d=c&&s?function(e,n){let t,r=null;const i=ee(e);function o(){var e;clearTimeout(t),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();const c=e.getBoundingClientRect(),{left:l,top:d,width:p,height:h}=c;if(s||n(),!p||!h)return;const f={rootMargin:-z(d)+"px "+-z(i.clientWidth-(l+p))+"px "+-z(i.clientHeight-(d+h))+"px "+-z(l)+"px",threshold:J(0,j(1,u))||1};let m=!0;function g(n){const r=n[0].intersectionRatio;if(r!==u){if(!m)return a();r?a(!1,r):t=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||fe(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,t):null;let p,h=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(n)})),t()}),c&&!u&&f.observe(c),f.observe(n));let m=u?he(e):null;return u&&function n(){const r=he(e);m&&!fe(m,r)&&t(),m=r,p=requestAnimationFrame(n)}(),t(),()=>{var e;l.forEach(e=>{i&&e.removeEventListener("scroll",t),o&&e.removeEventListener("resize",t)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(p)}}(a,l.current,v,{elementResize:"ResizeObserver"in window}))},[a,v]);me(function(){y()},[y]);var C=e.useCallback(function(e){l.current=e,y()},[y]);if(!i&&"fixed"!==c||!b)return null;var x=t.jsx("div",_({ref:C},xe(R(R({},n),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),o);return t.jsx(We.Provider,{value:m},i?/*#__PURE__*/r.createPortal(x,i):x)},LoadingMessage:function(e){var n=e.children,r=void 0===n?"Loading...":n,i=e.innerProps,o=D(e,Pe);return t.jsx("div",_({},xe(R(R({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},NoOptionsMessage:function(e){var n=e.children,r=void 0===n?"No options":n,i=e.innerProps,o=D(e,Ve);return t.jsx("div",_({},xe(R(R({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},MultiValue:function(e){var n=e.children,r=e.components,i=e.data,o=e.innerProps,a=e.removeProps,s=e.selectProps,u=r.Label,c=r.Remove;return t.jsx(r.Container,{data:i,innerProps:R(R({},xe(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":e.isDisabled})),o),selectProps:s},t.jsx(u,{data:i,innerProps:R({},xe(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),t.jsx(c,{data:i,innerProps:R(R({},xe(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},MultiValueContainer:un,MultiValueLabel:un,MultiValueRemove:function(e){var n=e.children;return t.jsx("div",_({role:"button"},e.innerProps),n||t.jsx(ze,{size:14}))},Option:function(e){var n=e.children,r=e.isDisabled,i=e.innerRef,o=e.innerProps;return t.jsx("div",_({},xe(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":e.isFocused,"option--is-selected":e.isSelected}),{ref:i,"aria-disabled":r},o),n)},Placeholder:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"placeholder",{placeholder:!0}),r),n)},SelectContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"container",{"--is-disabled":e.isDisabled,"--is-rtl":e.isRtl}),r),n)},SingleValue:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"singleValue",{"single-value":!0,"single-value--is-disabled":e.isDisabled}),r),n)},ValueContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",_({},xe(e,"valueContainer",{"value-container":!0,"value-container--is-multi":e.isMulti,"value-container--has-value":e.hasValue}),r),n)}},ln=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dn(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!((r=e[t])===(i=n[t])||ln(r)&&ln(i)))return!1;var r,i;return!0}for(var pn="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},hn=function(e){return t.jsx("span",_({css:pn},e))},fn={guidance:function(e){var n=e.isSearchable,t=e.isMulti,r=e.tabSelectsValue,i=e.isInitialFocus;switch(e.context){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(n?",type to refine list":"",", press Down to open the menu, ").concat(t?" 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 n=e.label,t=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(e.action){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(t,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(t,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var n=e.context,t=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,n){return e&&e.length?"".concat(e.indexOf(n)+1," of ").concat(e.length):""};if("value"===n&&a)return"value ".concat(o," focused, ").concat(l(a,t),".");if("menu"===n&&c){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(o).concat(p,", ").concat(l(r,t),".")}return""},onFilter:function(e){var n=e.inputValue;return"".concat(e.resultsMessage).concat(n?" for search term "+n:"",".")}},mn=function(n){var r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.focusableOptions,s=n.isFocused,u=n.selectValue,c=n.selectProps,l=n.id,d=n.isAppleDevice,p=c.ariaLiveMessages,h=c.getOptionLabel,f=c.inputValue,m=c.isMulti,g=c.isOptionDisabled,b=c.isSearchable,I=c.menuIsOpen,v=c.options,y=c.screenReaderStatus,C=c.tabSelectsValue,x=c.isLoading,A=c["aria-label"],w=c["aria-live"],S=e.useMemo(function(){return R(R({},fn),p||{})},[p]),T=e.useMemo(function(){var e,n="";if(r&&S.onChange){var t=r.options,i=r.removedValues,o=r.removedValue||r.option||(e=r.value,Array.isArray(e)?null:e),a=o?h(o):"",s=t||i||void 0,c=s?s.map(h):[],l=R({isDisabled:o&&g(o,u),label:a,labels:c},r);n=S.onChange(l)}return n},[r,S,g,u,h]),N=e.useMemo(function(){var e="",n=i||o,t=!!(i&&u&&u.includes(i));if(n&&S.onFocus){var r={focused:n,label:h(n),isDisabled:g(n,u),isSelected:t,options:a,context:n===i?"menu":"value",selectValue:u,isAppleDevice:d};e=S.onFocus(r)}return e},[i,o,h,g,S,a,u,d]),E=e.useMemo(function(){var e="";if(I&&v.length&&!x&&S.onFilter){var n=y({count:a.length});e=S.onFilter({inputValue:f,resultsMessage:n})}return e},[a,f,I,S,v,y,x]),G="initial-input-focus"===(null==r?void 0:r.action),O=e.useMemo(function(){var e="";return S.guidance&&(e=S.guidance({"aria-label":A,context:o?"value":I?"menu":"input",isDisabled:i&&g(i,u),isMulti:m,isSearchable:b,tabSelectsValue:C,isInitialFocus:G})),e},[A,i,o,m,g,b,I,S,u,C,G]),k=t.jsx(e.Fragment,null,t.jsx("span",{id:"aria-selection"},T),t.jsx("span",{id:"aria-focused"},N),t.jsx("span",{id:"aria-results"},E),t.jsx("span",{id:"aria-guidance"},O));return t.jsx(e.Fragment,null,t.jsx(hn,{id:l},G&&k),t.jsx(hn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!G&&k))},gn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],bn=new RegExp("["+gn.map(function(e){return e.letters}).join("")+"]","g"),In={},vn=0;vn<gn.length;vn++)for(var yn=gn[vn],Cn=0;Cn<yn.letters.length;Cn++)In[yn.letters[Cn]]=yn.base;var xn=function(e){return e.replace(bn,function(e){return In[e]})},An=function(e,n){void 0===n&&(n=dn);var t=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t&&t.lastThis===this&&n(r,t.lastArgs))return t.lastResult;var o=e.apply(this,r);return t={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){t=null},r}(xn),wn=function(e){return e.replace(/^\s+|\s+$/g,"")},Sn=function(e){return"".concat(e.label," ").concat(e.value)},Tn=["innerRef"];function Nn(e){var n=e.innerRef,r=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=Object.entries(e).filter(function(e){var n=k(e,1);return!t.includes(n[0])});return i.reduce(function(e,n){var t=k(n,2);return e[t[0]]=t[1],e},{})}(D(e,Tn),"onExited","in","enter","exit","appear");return t.jsx("input",_({ref:n},r,{css:/*#__PURE__*/t.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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0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GdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var En=["boxSizing","height","overflow","paddingRight","position"],Rn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Gn(e){e.cancelable&&e.preventDefault()}function On(e){e.stopPropagation()}function kn(){var e=this.scrollTop,n=this.scrollHeight,t=e+this.offsetHeight;0===e?this.scrollTop=1:t===n&&(this.scrollTop=e-1)}function Dn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Mn=!("undefined"==typeof window||!window.document||!window.document.createElement),_n=0,Bn={capture:!1,passive:!1},Vn=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Pn="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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JldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Yn(n){var r=n.children,i=n.lockEnabled,o=n.captureEnabled,a=function(n){var t=n.isEnabled,r=n.onBottomArrive,i=n.onBottomLeave,o=n.onTopArrive,a=n.onTopLeave,s=e.useRef(!1),u=e.useRef(!1),c=e.useRef(0),l=e.useRef(null),d=e.useCallback(function(e,n){if(null!==l.current){var t=l.current,c=t.scrollTop,d=t.scrollHeight,p=l.current,h=n>0,f=d-t.clientHeight-c,m=!1;f>n&&s.current&&(i&&i(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&n>f?(r&&!s.current&&r(e),p.scrollTop=d,m=!0,s.current=!0):!h&&-n>c&&(o&&!u.current&&o(e),p.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[r,i,o,a]),p=e.useCallback(function(e){d(e,e.deltaY)},[d]),h=e.useCallback(function(e){c.current=e.changedTouches[0].clientY},[]),f=e.useCallback(function(e){d(e,c.current-e.changedTouches[0].clientY)},[d]),m=e.useCallback(function(e){if(e){var n=!!Oe&&{passive:!1};e.addEventListener("wheel",p,n),e.addEventListener("touchstart",h,n),e.addEventListener("touchmove",f,n)}},[f,h,p]),g=e.useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))},[f,h,p]);return e.useEffect(function(){if(t){var e=l.current;return m(e),function(){g(e)}}},[t,m,g]),function(e){l.current=e}}({isEnabled:void 0===o||o,onBottomArrive:n.onBottomArrive,onBottomLeave:n.onBottomLeave,onTopArrive:n.onTopArrive,onTopLeave:n.onTopLeave}),s=function(n){var t=n.isEnabled,r=n.accountForScrollbars,i=void 0===r||r,o=e.useRef({}),a=e.useRef(null),s=e.useCallback(function(e){if(Mn){var n=document.body,t=n&&n.style;if(i&&En.forEach(function(e){o.current[e]=t&&t[e]}),i&&_n<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Rn).forEach(function(e){t&&(t[e]=Rn[e])}),t&&(t.paddingRight="".concat(s,"px"))}n&&Dn()&&(n.addEventListener("touchmove",Gn,Bn),e&&(e.addEventListener("touchstart",kn,Bn),e.addEventListener("touchmove",On,Bn))),_n+=1}},[i]),u=e.useCallback(function(e){if(Mn){var n=document.body,t=n&&n.style;_n=Math.max(_n-1,0),i&&_n<1&&En.forEach(function(e){t&&(t[e]=o.current[e])}),n&&Dn()&&(n.removeEventListener("touchmove",Gn,Bn),e&&(e.removeEventListener("touchstart",kn,Bn),e.removeEventListener("touchmove",On,Bn)))}},[i]);return e.useEffect(function(){if(t){var e=a.current;return s(e),function(){u(e)}}},[t,s,u]),function(e){a.current=e}}({isEnabled:i});return t.jsx(e.Fragment,null,i&&t.jsx("div",{onClick:Vn,css:Pn}),r(function(e){a(e),s(e)}))}var Wn="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# source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hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Xn=function(e){return t.jsx("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:Wn,value:"",onChange:function(){}})};function Fn(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform)}function Ln(){return Fn(/^Mac/i)}var Hn={clearIndicator:$e,container:function(e){return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:e.isDisabled?"none":void 0,position:"relative"}},control:function(e,n){var t=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors;return R({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:r?o.primary:o.neutral20,borderRadius:i.borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Ke,group:function(e,n){var t=e.theme.spacing;return n?{}:{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e,n){var t=e.theme,r=t.spacing;return R({label:"group",cursor:"default",display:"block"},n?{}:{color:t.colors.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,n){var t=e.theme,r=t.spacing.baseUnit,i=t.colors;return R({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:e.isDisabled?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return R(R({visibility:e.isDisabled?"hidden":"visible",transform:e.value?"translateZ(0)":""},an),n?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,n){var t=e.size,r=e.theme,i=r.colors;return R({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:e.isFocused?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit})},loadingMessage:He,menu:function(e,n){var t,r,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return R((N(t={label:"menu"},(r=e.placement)?{bottom:"top",top:"bottom"}[r]:"bottom","100%"),N(t,"position","absolute"),N(t,"width","100%"),N(t,"zIndex",1),t),n?{}:{backgroundColor:s.neutral0,borderRadius:o,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})},menuList:function(e,n){var t=e.theme.spacing.baseUnit;return R({maxHeight:e.maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:t,paddingTop:t})},menuPortal:function(e){var n=e.rect;return{left:n.left,position:e.position,top:e.offset,width:n.width,zIndex:1}},multiValue:function(e,n){var t=e.theme;return R({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:t.colors.neutral10,borderRadius:t.borderRadius/2,margin:t.spacing.baseUnit/2})},multiValueLabel:function(e,n){var t=e.theme,r=e.cropWithEllipsis;return R({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t.borderRadius/2,color:t.colors.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return R({alignItems:"center",display:"flex"},n?{}:{borderRadius:t.borderRadius/2,backgroundColor:e.isFocused?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Le,option:function(e,n){var t=e.isDisabled,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return R({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:r?a.primary:e.isFocused?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}})},placeholder:function(e,n){var t=e.theme,r=t.spacing;return R({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:t.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return R({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:e.isDisabled?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,n){var t=e.theme.spacing;return R({alignItems:"center",display:e.isMulti&&e.hasValue&&e.selectProps.controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px")})}},Zn={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}},jn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ee(),captureMenuScroll:!Ee(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,n){if(e.data.__isNew__)return!0;var t=R({ignoreCase:!0,ignoreAccents:!0,stringify:Sn,trim:!0,matchFrom:"any"},void 0),r=t.ignoreCase,i=t.ignoreAccents,o=t.stringify,a=t.trim,s=t.matchFrom,u=a?wn(n):n,c=a?wn(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=An(u),c=xn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(1!==n?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Jn(e,n,t,r){return{type:"option",data:n,isDisabled:nt(e,n,t),isSelected:tt(e,n,t),label:$n(e,n),value:et(e,n),index:r}}function Un(e,n){return e.options.map(function(t,r){if("options"in t){var i=t.options.map(function(t,r){return Jn(e,t,n,r)}).filter(function(n){return qn(e,n)});return i.length>0?{type:"group",data:t,options:i,index:r}:void 0}var o=Jn(e,t,n,r);return qn(e,o)?o:void 0}).filter(ke)}function zn(e){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,Z(n.options.map(function(e){return e.data}))):e.push(n.data),e},[])}function Qn(e,n){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,Z(t.options.map(function(e){return{data:e.data,id:"".concat(n,"-").concat(t.index,"-").concat(e.index)}}))):e.push({data:t.data,id:"".concat(n,"-").concat(t.index)}),e},[])}function qn(e,n){var t=e.inputValue,r=void 0===t?"":t,i=n.data,o=n.isSelected,a=n.label,s=n.value;return(!it(e)||!o)&&rt(e,{label:a,value:s,data:i},r)}var Kn=function(e,n){var t;return(null===(t=e.find(function(e){return e.data===n}))||void 0===t?void 0:t.id)||null},$n=function(e,n){return e.getOptionLabel(n)},et=function(e,n){return e.getOptionValue(n)};function nt(e,n,t){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(n,t)}function tt(e,n,t){if(t.indexOf(n)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(n,t);var r=et(e,n);return t.some(function(n){return et(e,n)===r})}function rt(e,n,t){return!e.filterOption||e.filterOption(n,t)}var it=function(e){var n=e.hideSelectedOptions;return void 0===n?e.isMulti:n},ot=1,at=/*#__PURE__*/function(){W(t,e.Component);var n=function(e){var n=F();return function(){var t,r=X(e);if(n){var i=X(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return H(this,t)}}(t);function t(e){var r;if(B(this,t),(r=n.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:""},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.isAppleDevice=Ln()||Fn(/^iPhone/i)||Fn(/^iPad/i)||Ln()&&navigator.maxTouchPoints>1,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,n){var t=r.props,i=t.onChange;n.name=t.name,r.ariaOnChange(e,n),i(e,n)},r.setValue=function(e,n,t){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value",prevInputValue:i.inputValue}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:n,option:t})},r.selectOption=function(e){var n=r.props,t=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(Z(a),[e]),"select-option",e):r.setValue(e,"select-option")}t&&r.blurInput()},r.removeValue=function(e){var n=r.props.isMulti,t=r.state.selectValue,i=r.getOptionValue(e),o=t.filter(function(e){return r.getOptionValue(e)!==i}),a=De(n,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(De(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,n=r.state.selectValue,t=n[n.length-1],i=n.slice(0,n.length-1),o=De(e,i,i[0]||null);t&&r.onChange(o,{action:"pop-value",removedValue:t})},r.getFocusedOptionId=function(e){return Kn(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Qn(Un(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return ve.apply(void 0,[r.props.classNamePrefix].concat(n))},r.getOptionLabel=function(e){return $n(r.props,e)},r.getOptionValue=function(e){return et(r.props,e)},r.getStyles=function(e,n){var t=Hn[e](n,r.props.unstyled);t.boxSizing="border-box";var i=r.props.styles[e];return i?i(t,n):t},r.getClassNames=function(e,n){var t,i;return null===(t=(i=r.props.classNames)[e])||void 0===t?void 0:t.call(i,n)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,R(R({},cn),e.components);var e},r.buildCategorizedOptions=function(){return Un(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return zn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,n){r.setState({ariaSelection:R({value:e},n)})},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 n=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():n&&r.openMenu("first"):(n&&(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 n=r.props,t=n.isMulti,i=n.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!t}),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&&Ae(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 n=e.touches,t=n&&n.item(0);t&&(r.initialTouchX=t.clientX,r.initialTouchY=t.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var n=e.touches,t=n&&n.item(0);if(t){var i=Math.abs(t.clientX-r.initialTouchX),o=Math.abs(t.clientY-r.initialTouchY);r.userIsDragging=i>5||o>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 n=r.props.inputValue,t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change",prevInputValue:n}),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 n=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:n}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var n=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:n>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return it(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var n=r.props,t=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.menuIsOpen,c=n.onKeyDown,l=n.tabSelectsValue,d=n.openMenuOnFocus,p=r.state,h=p.focusedOption,f=p.focusedValue,m=p.selectValue;if(!(n.isDisabled||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!t||a)return;r.focusValue("previous");break;case"ArrowRight":if(!t||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(f)r.removeValue(f);else{if(!i)return;t?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!l||!h||d&&r.isOptionSelected(h,m))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:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)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||++ot),r.state.selectValue=ye(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=Kn(i,o[a])}return r}return P(t,[{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&&Ne(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.isDisabled,r=this.state.isFocused;(r&&!t&&e.isDisabled||r&&n.menuIsOpen&&!e.menuIsOpen)&&this.focusInput(),r&&t&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||t||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ne(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,n){this.props.onInputChange(e,n)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var n=this,t=this.state,r=t.selectValue,i=t.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return n.onMenuOpen()})}},{key:"focusValue",value:function(e){var n=this.state,t=n.selectValue,r=n.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=t.indexOf(r);r||(i=-1);var o=t.length-1,a=-1;if(t.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:t[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",n=this.props.pageSize,t=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(t);t||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-n)<0&&(i=0):"pagedown"===e?(i=o+n)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Zn):R(R({},Zn),this.props.theme):Zn}},{key:"getCommonProps",value:function(){var e=this.selectOption,n=this.setValue,t=this.props,r=t.isMulti,i=t.isRtl,o=t.options;return{clearValue:this.clearValue,cx:this.cx,getStyles:this.getStyles,getClassNames:this.getClassNames,getValue:this.getValue,hasValue:this.hasValue(),isMulti:r,isRtl:i,options:o,selectOption:e,selectProps:t,setValue:n,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,n=e.isClearable;return void 0===n?e.isMulti:n}},{key:"isOptionDisabled",value:function(e,n){return nt(this.props,e,n)}},{key:"isOptionSelected",value:function(e,n){return tt(this.props,e,n)}},{key:"filterOption",value:function(e,n){return rt(this.props,e,n)}},{key:"formatOptionLabel",value:function(e,n){return"function"==typeof this.props.formatOptionLabel?this.props.formatOptionLabel(e,{context:n,inputValue:this.props.inputValue,selectValue:this.state.selectValue}):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,n=e.isDisabled,t=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,f=r||this.getElementId("input"),g=R(R(R({"aria-autocomplete":"list","aria-expanded":s,"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":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!t&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return t?/*#__PURE__*/m.createElement(c,_({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:n,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},g)):/*#__PURE__*/m.createElement(Nn,_({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:be,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),t=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,o=n.MultiValueRemove,a=n.SingleValue,s=n.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,f=c.placeholder,g=this.state,b=g.selectValue,I=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!l)return h?null:/*#__PURE__*/m.createElement(s,_({},u,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),f);if(p)return b.map(function(n,a){var s=n===I,c="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));/*#__PURE__*/
|
|
2
|
+
return m.createElement(t,_({},u,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),e.formatOptionLabel(n,"value"))});if(h)return null;var y=b[0];/*#__PURE__*/
|
|
3
|
+
return m.createElement(a,_({},u,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,t=this.props,r=t.isDisabled,i=t.isLoading,o=this.state.isFocused;return this.isClearable()&&e&&!r&&this.hasValue()&&!i?/*#__PURE__*/m.createElement(e,_({},n,{innerProps:{onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"},isFocused:o})):null}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.props;return e&&n.isLoading?/*#__PURE__*/m.createElement(e,_({},this.commonProps,{innerProps:{"aria-hidden":"true"},isDisabled:n.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.IndicatorSeparator;return e.DropdownIndicator&&n?/*#__PURE__*/m.createElement(n,_({},this.commonProps,{isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;return e?/*#__PURE__*/m.createElement(e,_({},this.commonProps,{innerProps:{onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"},isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),t=n.Group,r=n.GroupHeading,i=n.Menu,o=n.MenuList,a=n.MenuPortal,s=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,f=p.inputValue,g=p.isLoading,b=p.loadingMessage,I=p.minMenuHeight,v=p.maxMenuHeight,y=p.menuPlacement,C=p.menuPosition,x=p.menuPortalTarget,A=p.menuShouldBlockScroll,w=p.menuShouldScrollIntoView,S=p.noOptionsMessage,T=p.onMenuScrollToTop,N=p.onMenuScrollToBottom;if(!p.menuIsOpen)return null;var E,R=function(n,t){var r=n.type,i=n.data,o=n.isDisabled,a=n.isSelected,s=n.label,u=n.value,p=d===i,h=o?void 0:function(){return e.onOptionHover(i)},f=o?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(t);/*#__PURE__*/
|
|
4
|
+
return m.createElement(c,_({},l,{innerProps:{id:g,onClick:f,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a},data:i,isDisabled:o,isSelected:a,key:g,label:s,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map(function(n){if("group"===n.type){var i=n.data,o=n.options,a=n.index,s="".concat(e.getElementId("group"),"-").concat(a),u="".concat(s,"-heading");/*#__PURE__*/
|
|
5
|
+
return m.createElement(t,_({},l,{key:s,data:i,options:o,Heading:r,headingProps:{id:u,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map(function(e){return R(e,"".concat(a,"-").concat(e.index))}))}if("option"===n.type)return R(n,"".concat(n.index))});else if(g){var G=b({inputValue:f});if(null===G)return null;E=/*#__PURE__*/m.createElement(s,l,G)}else{var O=S({inputValue:f});if(null===O)return null;E=/*#__PURE__*/m.createElement(u,l,O)}var k={minMenuHeight:I,maxMenuHeight:v,menuPlacement:y,menuPosition:C,menuShouldScrollIntoView:w},D=/*#__PURE__*/m.createElement(Xe,_({},l,k),function(n){var t=n.placerProps,r=t.maxHeight;/*#__PURE__*/
|
|
6
|
+
return m.createElement(i,_({},l,k,{innerRef:n.ref,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:t.placement}),/*#__PURE__*/m.createElement(Yn,{captureEnabled:h,onTopArrive:T,onBottomArrive:N,lockEnabled:A},function(n){/*#__PURE__*/
|
|
7
|
+
return m.createElement(o,_({},l,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:r,focusedOption:d}),E)}))});return x||"fixed"===C?/*#__PURE__*/m.createElement(a,_({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:y,menuPosition:C}),D):D}},{key:"renderFormField",value:function(){var e=this,n=this.props,t=n.delimiter,r=n.isDisabled,i=n.isMulti,o=n.name,a=this.state.selectValue;if(n.required&&!this.hasValue()&&!r)/*#__PURE__*/
|
|
8
|
+
return m.createElement(Xn,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(t){var s=a.map(function(n){return e.getOptionValue(n)}).join(t);/*#__PURE__*/
|
|
9
|
+
return m.createElement("input",{name:o,type:"hidden",value:s})}var u=a.length>0?a.map(function(n,t){/*#__PURE__*/
|
|
10
|
+
return m.createElement("input",{key:"i-".concat(t),name:o,type:"hidden",value:e.getOptionValue(n)})}):/*#__PURE__*/m.createElement("input",{name:o,type:"hidden",value:""});/*#__PURE__*/
|
|
11
|
+
return m.createElement("div",null,u)}var c=a[0]?this.getOptionValue(a[0]):"";/*#__PURE__*/
|
|
12
|
+
return m.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,t=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,o=n.isFocused,a=n.selectValue,s=this.getFocusableOptions();/*#__PURE__*/
|
|
13
|
+
return m.createElement(mn,_({},e,{id:this.getElementId("live-region"),ariaSelection:t,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,t=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,u=o.isDisabled,c=o.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();/*#__PURE__*/
|
|
14
|
+
return m.createElement(r,_({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),/*#__PURE__*/m.createElement(n,_({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),/*#__PURE__*/m.createElement(i,_({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),/*#__PURE__*/m.createElement(t,_({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,r=n.clearFocusValueOnUpdate,i=n.inputIsHiddenAfterUpdate,o=n.ariaSelection,a=n.isFocused,s=n.prevWasFocused,u=n.instancePrefix,c=e.options,l=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=ye(l),m={};if(t&&(l!==t.value||c!==t.options||d!==t.menuIsOpen||p!==t.inputValue)){var g=d?function(e,n){return zn(Un(e,n))}(e,f):[],b=d?Qn(Un(e,f),"".concat(u,"-option")):[],I=r?function(e,n){var t=e.focusedValue,r=e.selectValue.indexOf(t);if(r>-1){if(n.indexOf(t)>-1)return t;if(r<n.length)return n[r]}return null}(n,f):null,v=function(e,n){var t=e.focusedOption;return t&&n.indexOf(t)>-1?t:n[0]}(n,g);m={selectValue:f,focusedOption:v,focusedOptionId:Kn(b,v),focusableOptionsWithIds:b,focusedValue:I,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==t?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},C=o,x=a&&s;return a&&!x&&(C={value:De(h,f,f[0]||null),options:f,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(C=null),R(R(R({},m),y),{},{prevProps:e,ariaSelection:C,prevWasFocused:x})}}]),t}();at.defaultProps=jn;var st=/*#__PURE__*/e.forwardRef(function(n,t){var r=function(n){var t=n.defaultInputValue,r=void 0===t?"":t,i=n.defaultMenuIsOpen,o=void 0!==i&&i,a=n.defaultValue,s=void 0===a?null:a,u=n.inputValue,c=n.menuIsOpen,l=n.onChange,d=n.onInputChange,p=n.onMenuClose,h=n.onMenuOpen,f=n.value,m=D(n,M),g=k(e.useState(void 0!==u?u:r),2),b=g[0],I=g[1],v=k(e.useState(void 0!==c?c:o),2),y=v[0],C=v[1],x=k(e.useState(void 0!==f?f:s),2),A=x[0],w=x[1],S=e.useCallback(function(e,n){"function"==typeof l&&l(e,n),w(e)},[l]),T=e.useCallback(function(e,n){var t;"function"==typeof d&&(t=d(e,n)),I(void 0!==t?t:e)},[d]),N=e.useCallback(function(){"function"==typeof h&&h(),C(!0)},[h]),E=e.useCallback(function(){"function"==typeof p&&p(),C(!1)},[p]),G=void 0!==u?u:b,O=void 0!==c?c:y,_=void 0!==f?f:A;return R(R({},m),{},{inputValue:G,menuIsOpen:O,onChange:S,onInputChange:T,onMenuClose:E,onMenuOpen:N,value:_})}(n);/*#__PURE__*/
|
|
15
|
+
return m.createElement(at,_({ref:t},r))}),ut=st;function ct(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.forEach(function(n){N(e,n,t[n])})}return e}var lt=function(e,n,t,r,i,o,a,s){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[t,r,i,o,a,s],l=0;(u=new Error(n.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},dt=function(){function e(){B(this,e),N(this,"refs",{})}return P(e,[{key:"add",value:function(e,n){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(n)}},{key:"remove",value:function(e,n){var t=this.getIndex(e,n);-1!==t&&this.refs[e].splice(t,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(n){return n.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,n){return this.refs[e].indexOf(n)}},{key:"getOrderedRefs",value:function(){return this.refs[arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection].sort(pt)}}]),e}();function pt(e,n){return e.node.sortableInfo.index-n.node.sortableInfo.index}function ht(e,n){return Object.keys(e).reduce(function(t,r){return-1===n.indexOf(r)&&(t[r]=e[r]),t},{})}var ft={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},mt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],n=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===n?"ms":n&&n.length?n[0].toUpperCase()+n.substr(1):""}();function gt(e,n){Object.keys(n).forEach(function(t){e.style[t]=n[t]})}function bt(e,n){e.style["".concat(mt,"Transform")]=null==n?"":"translate3d(".concat(n.x,"px,").concat(n.y,"px,0)")}function It(e,n){e.style["".concat(mt,"TransitionDuration")]=null==n?"":"".concat(n,"ms")}function vt(e,n){for(;e;){if(n(e))return e;e=e.parentNode}return null}function yt(e,n,t){return Math.max(e,Math.min(t,n))}function Ct(e){return"px"===e.substr(-2)?parseFloat(e):0}function xt(e,n){var t=n.displayName||n.name;return t?"".concat(e,"(").concat(t,")"):e}function At(e,n){var t=e.getBoundingClientRect();return{top:t.top+n.top,left:t.left+n.left}}function wt(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function St(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:t.left+e.offsetLeft,top:t.top+e.offsetTop};return e.parentNode===n?r:St(e.parentNode,n,r)}}function Tt(e){var n=e.lockOffset,t=e.width,r=e.height,i=n,o=n,a="px";if("string"==typeof n){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(n);lt(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',n),i=parseFloat(n),o=parseFloat(n),a=s[1]}return lt(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",n),"%"===a&&(i=i*t/100,o=o*r/100),{x:i,y:o}}function Nt(e){return e instanceof HTMLElement?function(e){var n=window.getComputedStyle(e),t=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return t.test(n[e])})}(e)?e:Nt(e.parentNode):null}var Et="BUTTON",Rt="INPUT",Gt="OPTION",Ot="TEXTAREA",kt="SELECT";function Dt(e){return null!=e.sortableHandle}var Mt=function(){function e(n,t){B(this,e),this.container=n,this.onScrollCallback=t}return P(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var n=this,t=e.translate,r=e.minTranslate,i=e.maxTranslate,o=e.width,a=e.height,s={x:0,y:0},u={x:1,y:1},c=this.container,l=c.scrollTop,d=c.scrollLeft,p=0===l,h=0===d,f=c.scrollWidth-d-c.clientWidth==0;t.y>=i.y-a/2&&c.scrollHeight-l-c.clientHeight!=0?(s.y=1,u.y=10*Math.abs((i.y-a/2-t.y)/a)):t.x>=i.x-o/2&&!f?(s.x=1,u.x=10*Math.abs((i.x-o/2-t.x)/o)):t.y<=r.y+a/2&&!p?(s.y=-1,u.y=10*Math.abs((t.y-a/2-r.y)/a)):t.x<=r.x+o/2&&!h&&(s.x=-1,u.x=10*Math.abs((t.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval(function(){n.isAutoScrolling=!0;var e={left:u.x*s.x,top:u.y*s.y};n.container.scrollTop+=e.top,n.container.scrollLeft+=e.left,n.onScrollCallback(e)},5))}}]),e}(),_t={axis:g.default.oneOf(["x","y","xy"]),contentWindow:g.default.any,disableAutoscroll:g.default.bool,distance:g.default.number,getContainer:g.default.func,getHelperDimensions:g.default.func,helperClass:g.default.string,helperContainer:g.default.oneOfType([g.default.func,"undefined"==typeof HTMLElement?g.default.any:g.default.instanceOf(HTMLElement)]),hideSortableGhost:g.default.bool,keyboardSortingTransitionDuration:g.default.number,lockAxis:g.default.string,lockOffset:g.default.oneOfType([g.default.number,g.default.string,g.default.arrayOf(g.default.oneOfType([g.default.number,g.default.string]))]),lockToContainerEdges:g.default.bool,onSortEnd:g.default.func,onSortMove:g.default.func,onSortOver:g.default.func,onSortStart:g.default.func,pressDelay:g.default.number,pressThreshold:g.default.number,keyCodes:g.default.shape({lift:g.default.arrayOf(g.default.number),drop:g.default.arrayOf(g.default.number),cancel:g.default.arrayOf(g.default.number),up:g.default.arrayOf(g.default.number),down:g.default.arrayOf(g.default.number)}),shouldCancelStart:g.default.func,transitionDuration:g.default.number,updateBeforeSortStart:g.default.func,useDragHandle:g.default.bool,useWindowAsScrollContainer:g.default.bool},Bt={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},Vt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var n=e.node;return{height:n.offsetHeight,width:n.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Bt,shouldCancelStart:function(e){return-1!==[Rt,Ot,kt,Gt,Et].indexOf(e.target.tagName)||!!vt(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},Pt=Object.keys(_t),Yt=e.createContext({manager:{}}),Wt={index:g.default.number.isRequired,collection:g.default.oneOfType([g.default.number,g.default.string]),disabled:g.default.bool},Xt=Object.keys(Wt),Ft=function(n){var t,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return i=t=function(){function t(){var n,r;B(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return N(L(L(r=H(this,(n=X(t)).call.apply(n,[this].concat(o))))),"wrappedInstance",e.createRef()),r}return W(t,e.Component),P(t,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,n=e.collection,t=e.disabled,i=e.index,o=r.findDOMNode(this);o.sortableInfo={collection:n,disabled:t,index:i,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(n,this.ref)}},{key:"unregister",value:function(){this.context.manager.remove(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection,this.ref)}},{key:"getWrappedInstance",value:function(){return lt(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){return e.createElement(n,_({ref:o.withRef?this.wrappedInstance:null},ht(this.props,Xt)))}}]),t}(),N(t,"displayName",xt("sortableElement",n)),N(t,"contextType",Yt),N(t,"propTypes",Wt),N(t,"defaultProps",{collection:0}),i}(function(e){var n=v({},e.innerProps,{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},style:{zIndex:1500}});return f.default.createElement(cn.MultiValue,v({},e,{innerProps:n}))}),Lt=function(n){var t,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return i=t=function(){function t(){var n,r;B(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return N(L(L(r=H(this,(n=X(t)).call.apply(n,[this].concat(o))))),"wrappedInstance",e.createRef()),r}return W(t,e.Component),P(t,[{key:"componentDidMount",value:function(){r.findDOMNode(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return lt(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){return e.createElement(n,_({ref:o.withRef?this.wrappedInstance:null},this.props))}}]),t}(),N(t,"displayName",xt("sortableHandle",n)),i}(function(e){return f.default.createElement(cn.MultiValueLabel,v({},e))}),Ht=function(n){var t,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return i=t=function(){function t(n){var r;B(this,t),N(L(L(r=H(this,X(t).call(this,n)))),"state",{}),N(L(L(r)),"handleStart",function(e){var n=r.props,t=n.distance;if(2!==e.button&&!(0,n.shouldCancelStart)(e)){r.touched=!0,r.position=wt(e);var i=vt(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&r.nodeIsChild(i)&&!r.state.sorting){var o=i.sortableInfo,a=o.index,s=o.collection;if(o.disabled)return;if(r.props.useDragHandle&&!vt(e.target,Dt))return;r.manager.active={collection:s,index:a},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||"A"!==e.target.tagName||e.preventDefault(),t||(0===r.props.pressDelay?r.handlePress(e):r.pressTimer=setTimeout(function(){return r.handlePress(e)},r.props.pressDelay))}}}),N(L(L(r)),"nodeIsChild",function(e){return e.sortableInfo.manager===r.manager}),N(L(L(r)),"handleMove",function(e){var n=r.props,t=n.distance,i=n.pressThreshold;if(!r.state.sorting&&r.touched&&!r._awaitingUpdateBeforeSortStart){var o=wt(e),a={x:r.position.x-o.x,y:r.position.y-o.y},s=Math.abs(a.x)+Math.abs(a.y);r.delta=a,t||i&&!(s>=i)?t&&s>=t&&r.manager.isActive()&&r.handlePress(e):(clearTimeout(r.cancelTimer),r.cancelTimer=setTimeout(r.cancel,0))}}),N(L(L(r)),"handleEnd",function(){r.touched=!1,r.cancel()}),N(L(L(r)),"cancel",function(){r.state.sorting||(r.props.distance||clearTimeout(r.pressTimer),r.manager.active=null)}),N(L(L(r)),"handlePress",function(e){try{var n=r.manager.getActive(),t=function(){if(n){var t=function(){var n,t,i,c,m=p.sortableInfo.index,g={bottom:Ct((n=window.getComputedStyle(p)).marginBottom),left:Ct(n.marginLeft),right:Ct(n.marginRight),top:Ct(n.marginTop)},b=function(e){var n=window.getComputedStyle(e);return"grid"===n.display?{x:Ct(n.gridColumnGap),y:Ct(n.gridRowGap)}:{x:0,y:0}}(r.container),I=r.scrollContainer.getBoundingClientRect(),v=a({index:m,node:p,collection:h});if(r.node=p,r.margin=g,r.gridGap=b,r.width=v.width,r.height=v.height,r.marginOffset={x:r.margin.left+r.margin.right+r.gridGap.x,y:Math.max(r.margin.top,r.margin.bottom,r.gridGap.y)},r.boundingClientRect=p.getBoundingClientRect(),r.containerBoundingRect=I,r.index=m,r.newIndex=m,r.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},r.offsetEdge=St(p,r.container),r.initialOffset=wt(f?ct({},e,{pageX:r.boundingClientRect.left,pageY:r.boundingClientRect.top}):e),r.initialScroll={left:r.scrollContainer.scrollLeft,top:r.scrollContainer.scrollTop},r.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},r.helper=r.helperContainer.appendChild((i=(t=p).querySelectorAll("input, textarea, select, canvas, [contenteditable]"),Z((c=t.cloneNode(!0)).querySelectorAll("input, textarea, select, canvas, [contenteditable]")).forEach(function(e,n){"file"!==e.type&&(e.value=i[n].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&i[n].width>0&&i[n].height>0&&e.getContext("2d").drawImage(i[n],0,0)}),c)),gt(r.helper,{boxSizing:"border-box",height:"".concat(r.height,"px"),left:"".concat(r.boundingClientRect.left-g.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(r.boundingClientRect.top-g.top,"px"),width:"".concat(r.width,"px")}),f&&r.helper.focus(),u&&(r.sortableGhost=p,gt(p,{opacity:0,visibility:"hidden"})),r.minTranslate={},r.maxTranslate={},f){var y=d?{top:0,left:0,width:r.contentWindow.innerWidth,height:r.contentWindow.innerHeight}:r.containerBoundingRect,C=y.top,x=y.left,A=C+y.height,w=x+y.width;r.axis.x&&(r.minTranslate.x=x-r.boundingClientRect.left,r.maxTranslate.x=w-(r.boundingClientRect.left+r.width)),r.axis.y&&(r.minTranslate.y=C-r.boundingClientRect.top,r.maxTranslate.y=A-(r.boundingClientRect.top+r.height))}else r.axis.x&&(r.minTranslate.x=(d?0:I.left)-r.boundingClientRect.left-r.width/2,r.maxTranslate.x=(d?r.contentWindow.innerWidth:I.left+I.width)-r.boundingClientRect.left-r.width/2),r.axis.y&&(r.minTranslate.y=(d?0:I.top)-r.boundingClientRect.top-r.height/2,r.maxTranslate.y=(d?r.contentWindow.innerHeight:I.top+I.height)-r.boundingClientRect.top-r.height/2);s&&s.split(" ").forEach(function(e){return r.helper.classList.add(e)}),r.listenerNode=e.touches?e.target:r.contentWindow,f?(r.listenerNode.addEventListener("wheel",r.handleKeyEnd,!0),r.listenerNode.addEventListener("mousedown",r.handleKeyEnd,!0),r.listenerNode.addEventListener("keydown",r.handleKeyDown)):(ft.move.forEach(function(e){return r.listenerNode.addEventListener(e,r.handleSortMove,!1)}),ft.end.forEach(function(e){return r.listenerNode.addEventListener(e,r.handleSortEnd,!1)})),r.setState({sorting:!0,sortingIndex:m}),l&&l({node:p,index:m,collection:h,isKeySorting:f,nodes:r.manager.getOrderedRefs(),helper:r.helper},e),f&&r.keyMove(0)},i=r.props,o=i.axis,a=i.getHelperDimensions,s=i.helperClass,u=i.hideSortableGhost,c=i.updateBeforeSortStart,l=i.onSortStart,d=i.useWindowAsScrollContainer,p=n.node,h=n.collection,f=r.manager.isKeySorting,m=function(){if("function"==typeof c){r._awaitingUpdateBeforeSortStart=!0;var n=function(n,t){try{var r=Promise.resolve(c({collection:h,index:p.sortableInfo.index,node:p,isKeySorting:f},e)).then(function(){})}catch(e){return t(!0,e)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(0,function(e,n){if(r._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return m&&m.then?m.then(t):t()}}();return Promise.resolve(t&&t.then?t.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),N(L(L(r)),"handleSortMove",function(e){var n=r.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),r.updateHelperPosition(e),r.animateNodes(),r.autoscroll(),n&&n(e)}),N(L(L(r)),"handleSortEnd",function(e){var n=r.props,t=n.hideSortableGhost,i=n.onSortEnd,o=r.manager,a=o.active.collection,s=o.isKeySorting,u=r.manager.getOrderedRefs();r.listenerNode&&(s?(r.listenerNode.removeEventListener("wheel",r.handleKeyEnd,!0),r.listenerNode.removeEventListener("mousedown",r.handleKeyEnd,!0),r.listenerNode.removeEventListener("keydown",r.handleKeyDown)):(ft.move.forEach(function(e){return r.listenerNode.removeEventListener(e,r.handleSortMove)}),ft.end.forEach(function(e){return r.listenerNode.removeEventListener(e,r.handleSortEnd)}))),r.helper.parentNode.removeChild(r.helper),t&&r.sortableGhost&>(r.sortableGhost,{opacity:"",visibility:""});for(var c=0,l=u.length;c<l;c++){var d=u[c],p=d.node;d.edgeOffset=null,d.boundingClientRect=null,bt(p,null),It(p,null),d.translate=null}r.autoScroller.clear(),r.manager.active=null,r.manager.isKeySorting=!1,r.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({collection:a,newIndex:r.newIndex,oldIndex:r.index,isKeySorting:s,nodes:u},e),r.touched=!1}),N(L(L(r)),"autoscroll",function(){var e=r.manager.isKeySorting;if(r.props.disableAutoscroll)r.autoScroller.clear();else{if(e){var n=ct({},r.translate),t=0,i=0;return r.axis.x&&(n.x=Math.min(r.maxTranslate.x,Math.max(r.minTranslate.x,r.translate.x)),t=r.translate.x-n.x),r.axis.y&&(n.y=Math.min(r.maxTranslate.y,Math.max(r.minTranslate.y,r.translate.y)),i=r.translate.y-n.y),r.translate=n,bt(r.helper,r.translate),r.scrollContainer.scrollLeft+=t,void(r.scrollContainer.scrollTop+=i)}r.autoScroller.update({height:r.height,maxTranslate:r.maxTranslate,minTranslate:r.minTranslate,translate:r.translate,width:r.width})}}),N(L(L(r)),"onAutoScroll",function(e){r.translate.x+=e.left,r.translate.y+=e.top,r.animateNodes()}),N(L(L(r)),"handleKeyDown",function(e){var n=e.keyCode,t=r.props,i=t.shouldCancelStart,o=t.keyCodes,a=ct({},Bt,void 0===o?{}:o);r.manager.active&&!r.manager.isKeySorting||!(r.manager.active||a.lift.includes(n)&&!i(e)&&r.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(n)&&!r.manager.active?r.keyLift(e):a.drop.includes(n)&&r.manager.active?r.keyDrop(e):a.cancel.includes(n)?(r.newIndex=r.manager.active.index,r.keyDrop(e)):a.up.includes(n)?r.keyMove(-1):a.down.includes(n)&&r.keyMove(1))}),N(L(L(r)),"keyLift",function(e){var n=e.target,t=vt(n,function(e){return null!=e.sortableInfo}).sortableInfo,i=t.index,o=t.collection;r.initialFocusedNode=n,r.manager.isKeySorting=!0,r.manager.active={index:i,collection:o},r.handlePress(e)}),N(L(L(r)),"keyMove",function(e){var n=r.manager.getOrderedRefs(),t=r.newIndex+e,i=r.newIndex;if(!(t<0||t>n[n.length-1].node.sortableInfo.index)){r.prevIndex=i,r.newIndex=t;var o=function(e,n,t){return e<t&&e>n?e-1:e>t&&e<n?e+1:e}(r.newIndex,r.prevIndex,r.index),a=n.find(function(e){return e.node.sortableInfo.index===o}),s=a.node,u=r.containerScrollDelta,c=a.boundingClientRect||At(s,u),l=a.translate||{x:0,y:0},d=i<t;r.handleSortMove({pageX:c.left+l.x-u.left+(d&&r.axis.x?s.offsetWidth-r.width:0),pageY:c.top+l.y-u.top+(d&&r.axis.y?s.offsetHeight-r.height:0),ignoreTransition:0===e})}}),N(L(L(r)),"keyDrop",function(e){r.handleSortEnd(e),r.initialFocusedNode&&r.initialFocusedNode.focus()}),N(L(L(r)),"handleKeyEnd",function(e){r.manager.active&&r.keyDrop(e)}),N(L(L(r)),"isValidSortingTarget",function(e){var n=r.props.useDragHandle,t=e.target,i=vt(t,function(e){return null!=e.sortableInfo});return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(n?Dt(t):t.sortableInfo)});var i=new dt;return function(e){lt(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(n),r.manager=i,r.wrappedInstance=e.createRef(),r.sortableContextValue={manager:i},r.events={end:r.handleEnd,move:r.handleMove,start:r.handleStart},r}return W(t,e.Component),P(t,[{key:"componentDidMount",value:function(){var e=this,n=this.props.useWindowAsScrollContainer,t=this.getContainer();Promise.resolve(t).then(function(t){e.container=t,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=n?e.document.scrollingElement||e.document.documentElement:Nt(e.container)||e.container,e.autoScroller=new Mt(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(n){return ft[n].forEach(function(t){return e.container.addEventListener(t,e.events[n],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(n){return ft[n].forEach(function(t){return e.container.removeEventListener(t,e.events[n])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var n=this.props,t=n.lockAxis,r=n.lockOffset,i=n.lockToContainerEdges,o=n.keyboardSortingTransitionDuration,a=void 0===o?n.transitionDuration:o,s=this.manager.isKeySorting,u=e.ignoreTransition,c=wt(e),l={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(l.y-=window.pageYOffset-this.initialWindowScroll.top,l.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=l,i){var d=function(e){var n=e.height,t=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];lt(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=k(i,2),a=o[1];return[Tt({height:n,lockOffset:o[0],width:t}),Tt({height:n,lockOffset:a,width:t})]}({height:this.height,lockOffset:r,width:this.width}),p=k(d,2),h=p[0],f=p[1],m={x:this.width/2-h.x,y:this.height/2-h.y},g={x:this.width/2-f.x,y:this.height/2-f.y};l.x=yt(this.minTranslate.x+m.x,this.maxTranslate.x-g.x,l.x),l.y=yt(this.minTranslate.y+m.y,this.maxTranslate.y-g.y,l.y)}"x"===t?l.y=0:"y"===t&&(l.x=0),s&&a&&!u&&It(this.helper,a),bt(this.helper,l)}},{key:"animateNodes",value:function(){var e=this.props,n=e.transitionDuration,t=e.hideSortableGhost,r=e.onSortOver,i=this.containerScrollDelta,o=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+i.left,u=this.offsetEdge.top+this.translate.y+i.top,c=this.manager.isKeySorting,l=this.newIndex;this.newIndex=null;for(var d=0,p=a.length;d<p;d++){var h=a[d].node,f=h.sortableInfo.index,m=h.offsetWidth,g=h.offsetHeight,b={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},I=c&&f>this.index&&f<=l,v=c&&f<this.index&&f>=l,y={x:0,y:0},C=a[d].edgeOffset;C||(C=St(h,this.container),a[d].edgeOffset=C,c&&(a[d].boundingClientRect=At(h,i)));var x=d<a.length-1&&a[d+1],A=d>0&&a[d-1];x&&!x.edgeOffset&&(x.edgeOffset=St(x.node,this.container),c&&(x.boundingClientRect=At(x.node,i))),f!==this.index?(n&&It(h,n),this.axis.x?this.axis.y?v||f<this.index&&(s+o.left-b.width<=C.left&&u+o.top<=C.top+b.height||u+o.top+b.height<=C.top)?(y.x=this.width+this.marginOffset.x,C.left+y.x>this.containerBoundingRect.width-b.width&&x&&(y.x=x.edgeOffset.left-C.left,y.y=x.edgeOffset.top-C.top),null===this.newIndex&&(this.newIndex=f)):(I||f>this.index&&(s+o.left+b.width>=C.left&&u+o.top+b.height>=C.top||u+o.top+b.height>=C.top+g))&&(y.x=-(this.width+this.marginOffset.x),C.left+y.x<this.containerBoundingRect.left+b.width&&A&&(y.x=A.edgeOffset.left-C.left,y.y=A.edgeOffset.top-C.top),this.newIndex=f):I||f>this.index&&s+o.left+b.width>=C.left?(y.x=-(this.width+this.marginOffset.x),this.newIndex=f):(v||f<this.index&&s+o.left<=C.left+b.width)&&(y.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=f)):this.axis.y&&(I||f>this.index&&u+o.top+b.height>=C.top?(y.y=-(this.height+this.marginOffset.y),this.newIndex=f):(v||f<this.index&&u+o.top<=C.top+b.height)&&(y.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=f))),bt(h,y),a[d].translate=y):t&&(this.sortableGhost=h,gt(h,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=l);var w=c?this.prevIndex:l;r&&this.newIndex!==w&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:w,isKeySorting:c,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return lt(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?r.findDOMNode(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){return e.createElement(Yt.Provider,{value:this.sortableContextValue},e.createElement(n,_({ref:o.withRef?this.wrappedInstance:null},ht(this.props,Pt))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),t}(),N(t,"displayName",xt("sortableList",n)),N(t,"defaultProps",Vt),N(t,"propTypes",_t),i}(ut),Zt={en:{translation:{"Are you sure you want to delete this widget?":"Are you sure you want to delete this widget?",Cancel:"Cancel",Delete:"Delete"}},pl:{translation:{"Are you sure you want to delete this widget?":"Czy na pewno chcesz usunąć ten widżet?",Cancel:"Anuluj",Delete:"Usuń"}}},jt={root:{boxShadow:"none","& .react-resizable-handle":{width:"24px",height:"24px",borderRadius:"4px",background:function(e){return e.palette.primary.main+" url("+b.default+")"},backgroundRepeat:"no-repeat",backgroundSize:"50%",backgroundPosition:"50%","&:hover":{backgroundColor:function(e){return e.palette.primary.dark}}},"& .react-resizable-handle:after":{display:"none"}},header:{height:"40px"},dragIcon:{width:"30px",height:"30px",marginLeft:function(e){return"-"+e.spacing(1)},padding:"8px",borderRadius:"4px",background:function(e){return e.palette.primary.main},"&:hover":{cursor:"move",background:function(e){return e.palette.primary.dark}}},actionButtons:{height:"30px",marginTop:"-7px"},settingsButton:{color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopRightRadius:0,borderBottomRightRadius:0},infoButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:0},deleteButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopLeftRadius:0,borderBottomLeftRadius:0},content:{height:"calc(100% - 40px)",padding:0,background:"transparent",border:"1px solid rgba(255, 255, 255, 0.2)",borderTop:"none",borderRadius:"4px",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.25)","&:last-child":{paddingBottom:0}}},Jt=["children","title","Widget","id","url","wsUrl","lang","data","settings","openSettingsModal","onSettingsModalOpened","onSettingsModalClosed","onDelete","editMode","version"],Ut=f.default.forwardRef(function(t,r){var i=t.children,u=t.title,c=t.Widget,l=t.id,d=t.url,p=t.wsUrl,h=t.lang,m=t.data,g=t.settings,b=t.openSettingsModal,I=t.onSettingsModalOpened,C=t.onSettingsModalClosed,x=t.onDelete,A=t.editMode,S=t.version,T=y(t,Jt),N=e.useState(!1),E=N[0],R=N[1],G=e.useState(!1),O=G[0],k=G[1],D=o.useTranslation(),M=D.i18n,_=D.t;return e.useEffect(function(){for(var e="translation",n=0,t=Object.entries(Zt);n<t.length;n++){var r=t[n];M.addResources(r[0],e,r[1][e])}},[M]),f.default.createElement(n.Card,v({ref:r,sx:jt.root},T),f.default.createElement(n.CardHeader,{avatar:A&&f.default.createElement(n.SvgIcon,{component:s.ReactComponent,className:"draggable-handle",sx:jt.dragIcon,inheritViewBox:!0}),title:u,titleTypographyProps:{variant:"subtitle1"},action:A&&f.default.createElement(n.Stack,{direction:"row",sx:jt.actionButtons},f.default.createElement(n.Button,{color:"secondary",sx:jt.settingsButton,onClick:function(){I&&I()}},f.default.createElement(a.Settings,null)),S&&f.default.createElement(f.default.Fragment,null,f.default.createElement(n.Tooltip,{title:S},f.default.createElement(n.Button,{color:"secondary",sx:jt.infoButton},f.default.createElement(a.Info,null)))),f.default.createElement(w,{open:O,confirmMessage:_("Are you sure you want to delete this widget?"),confirmButtonText:_("Delete"),cancelButtonText:_("Cancel"),onCancel:function(){return k(!1)},onConfirm:function(){try{var e=function(){R(!1)};R(!0),k(!1);var n=function(){if(x)return Promise.resolve(x()).then(function(){})}();return Promise.resolve(n&&n.then?n.then(e):e())}catch(e){return Promise.reject(e)}}},f.default.createElement(n.Button,{color:"secondary",sx:jt.deleteButton,onClick:function(e){e.stopPropagation(),k(!0)},disabled:E},f.default.createElement(a.Delete,null)))),sx:jt.header}),f.default.createElement(n.CardContent,{sx:jt.content},f.default.createElement(c,{id:l,url:d,wsUrl:p,lang:h,data:m,settings:g,openSettingsModal:b,onSettingsModalOpened:I,onSettingsModalClosed:C,editMode:A})),A&&i)}),zt=function(){return zt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},zt.apply(this,arguments)};function Qt(e){return Qt="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},Qt(e)}"function"==typeof SuppressedError&&SuppressedError;var qt="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Kt(e,n){for(var t,r=/\r\n|[\n\r]/g,i=1,o=n+1;(t=r.exec(e.body))&&t.index<n;)i+=1,o=n+1-(t.index+t[0].length);return{line:i,column:o}}function $t(e,n){var t=e.locationOffset.column-1,r=nr(t)+e.body,i=n.line-1,o=n.line+(e.locationOffset.line-1),a=n.column+(1===n.line?t:0),s="".concat(e.name,":").concat(o,":").concat(a,"\n"),u=r.split(/\r\n|[\n\r]/g),c=u[i];if(c.length>120){for(var l=Math.floor(a/80),d=a%80,p=[],h=0;h<c.length;h+=80)p.push(c.slice(h,h+80));return s+er([["".concat(o),p[0]]].concat(p.slice(1,l+1).map(function(e){return["",e]}),[[" ",nr(d-1)+"^"],["",p[l+1]]]))}return s+er([["".concat(o-1),u[i-1]],["".concat(o),c],["",nr(a-1)+"^"],["".concat(o+1),u[i+1]]])}function er(e){var n=e.filter(function(e){return void 0!==e[1]}),t=Math.max.apply(Math,n.map(function(e){return e[0].length}));return n.map(function(e){var n,r=e[1];return nr(t-(n=e[0]).length)+n+(r?" | "+r:" |")}).join("\n")}function nr(e){return Array(e+1).join(" ")}function tr(e){return tr="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},tr(e)}function rr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function ir(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function or(e,n){return!n||"object"!==tr(n)&&"function"!=typeof n?ar(e):n}function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){var n="function"==typeof Map?new Map:void 0;return sr=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return ur(e,arguments,dr(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),lr(t,e)},sr(e)}function ur(e,n,t){return ur=cr()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&lr(i,t.prototype),i},ur.apply(null,arguments)}function cr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function lr(e,n){return lr=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},lr(e,n)}function dr(e){return dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dr(e)}var pr=/*#__PURE__*/function(){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&lr(e,n)}(i,/*#__PURE__*/sr(Error));var e,n,t,r=(e=i,n=cr(),function(){var t,r=dr(e);if(n){var i=dr(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return or(this,t)});function i(e,n,t,o,a,s,u){var c,l,d,p;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),(p=r.call(this,e)).name="GraphQLError",p.originalError=null!=s?s:void 0,p.nodes=hr(Array.isArray(n)?n:n?[n]:void 0);for(var h=[],f=0,m=null!==(g=p.nodes)&&void 0!==g?g:[];f<m.length;f++){var g,b=m[f].loc;null!=b&&h.push(b)}h=hr(h),p.source=null!=t?t:null===(c=h)||void 0===c?void 0:c[0].source,p.positions=null!=o?o:null===(l=h)||void 0===l?void 0:l.map(function(e){return e.start}),p.locations=o&&t?o.map(function(e){return Kt(t,e)}):null===(d=h)||void 0===d?void 0:d.map(function(e){return Kt(e.source,e.start)}),p.path=null!=a?a:void 0;var I=null==s?void 0:s.extensions;return p.extensions=null==u&&function(e){return"object"==Qt(e)&&null!==e}(I)?function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(t),!0).forEach(function(n){ir(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},I):null!=u?u:{},Object.defineProperties(ar(p),{message:{enumerable:!0},locations:{enumerable:null!=p.locations},path:{enumerable:null!=p.path},extensions:{enumerable:null!=p.extensions&&Object.keys(p.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(ar(p),"stack",{value:s.stack,writable:!0,configurable:!0}),or(p)):(Error.captureStackTrace?Error.captureStackTrace(ar(p),i):Object.defineProperty(ar(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return(t=[{key:"toString",value:function(){return function(e){var n,t=e.message;if(e.nodes)for(var r=0,i=e.nodes;r<i.length;r++){var o=i[r];o.loc&&(t+="\n\n"+$t((n=o.loc).source,Kt(n.source,n.start)))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++)t+="\n\n"+$t(e.source,s[a]);return t}(this)}},{key:qt,get:function(){return"Object"}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,t),i}();function hr(e){return void 0===e||0===e.length?void 0:e}function fr(e,n,t){return new pr("Syntax Error: ".concat(t),void 0,e,[n])}var mr=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),gr="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function br(e){var n=e.prototype.toJSON;"function"==typeof n||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=n,gr&&(e.prototype[gr]=n)}var Ir=/*#__PURE__*/function(){function e(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();br(Ir);var vr=/*#__PURE__*/function(){function e(e,n,t,r,i,o,a){this.kind=e,this.start=n,this.end=t,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();br(vr);var yr=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});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},Cr(e)}function xr(e){return Ar(e,[])}function Ar(e,n){switch(Cr(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),r=function(e){var n=e[String(gr)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:Ar(i,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),r=e.length-t,i=[],o=0;o<t;++o)i.push(Ar(e[o],n));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);return 0===t.length?"{}":n.length>2?"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]":"{ "+t.map(function(t){return t+": "+Ar(e[t],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}function wr(e,n){if(!Boolean(e))throw new Error(n)}function Sr(e){return Sr="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},Sr(e)}var Tr="production"===process.env.NODE_ENV?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if("object"===Sr(e)&&null!==e){var t,r=n.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(t=e.constructor)||void 0===t?void 0:t.name)){var i=xr(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},Nr=/*#__PURE__*/function(){function e(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||wr(0,"Body must be a string. Received: ".concat(xr(e),".")),this.body=e,this.name=n,this.locationOffset=t,this.locationOffset.line>0||wr(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||wr(0,"column in locationOffset is 1-indexed and must be positive.")}var n;return(n=[{key:qt,get:function(){return"Source"}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,n),e}(),Er=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Rr(e){var n=e.split(/\r\n|[\n\r]/g),t=function(e){for(var n,t=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:t=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!t&&(null===o||i<o)&&(o=i),r=!1}return null!==(n=o)&&void 0!==n?n:0}(e);if(0!==t)for(var r=1;r<n.length;r++)n[r]=n[r].slice(t);for(var i=0;i<n.length&&Gr(n[i]);)++i;for(var o=n.length;o>i&&Gr(n[o-1]);)--o;return n.slice(i,o).join("\n")}function Gr(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}var Or=/*#__PURE__*/function(){function e(e){var n=new vr(yr.SOF,0,0,0,0,null);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var n=e.prototype;return n.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},n.lookahead=function(){var e=this.token;if(e.kind!==yr.EOF)do{var n;e=null!==(n=e.next)&&void 0!==n?n:e.next=Dr(this,e)}while(e.kind===yr.COMMENT);return e},e}();function kr(e){return isNaN(e)?yr.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Dr(e,n){for(var t=e.source,r=t.body,i=r.length,o=n.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new vr(yr.BANG,o,o+1,s,u,n);case 35:return _r(t,o,s,u,n);case 36:return new vr(yr.DOLLAR,o,o+1,s,u,n);case 38:return new vr(yr.AMP,o,o+1,s,u,n);case 40:return new vr(yr.PAREN_L,o,o+1,s,u,n);case 41:return new vr(yr.PAREN_R,o,o+1,s,u,n);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new vr(yr.SPREAD,o,o+3,s,u,n);break;case 58:return new vr(yr.COLON,o,o+1,s,u,n);case 61:return new vr(yr.EQUALS,o,o+1,s,u,n);case 64:return new vr(yr.AT,o,o+1,s,u,n);case 91:return new vr(yr.BRACKET_L,o,o+1,s,u,n);case 93:return new vr(yr.BRACKET_R,o,o+1,s,u,n);case 123:return new vr(yr.BRACE_L,o,o+1,s,u,n);case 124:return new vr(yr.PIPE,o,o+1,s,u,n);case 125:return new vr(yr.BRACE_R,o,o+1,s,u,n);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?Yr(t,o,s,u,n,e):Pr(t,o,s,u,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Br(t,o,a,s,u,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Xr(t,o,s,u,n)}throw fr(t,o,Mr(a))}return new vr(yr.EOF,i,i,e.line,1+o-e.lineStart,n)}function Mr(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(kr(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(kr(e),".")}function _r(e,n,t,r,i){var o,a=e.body,s=n;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new vr(yr.COMMENT,n,s,t,r,i,a.slice(n+1,s))}function Br(e,n,t,r,i,o){var a=e.body,s=t,u=n,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw fr(e,u,"Invalid number, unexpected digit after 0: ".concat(kr(s),"."))}else u=Vr(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=Vr(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=Vr(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw fr(e,u,"Invalid number, expected digit but got: ".concat(kr(s),"."));return new vr(c?yr.FLOAT:yr.INT,n,u,r,i,o,a.slice(n,u))}function Vr(e,n,t){var r=e.body,i=n,o=t;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw fr(e,i,"Invalid number, expected digit but got: ".concat(kr(o),"."))}function Pr(e,n,t,r,i){for(var o,a,s,u,c=e.body,l=n+1,d=l,p=0,h="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return h+=c.slice(d,l),new vr(yr.STRING,n,l+1,t,r,i,h);if(p<32&&9!==p)throw fr(e,l,"Invalid character within String: ".concat(kr(p),"."));if(++l,92===p){switch(h+=c.slice(d,l-1),p=c.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var f=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),Wr(o)<<12|Wr(a)<<8|Wr(s)<<4|Wr(u));if(f<0){var m=c.slice(l+1,l+5);throw fr(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}h+=String.fromCharCode(f),l+=4;break;default:throw fr(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}d=++l}}throw fr(e,l,"Unterminated string.")}function Yr(e,n,t,r,i,o){for(var a=e.body,s=n+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new vr(yr.BLOCK_STRING,n,s+3,t,r,i,Rr(l));if(c<32&&9!==c&&10!==c&&13!==c)throw fr(e,s,"Invalid character within String: ".concat(kr(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw fr(e,s,"Unterminated string.")}function Wr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Xr(e,n,t,r,i){for(var o=e.body,a=o.length,s=n+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new vr(yr.NAME,n,s,t,r,i,o.slice(n,s))}var Fr=/*#__PURE__*/function(){function e(e,n){var t=function(e){return Tr(e,Nr)}(e)?e:new Nr(e);this._lexer=new Or(t),this._options=n}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(yr.NAME);return{kind:mr.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:mr.DOCUMENT,definitions:this.many(yr.SOF,this.parseDefinition,yr.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(yr.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(yr.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(yr.BRACE_L))return{kind:mr.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(yr.NAME)&&(n=this.parseName()),{kind:mr.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(yr.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(yr.PAREN_L,this.parseVariableDefinition,yr.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:mr.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(yr.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(yr.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(yr.DOLLAR),{kind:mr.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:mr.SELECTION_SET,selections:this.many(yr.BRACE_L,this.parseSelection,yr.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(yr.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(yr.COLON)?(e=r,n=this.parseName()):n=r,{kind:mr.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(yr.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(yr.PAREN_L,e?this.parseConstArgument:this.parseArgument,yr.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(yr.COLON),{kind:mr.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:mr.ARGUMENT,name:this.parseName(),value:(this.expectToken(yr.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(yr.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(yr.NAME)?{kind:mr.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:mr.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e,n=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:mr.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:mr.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case yr.BRACKET_L:return this.parseList(e);case yr.BRACE_L:return this.parseObject(e);case yr.INT:return this._lexer.advance(),{kind:mr.INT,value:n.value,loc:this.loc(n)};case yr.FLOAT:return this._lexer.advance(),{kind:mr.FLOAT,value:n.value,loc:this.loc(n)};case yr.STRING:case yr.BLOCK_STRING:return this.parseStringLiteral();case yr.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:mr.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:mr.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:mr.NULL,loc:this.loc(n)};default:return{kind:mr.ENUM,value:n.value,loc:this.loc(n)}}case yr.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:mr.STRING,value:e.value,block:e.kind===yr.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:mr.LIST,values:this.any(yr.BRACKET_L,function(){return n.parseValueLiteral(e)},yr.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:mr.OBJECT,fields:this.any(yr.BRACE_L,function(){return n.parseObjectField(e)},yr.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(yr.COLON),{kind:mr.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(yr.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(yr.AT),{kind:mr.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(yr.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(yr.BRACKET_R),e={kind:mr.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(yr.BANG)?{kind:mr.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:mr.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===yr.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(yr.STRING)||this.peek(yr.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(yr.BRACE_L,this.parseOperationTypeDefinition,yr.BRACE_R);return{kind:mr.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:r,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(yr.COLON);var t=this.parseNamedType();return{kind:mr.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);return{kind:mr.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:mr.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var n=[];this.expectOptionalToken(yr.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(yr.AMP)||this.peek(yr.NAME));return n}return this.delimitedMany(yr.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(yr.BRACE_L)&&this._lexer.lookahead().kind===yr.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(yr.BRACE_L,this.parseFieldDefinition,yr.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(yr.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:mr.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(yr.PAREN_L,this.parseInputValueDef,yr.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(yr.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(yr.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:mr.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:mr.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:mr.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(yr.EQUALS)?this.delimitedMany(yr.PIPE,this.parseNamedType):[]},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:mr.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(yr.BRACE_L,this.parseEnumValueDefinition,yr.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseDirectives(!0);return{kind:mr.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:mr.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(yr.BRACE_L,this.parseInputValueDef,yr.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===yr.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(yr.BRACE_L,this.parseOperationTypeDefinition,yr.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:mr.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:mr.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:mr.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:mr.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:mr.UNION_TYPE_EXTENSION,name:n,directives:t,types:r,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:mr.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:mr.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(yr.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:mr.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){return this.delimitedMany(yr.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==Er[n.value])return n;throw this.unexpected(e)},n.loc=function(e){var n;if(!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation))return new Ir(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw fr(this._lexer.source,n.start,"Expected ".concat(Hr(e),", found ").concat(Lr(n),"."))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==yr.NAME||n.value!==e)throw fr(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(Lr(n),"."));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===yr.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=null!=e?e:this._lexer.token;return fr(this._lexer.source,n.start,"Unexpected ".concat(Lr(n),"."))},n.any=function(e,n,t){this.expectToken(e);for(var r=[];!this.expectOptionalToken(t);)r.push(n.call(this));return r},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}return[]},n.many=function(e,n,t){this.expectToken(e);var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r},n.delimitedMany=function(e,n){this.expectOptionalToken(e);var t=[];do{t.push(n.call(this))}while(this.expectOptionalToken(e));return t},e}();function Lr(e){var n=e.value;return Hr(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function Hr(e){return function(e){return e===yr.BANG||e===yr.DOLLAR||e===yr.AMP||e===yr.PAREN_L||e===yr.PAREN_R||e===yr.SPREAD||e===yr.COLON||e===yr.EQUALS||e===yr.AT||e===yr.BRACKET_L||e===yr.BRACKET_R||e===yr.BRACE_L||e===yr.PIPE||e===yr.BRACE_R}(e)?'"'.concat(e,'"'):e}var Zr=new Map,jr=new Map,Jr=!0,Ur=!1;function zr(e){return e.replace(/[\s,]+/g," ").trim()}function Qr(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1]}),function(e){var n,t,r,i=zr(e);if(!Zr.has(i)){var o=function(e){return new Fr(e,{experimentalFragmentVariables:Ur,allowLegacyFragmentVariables:Ur}).parseDocument()}(e);if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");Zr.set(i,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r)})});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=zr((a=e.loc).source.body.substring(a.start,a.end)),o=jr.get(n);o&&!o.has(i)?Jr&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||jr.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a}),zt(zt({},n),{definitions:r}))))}return Zr.get(i)}(r)}var qr,Kr=Qr;(qr=Qr||(Qr={})).gql=Kr,qr.resetCaches=function(){Zr.clear(),jr.clear()},qr.disableFragmentWarnings=function(){Jr=!1},qr.enableExperimentalFragmentVariables=function(){Ur=!0},qr.disableExperimentalFragmentVariables=function(){Ur=!1},Qr.default=Qr;var $r,ei,ni,ti,ri,ii,oi,ai,si,ui,ci,li,di,pi,hi,fi,mi,gi,bi,Ii,vi,yi,Ci,xi,Ai,wi,Si,Ti,Ni,Ei,Ri,Gi,Oi,ki,Di,Mi,_i,Bi,Vi,Pi,Yi,Wi,Xi,Fi,Li,Hi,Zi,ji,Ji,Ui,zi,Qi,qi,Ki,$i,eo,no,to,ro=Qr;exports.AndonLightColor=void 0,(Ji=exports.AndonLightColor||(exports.AndonLightColor={})).Gray="gray",Ji.Green="green",Ji.Red="red",Ji.Yellow="yellow",exports.CounterKindEnum=void 0,(Ui=exports.CounterKindEnum||(exports.CounterKindEnum={})).Bad="bad",Ui.Good="good",exports.MetricTypeEnum=void 0,(zi=exports.MetricTypeEnum||(exports.MetricTypeEnum={})).Counter="COUNTER",zi.Empty="EMPTY",zi.Indicator="INDICATOR",zi.Kpi="KPI",zi.Timer="TIMER",exports.MetricUnitEnum=void 0,(Qi=exports.MetricUnitEnum||(exports.MetricUnitEnum={})).Duration="DURATION",Qi.Percent="PERCENT",Qi.Round="ROUND",exports.Period=void 0,(qi=exports.Period||(exports.Period={})).CurrentShift="CURRENT_SHIFT",qi.LastShift="LAST_SHIFT",exports.ProductionMode=void 0,(Ki=exports.ProductionMode||(exports.ProductionMode={})).Manual="MANUAL",Ki.Planned="PLANNED",exports.ScreenEnum=void 0,($i=exports.ScreenEnum||(exports.ScreenEnum={})).Counters="COUNTERS",$i.Statuses="STATUSES",$i.StatusScreen="STATUS_SCREEN",$i.Workplaces="WORKPLACES",exports.StatusScreenDisplayBlocksEnum=void 0,(eo=exports.StatusScreenDisplayBlocksEnum||(exports.StatusScreenDisplayBlocksEnum={})).Kpi="KPI",eo.Livetime="LIVETIME",eo.Orders="ORDERS",eo.Presences="PRESENCES",exports.TrainingStatus=void 0,(no=exports.TrainingStatus||(exports.TrainingStatus={})).Disabled="DISABLED",no.InsufficientData="INSUFFICIENT_DATA",no.ServerError="SERVER_ERROR",no.Trained="TRAINED",no.Training="TRAINING",exports.WorkplaceEvent=void 0,(to=exports.WorkplaceEvent||(exports.WorkplaceEvent={})).AllStatusChangeTransitionPermissionsUpdated="ALL_STATUS_CHANGE_TRANSITION_PERMISSIONS_UPDATED",to.CounterUpdated="COUNTER_UPDATED",to.CurrentShiftChanged="CURRENT_SHIFT_CHANGED",to.MetricValueUpdated="METRIC_VALUE_UPDATED",to.NotificationCreated="NOTIFICATION_CREATED",to.OrderExecutionUpdated="ORDER_EXECUTION_UPDATED",to.OrderUpdated="ORDER_UPDATED",to.StatusChangeCreated="STATUS_CHANGE_CREATED",to.UserPresenceCreated="USER_PRESENCE_CREATED",to.UserPresenceUpdated="USER_PRESENCE_UPDATED";var io=ro($r||($r=C(["\n mutation createDashboard($gridLayout: String, $id: ID!, $name: String!) {\n createDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),oo=ro(ei||(ei=C(["\n mutation createOrder($id: ID!, $number: String!) {\n createOrder(id: $id, number: $number) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n }\n}\n "]))),ao=ro(ni||(ni=C(["\n mutation createProduct($id: ID!, $name: String, $number: String!) {\n createProduct(id: $id, name: $name, number: $number) {\n errors {\n field\n messages\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n}\n "]))),so=ro(ti||(ti=C(["\n mutation createStatusChange($id: ID!, $note: String, $reasonId: ID!, $reasonHasBeenRecommended: Boolean, $startedAt: String, $userId: ID, $workplaceId: ID!) {\n createStatusChange(\n id: $id\n note: $note\n reasonId: $reasonId\n reasonHasBeenRecommended: $reasonHasBeenRecommended\n startedAt: $startedAt\n userId: $userId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),uo=ro(ri||(ri=C(["\n mutation createUserPresence($id: ID!, $userToken: String!, $workplaceId: ID!) {\n createUserPresence(id: $id, userToken: $userToken, workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n userPresence {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n}\n "]))),co=ro(ii||(ii=C(["\n mutation createWidget($config: String, $id: ID!) {\n createWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),lo=ro(oi||(oi=C(["\n mutation pauseOrderExecution($id: ID!, $statusChangeId: ID!) {\n pauseOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),po=ro(ai||(ai=C(["\n mutation removeDashboard($id: ID!) {\n removeDashboard(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),ho=ro(si||(si=C(["\n mutation removeUserPresence($id: ID!) {\n removeUserPresence(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),fo=ro(ui||(ui=C(["\n mutation removeWidget($id: ID!) {\n removeWidget(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),mo=ro(ci||(ci=C(["\n mutation removeWorkplaceUsersPresences($workplaceId: ID!) {\n removeWorkplaceUsersPresences(workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n }\n}\n "]))),go=ro(li||(li=C(["\n mutation setCounter($id: ID!, $note: String, $orderExecutionId: ID, $value: Float!) {\n setCounter(\n id: $id\n note: $note\n orderExecutionId: $orderExecutionId\n value: $value\n ) {\n counter {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n position\n value\n workplaceId\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),bo=ro(di||(di=C(["\n mutation startOrderExecution($id: ID!, $order: OrderInput!, $product: ProductInput, $itemCount: Float, $statusChangeId: ID!, $workplaceId: ID!) {\n startOrderExecution(\n id: $id\n order: $order\n product: $product\n itemCount: $itemCount\n statusChangeId: $statusChangeId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),Io=ro(pi||(pi=C(["\n mutation stopOrderExecution($id: ID!, $statusChangeId: ID!) {\n stopOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),vo=ro(hi||(hi=C(["\n mutation updateDashboard($gridLayout: String!, $id: ID!, $name: String) {\n updateDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),yo=ro(fi||(fi=C(["\n mutation updateNotification($id: ID!, $status: String!) {\n updateNotification(id: $id, status: $status) {\n errors {\n field\n messages\n }\n notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n }\n}\n "]))),Co=ro(mi||(mi=C(["\n mutation updateOrder($input: UpdateOrderInput!) {\n updateOrder(input: $input) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n }\n}\n "]))),xo=ro(gi||(gi=C(["\n mutation updateOrderExecution($id: ID!, $standardRateId: ID!) {\n updateOrderExecution(id: $id, standardRateId: $standardRateId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),Ao=ro(bi||(bi=C(["\n mutation updateStatusChange($input: UpdateStatusChangeInput!) {\n updateStatusChange(input: $input) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),wo=ro(Ii||(Ii=C(["\n mutation updateWidget($config: String!, $id: ID!) {\n updateWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),So=ro(vi||(vi=C(["\n query applicationInfo {\n applicationInfo {\n apiVersion\n }\n}\n "]))),To=ro(yi||(yi=C(["\n query companyConfig {\n companyConfig {\n devicesConfigs {\n defaultWorkplaceId\n deviceId\n name\n }\n displayedKpiItems\n reasonsRecommendationsEnabled\n roleConfig {\n historyVisibilityEnabled\n orderCreationAllowed\n }\n statusChangeTransitionPermissionsUpdatedAt\n workplacesConfigs {\n defaultScreen\n menuDisplayItems\n orderConfig {\n alternativeName\n numberPrefix\n numberRegexp\n }\n orderExecutionConfig {\n afterPauseReasonId\n afterStartReasonId\n afterStopReasonId\n featureEnabled\n formOrderFields\n formProductFields\n formQuantityFields\n itemCountUnit\n orderInternalNoteTitle\n orderInternalNoteText\n productInternalNoteTitle\n productInternalNoteText\n quantityInternalNoteTitle\n quantityInternalNoteText\n noPlanNeedVerificationNote\n noPlanCanCreateOrderNote\n stopEnabled\n }\n productConfig {\n alternativeName\n numberPrefix\n numberRegexp\n }\n productionMode\n screenSaverConfig {\n autoSignOut\n displayAfterIdle\n displayAfterOrderCreated\n displayAfterStatusChangeCreated\n enabled\n idleTime\n }\n statusScreenDisplayBlocks\n workplaceId\n }\n }\n}\n "]))),No=ro(Ci||(Ci=C(["\n query counterDirectories($filter: CounterDirectoryFilter) {\n counterDirectories(filter: $filter) {\n directoryId\n id\n name\n position\n workplaceId\n }\n}\n "]))),Eo=ro(xi||(xi=C(["\n query counters($filter: CounterFilter) {\n counters(filter: $filter) {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n position\n value\n workplaceId\n }\n}\n "]))),Ro=ro(Ai||(Ai=C(["\n query currentUser {\n currentUser {\n id\n login\n name\n }\n}\n "]))),Go=ro(wi||(wi=C(["\n query dashboards($filter: DashboardFilter) {\n dashboards(filter: $filter) {\n gridLayout\n id\n name\n }\n}\n "]))),Oo=ro(Si||(Si=C(["\n query departments($filter: DepartmentFilter) {\n departments(filter: $filter) {\n id\n name\n }\n}\n "]))),ko=ro(Ti||(Ti=C(["\n query floorPlans($filter: FloorPlanFilter) {\n floorPlans(filter: $filter) {\n id\n imageUrl\n name\n }\n}\n "]))),Do=ro(Ni||(Ni=C(["\n query metricValues($metricIds: [ID!], $workplaceIds: [ID!]) {\n metricValues(metricIds: $metricIds, workplaceIds: $workplaceIds) {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n}\n "]))),Mo=ro(Ei||(Ei=C(["\n query metrics {\n metrics {\n id\n name\n }\n}\n "]))),_o=ro(Ri||(Ri=C(["\n query notifications($filter: NotificationFilter) {\n notifications(filter: $filter) {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n}\n "]))),Bo=ro(Gi||(Gi=C(["\n query orders($filter: OrderFilter) {\n orders(filter: $filter) {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n}\n "]))),Vo=ro(Oi||(Oi=C(["\n query ordersExecutions($filter: OrderExecutionFilter) {\n ordersExecutions(filter: $filter) {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n}\n "]))),Po=ro(ki||(ki=C(["\n query products($filter: ProductFilter) {\n products(filter: $filter) {\n assemblyManual\n id\n name\n number\n }\n}\n "]))),Yo=ro(Di||(Di=C(["\n query reasons($filter: ReasonFilter) {\n reasons(filter: $filter) {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n}\n "]))),Wo=ro(Mi||(Mi=C(["\n query reasonsRecommendation($workplaceId: String!) {\n reasonsRecommendation(workplaceId: $workplaceId) {\n reasons {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n trainingStatus\n }\n}\n "]))),Xo=ro(_i||(_i=C(["\n query shifts {\n shifts {\n finishedAt\n id\n name\n startedAt\n }\n}\n "]))),Fo=ro(Bi||(Bi=C(["\n query standardRates($orderExecutionId: ID!) {\n standardRates(orderExecutionId: $orderExecutionId) {\n id\n label\n }\n}\n "]))),Lo=ro(Vi||(Vi=C(["\n query statusChangeTransitionPermissions($filter: StatusChangeTransitionPermissionFilter) {\n statusChangeTransitionPermissions(filter: $filter) {\n fromReasonId\n roleId\n toReasonId\n workplaceId\n }\n}\n "]))),Ho=ro(Pi||(Pi=C(["\n query statusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),Zo=ro(Yi||(Yi=C(["\n query users($filter: UserFilter) {\n users(filter: $filter) {\n id\n login\n name\n }\n}\n "]))),jo=ro(Wi||(Wi=C(["\n query usersPresences($filter: UserPresenceFilter) {\n usersPresences(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n}\n "]))),Jo=ro(Xi||(Xi=C(["\n query widget($id: ID!) {\n widget(id: $id) {\n config\n id\n }\n}\n "]))),Uo=ro(Fi||(Fi=C(["\n query widgets($filter: WidgetFilter) {\n widgets(filter: $filter) {\n config\n id\n }\n}\n "]))),zo=ro(Li||(Li=C(["\n query workplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Qo=ro(Hi||(Hi=C(["\n query listStatusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),qo=ro(Zi||(Zi=C(["\n query listWorkplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Ko=ro(ji||(ji=C(["\n subscription workplaceEvent($id: ID!) {\n workplaceEvent(id: $id) {\n event\n subject {\n __typename\n ... on Counter {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n counterPosition: position\n value\n workplaceId\n }\n ... on Item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n ... on MetricValue {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n ... on Notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n ... on Shift {\n shiftFinishedAt: finishedAt\n id\n name\n shiftStartedAt: startedAt\n }\n ... on Order {\n executedCount\n id\n items {\n count\n id\n }\n note\n number\n plannedCount\n position\n orderStartedAt: startedAt\n orderFinishedAt: finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n ... on OrderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n standardRateMismatched\n startedAt\n workplaceId\n }\n ... on StatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n ... on UserPresence {\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n }\n}\n "]))),$o=function(e,n,t,r){return e()};function ea(e,n){return void 0===n&&(n=$o),{createDashboard:function(t,r){return n(function(n){return e.request(io,t,v({},r,n))},"createDashboard","mutation",t)},createOrder:function(t,r){return n(function(n){return e.request(oo,t,v({},r,n))},"createOrder","mutation",t)},createProduct:function(t,r){return n(function(n){return e.request(ao,t,v({},r,n))},"createProduct","mutation",t)},createStatusChange:function(t,r){return n(function(n){return e.request(so,t,v({},r,n))},"createStatusChange","mutation",t)},createUserPresence:function(t,r){return n(function(n){return e.request(uo,t,v({},r,n))},"createUserPresence","mutation",t)},createWidget:function(t,r){return n(function(n){return e.request(co,t,v({},r,n))},"createWidget","mutation",t)},pauseOrderExecution:function(t,r){return n(function(n){return e.request(lo,t,v({},r,n))},"pauseOrderExecution","mutation",t)},removeDashboard:function(t,r){return n(function(n){return e.request(po,t,v({},r,n))},"removeDashboard","mutation",t)},removeUserPresence:function(t,r){return n(function(n){return e.request(ho,t,v({},r,n))},"removeUserPresence","mutation",t)},removeWidget:function(t,r){return n(function(n){return e.request(fo,t,v({},r,n))},"removeWidget","mutation",t)},removeWorkplaceUsersPresences:function(t,r){return n(function(n){return e.request(mo,t,v({},r,n))},"removeWorkplaceUsersPresences","mutation",t)},setCounter:function(t,r){return n(function(n){return e.request(go,t,v({},r,n))},"setCounter","mutation",t)},startOrderExecution:function(t,r){return n(function(n){return e.request(bo,t,v({},r,n))},"startOrderExecution","mutation",t)},stopOrderExecution:function(t,r){return n(function(n){return e.request(Io,t,v({},r,n))},"stopOrderExecution","mutation",t)},updateDashboard:function(t,r){return n(function(n){return e.request(vo,t,v({},r,n))},"updateDashboard","mutation",t)},updateNotification:function(t,r){return n(function(n){return e.request(yo,t,v({},r,n))},"updateNotification","mutation",t)},updateOrder:function(t,r){return n(function(n){return e.request(Co,t,v({},r,n))},"updateOrder","mutation",t)},updateOrderExecution:function(t,r){return n(function(n){return e.request(xo,t,v({},r,n))},"updateOrderExecution","mutation",t)},updateStatusChange:function(t,r){return n(function(n){return e.request(Ao,t,v({},r,n))},"updateStatusChange","mutation",t)},updateWidget:function(t,r){return n(function(n){return e.request(wo,t,v({},r,n))},"updateWidget","mutation",t)},applicationInfo:function(t,r){return n(function(n){return e.request(So,t,v({},r,n))},"applicationInfo","query",t)},companyConfig:function(t,r){return n(function(n){return e.request(To,t,v({},r,n))},"companyConfig","query",t)},counterDirectories:function(t,r){return n(function(n){return e.request(No,t,v({},r,n))},"counterDirectories","query",t)},counters:function(t,r){return n(function(n){return e.request(Eo,t,v({},r,n))},"counters","query",t)},currentUser:function(t,r){return n(function(n){return e.request(Ro,t,v({},r,n))},"currentUser","query",t)},dashboards:function(t,r){return n(function(n){return e.request(Go,t,v({},r,n))},"dashboards","query",t)},departments:function(t,r){return n(function(n){return e.request(Oo,t,v({},r,n))},"departments","query",t)},floorPlans:function(t,r){return n(function(n){return e.request(ko,t,v({},r,n))},"floorPlans","query",t)},metricValues:function(t,r){return n(function(n){return e.request(Do,t,v({},r,n))},"metricValues","query",t)},metrics:function(t,r){return n(function(n){return e.request(Mo,t,v({},r,n))},"metrics","query",t)},notifications:function(t,r){return n(function(n){return e.request(_o,t,v({},r,n))},"notifications","query",t)},orders:function(t,r){return n(function(n){return e.request(Bo,t,v({},r,n))},"orders","query",t)},ordersExecutions:function(t,r){return n(function(n){return e.request(Vo,t,v({},r,n))},"ordersExecutions","query",t)},products:function(t,r){return n(function(n){return e.request(Po,t,v({},r,n))},"products","query",t)},reasons:function(t,r){return n(function(n){return e.request(Yo,t,v({},r,n))},"reasons","query",t)},reasonsRecommendation:function(t,r){return n(function(n){return e.request(Wo,t,v({},r,n))},"reasonsRecommendation","query",t)},shifts:function(t,r){return n(function(n){return e.request(Xo,t,v({},r,n))},"shifts","query",t)},standardRates:function(t,r){return n(function(n){return e.request(Fo,t,v({},r,n))},"standardRates","query",t)},statusChangeTransitionPermissions:function(t,r){return n(function(n){return e.request(Lo,t,v({},r,n))},"statusChangeTransitionPermissions","query",t)},statusChanges:function(t,r){return n(function(n){return e.request(Ho,t,v({},r,n))},"statusChanges","query",t)},users:function(t,r){return n(function(n){return e.request(Zo,t,v({},r,n))},"users","query",t)},usersPresences:function(t,r){return n(function(n){return e.request(jo,t,v({},r,n))},"usersPresences","query",t)},widget:function(t,r){return n(function(n){return e.request(Jo,t,v({},r,n))},"widget","query",t)},widgets:function(t,r){return n(function(n){return e.request(Uo,t,v({},r,n))},"widgets","query",t)},workplaces:function(t,r){return n(function(n){return e.request(zo,t,v({},r,n))},"workplaces","query",t)},listStatusChanges:function(t,r){return n(function(n){return e.request(Qo,t,v({},r,n))},"listStatusChanges","query",t)},listWorkplaces:function(t,r){return n(function(n){return e.request(qo,t,v({},r,n))},"listWorkplaces","query",t)},workplaceEvent:function(t,r){return n(function(n){return e.request(Ko,t,v({},r,n))},"workplaceEvent","subscription",t)}}}var na="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ta(e){var n={exports:{}};return e(n,n.exports),n.exports}var ra=ta(function(e,n){var t,r,i,o="[object Map]",a="[object Promise]",s="[object Set]",u="[object WeakMap]",c="[object DataView]",l=/^\[object .+?Constructor\]$/,d="object"==typeof self&&self&&self.Object===Object&&self,p="object"==typeof na&&na&&na.Object===Object&&na||d||Function("return this")(),h=n&&!n.nodeType&&n,f=h&&e&&!e.nodeType&&e,m=f&&f.exports===h,g=Function.prototype,b=Object.prototype,I=p["__core-js_shared__"],v=(t=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",y=g.toString,C=b.hasOwnProperty,x=b.toString,A=RegExp("^"+y.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=m?p.Buffer:void 0,S=b.propertyIsEnumerable,T=w?w.isBuffer:void 0,N=(r=Object.keys,i=Object,function(e){return r(i(e))}),E=Y(p,"DataView"),R=Y(p,"Map"),G=Y(p,"Promise"),O=Y(p,"Set"),k=Y(p,"WeakMap"),D=!S.call({valueOf:1},"valueOf"),M=X(E),_=X(R),B=X(G),V=X(O),P=X(k);function Y(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return function(e){if(!j(e)||function(e){return!!v&&v in e}(e))return!1;var n=Z(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?A:l;return n.test(X(e))}(t)?t:void 0}var W=function(e){return x.call(e)};function X(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(E&&W(new E(new ArrayBuffer(1)))!=c||R&&W(new R)!=o||G&&W(G.resolve())!=a||O&&W(new O)!=s||k&&W(new k)!=u)&&(W=function(e){var n=x.call(e),t="[object Object]"==n?e.constructor:void 0,r=t?X(t):void 0;if(r)switch(r){case M:return c;case _:return o;case B:return a;case V:return s;case P:return u}return n});var F=Array.isArray;function L(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Z(e)}var H=T||function(){return!1};function Z(e){var n=j(e)?x.call(e):"";return"[object Function]"==n||"[object GeneratorFunction]"==n}function j(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}e.exports=function(e){if(L(e)&&(F(e)||"string"==typeof e||"function"==typeof e.splice||H(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&L(e)}(e)&&C.call(e,"callee")&&(!S.call(e,"callee")||"[object Arguments]"==x.call(e))}(e)))return!e.length;var n=W(e);if(n==o||n==s)return!e.size;if(D||function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||b)}(e))return!N(e).length;for(var t in e)if(C.call(e,t))return!1;return!0}}),ia=function(e,n){return ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},ia(e,n)};function oa(e,n){function t(){this.constructor=e}ia(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function aa(e){return"function"==typeof e}var sa=!1,ua={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){sa=e},get useDeprecatedSynchronousErrorHandling(){return sa}};function ca(e){setTimeout(function(){throw e},0)}var la={closed:!0,next:function(e){},error:function(e){if(ua.useDeprecatedSynchronousErrorHandling)throw e;ca(e)},complete:function(){}},da=/*@__PURE__*/function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),pa=/*@__PURE__*/function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,n){return n+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=/*@__PURE__*/Object.create(Error.prototype),e}(),ha=pa,fa=/*@__PURE__*/function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t,r=this,i=r._parentOrParents,o=r._ctorUnsubscribe,a=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof e)i.remove(this);else if(null!==i)for(var u=0;u<i.length;++u)i[u].remove(this);if(aa(a)){o&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){n=e instanceof ha?ma(e.errors):[e]}}if(da(s)){u=-1;for(var c=s.length;++u<c;){var l=s[u];if(null!==(t=l)&&"object"==typeof t)try{l.unsubscribe()}catch(e){n=n||[],e instanceof ha?n=n.concat(ma(e.errors)):n.push(e)}}}if(n)throw new ha(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;(t=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(null===i)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},e.prototype.remove=function(e){var n=this._subscriptions;if(n){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function ma(e){return e.reduce(function(e,n){return e.concat(n instanceof ha?n.errors:n)},[])}var ga=/*@__PURE__*/function(){return"function"==typeof Symbol?/*@__PURE__*/Symbol("rxSubscriber"):"@@rxSubscriber_"+/*@__PURE__*/Math.random()}(),ba=/*@__PURE__*/function(e){function n(t,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=la;break;case 1:if(!t){o.destination=la;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new Ia(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new Ia(o,t,r,i)}return o}return oa(n,e),n.prototype[ga]=function(){return this},n.create=function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(fa),Ia=/*@__PURE__*/function(e){function n(n,t,r,i){var o,a=e.call(this)||this;a._parentSubscriber=n;var s=a;return aa(t)?o=t:t&&(o=t.next,r=t.error,i=t.complete,t!==la&&(aa((s=Object.create(t)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return oa(n,e),n.prototype.next=function(e){if(!this.isStopped&&this._next){var n=this._parentSubscriber;ua.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},n.prototype.error=function(e){if(!this.isStopped){var n=this._parentSubscriber,t=ua.useDeprecatedSynchronousErrorHandling;if(this._error)t&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)t?(n.syncErrorValue=e,n.syncErrorThrown=!0):ca(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;ca(e)}}},n.prototype.complete=function(){var e=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};ua.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(e,n){try{e.call(this._context,n)}catch(e){if(this.unsubscribe(),ua.useDeprecatedSynchronousErrorHandling)throw e;ca(e)}},n.prototype.__tryOrSetError=function(e,n,t){if(!ua.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,t)}catch(n){return ua.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(ca(n),!0)}return!1},n.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},n}(ba),va=/*@__PURE__*/function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ya(e){return e}var Ca=/*@__PURE__*/function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(e,n,t){var r=this.operator,i=function(e,n,t){if(e){if(e instanceof ba)return e;if(e[ga])return e[ga]()}return e||n||t?new ba(e,n,t):new ba(la)}(e,n,t);if(i.add(r?r.call(i,this.source):this.source||ua.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),ua.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){ua.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function(e){for(;e;){var n=e.destination;if(e.closed||e.isStopped)return!1;e=n&&n instanceof ba?n:null}return!0}(e)?e.error(n):console.warn(n)}},e.prototype.forEach=function(e,n){var t=this;return new(n=xa(n))(function(n,r){var i;i=t.subscribe(function(n){try{e(n)}catch(e){r(e),i&&i.unsubscribe()}},r,n)})},e.prototype._subscribe=function(e){var n=this.source;return n&&n.subscribe(e)},e.prototype[va]=function(){return this},e.prototype.pipe=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 0===n.length?this:(0===(e=n).length?ya:1===e.length?e[0]:function(n){return e.reduce(function(e,n){return n(e)},n)})(this)},e.prototype.toPromise=function(e){var n=this;return new(e=xa(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},e.create=function(n){return new e(n)},e}();function xa(e){if(e||(e=ua.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Aa=/*#__PURE__*/function(){function e(e){var n=this;this.wsURL=void 0,this.cable=null,this.subscriptions=new Map,this.addSubscription=function(e,t){n.subscriptions.set(e,t)},this.wsURL=e}var n=e.prototype;return n.connect=function(e,n){this.cable=I.default.createConsumer(this.wsURL+"?token="+e+"&lang="+n)},n.request=function(e){var n,t=this.cable,r=this.subscriptions,i=this.addSubscription;return new Ca(function(o){if(t){var a,s=(null==(a=e.variables)?void 0:a.id)||"company";r.has(s)||(n=t.subscriptions.create({channel:"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{connected:function(){this.perform("execute",e)},received:function(e){e.more?e.result.errors?o.error&&o.error(e.result.errors[0]):e.result.data&&o.next&&(ra(e.result.data)||o.next(e.result)):o.complete&&o.complete()}}),i(s,n))}})},n.hasSubscription=function(e){return this.subscriptions.has(e)},e}(),wa=/*#__PURE__*/function(){function e(e,n,t){this.actionCableClient=null,this.actionCableClient=new Aa(e),this.actionCableClient.connect(n,t)}return e.prototype.subscribe=function(e,n,t,r){if(void 0===r&&(r=function(e){throw e}),!this.actionCableClient)throw new Error("No WS client available");var i=this.actionCableClient.request({query:e,variables:n}).subscribe({next:function(e){var n=e.data,i=e.errors;if(i)return r(new Error(JSON.stringify(i)));n&&t&&t(function(e){var n=Object.keys(e);if(1!==n.length)throw new Error("Expected exactly one response key, got: "+n.join(", "));return e[n[0]]}(n))}});return function(){return i.unsubscribe()}},e}(),Sa=function(e,n,t){return new wa(e,n,t)},Ta=function(e,n){return ea(new l.GraphQLClient(e,{fetch:n}))},Na=ta(function(e,n){e.exports=function(){var n,t;function r(){return n.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var n;for(n in e)if(a(e,n))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,n){var t,r=[],i=e.length;for(t=0;t<i;++t)r.push(n(e[t],t));return r}function p(e,n){for(var t in n)a(n,t)&&(e[t]=n[t]);return a(n,"toString")&&(e.toString=n.toString),a(n,"valueOf")&&(e.valueOf=n.valueOf),e}function h(e,n,t,r){return Dn(e,n,t,r,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var n=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(n=f(e),r=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&r),e._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var n=h(NaN);return null!=e?p(f(n),e):f(n).userInvalidated=!0,n}t=Array.prototype.some?Array.prototype.some:function(e){var n,t=Object(this),r=t.length>>>0;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var b=r.momentProperties=[],I=!1;function v(e,n){var t,r,i,o=b.length;if(u(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),u(n._i)||(e._i=n._i),u(n._f)||(e._f=n._f),u(n._l)||(e._l=n._l),u(n._strict)||(e._strict=n._strict),u(n._tzm)||(e._tzm=n._tzm),u(n._isUTC)||(e._isUTC=n._isUTC),u(n._offset)||(e._offset=n._offset),u(n._pf)||(e._pf=f(n)),u(n._locale)||(e._locale=n._locale),o>0)for(t=0;t<o;t++)u(i=n[r=b[t]])||(e[r]=i);return e}function y(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===I&&(I=!0,r.updateOffset(this),I=!1)}function C(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,n){var t=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),t){var i,o,s,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),t=!1}return n.apply(this,arguments)},n)}var w,S={};function T(e,n){null!=r.deprecationHandler&&r.deprecationHandler(e,n),S[e]||(x(n),S[e]=!0)}function N(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,n){var t,r=p({},e);for(t in n)a(n,t)&&(o(e[t])&&o(n[t])?(r[t]={},p(r[t],e[t]),p(r[t],n[t])):null!=n[t]?r[t]=n[t]:delete r[t]);for(t in e)a(e,t)&&!a(n,t)&&o(e[t])&&(r[t]=p({},r[t]));return r}function R(e){null!=e&&this.set(e)}function G(e,n,t){var r=""+Math.abs(e);return(e>=0?t?"+":"":"-")+Math.pow(10,Math.max(0,n-r.length)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,w=Object.keys?Object.keys:function(e){var n,t=[];for(n in e)a(e,n)&&t.push(n);return t};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},M={};function _(e,n,t,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(M[e]=i),n&&(M[n[0]]=function(){return G(i.apply(this,arguments),n[1],n[2])}),t&&(M[t]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e,n){return e.isValid()?(n=V(n,e.localeData()),D[n]=D[n]||function(e){var n,t,r,i=e.match(O);for(n=0,t=i.length;n<t;n++)i[n]=M[i[n]]?M[i[n]]:(r=i[n]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(n){var r,o="";for(r=0;r<t;r++)o+=N(i[r])?i[r].call(n,e):i[r];return o}}(n),D[n](e)):e.localeData().invalidDate()}function V(e,n){var t=5;function r(e){return n.longDateFormat(e)||e}for(k.lastIndex=0;t>=0&&k.test(e);)e=e.replace(k,r),k.lastIndex=0,t-=1;return e}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function W(e){var n,t,r={};for(t in e)a(e,t)&&(n=Y(t))&&(r[n]=e[t]);return r}var X,F={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},L=/\d/,H=/\d\d/,Z=/\d{3}/,j=/\d{4}/,J=/[+-]?\d{6}/,U=/\d\d?/,z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,ee=/\d+/,ne=/[+-]?\d+/,te=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function se(e,n,t){X[e]=N(n)?n:function(e,r){return e&&t?t:n}}function ue(e,n){return a(X,e)?X[e](n._strict,n._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,t,r,i){return n||t||r||i})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var n=+e,t=0;return 0!==n&&isFinite(n)&&(t=le(n)),t}X={};var pe={};function he(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),c(n)&&(i=function(e,t){t[n]=de(e)}),r=e.length,t=0;t<r;t++)pe[e[t]]=i}function fe(e,n){he(e,function(e,t,r,i){r._w=r._w||{},n(e,r._w,r,i)})}function me(e,n,t){null!=n&&a(pe,e)&&pe[e](n,t._a,t,e)}function ge(e){return e%4==0&&e%100!=0||e%400==0}var be=0,Ie=1,ve=2,ye=3,Ce=4,xe=5,Ae=6,we=7,Se=8;function Te(e){return ge(e)?366:365}_("Y",0,0,function(){var e=this.year();return e<=9999?G(e,4):"+"+e}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),se("Y",ne),se("YY",U,H),se("YYYY",K,j),se("YYYYY",$,J),se("YYYYYY",$,J),he(["YYYYY","YYYYYY"],be),he("YYYY",function(e,n){n[be]=2===e.length?r.parseTwoDigitYear(e):de(e)}),he("YY",function(e,n){n[be]=r.parseTwoDigitYear(e)}),he("Y",function(e,n){n[be]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Ne,Ee=Re("FullYear",!0);function Re(e,n){return function(t){return null!=t?(Oe(this,e,t),r.updateOffset(this,n),this):Ge(this,e)}}function Ge(e,n){if(!e.isValid())return NaN;var t=e._d,r=e._isUTC;switch(n){case"Milliseconds":return r?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return r?t.getUTCSeconds():t.getSeconds();case"Minutes":return r?t.getUTCMinutes():t.getMinutes();case"Hours":return r?t.getUTCHours():t.getHours();case"Date":return r?t.getUTCDate():t.getDate();case"Day":return r?t.getUTCDay():t.getDay();case"Month":return r?t.getUTCMonth():t.getMonth();case"FullYear":return r?t.getUTCFullYear():t.getFullYear();default:return NaN}}function Oe(e,n,t){var r,i,o,a,s;if(e.isValid()&&!isNaN(t)){switch(r=e._d,i=e._isUTC,n){case"Milliseconds":return void(i?r.setUTCMilliseconds(t):r.setMilliseconds(t));case"Seconds":return void(i?r.setUTCSeconds(t):r.setSeconds(t));case"Minutes":return void(i?r.setUTCMinutes(t):r.setMinutes(t));case"Hours":return void(i?r.setUTCHours(t):r.setHours(t));case"Date":return void(i?r.setUTCDate(t):r.setDate(t));case"FullYear":break;default:return}o=t,a=e.month(),s=29!==(s=e.date())||1!==a||ge(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function ke(e,n){if(isNaN(e)||isNaN(n))return NaN;var t=(n%12+12)%12;return e+=(n-t)/12,1===t?ge(e)?29:28:31-t%7%2}Ne=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1},_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),_("MMMM",0,0,function(e){return this.localeData().months(this,e)}),se("M",U,oe),se("MM",U,H),se("MMM",function(e,n){return n.monthsShortRegex(e)}),se("MMMM",function(e,n){return n.monthsRegex(e)}),he(["M","MM"],function(e,n){n[Ie]=de(e)-1}),he(["MMM","MMMM"],function(e,n,t,r){var i=t._locale.monthsParse(e,r,t._strict);null!=i?n[Ie]=i:f(t).invalidMonth=e});var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_e=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=ie,Ve=ie;function Pe(e,n,t){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return t?"MMM"===n?-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:"MMM"===n?-1!==(i=Ne.call(this._shortMonthsParse,a))||-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))||-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null}function Ye(e,n){if(!e.isValid())return e;if("string"==typeof n)if(/^\d+$/.test(n))n=de(n);else if(!c(n=e.localeData().monthsParse(n)))return e;var t=n,r=e.date();return r=r<29?r:Math.min(r,ke(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,r):e._d.setMonth(t,r),e}function We(e){return null!=e?(Ye(this,e),r.updateOffset(this,!0),this):Ge(this,"Month")}function Xe(){function e(e,n){return n.length-e.length}var n,t,r,i,o=[],a=[],s=[];for(n=0;n<12;n++)t=h([2e3,n]),r=ce(this.monthsShort(t,"")),i=ce(this.months(t,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Fe(e,n,t,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,n,t,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,n,t,r,i,o,a),s}function Le(e){var n,t;return e<100&&e>=0?((t=Array.prototype.slice.call(arguments))[0]=e+400,n=new Date(Date.UTC.apply(null,t)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function He(e,n,t){var r=7+n-t;return-(7+Le(e,0,r).getUTCDay()-n)%7+r-1}function Ze(e,n,t,r,i){var o,a,s=1+7*(n-1)+(7+t-r)%7+He(e,r,i);return s<=0?a=Te(o=e-1)+s:s>Te(e)?(o=e+1,a=s-Te(e)):(o=e,a=s),{year:o,dayOfYear:a}}function je(e,n,t){var r,i,o=He(e.year(),n,t),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Je(i=e.year()-1,n,t):a>Je(e.year(),n,t)?(r=a-Je(e.year(),n,t),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Je(e,n,t){var r=He(e,n,t),i=He(e+1,n,t);return(Te(e)-r+i)/7}function Ue(e,n){return e.slice(n,7).concat(e.slice(0,n))}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),se("w",U,oe),se("ww",U,H),se("W",U,oe),se("WW",U,H),fe(["w","ww","W","WW"],function(e,n,t,r){n[r.substr(0,1)]=de(e)}),_("d",0,"do","day"),_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),se("d",U),se("e",U),se("E",U),se("dd",function(e,n){return n.weekdaysMinRegex(e)}),se("ddd",function(e,n){return n.weekdaysShortRegex(e)}),se("dddd",function(e,n){return n.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,n,t,r){var i=t._locale.weekdaysParse(e,r,t._strict);null!=i?n.d=i:f(t).invalidWeekday=e}),fe(["d","e","E"],function(e,n,t,r){n[r]=de(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ie,$e=ie,en=ie;function nn(e,n,t){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return t?"dddd"===n?-1!==(i=Ne.call(this._weekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:"dddd"===n?-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null}function tn(){function e(e,n){return n.length-e.length}var n,t,r,i,o,a=[],s=[],u=[],c=[];for(n=0;n<7;n++)t=h([2e3,1]).day(n),r=ce(this.weekdaysMin(t,"")),i=ce(this.weekdaysShort(t,"")),o=ce(this.weekdays(t,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rn(){return this.hours()%12||12}function on(e,n){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function an(e,n){return n._meridiemParse}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,rn),_("k",["kk",2],0,function(){return this.hours()||24}),_("hmm",0,0,function(){return""+rn.apply(this)+G(this.minutes(),2)}),_("hmmss",0,0,function(){return""+rn.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),on("a",!0),on("A",!1),se("a",an),se("A",an),se("H",U,ae),se("h",U,oe),se("k",U,oe),se("HH",U,H),se("hh",U,H),se("kk",U,H),se("hmm",z),se("hmmss",Q),se("Hmm",z),se("Hmmss",Q),he(["H","HH"],ye),he(["k","kk"],function(e,n,t){var r=de(e);n[ye]=24===r?0:r}),he(["a","A"],function(e,n,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),he(["h","hh"],function(e,n,t){n[ye]=de(e),f(t).bigHour=!0}),he("hmm",function(e,n,t){var r=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r)),f(t).bigHour=!0}),he("hmmss",function(e,n,t){var r=e.length-4,i=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r,2)),n[xe]=de(e.substr(i)),f(t).bigHour=!0}),he("Hmm",function(e,n,t){var r=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r))}),he("Hmmss",function(e,n,t){var r=e.length-4,i=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r,2)),n[xe]=de(e.substr(i))});var sn,un=Re("Hours",!0),cn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Me,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},ln={},dn={};function pn(e,n){var t,r=Math.min(e.length,n.length);for(t=0;t<r;t+=1)if(e[t]!==n[t])return t;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(n){var t=null;if(void 0===ln[n]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(n))try{t=sn._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}("./locale/"+n),mn(t)}catch(e){ln[n]=null}return ln[n]}function mn(e,n){var t;return e&&((t=u(n)?bn(e):gn(e,n))?sn=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function gn(e,n){if(null!==n){var t,r=cn;if(n.abbr=e,null!=ln[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=n.parentLocale)if(null!=ln[n.parentLocale])r=ln[n.parentLocale]._config;else{if(null==(t=fn(n.parentLocale)))return dn[n.parentLocale]||(dn[n.parentLocale]=[]),dn[n.parentLocale].push({name:e,config:n}),null;r=t._config}return ln[e]=new R(E(r,n)),dn[e]&&dn[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function bn(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(n=fn(e))return n;e=[e]}return function(e){for(var n,t,r,i,o=0;o<e.length;){for(n=(i=hn(e[o]).split("-")).length,t=(t=hn(e[o+1]))?t.split("-"):null;n>0;){if(r=fn(i.slice(0,n).join("-")))return r;if(t&&t.length>=n&&pn(i,t)>=n-1)break;n--}o++}return sn}(e)}function In(e){var n,t=e._a;return t&&-2===f(e).overflow&&(n=t[Ie]<0||t[Ie]>11?Ie:t[ve]<1||t[ve]>ke(t[be],t[Ie])?ve:t[ye]<0||t[ye]>24||24===t[ye]&&(0!==t[Ce]||0!==t[xe]||0!==t[Ae])?ye:t[Ce]<0||t[Ce]>59?Ce:t[xe]<0||t[xe]>59?xe:t[Ae]<0||t[Ae]>999?Ae:-1,f(e)._overflowDayOfYear&&(n<be||n>ve)&&(n=ve),f(e)._overflowWeeks&&-1===n&&(n=we),f(e)._overflowWeekday&&-1===n&&(n=Se),f(e).overflow=n),e}var vn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,xn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],An=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wn=/^\/?Date\((-?\d+)/i,Sn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e){var n,t,r,i,o,a,s=e._i,u=vn.exec(s)||yn.exec(s),c=xn.length,l=An.length;if(u){for(f(e).iso=!0,n=0,t=c;n<t;n++)if(xn[n][1].exec(u[1])){i=xn[n][0],r=!1!==xn[n][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(n=0,t=l;n<t;n++)if(An[n][1].exec(u[3])){o=(u[2]||" ")+An[n][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Cn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),On(e)}else e._isValid=!1}function En(e){var n,t,r,i,o,a,s,u,c,l=Sn.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(t=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[(u=l[4],c=parseInt(u,10),c<=49?2e3+c:c<=999?1900+c:c),Me.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),!function(e,n,t){return!e||Qe.indexOf(e)===new Date(n[0],n[1],n[2]).getDay()||(f(t).weekdayMismatch=!0,t._isValid=!1,!1)}(l[1],n=s,e))return;e._a=n,e._tzm=function(e,n,t){if(e)return Tn[e];if(n)return 0;var r=parseInt(t,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Le.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Rn(e,n,t){return null!=e?e:null!=n?n:t}function Gn(e){var n,t,i,o,a,s=[];if(!e._d){for(i=function(e){var n=new Date(r.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[Ie]&&function(e){var n,t,r,i,o,a,s,u,c;null!=(n=e._w).GG||null!=n.W||null!=n.E?(o=1,a=4,t=Rn(n.GG,e._a[be],je(Mn(),1,4).year),r=Rn(n.W,1),((i=Rn(n.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=je(Mn(),o,a),t=Rn(n.gg,e._a[be],c.year),r=Rn(n.w,c.week),null!=n.d?((i=n.d)<0||i>6)&&(u=!0):null!=n.e?(i=n.e+o,(n.e<0||n.e>6)&&(u=!0)):i=o),r<1||r>Je(t,o,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(s=Ze(t,r,i,o,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Rn(e._a[be],i[be]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),t=Le(a,0,e._dayOfYear),e._a[Ie]=t.getUTCMonth(),e._a[ve]=t.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=s[n]=i[n];for(;n<7;n++)e._a[n]=s[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[ye]&&0===e._a[Ce]&&0===e._a[xe]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Le:Fe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}function On(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var n,t,i,o,a,s,u,c=""+e._i,l=c.length,d=0;for(u=(i=V(e._f,e._locale).match(O)||[]).length,n=0;n<u;n++)(t=(c.match(ue(o=i[n],e))||[])[0])&&((a=c.substr(0,c.indexOf(t))).length>0&&f(e).unusedInput.push(a),c=c.slice(c.indexOf(t)+t.length),d+=t.length),M[o]?(t?f(e).empty=!1:f(e).unusedTokens.push(o),me(o,t,e)):e._strict&&!t&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-d,c.length>0&&f(e).unusedInput.push(c),e._a[ye]<=12&&!0===f(e).bigHour&&e._a[ye]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ye]=function(e,n,t){var r;return null==t?n:null!=e.meridiemHour?e.meridiemHour(n,t):null!=e.isPM?((r=e.isPM(t))&&n<12&&(n+=12),r||12!==n||(n=0),n):n}(e._locale,e._a[ye],e._meridiem),null!==(s=f(e).era)&&(e._a[be]=e._locale.erasConvertYear(s,e._a[be])),Gn(e),In(e)}else En(e);else Nn(e)}function kn(e){var n=e._i,t=e._f;return e._locale=e._locale||bn(e._l),null===n||void 0===t&&""===n?g({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),C(n)?new y(In(n)):(l(n)?e._d=n:i(t)?function(e){var n,t,r,i,o,a,s=!1,u=e._f.length;if(0===u)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,n=v({},e),null!=e._useUTC&&(n._useUTC=e._useUTC),n._f=e._f[i],On(n),m(n)&&(a=!0),o+=f(n).charsLeftOver,o+=10*f(n).unusedTokens.length,f(n).score=o,s?o<r&&(r=o,t=n):(null==r||o<r||a)&&(r=o,t=n,a&&(s=!0));p(e,t||n)}(e):t?On(e):function(e){var n=e._i;u(n)?e._d=new Date(r.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(e){var n=wn.exec(e._i);null===n?(Nn(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+n[1])}(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),Gn(e)):o(n)?function(e){if(!e._d){var n=W(e._i);e._a=d([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Gn(e)}}(e):c(n)?e._d=new Date(n):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Dn(e,n,t,r,a){var u={};return!0!==n&&!1!==n||(r=n,n=void 0),!0!==t&&!1!==t||(r=t,t=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=t,u._i=e,u._f=n,u._strict=r,function(e){var n=new y(In(kn(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}(u)}function Mn(e,n,t,r){return Dn(e,n,t,r,!1)}r.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var _n=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Bn=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Vn(e,n){var t,r;if(1===n.length&&i(n[0])&&(n=n[0]),!n.length)return Mn();for(t=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][e](t)||(t=n[r]);return t}var Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yn(e){var n=W(e),t=n.year||0,r=n.quarter||0,i=n.month||0,o=n.week||n.isoWeek||0,s=n.day||0,u=n.hour||0,c=n.minute||0,l=n.second||0,d=n.millisecond||0;this._isValid=function(e){var n,t,r=!1,i=Pn.length;for(n in e)if(a(e,n)&&(-1===Ne.call(Pn,n)||null!=e[n]&&isNaN(e[n])))return!1;for(t=0;t<i;++t)if(e[Pn[t]]){if(r)return!1;parseFloat(e[Pn[t]])!==de(e[Pn[t]])&&(r=!0)}return!0}(n),this._milliseconds=+d+1e3*l+6e4*c+1e3*u*60*60,this._days=+s+7*o,this._months=+i+3*r+12*t,this._data={},this._locale=bn(),this._bubble()}function Wn(e){return e instanceof Yn}function Xn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Fn(e,n){_(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+G(~~(e/60),2)+n+G(~~e%60,2)})}Fn("Z",":"),Fn("ZZ",""),se("Z",re),se("ZZ",re),he(["Z","ZZ"],function(e,n,t){t._useUTC=!0,t._tzm=Hn(re,e)});var Ln=/([\+\-]|\d\d)/gi;function Hn(e,n){var t,r,i=(n||"").match(e);return null===i?null:0===(r=60*(t=((i[i.length-1]||[])+"").match(Ln)||["-",0,0])[1]+de(t[2]))?0:"+"===t[0]?r:-r}function Zn(e,n){var t,i;return n._isUTC?(t=n.clone(),i=(C(e)||l(e)?e.valueOf():Mn(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),r.updateOffset(t,!1),t):Mn(e).local()}function jn(e){return-Math.round(e._d.getTimezoneOffset())}function Jn(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Un=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(e,n){var t,r,i,o,s,u,l=e,d=null;return Wn(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},n?l[n]=+e:l.milliseconds=+e):(d=Un.exec(e))?(t="-"===d[1]?-1:1,l={y:0,d:de(d[ve])*t,h:de(d[ye])*t,m:de(d[Ce])*t,s:de(d[xe])*t,ms:de(Xn(1e3*d[Ae]))*t}):(d=zn.exec(e))?l={y:qn(d[2],t="-"===d[1]?-1:1),M:qn(d[3],t),w:qn(d[4],t),d:qn(d[5],t),h:qn(d[6],t),m:qn(d[7],t),s:qn(d[8],t)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Mn(l.from),s=Mn(l.to),i=o.isValid()&&s.isValid()?(s=Zn(s,o),o.isBefore(s)?u=Kn(o,s):((u=Kn(s,o)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Yn(l),Wn(e)&&a(e,"_locale")&&(r._locale=e._locale),Wn(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function qn(e,n){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function Kn(e,n){var t={};return t.months=n.month()-e.month()+12*(n.year()-e.year()),e.clone().add(t.months,"M").isAfter(n)&&--t.months,t.milliseconds=+n-+e.clone().add(t.months,"M"),t}function $n(e,n){return function(t,r){var i;return null===r||isNaN(+r)||(T(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),et(this,Qn(t,r),e),this}}function et(e,n,t,i){var o=n._milliseconds,a=Xn(n._days),s=Xn(n._months);e.isValid()&&(i=null==i||i,s&&Ye(e,Ge(e,"Month")+s*t),a&&Oe(e,"Date",Ge(e,"Date")+a*t),o&&e._d.setTime(e._d.valueOf()+o*t),i&&r.updateOffset(e,a||s))}Qn.fn=Yn.prototype,Qn.invalid=function(){return Qn(NaN)};var nt=$n(1,"add"),tt=$n(-1,"subtract");function rt(e){return"string"==typeof e||e instanceof String}function it(e,n){if(e.date()<n.date())return-it(n,e);var t=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(t,"months");return-(t+(n-r<0?(n-r)/(r-e.clone().add(t-1,"months")):(n-r)/(e.clone().add(t+1,"months")-r)))||0}function ot(e){var n;return void 0===e?this._locale._abbr:(null!=(n=bn(e))&&(this._locale=n),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var at=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function st(){return this._locale}var ut=1e3,ct=6e4,lt=36e5,dt=126227808e5;function pt(e,n){return(e%n+n)%n}function ht(e,n,t){return e<100&&e>=0?new Date(e+400,n,t)-dt:new Date(e,n,t).valueOf()}function ft(e,n,t){return e<100&&e>=0?Date.UTC(e+400,n,t)-dt:Date.UTC(e,n,t)}function mt(e,n){return n.erasAbbrRegex(e)}function gt(){var e,n,t,r,i,o=[],a=[],s=[],u=[],c=this.eras();for(e=0,n=c.length;e<n;++e)t=ce(c[e].name),r=ce(c[e].abbr),i=ce(c[e].narrow),a.push(t),o.push(r),s.push(i),u.push(t),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function bt(e,n){_(0,[e,e.length],0,n)}function It(e,n,t,r,i){var o;return null==e?je(this,r,i).year:(n>(o=Je(e,r,i))&&(n=o),vt.call(this,e,n,t,r,i))}function vt(e,n,t,r,i){var o=Ze(e,n,t,r,i),a=Le(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),se("N",mt),se("NN",mt),se("NNN",mt),se("NNNN",function(e,n){return n.erasNameRegex(e)}),se("NNNNN",function(e,n){return n.erasNarrowRegex(e)}),he(["N","NN","NNN","NNNN","NNNNN"],function(e,n,t,r){var i=t._locale.erasParse(e,r,t._strict);i?f(t).era=i:f(t).invalidEra=e}),se("y",ee),se("yy",ee),se("yyy",ee),se("yyyy",ee),se("yo",function(e,n){return n._eraYearOrdinalRegex||ee}),he(["y","yy","yyy","yyyy"],be),he(["yo"],function(e,n,t,r){var i;t._locale._eraYearOrdinalRegex&&(i=e.match(t._locale._eraYearOrdinalRegex)),n[be]=t._locale.eraYearOrdinalParse?t._locale.eraYearOrdinalParse(e,i):parseInt(e,10)}),_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100}),bt("gggg","weekYear"),bt("ggggg","weekYear"),bt("GGGG","isoWeekYear"),bt("GGGGG","isoWeekYear"),se("G",ne),se("g",ne),se("GG",U,H),se("gg",U,H),se("GGGG",K,j),se("gggg",K,j),se("GGGGG",$,J),se("ggggg",$,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,r){n[r.substr(0,2)]=de(e)}),fe(["gg","GG"],function(e,n,t,i){n[i]=r.parseTwoDigitYear(e)}),_("Q",0,"Qo","quarter"),se("Q",L),he("Q",function(e,n){n[Ie]=3*(de(e)-1)}),_("D",["DD",2],"Do","date"),se("D",U,oe),se("DD",U,H),se("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ve),he("Do",function(e,n){n[ve]=de(e.match(U)[0])});var yt=Re("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",q),se("DDDD",Z),he(["DDD","DDDD"],function(e,n,t){t._dayOfYear=de(e)}),_("m",["mm",2],0,"minute"),se("m",U,ae),se("mm",U,H),he(["m","mm"],Ce);var Ct=Re("Minutes",!1);_("s",["ss",2],0,"second"),se("s",U,ae),se("ss",U,H),he(["s","ss"],xe);var xt,At,wt=Re("Seconds",!1);for(_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return 10*this.millisecond()}),_(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),_(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),_(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),_(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),_(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),se("S",q,L),se("SS",q,H),se("SSS",q,Z),xt="SSSS";xt.length<=9;xt+="S")se(xt,ee);function St(e,n){n[Ae]=de(1e3*("0."+e))}for(xt="S";xt.length<=9;xt+="S")he(xt,St);At=Re("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");var Tt=y.prototype;function Nt(e){return e}Tt.add=nt,Tt.calendar=function(e,n){var t;1===arguments.length&&(arguments[0]?C(t=arguments[0])||l(t)||rt(t)||c(t)||function(e){var n=i(e),t=!1;return n&&(t=0===e.filter(function(n){return!c(n)&&rt(e)}).length),n&&t}(t)||function(e){var n,t=o(e)&&!s(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(n=0;n<u;n+=1)r=r||a(e,i[n]);return t&&r}(t)||null==t?(e=arguments[0],n=void 0):function(e){var n,t=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<i.length;n+=1)r=r||a(e,i[n]);return t&&r}(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var u=e||Mn(),d=Zn(u,this).startOf("day"),p=r.calendarFormat(this,d)||"sameElse",h=n&&(N(n[p])?n[p].call(this,u):n[p]);return this.format(h||this.localeData().calendar(p,this,Mn(u)))},Tt.clone=function(){return new y(this)},Tt.diff=function(e,n,t){var r,i,o;if(!this.isValid())return NaN;if(!(r=Zn(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),n=Y(n)){case"year":o=it(this,r)/12;break;case"month":o=it(this,r);break;case"quarter":o=it(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return t?o:le(o)},Tt.endOf=function(e){var n,t;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?ft:ht,e){case"year":n=t(this.year()+1,0,1)-1;break;case"quarter":n=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=t(this.year(),this.month()+1,1)-1;break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=lt-pt(n+(this._isUTC?0:this.utcOffset()*ct),lt)-1;break;case"minute":n=this._d.valueOf(),n+=ct-pt(n,ct)-1;break;case"second":n=this._d.valueOf(),n+=ut-pt(n,ut)-1}return this._d.setTime(n),r.updateOffset(this,!0),this},Tt.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var n=B(this,e);return this.localeData().postformat(n)},Tt.from=function(e,n){return this.isValid()&&(C(e)&&e.isValid()||Mn(e).isValid())?Qn({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Tt.fromNow=function(e){return this.from(Mn(),e)},Tt.to=function(e,n){return this.isValid()&&(C(e)&&e.isValid()||Mn(e).isValid())?Qn({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Tt.toNow=function(e){return this.to(Mn(),e)},Tt.get=function(e){return N(this[e=Y(e)])?this[e]():this},Tt.invalidAt=function(){return f(this).overflow},Tt.isAfter=function(e,n){var t=C(e)?e:Mn(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(n).valueOf())},Tt.isBefore=function(e,n){var t=C(e)?e:Mn(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(n).valueOf()<t.valueOf())},Tt.isBetween=function(e,n,t,r){var i=C(e)?e:Mn(e),o=C(n)?n:Mn(n);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,t):!this.isBefore(i,t))&&(")"===r[1]?this.isBefore(o,t):!this.isAfter(o,t))},Tt.isSame=function(e,n){var t,r=C(e)?e:Mn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()===r.valueOf():(t=r.valueOf(),this.clone().startOf(n).valueOf()<=t&&t<=this.clone().endOf(n).valueOf()))},Tt.isSameOrAfter=function(e,n){return this.isSame(e,n)||this.isAfter(e,n)},Tt.isSameOrBefore=function(e,n){return this.isSame(e,n)||this.isBefore(e,n)},Tt.isValid=function(){return m(this)},Tt.lang=at,Tt.locale=ot,Tt.localeData=st,Tt.max=Bn,Tt.min=_n,Tt.parsingFlags=function(){return p({},f(this))},Tt.set=function(e,n){if("object"==typeof e){var t,r=function(e){var n,t=[];for(n in e)a(e,n)&&t.push({unit:n,priority:F[n]});return t.sort(function(e,n){return e.priority-n.priority}),t}(e=W(e)),i=r.length;for(t=0;t<i;t++)this[r[t].unit](e[r[t].unit])}else if(N(this[e=Y(e)]))return this[e](n);return this},Tt.startOf=function(e){var n,t;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?ft:ht,e){case"year":n=t(this.year(),0,1);break;case"quarter":n=t(this.year(),this.month()-this.month()%3,1);break;case"month":n=t(this.year(),this.month(),1);break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=t(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=pt(n+(this._isUTC?0:this.utcOffset()*ct),lt);break;case"minute":n=this._d.valueOf(),n-=pt(n,ct);break;case"second":n=this._d.valueOf(),n-=pt(n,ut)}return this._d.setTime(n),r.updateOffset(this,!0),this},Tt.subtract=tt,Tt.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Tt.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Tt.toDate=function(){return new Date(this.valueOf())},Tt.toISOString=function(e){if(!this.isValid())return null;var n=!0!==e,t=n?this.clone().utc():this;return t.year()<0||t.year()>9999?B(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(t,"Z")):B(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Tt.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,n,t="moment",r="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Tt.toJSON=function(){return this.isValid()?this.toISOString():null},Tt.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Tt.unix=function(){return Math.floor(this.valueOf()/1e3)},Tt.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Tt.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Tt.eraName=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].name;if(r[e].until<=t&&t<=r[e].since)return r[e].name}return""},Tt.eraNarrow=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].narrow;if(r[e].until<=t&&t<=r[e].since)return r[e].narrow}return""},Tt.eraAbbr=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].abbr;if(r[e].until<=t&&t<=r[e].since)return r[e].abbr}return""},Tt.eraYear=function(){var e,n,t,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*t+o[e].offset;return this.year()},Tt.year=Ee,Tt.isLeapYear=function(){return ge(this.year())},Tt.weekYear=function(e){return It.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Tt.isoWeekYear=function(e){return It.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Tt.quarter=Tt.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Tt.month=We,Tt.daysInMonth=function(){return ke(this.year(),this.month())},Tt.week=Tt.weeks=function(e){var n=this.localeData().week(this);return null==e?n:this.add(7*(e-n),"d")},Tt.isoWeek=Tt.isoWeeks=function(e){var n=je(this,1,4).week;return null==e?n:this.add(7*(e-n),"d")},Tt.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},Tt.weeksInWeekYear=function(){var e=this.localeData()._week;return Je(this.weekYear(),e.dow,e.doy)},Tt.isoWeeksInYear=function(){return Je(this.year(),1,4)},Tt.isoWeeksInISOWeekYear=function(){return Je(this.isoWeekYear(),1,4)},Tt.date=yt,Tt.day=Tt.days=function(e){if(!this.isValid())return null!=e?this:NaN;var n=Ge(this,"Day");return null!=e?(e=function(e,n){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-n,"d")):n},Tt.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==e?n:this.add(e-n,"d")},Tt.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var n=function(e,n){return"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},Tt.dayOfYear=function(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?n:this.add(e-n,"d")},Tt.hour=Tt.hours=un,Tt.minute=Tt.minutes=Ct,Tt.second=Tt.seconds=wt,Tt.millisecond=Tt.milliseconds=At,Tt.utcOffset=function(e,n,t){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Hn(re,e)))return this}else Math.abs(e)<16&&!t&&(e*=60);return!this._isUTC&&n&&(i=jn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?et(this,Qn(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:jn(this)},Tt.utc=function(e){return this.utcOffset(0,e)},Tt.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jn(this),"m")),this},Tt.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Hn(te,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Tt.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mn(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Tt.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Tt.isLocal=function(){return!!this.isValid()&&!this._isUTC},Tt.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Tt.isUtc=Jn,Tt.isUTC=Jn,Tt.zoneAbbr=function(){return this._isUTC?"UTC":""},Tt.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Tt.dates=A("dates accessor is deprecated. Use date instead.",yt),Tt.months=A("months accessor is deprecated. Use month instead",We),Tt.years=A("years accessor is deprecated. Use year instead",Ee),Tt.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,n){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}),Tt.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,n={};return v(n,this),(n=kn(n))._a?(e=n._isUTC?h(n._a):Mn(n._a),this._isDSTShifted=this.isValid()&&function(e,n){var t,r=Math.min(e.length,n.length),i=Math.abs(e.length-n.length),o=0;for(t=0;t<r;t++)de(e[t])!==de(n[t])&&o++;return o+i}(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Et=R.prototype;function Rt(e,n,t,r){var i=bn(),o=h().set(r,n);return i[t](o,e)}function Gt(e,n,t){if(c(e)&&(n=e,e=void 0),e=e||"",null!=n)return Rt(e,n,t,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Rt(e,r,t,"month");return i}function Ot(e,n,t,r){"boolean"==typeof e?(c(n)&&(t=n,n=void 0),n=n||""):(t=n=e,e=!1,c(n)&&(t=n,n=void 0),n=n||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=t)return Rt(n,(t+a)%7,r,"day");for(i=0;i<7;i++)s[i]=Rt(n,(i+a)%7,r,"day");return s}Et.calendar=function(e,n,t){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(n,t):r},Et.longDateFormat=function(e){var n=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return n||!t?n:(this._longDateFormat[e]=t.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Et.invalidDate=function(){return this._invalidDate},Et.ordinal=function(e){return this._ordinal.replace("%d",e)},Et.preparse=Nt,Et.postformat=Nt,Et.relativeTime=function(e,n,t,r){var i=this._relativeTime[t];return N(i)?i(e,n,t,r):i.replace(/%d/i,e)},Et.pastFuture=function(e,n){var t=this._relativeTime[e>0?"future":"past"];return N(t)?t(n):t.replace(/%s/i,n)},Et.set=function(e){var n,t;for(t in e)a(e,t)&&(N(n=e[t])?this[t]=n:this["_"+t]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Et.eras=function(e,n){var t,i,o,a=this._eras||bn("en")._eras;for(t=0,i=a.length;t<i;++t)switch("string"==typeof a[t].since&&(o=r(a[t].since).startOf("day"),a[t].since=o.valueOf()),typeof a[t].until){case"undefined":a[t].until=Infinity;break;case"string":o=r(a[t].until).startOf("day").valueOf(),a[t].until=o.valueOf()}return a},Et.erasParse=function(e,n,t){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),t)switch(n){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]},Et.erasConvertYear=function(e,n){var t=e.since<=e.until?1:-1;return void 0===n?r(e.since).year():r(e.since).year()+(n-e.offset)*t},Et.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||gt.call(this),e?this._erasAbbrRegex:this._erasRegex},Et.erasNameRegex=function(e){return a(this,"_erasNameRegex")||gt.call(this),e?this._erasNameRegex:this._erasRegex},Et.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||gt.call(this),e?this._erasNarrowRegex:this._erasRegex},Et.months=function(e,n){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_e).test(n)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Et.monthsShort=function(e,n){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_e.test(n)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Et.monthsParse=function(e,n,t){var r,i,o;if(this._monthsParseExact)return Pe.call(this,e,n,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),t&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),t||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),t&&"MMMM"===n&&this._longMonthsParse[r].test(e))return r;if(t&&"MMM"===n&&this._shortMonthsParse[r].test(e))return r;if(!t&&this._monthsParse[r].test(e))return r}},Et.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Xe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Et.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Xe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Et.week=function(e){return je(e,this._week.dow,this._week.doy).week},Et.firstDayOfYear=function(){return this._week.doy},Et.firstDayOfWeek=function(){return this._week.dow},Et.weekdays=function(e,n){var t=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===e?Ue(t,this._week.dow):e?t[e.day()]:t},Et.weekdaysMin=function(e){return!0===e?Ue(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Et.weekdaysShort=function(e){return!0===e?Ue(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Et.weekdaysParse=function(e,n,t){var r,i,o;if(this._weekdaysParseExact)return nn.call(this,e,n,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),t&&"dddd"===n&&this._fullWeekdaysParse[r].test(e))return r;if(t&&"ddd"===n&&this._shortWeekdaysParse[r].test(e))return r;if(t&&"dd"===n&&this._minWeekdaysParse[r].test(e))return r;if(!t&&this._weekdaysParse[r].test(e))return r}},Et.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Et.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Et.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=en),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Et.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Et.meridiem=function(e,n,t){return e>11?t?"pm":"PM":t?"am":"AM"},mn("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10;return e+(1===de(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),r.lang=A("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=A("moment.langData is deprecated. Use moment.localeData instead.",bn);var kt=Math.abs;function Dt(e,n,t,r){var i=Qn(n,t);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Mt(e){return e<0?Math.floor(e):Math.ceil(e)}function _t(e){return 4800*e/146097}function Bt(e){return 146097*e/4800}function Vt(e){return function(){return this.as(e)}}var Pt=Vt("ms"),Yt=Vt("s"),Wt=Vt("m"),Xt=Vt("h"),Ft=Vt("d"),Lt=Vt("w"),Ht=Vt("M"),Zt=Vt("Q"),jt=Vt("y"),Jt=Pt;function Ut(e){return function(){return this.isValid()?this._data[e]:NaN}}var zt=Ut("milliseconds"),Qt=Ut("seconds"),qt=Ut("minutes"),Kt=Ut("hours"),$t=Ut("days"),er=Ut("months"),nr=Ut("years"),tr=Math.round,rr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ir(e,n,t,r,i){return i.relativeTime(n||1,!!t,e,r)}var or=Math.abs;function ar(e){return(e>0)-(e<0)||+e}function sr(){if(!this.isValid())return this.localeData().invalidDate();var e,n,t,r,i,o,a,s,u=or(this._milliseconds)/1e3,c=or(this._days),l=or(this._months),d=this.asSeconds();return d?(e=le(u/60),n=le(e/60),u%=60,e%=60,t=le(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ar(this._months)!==ar(d)?"-":"",a=ar(this._days)!==ar(d)?"-":"",s=ar(this._milliseconds)!==ar(d)?"-":"",i+"P"+(t?o+t+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(n||e||u?"T":"")+(n?s+n+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ur=Yn.prototype;return ur.isValid=function(){return this._isValid},ur.abs=function(){var e=this._data;return this._milliseconds=kt(this._milliseconds),this._days=kt(this._days),this._months=kt(this._months),e.milliseconds=kt(e.milliseconds),e.seconds=kt(e.seconds),e.minutes=kt(e.minutes),e.hours=kt(e.hours),e.months=kt(e.months),e.years=kt(e.years),this},ur.add=function(e,n){return Dt(this,e,n,1)},ur.subtract=function(e,n){return Dt(this,e,n,-1)},ur.as=function(e){if(!this.isValid())return NaN;var n,t,r=this._milliseconds;if("month"===(e=Y(e))||"quarter"===e||"year"===e)switch(t=this._months+_t(n=this._days+r/864e5),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(n=this._days+Math.round(Bt(this._months)),e){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return 24*n+r/36e5;case"minute":return 1440*n+r/6e4;case"second":return 86400*n+r/1e3;case"millisecond":return Math.floor(864e5*n)+r;default:throw new Error("Unknown unit "+e)}},ur.asMilliseconds=Pt,ur.asSeconds=Yt,ur.asMinutes=Wt,ur.asHours=Xt,ur.asDays=Ft,ur.asWeeks=Lt,ur.asMonths=Ht,ur.asQuarters=Zt,ur.asYears=jt,ur.valueOf=Jt,ur._bubble=function(){var e,n,t,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Mt(Bt(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,n=le(e/60),u.minutes=n%60,t=le(n/60),u.hours=t%24,a+=le(t/24),s+=i=le(_t(a)),a-=Mt(Bt(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},ur.clone=function(){return Qn(this)},ur.get=function(e){return e=Y(e),this.isValid()?this[e+"s"]():NaN},ur.milliseconds=zt,ur.seconds=Qt,ur.minutes=qt,ur.hours=Kt,ur.days=$t,ur.weeks=function(){return le(this.days()/7)},ur.months=er,ur.years=nr,ur.humanize=function(e,n){if(!this.isValid())return this.localeData().invalidDate();var t,r,i=!1,o=rr;return"object"==typeof e&&(n=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof n&&(o=Object.assign({},rr,n),null!=n.s&&null==n.ss&&(o.ss=n.s-1)),r=function(e,n,t,r){var i=Qn(e).abs(),o=tr(i.as("s")),a=tr(i.as("m")),s=tr(i.as("h")),u=tr(i.as("d")),c=tr(i.as("M")),l=tr(i.as("w")),d=tr(i.as("y")),p=o<=t.ss&&["s",o]||o<t.s&&["ss",o]||a<=1&&["m"]||a<t.m&&["mm",a]||s<=1&&["h"]||s<t.h&&["hh",s]||u<=1&&["d"]||u<t.d&&["dd",u];return null!=t.w&&(p=p||l<=1&&["w"]||l<t.w&&["ww",l]),(p=p||c<=1&&["M"]||c<t.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=n,p[3]=+e>0,p[4]=r,ir.apply(null,p)}(this,!i,o,t=this.localeData()),i&&(r=t.pastFuture(+this,r)),t.postformat(r)},ur.toISOString=sr,ur.toString=sr,ur.toJSON=sr,ur.locale=ot,ur.localeData=st,ur.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sr),ur.lang=at,_("X",0,0,"unix"),_("x",0,0,"valueOf"),se("x",ne),se("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,n,t){t._d=new Date(1e3*parseFloat(e))}),he("x",function(e,n,t){t._d=new Date(de(e))}),r.version="2.30.1",n=Mn,r.fn=Tt,r.min=function(){return Vn("isBefore",[].slice.call(arguments,0))},r.max=function(){return Vn("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Mn(1e3*e)},r.months=function(e,n){return Gt(e,n,"months")},r.isDate=l,r.locale=mn,r.invalid=g,r.duration=Qn,r.isMoment=C,r.weekdays=function(e,n,t){return Ot(e,n,t,"weekdays")},r.parseZone=function(){return Mn.apply(null,arguments).parseZone()},r.localeData=bn,r.isDuration=Wn,r.monthsShort=function(e,n){return Gt(e,n,"monthsShort")},r.weekdaysMin=function(e,n,t){return Ot(e,n,t,"weekdaysMin")},r.defineLocale=gn,r.updateLocale=function(e,n){if(null!=n){var t,r,i=cn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(E(ln[e]._config,n)):(null!=(r=fn(e))&&(i=r._config),n=E(i,n),null==r&&(n.abbr=e),(t=new R(n)).parentLocale=ln[e],ln[e]=t),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]},r.locales=function(){return w(ln)},r.weekdaysShort=function(e,n,t){return Ot(e,n,t,"weekdaysShort")},r.normalizeUnits=Y,r.relativeTimeRounding=function(e){return void 0===e?tr:"function"==typeof e&&(tr=e,!0)},r.relativeTimeThreshold=function(e,n){return void 0!==rr[e]&&(void 0===n?rr[e]:(rr[e]=n,"s"===e&&(rr.ss=n-1),!0))},r.calendarFormat=function(e,n){var t=e.diff(n,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},r.prototype=Tt,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}),Ea=function(e,n){n.set("year",e.year()).set("month",e.month()).set("day",e.day())};exports.ApplicationInfoDocument=So,exports.CompanyConfigDocument=To,exports.ConfirmTooltip=w,exports.CounterDirectoriesDocument=No,exports.CountersDocument=Eo,exports.CreateDashboardDocument=io,exports.CreateOrderDocument=oo,exports.CreateProductDocument=ao,exports.CreateStatusChangeDocument=so,exports.CreateUserPresenceDocument=uo,exports.CreateWidgetDocument=co,exports.CurrentUserDocument=Ro,exports.DashboardsDocument=Go,exports.DepartmentsDocument=Oo,exports.FloorPlansDocument=ko,exports.GraphqlWsClient=wa,exports.ListStatusChangesDocument=Qo,exports.ListWorkplacesDocument=qo,exports.MetricValuesDocument=Do,exports.MetricsDocument=Mo,exports.NotificationsDocument=_o,exports.OrdersDocument=Bo,exports.OrdersExecutionsDocument=Vo,exports.PauseOrderExecutionDocument=lo,exports.ProductsDocument=Po,exports.ReasonsDocument=Yo,exports.ReasonsRecommendationDocument=Wo,exports.RemoveDashboardDocument=po,exports.RemoveUserPresenceDocument=ho,exports.RemoveWidgetDocument=fo,exports.RemoveWorkplaceUsersPresencesDocument=mo,exports.SetCounterDocument=go,exports.ShiftsDocument=Xo,exports.SortableSelect=function(e){var n=e.options,t=e.selected,r=e.onChange;return f.default.createElement(Ht,{placeholder:e.placeholder,useDragHandle:!0,axis:"xy",onSortEnd:function(e){var n,i,o;r((n=t,i=e.oldIndex,o=e.newIndex,function(e,n,t){const r=n<0?e.length+n:n;if(r>=0&&r<e.length){const r=t<0?e.length+t:t,[i]=e.splice(n,1);e.splice(r,0,i)}}(n=[...n],i,o),n))},distance:4,getHelperDimensions:function(e){return e.node.getBoundingClientRect()},isMulti:!0,options:n,value:t.map(function(e){return n.find(function(n){return n.value===e})}),onChange:function(e){return r(e.map(function(e){return e.value}))},components:{MultiValue:Ft,MultiValueLabel:Lt},closeMenuOnSelect:!1})},exports.StandardRatesDocument=Fo,exports.StartOrderExecutionDocument=bo,exports.StatusChangeTransitionPermissionsDocument=Lo,exports.StatusChangesDocument=Ho,exports.StopOrderExecutionDocument=Io,exports.UpdateDashboardDocument=vo,exports.UpdateNotificationDocument=yo,exports.UpdateOrderDocument=Co,exports.UpdateOrderExecutionDocument=xo,exports.UpdateStatusChangeDocument=Ao,exports.UpdateWidgetDocument=wo,exports.UsersDocument=Zo,exports.UsersPresencesDocument=jo,exports.WidgetCard=Ut,exports.WidgetDocument=Jo,exports.WidgetsDocument=Uo,exports.WorkplaceEventDocument=Ko,exports.WorkplacesDocument=zo,exports.getCurrentShift=function(e,n){return n.find(function(n){return e.isBetween(n.startedAt,n.finishedAt)})||null},exports.getGqlWsClient=Sa,exports.getGraphqlSdk=Ta,exports.getRecentShift=function(e,n){return n.length?n.reduce(function(n,t){return Math.abs(e.diff(t.finishedAt))<Math.abs(e.diff(n.finishedAt))?t:n}):null},exports.getSdk=ea,exports.normalizeShifts=function(e,n){var t=[];return e.forEach(function(e){var r=Na(e.startedAt,"YYYY-MM-DD HH:mm:ss ZZ"),i=Na(e.finishedAt,"YYYY-MM-DD HH:mm:ss ZZ");if(Ea(n,r),Ea(n,i),r.isAfter(i)){var o=Na(r);o.subtract(1,"day");var a=Na(i);a.add(1,"day"),t.push({name:e.name,startedAt:o,finishedAt:i}),t.push({name:e.name,startedAt:r,finishedAt:a})}else t.push({name:e.name,startedAt:r,finishedAt:i})}),t},exports.useGqlClients=function(n){var t,r=n.url,i=n.wsUrl,o=n.lang,a=d.useStore().sessionStore,s=e.useState(),u=s[0],c=s[1],l=e.useState(),p=l[0],h=l[1],f=i||r.replace("graphql","cable"),m=(null==(t=a.loginStatus.authResponse)?void 0:t.accessToken)||"";return e.useEffect(function(){r&&c(Ta(r,d.fetch))},[r]),e.useEffect(function(){r&&m&&h(Sa(f||r.replace("graphql","cable"),m,o))},[r,f,m,o]),{graphqlSdk:u,gqlWsClient:p}};
|
|
16
16
|
//# sourceMappingURL=index.js.map
|