tocco-devcon 1.0.32 → 1.0.33

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/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ 1.0.33
2
+ - add css classes for display expressions styling
3
+
1
4
  1.0.32
2
5
  - reverse title order to first display entity name and then default display
3
6
 
package/dist/index.js CHANGED
@@ -60,4 +60,4 @@ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
60
60
  * LICENSE file in the root directory of this source tree.
61
61
  */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return O(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return x(e)||O(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},74436:(e,t,n)=>{"use strict";n.d(t,{A:()=>M,B:()=>A,C:()=>B,D:()=>U,E:()=>H,F:()=>P,G:()=>Ze,H:()=>F,I:()=>E,J:()=>j,K:()=>R,L:()=>x,M:()=>q,_:()=>w,a:()=>v,b:()=>he,c:()=>Ne,d:()=>oe,e:()=>we,f:()=>de,g:()=>xe,h:()=>Se,i:()=>ae,j:()=>me,k:()=>je,l:()=>ve,m:()=>J,n:()=>z,o:()=>$,p:()=>ne,q:()=>Te,r:()=>W,s:()=>L,t:()=>Ce,u:()=>De,v:()=>X,w:()=>Me,x:()=>Ae,y:()=>Ie,z:()=>ie});var r=n(3640),o=n(82765),i=n(91411),a=n(56315),s=n(68957),c=n(73891),u=n(11259),l=n(44822),f=n(32208),p=n(46927),d=n(1024),h=n(30314);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}var O=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],x=function(){};function S(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function P(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(S(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var j=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,c.Z)(e)&&null!==e?[e]:[];var t},k=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,v({},(0,a.Z)(e,O))};function E(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function _(e){return E(e)?window.pageYOffset:e.scrollTop}function T(e,t){E(e)?window.scrollTo(0,t):e.scrollTop=t}function C(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x,o=_(e),i=t-o,a=10,s=0;function c(){var t=C(s+=a,o,i,n);T(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function R(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?T(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&T(e,Math.max(t.offsetTop-o,0))}function M(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function A(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var I=!1,N={get passive(){return I=!0}},Z="undefined"!=typeof window?window:{};Z.addEventListener&&Z.removeEventListener&&(Z.addEventListener("p",x,N),Z.removeEventListener("p",x,!1));var L=I;function F(e){return null!=e}function H(e,t,n){return e?t:n}function U(e){return e}function B(e){return e}var W=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 o=Object.entries(e).filter((function(e){var t=(0,s.Z)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,s.Z)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})};function V(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,d=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=_(c),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,O=g-h,x=w+v,S=l-v-h,P=p-g+v+y,j=v+h-b,k=160;switch(o){case"auto":case"bottom":if(O>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!a)return i&&D(c,P,k),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&D(c,P,k),{placement:"bottom",maxHeight:a?O-y:S-y};if("auto"===o||a){var E=t,C=a?w:x;return C>=r&&(E=Math.min(C-y-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return i&&T(c,P),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(x>=d&&!a)return i&&D(c,j,k),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var R=t;return(!a&&x>=r||a&&w>=r)&&(R=a?w-b:x-b),i&&D(c,j,k),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Y=function(e){return"auto"===e?"bottom":e},z=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},(0,p.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,p.Z)(t,"backgroundColor",a.neutral0),(0,p.Z)(t,"borderRadius",o),(0,p.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,p.Z)(t,"marginBottom",i.menuGutter),(0,p.Z)(t,"marginTop",i.menuGutter),(0,p.Z)(t,"position","absolute"),(0,p.Z)(t,"width","100%"),(0,p.Z)(t,"zIndex",1),t},G=(0,d.createContext)({getPortalPlacement:null}),q=function(e){(0,f.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(t){var u="fixed"===a,l=V({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:c}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Y(t);return v(v({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,l.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(d.Component);q.contextType=G;var $=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},K=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},X=K,J=K,Q=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},s),t)};Q.defaultProps={children:"No options"};var ee=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},s),t)};ee.defaultProps={children:"Loading..."};var te,ne=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},re=function(e){(0,f.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Y(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,i=e.className,a=e.controlElement,s=e.cx,c=e.innerProps,u=e.menuPlacement,l=e.menuPosition,f=e.getStyles,p="fixed"===l;if(!t&&!p||!a)return null;var d=this.state.placement||Y(u),m=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),g=p?0:window.pageYOffset,v={offset:m[d]+g,position:l,rect:m},y=(0,o.tZ)("div",(0,r.Z)({css:f("menuPortal",v),className:s({"menu-portal":!0},i)},c),n);return(0,o.tZ)(G.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,h.createPortal)(y,t):y)}}]),n}(d.Component),oe=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ie=function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ae=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},se=["size"];var ce={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ue=function(e){var t=e.size,n=(0,a.Z)(e,se);return(0,o.tZ)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ce},n))},le=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("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"}))},fe=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("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"}))},pe=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},de=pe,he=pe,me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},ge=(0,o.F4)(te||(te=(0,i.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ve=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},ye=function(e){var t=e.delay,n=e.offset;return(0,o.tZ)("span",{css:(0,o.iv)({animation:"".concat(ge," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},be=function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps,s=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),(0,o.tZ)(ye,{delay:0,offset:s}),(0,o.tZ)(ye,{delay:160,offset:!0}),(0,o.tZ)(ye,{delay:320,offset:!s}))};be.defaultProps={size:4};var we=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},Oe=["data"],xe=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Se=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},Pe=["innerRef","isDisabled","isHidden","inputClassName"],je=function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return v({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Ee)},ke={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ee={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":v({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ke)},_e=function(e){return v({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ke)},Te=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},Ce=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},De=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},Re=function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",n,t)};var Me=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},Ae=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},Ie=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Ne={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)},s),t||(0,o.tZ)(le,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,a=e.className,s=e.isDisabled,c=e.isFocused,u=e.innerRef,l=e.innerProps,f=e.menuIsOpen;return(0,o.tZ)("div",(0,r.Z)({ref:u,css:i("control",e),className:n({control:!0,"control--is-disabled":s,"control--is-focused":c,"control--menu-is-open":f},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)},s),t||(0,o.tZ)(fe,null))},DownChevron:fe,CrossIcon:le,Group:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.Heading,c=e.headingProps,u=e.innerProps,l=e.label,f=e.theme,p=e.selectProps;return(0,o.tZ)("div",(0,r.Z)({css:a("group",e),className:i({group:!0},n)},u),(0,o.tZ)(s,(0,r.Z)({},c,{selectProps:p,theme:f,getStyles:a,cx:i}),l),(0,o.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,i=e.className,s=k(e);s.data;var c=(0,a.Z)(s,Oe);return(0,o.tZ)("div",(0,r.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},i)},c))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,s=e.getStyles;return(0,o.tZ)("div",(0,r.Z)({css:s("indicatorsContainer",e),className:i({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps;return(0,o.tZ)("span",(0,r.Z)({},a,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,s=e.value,c=k(e),u=c.innerRef,l=c.isDisabled,f=c.isHidden,p=c.inputClassName,d=(0,a.Z)(c,Pe);return(0,o.tZ)("div",{className:n({"input-container":!0},t),css:i("input",e),"data-value":s||""},(0,o.tZ)("input",(0,r.Z)({className:n({input:!0},p),ref:u,style:_e(f),disabled:l},d)))},LoadingIndicator:be,Menu:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerRef,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("menu",e),className:i({menu:!0},n),ref:s},c),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps,c=e.innerRef,u=e.isMulti;return(0,o.tZ)("div",(0,r.Z)({css:a("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":u},n),ref:c},s),t)},MenuPortal:re,LoadingMessage:ee,NoOptionsMessage:Q,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,a=e.data,s=e.getStyles,c=e.innerProps,u=e.isDisabled,l=e.removeProps,f=e.selectProps,p=r.Container,d=r.Label,h=r.Remove;return(0,o.tZ)(o.ms,null,(function(r){var m=r.css,g=r.cx;return(0,o.tZ)(p,{data:a,innerProps:v({className:g(m(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":u},n))},c),selectProps:f},(0,o.tZ)(d,{data:a,innerProps:{className:g(m(s("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:f},t),(0,o.tZ)(h,{data:a,innerProps:v({className:g(m(s("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},l),selectProps:f}))}))},MultiValueContainer:Re,MultiValueLabel:Re,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({role:"button"},n),t||(0,o.tZ)(le,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.isDisabled,c=e.isFocused,u=e.isSelected,l=e.innerRef,f=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("option",e),className:i({option:!0,"option--is-disabled":s,"option--is-focused":c,"option--is-selected":u},n),ref:l,"aria-disabled":s},f),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("placeholder",e),className:i({placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:a("container",e),className:i({"--is-disabled":c,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.isDisabled,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":s},n)},c),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,s=e.isMulti,c=e.getStyles,u=e.hasValue;return(0,o.tZ)("div",(0,r.Z)({css:c("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":s,"value-container--has-value":u},n)},a),t)}},Ze=function(e){return v(v({},Ne),e.components)}},44066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1024),o=n.n(r),i=n(46444),a=n.n(i),s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l={outline:"none"},f=function(e){function t(){var n,r;s(this,t);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=r=u(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=o().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?o().cloneElement(e({focused:t,getRef:this.ref}),n):o().createElement("div",c({ref:this.ref,style:l},n),e)},t}(o().Component);f.propTypes={children:a().oneOfType([a().node,a().func]).isRequired,onBlur:a().func,onFocus:a().func},f.defaultProps={onBlur:function(){},onFocus:function(){}};const p=f},99430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1024)),o=s(n(46444)),i=s(n(30314)),a=s(n(83109));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?g(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var y=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],b=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],w=function(e){function t(){var e,n;f(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return v(g(g(n=d(this,(e=h(t)).call.apply(e,[this].concat(i))))),"_targetNode",r.default.createRef()),v(g(g(n)),"_elementNode",r.default.createRef()),v(g(g(n)),"_elementParentNode",null),v(g(g(n)),"_tetherInstance",null),n}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,o=[{key:"componentDidMount",value:function(){this._createContainer(),this.forceUpdate()}},{key:"componentDidUpdate",value:function(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){var t,n,r=(e.className||"").split(" ").filter((function(e){return e.length>0})),o=(this.props.className||"").split(" ").filter((function(e){return e.length>0}));(t=this._elementParentNode.classList).remove.apply(t,l(r)),(n=this._elementParentNode.classList).add.apply(n,l(o))}this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tetherInstance}},{key:"disable",value:function(){this._tetherInstance.disable()}},{key:"enable",value:function(){this._tetherInstance.enable()}},{key:"on",value:function(e,t,n){this._tetherInstance.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tetherInstance.once(e,t,n)}},{key:"off",value:function(e,t){this._tetherInstance.off(e,t)}},{key:"position",value:function(){this._tetherInstance.position()}},{key:"_runRenders",value:function(){var e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}},{key:"_createTetherInstance",value:function(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a.default(e),this._registerEventListeners()}},{key:"_destroyTetherInstance",value:function(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)})),this.on("repositioned",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)}))}},{key:"_destroy",value:function(){this._destroyTetherInstance(),this._removeContainer()}},{key:"_createContainer",value:function(){this._removeContainer();var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||""}},{key:"_addContainerToDOM",value:function(){this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.appendChild(this._elementParentNode)}},{key:"_removeContainer",value:function(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.parentNode.removeChild(this._elementParentNode)}},{key:"_update",value:function(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=(e.renderTarget,e.renderElement,u(e,["children","renderElementTag","renderElementTo","id","className","style","renderTarget","renderElement"])),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}({target:this._targetNode.current,element:this._elementParentNode},r),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),n){var a=this._elementParentNode.style;Object.keys(n).forEach((function(e){a[e]!==n[e]&&(a[e]=n[e])}))}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(o):this._createTetherInstance(o),this._tetherInstance.position()}},{key:"render",value:function(){var e=this._runRenders(),t=e.targetComponent,n=e.elementComponent;return t?r.default.createElement(r.default.Fragment,null,t,n&&this._elementParentNode&&i.default.createPortal(n,this._elementParentNode)):null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&p(n.prototype,o),s&&p(n,s),t}(r.Component);v(w,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(y),attachment:o.default.oneOf(b).isRequired,targetAttachment:o.default.oneOf(b),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,renderTarget:o.default.func,renderElement:o.default.func,children:function(e,t,n){var o=e.children;if(r.Children.count(o)>0)return new Error("".concat(n," no longer uses children to render components. Please use renderTarget and renderElement instead."))}}),v(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var O=w;t.default=O},50855:(e,t,n)=>{"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(99430))&&r.__esModule?r:{default:r}},77208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,a=n(6663),s=(i=a)&&i.__esModule?i:{default:i},c=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),i=n[0],a=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var u=n.map((function(e){return i[e]})).filter(c);return"string"==typeof u[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,o(u)):u.join(" ")}:{key:e,style:s.default.apply(void 0,[{}].concat(o(u)))}}},e.exports=t.default},6663:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,a=n(e),s=1;s<arguments.length;s++){o=arguments[s],i=r(Object(o));for(var c=0;c<i.length;c++)a[i[c]]=o[i[c]]}return a}},59211:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==n&&r.call(O,i)&&(b=O);var x=y.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function j(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(P.prototype),P.prototype[a]=function(){return this},e.AsyncIterator=P,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new P(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),c(x,s,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},53090:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||a===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,a+1]:0===n||a===n-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||0===a?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,a-1]:0===n||0===a?[null,null]:null===a?[null,n-1]:[null,a-1]},isLast:function(e){return null===o(e)[1]}}}},78858:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},83109:function(e,t){var n,r,o;/*! tether 1.4.7 */r=[],n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}}catch(e){}return n}function i(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var i=o,a=i.overflow,s=i.overflowX,c=i.overflowY;/(auto|scroll|overlay)/.test(a+c+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var a,s=(a=0,function(){return++a}),c={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",s()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===c[t]&&(c[t]=o(e),S((function(){delete c[t]}))),c[t]};function l(){r&&document.body.removeChild(r),r=null}function f(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),i=u();return r.top-=i.top,r.left-=i.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function p(e){return e.offsetParent||document.documentElement}var d=null;function h(){if(d)return d;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return d={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{g(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function O(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&g(e,n)})),t.forEach((function(t){y(e,t)||v(e,t)}))}var x=[],S=function(e){x.push(e)},P=function(){for(var e=void 0;e=x.pop();)e()},j=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,s=i.ctx,c=i.once,u=s;void 0===u&&(u=this),a.apply(u,r),c?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:f,getOffsetParent:p,extend:m,addClass:v,removeClass:g,hasClass:y,updateClasses:O,defer:S,flush:P,uniqueId:s,Evented:j,getScrollBarSize:h,removeUtilElements:l};var k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,n=a,r=!0,s=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var i=(X=n.Utils).getScrollParents,p=(f=X.getBounds,X.getOffsetParent),v=(m=X.extend,X.addClass),g=X.removeClass,h=(O=X.updateClasses,S=X.defer,P=X.flush,X.getScrollBarSize),l=X.removeUtilElements;function T(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var C,D,R,M,A=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),I=[],N=function(){I.forEach((function(e){e.position(!1)})),P()};function Z(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}C=null,D=null,R=null,M=function e(){if(void 0!==D&&D>16)return D=Math.min(D-16,250),void(R=setTimeout(e,250));void 0!==C&&Z()-C<10||(null!=R&&(clearTimeout(R),R=null),C=Z(),N(),D=Z()-C)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var L={center:"center",left:"right",right:"left"},F={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=L[t.left]),"auto"===r&&(r=F[t.top]),{left:n,top:r}},B=function(e){var t=e.left,n=e.top;return void 0!==H[e.left]&&(t=H[e.left]),void 0!==H[e.top]&&(n=H[e.top]),{left:t,top:n}};function W(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function V(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var Y=function(e){var t=e.split(" "),n=k(t,2);return{top:n[0],left:n[1]}},z=Y,G=function(r){function o(e){var r=this;t(this,o),E(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),I.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return _(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,a=o.element,s=o.target,c=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=c,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=z(this.options.targetAttachment),this.attachment=z(this.options.attachment),this.offset=Y(this.options.offset),this.targetOffset=Y(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return f(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=f(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=f(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),I.forEach((function(t,n){t===e&&I.splice(n,1)})),0===I.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var i=[];r.forEach((function(e){i.push(n.getClass("element-attached")+"-"+e),i.push(n.getClass("target-attached")+"-"+e)})),S((function(){void 0!==n._addAttachClasses&&(O(n.element,n._addAttachClasses,i),!1!==n.options.addTargetClasses&&O(n.target,n._addAttachClasses,i),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return f(e.element)})),i=o.width,a=o.height;if(0===i&&0===a&&void 0!==this.lastSize){var s=this.lastSize;i=s.width,a=s.height}else this.lastSize={width:i,height:a};var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=c,l=V(B(this.attachment),{width:i,height:a}),d=V(B(r),u),m=V(this.offset,{width:i,height:a}),g=V(this.targetOffset,u);l=W(l,m),d=W(d,g);for(var v=c.left+d.left-l.left,y=c.top+d.top-l.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:v,top:y,targetAttachment:r,targetPos:c,elementPos:o,offset:l,targetOffset:d,manualOffset:m,manualTargetOffset:g,scrollbarSize:j,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,v=w.left)}var O={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:v-pageXOffset,right:pageXOffset-v-i+innerWidth}},x=this.target.ownerDocument,S=x.defaultView,j=void 0;return S.innerHeight>x.documentElement.clientHeight&&(j=this.cache("scrollbar-size",h),O.viewport.bottom-=j.height),S.innerWidth>x.documentElement.clientWidth&&(j=this.cache("scrollbar-size",h),O.viewport.right-=j.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(O.page.bottom=x.body.scrollHeight-y-a,O.page.right=x.body.scrollWidth-v-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return p(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return f(t)})),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=x.body.scrollWidth-n.left-o.width+i.right,n.bottom=x.body.scrollHeight-n.top-o.height+i.bottom,O.page.top>=n.top+i.top&&O.page.bottom>=n.bottom&&O.page.left>=n.left+i.left&&O.page.right>=n.right){var a=t.scrollTop,s=t.scrollLeft;O.offset={top:O.page.top-n.top+a-i.top,left:O.page.left-n.left+s-i.left}}}(),this.move(O),this.history.unshift(O),this.history.length>3&&this.history.pop(),t&&P(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[r]&&!T(s[r][o],e[r][o])){i=!0;break}}i||(n[r][o]=!0)}var c={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(c.top=0,r=n.top):(c.bottom=0,r=-n.bottom),e.left?(c.left=0,o=n.left):(c.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),c[A]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==A&&(c[A]+=" translateZ(0)")}else e.top?c.top=n.top+"px":c.bottom=n.bottom+"px",e.left?c.left=n.left+"px":c.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(c.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(c.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){c.position="absolute";var r=t.cache("target-offsetparent",(function(){return p(t.target)}));p(t.element)!==r&&S((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(c.position="absolute",u({top:!0,left:!0},e.page)),!l)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},d=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!f(h);){if("static"!==getComputedStyle(h).position){d=!1;break}h=h.parentNode}d||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},v=!1;for(var o in c){var y=c[o];this.element.style[o]!==y&&(v=!0,g[o]=y)}v&&S((function(){m(t.element.style,g),t.trigger("repositioned")}))}}}]),o}(j);G.modules=[],n.position=N;var q=m(G,n);k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=(X=n.Utils).getBounds;var m=X.extend,$=(O=X.updateClasses,S=X.defer,["left","top","right","bottom"]);function K(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=f(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}$.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return f(t.element)})),a=i.height,s=i.width;if(0===s&&0===a&&void 0!==this.lastSize){var c=this.lastSize;s=c.width,a=c.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,p=u.width,d=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&d.push(t),n&&d.push(n)})),d.forEach((function(e){["left","top","right","bottom"].forEach((function(t){d.push(e+"-"+t)}))}));var h=[],g=m({},o),v=m({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,c=e.attachment,u=e.pin;void 0===c&&(c="");var f=void 0,d=void 0;if(c.indexOf(" ")>=0){var m=c.split(" "),y=k(m,2);d=y[0],f=y[1]}else f=d=c;var b=K(t,i);"target"!==d&&"both"!==d||(n<b[1]&&"top"===g.top&&(n+=l,g.top="bottom"),n+a>b[3]&&"bottom"===g.top&&(n-=l,g.top="top")),"together"===d&&("top"===g.top&&("bottom"===v.top&&n<b[1]?(n+=l,g.top="bottom",n+=a,v.top="top"):"top"===v.top&&n+a>b[3]&&n-(a-l)>=b[1]&&(n-=a-l,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+a>b[3]?(n-=l,g.top="top",n-=a,v.top="bottom"):"bottom"===v.top&&n<b[1]&&n+(2*a-l)<=b[3]&&(n+=a-l,g.top="top",v.top="top")),"middle"===g.top&&(n+a>b[3]&&"top"===v.top?(n-=a,v.top="bottom"):n<b[1]&&"bottom"===v.top&&(n+=a,v.top="top"))),"target"!==f&&"both"!==f||(r<b[0]&&"left"===g.left&&(r+=p,g.left="right"),r+s>b[2]&&"right"===g.left&&(r-=p,g.left="left")),"together"===f&&(r<b[0]&&"left"===g.left?"right"===v.left?(r+=p,g.left="right",r+=s,v.left="left"):"left"===v.left&&(r+=p,g.left="right",r-=s,v.left="right"):r+s>b[2]&&"right"===g.left?"left"===v.left?(r-=p,g.left="left",r-=s,v.left="right"):"right"===v.left&&(r-=p,g.left="left",r+=s,v.left="left"):"center"===g.left&&(r+s>b[2]&&"left"===v.left?(r-=s,v.left="right"):r<b[0]&&"right"===v.left&&(r+=s,v.left="left"))),"element"!==d&&"both"!==d||(n<b[1]&&"bottom"===v.top&&(n+=a,v.top="top"),n+a>b[3]&&"top"===v.top&&(n-=a,v.top="bottom")),"element"!==f&&"both"!==f||(r<b[0]&&("right"===v.left?(r+=s,v.left="left"):"center"===v.left&&(r+=s/2,v.left="left")),r+s>b[2]&&("left"===v.left?(r-=s,v.left="right"):"center"===v.left&&(r-=s/2,v.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w,O,x=[],S=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],x.push("top")):S.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,x.push("bottom")):S.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],x.push("left")):S.push("left")),r+s>b[2]&&(u.indexOf("right")>=0?(r=b[2]-s,x.push("right")):S.push("right")),x.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),x.forEach((function(e){h.push(w+"-"+e)}))),S.length&&(O=void 0,O=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(O),S.forEach((function(e){h.push(O+"-"+e)}))),(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(v.left=g.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===o.top&&g.left===o.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,g),t.trigger("update",{attachment:v,targetAttachment:g}))})),S((function(){!1!==t.options.addTargetClasses&&O(t.target,h,d),O(t.element,h,d)})),{top:n,left:r}}});var X,f=(X=n.Utils).getBounds,O=X.updateClasses;return S=X.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return f(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),c=n+i,u=r+a,l=[];n<=s.bottom&&c>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==r&&t!==u||l.push(e)})),r<=s.right&&u>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==n&&t!==c||l.push(e)}));var p=[],d=[],h=["left","top","right","bottom"];return p.push(this.getClass("abutted")),h.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),l.length&&d.push(this.getClass("abutted")),l.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),S((function(){!1!==t.options.addTargetClasses&&O(t.target,d,p),O(t.element,d,p)})),!0}}),k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=k(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),q},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},13615:function(e){
62
62
  /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
63
- e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,u="undefined"!=typeof Reflect&&Reflect,l=u.apply,f=u.construct;l||(l=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),s||(s=function(e){return e}),f||(f=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var p=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),m=x(String.prototype.toLowerCase),g=x(String.prototype.match),v=x(String.prototype.replace),y=x(String.prototype.indexOf),b=x(String.prototype.trim),w=x(RegExp.prototype.test),O=S(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(e,n)}}function P(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=m(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function j(e){var n=c(null),r=void 0;for(r in e)l(t,e,[r])&&(n[r]=e[r]);return n}function k(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=a(["#text"]),A=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=s(/<%[\s\S]*|[\s\S]*%>/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),U=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i),z="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};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!==(void 0===e?"undefined":z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),t=function(e){return K(e)};if(t.version="2.3.6",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,c=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,f=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,x=e.HTMLFormElement,S=e.DOMParser,X=e.trustedTypes,J=c.prototype,Q=k(J,"cloneNode"),ee=k(J,"nextSibling"),te=k(J,"childNodes"),ne=k(J,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=$(X,n),ie=oe?oe.createHTML(""):"",ae=r,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=n.importNode,pe={};try{pe=j(r).documentMode?r.documentMode:{}}catch(e){}var de={};t.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he=L,me=F,ge=H,ve=U,ye=W,be=V,we=B,Oe=null,xe=P({},[].concat(G(E),G(_),G(T),G(D),G(M))),Se=null,Pe=P({},[].concat(G(A),G(I),G(N),G(Z))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ee=null,_e=!0,Te=!0,Ce=!1,De=!1,Re=!1,Me=!1,Ae=!1,Ie=!1,Ne=!1,Ze=!1,Le=!0,Fe=!0,He=!1,Ue={},Be=null,We=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=P({},["audio","video","img","source","image","track"]),ze=null,Ge=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",Xe=Ke,Je=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":z(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?P({},e.ALLOWED_TAGS):xe,Se="ALLOWED_ATTR"in e?P({},e.ALLOWED_ATTR):Pe,ze="ADD_URI_SAFE_ATTR"in e?P(j(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ve="ADD_DATA_URI_TAGS"in e?P(j(Ye),e.ADD_DATA_URI_TAGS):Ye,Be="FORBID_CONTENTS"in e?P({},e.FORBID_CONTENTS):We,ke="FORBID_TAGS"in e?P({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?P({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Ze=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Xe=e.NAMESPACE||Ke,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:m,De&&(Te=!1),Ne&&(Ie=!0),Ue&&(Oe=P({},[].concat(G(M))),Se=[],!0===Ue.html&&(P(Oe,E),P(Se,A)),!0===Ue.svg&&(P(Oe,_),P(Se,I),P(Se,Z)),!0===Ue.svgFilters&&(P(Oe,T),P(Se,I),P(Se,Z)),!0===Ue.mathMl&&(P(Oe,D),P(Se,N),P(Se,Z))),e.ADD_TAGS&&(Oe===xe&&(Oe=j(Oe)),P(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(Se===Pe&&(Se=j(Se)),P(Se,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&P(ze,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===We&&(Be=j(Be)),P(Be,e.FORBID_CONTENTS)),Fe&&(Oe["#text"]=!0),Re&&P(Oe,["html","head","body"]),Oe.table&&(P(Oe,["tbody"]),delete ke.tbody),a&&a(e),rt=e)},st=P({},["mi","mo","mn","ms","mtext"]),ct=P({},["foreignobject","desc","title","annotation-xml"]),ut=P({},_);P(ut,T),P(ut,C);var lt=P({},D);P(lt,R);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===$e)return t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ut[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ke?"math"===n:t.namespaceURI===$e?"math"===n&&ct[r]:Boolean(lt[n]);if(e.namespaceURI===Ke){if(t.namespaceURI===$e&&!ct[r])return!1;if(t.namespaceURI===qe&&!st[r])return!1;var o=P({},["title","style","font","a","script"]);return!lt[n]&&(o[n]||!ut[n])}return!1},pt=function(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Se[e])if(Ie||Ne)try{pt(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Xe===Ke)try{t=(new S).parseFromString(i,Qe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ke?le.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof x&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===s?"undefined":z(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,n,r){de[e]&&p(de[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(yt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return pt(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return pt(e),!0;if(!Oe[r]||ke[r]){if(!ke[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Fe&&!Be[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e))}return pt(e),!0}return e instanceof c&&!ft(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(n=e.textContent,n=v(n,he," "),n=v(n,me," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),yt("afterSanitizeElements",e,null),!1):(pt(e),!0)},wt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Te&&!Ee[t]&&w(ge,t));else if(_e&&w(ve,t));else if(!Se[t]||Ee[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&w(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(ze[t]);else if(w(we,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ve[e])if(Ce&&!w(ye,v(n,be,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},xt=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;yt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=a.length;i--;){var c=n=a[i],u=c.name,l=c.namespaceURI;if(r=b(n.value),o=nt(u),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(dt(u,e),s.keepAttr))if(w(/\/>/i,r))dt(u,e);else{De&&(r=v(r,he," "),r=v(r,me," "));var f=nt(e.nodeName);if(wt(f,o,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),d(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},St=function e(t){var n=void 0,r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),xt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,u=void 0,l=void 0,f=void 0;if((Je=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!vt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||at(i),t.removed=[],"string"==typeof r&&(He=!1),He){if(r.nodeName){var p=nt(r.nodeName);if(!Oe[p]||ke[p])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof s)1===(c=(a=ht("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ie&&!De&&!Re&&-1===r.indexOf("<"))return oe&&Ze?oe.createHTML(r):r;if(!(a=ht(r)))return Ie?null:Ze?ie:""}a&&Ae&&pt(a.firstChild);for(var d=mt(He?r:a);u=d.nextNode();)3===u.nodeType&&u===l||bt(u)||(u.content instanceof o&&St(u.content),xt(u),l=u);if(l=null,He)return r;if(Ie){if(Ne)for(f=ue.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Se.shadowroot&&(f=fe.call(n,f,!0)),f}var h=Re?a.outerHTML:a.innerHTML;return Re&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&w(Y,a.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+h),De&&(h=v(h,he," "),h=v(h,me," ")),oe&&Ze?oe.createHTML(h):h},t.setConfig=function(e){at(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),o=nt(t);return wt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],h(de[e],t))},t.removeHook=function(e){de[e]&&d(de[e])},t.removeHooks=function(e){de[e]&&(de[e]=[])},t.removeAllHooks=function(){de={}},t}return K()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},73312:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(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&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},88098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(73891),o=n(73312);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(88911);var o=n(72753),i=n(61917);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(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.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js",905:"vendor-quill"}[e]||e)+"."+{44:"054fdf64e5fa0cf5b191",85:"3fc270ab551329a0bc5d",198:"7c2af778b99282c30521",399:"28c5e5463a834eb7f9b3",611:"1f345eacfd26bdb5ac6b",701:"c750b10226c905e8cd0f",877:"ea8e91a330344f5ac9c7",905:"40c3d7143484e753755b",949:"9253025651510464adca"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-devcon:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==i+n){a=f;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(d);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={179:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var u={};return(()=>{"use strict";c.r(u);var e=c(59713),t=c.n(e),n=c(30670),r=c.n(n),o=c(41143),i=c.n(o);function a(e){return"/"===e.charAt(0)}function s(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&a(e),i=t&&a(t),c=o||i;if(e&&a(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var u=void 0;if(r.length){var l=r[r.length-1];u="."===l||".."===l||""===l}else u=!1;for(var f=0,p=r.length;p>=0;p--){var d=r[p];"."===d?s(r,p):".."===d?(s(r,p),f++):f&&(s(r,p),f--)}if(!c)for(;f--;f)r.unshift("..");!c||""===r[0]||r[0]&&a(r[0])||r.unshift("");var h=r.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var f=function(e){return"/"===e.charAt(0)?e:"/"+e},p=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},d=function(e,t){return p(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,i):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},x=function(e,t){return t(window.confirm(e))},S=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},P=function(){return-1===window.navigator.userAgent.indexOf("Trident")},j=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_="popstate",T="hashchange",C=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(b,"Browser history needs a DOM");var t=window.history,n=S(),o=!P(),a=e.forceRefresh,s=void 0!==a&&a,c=e.getUserConfirmation,u=void 0===c?x:c,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(f(e.basename)):"",R=function(e){var t=e||{},n=t.key,o=t.state,i=window.location,a=i.pathname+i.search+i.hash;return r()(!D||p(a,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+D+'".'),D&&(a=d(a,D)),v(a,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},A=y(),I=function(e){E(ee,e),ee.length=t.length,A.notifyListeners(ee.location,ee.action)},N=function(e){j(e)||F(R(e.state))},Z=function(){F(R(C()))},L=!1,F=function(e){if(L)L=!1,I();else{A.confirmTransitionTo(e,"POP",u,(function(t){t?I({action:"POP",location:e}):H(e)}))}},H=function(e){var t=ee.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,z(o))},U=R(C()),B=[U.key],W=function(e){return D+m(e)},V=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.pushState({key:c,state:u},null,o),s)window.location.href=o;else{var l=B.indexOf(ee.location.key),f=B.slice(0,-1===l?0:l+1);f.push(a.key),B=f,I({action:i,location:a})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},Y=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.replaceState({key:c,state:u},null,o),s)window.location.replace(o);else{var l=B.indexOf(ee.location.key);-1!==l&&(B[l]=a.key),I({action:i,location:a})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},z=function(e){t.go(e)},G=function(){return z(-1)},q=function(){return z(1)},$=0,K=function(e){1===($+=e)?(w(window,_,N),o&&w(window,T,Z)):0===$&&(O(window,_,N),o&&O(window,T,Z))},X=!1,J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},Q=function(e){var t=A.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:U,createHref:W,push:V,replace:Y,go:z,goBack:G,goForward:q,block:J,listen:Q};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var R=c(1024),M=c.n(R),A=c(80467),I="tocco-util/LOG_ERROR",N=c(81770),Z=c(319),L=c.n(Z);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?F(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=t()({},I,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return H(H({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(L()(e.messages)).slice(0,100)})})),B={messages:[]};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0,n=U[t.type];return n?n(e,t):e}var V=c(87757),Y=c.n(V),z=c(34857),G=c(50600),q=c(44759),$=Y().mark(K);function K(e,t,n){return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.RE)(q.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),$)}var X=c(21477),J=Y().mark(Q);function Q(e,t,n){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,z.RE)(X.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,z.gz)(r);case 5:case"end":return n.stop()}}),J)}var ee=c(54159),te=Y().mark(ne);function ne(e,t,n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),e.next=3,(0,z.RE)(ee.Z.executeRequest,"log?level=error&message=".concat(encodeURI(r)),{method:"POST"});case 3:case"end":return e.stop()}}),te)}const re={console:K,notification:Q,remote:ne};var oe=Y().mark(se),ie=Y().mark(ce),ae=Y().mark(ue);function se(e,t){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,z.ib)(I,ce,t);case 3:n.next=7;break;case 5:return n.next=7,(0,z.ib)(I,ue);case 7:case"end":return n.stop()}}),oe)}function ce(e,t){var n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.payload,r=n.title,o=n.description,i=n.error,a.next=4,(0,z.$6)(e.map((function(e){return(0,z.RE)(re[e],r,o,i)})));case 4:case"end":return a.stop()}}),ie)}function ue(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(G.Z.emitAction(e));case 2:case"end":return t.stop()}}),ae)}const le=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:I,payload:{title:e,description:t,error:n,dateTime:r}}},fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&N.Z.injectReducers(e,{errorLogging:W}),e.sagaMiddleware.run(se,t,n)};var pe=c(93386),de=c.n(pe),he=(c(30314),c(2100)),me="cache/INITIALISE",ge="cache/SET_INITIALISED",ve=function(e){return{type:ge,payload:{initialised:e}}},ye=t()({},ge,N.Z.singleTransferReducer("initialised")),be={initialised:!1};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0,n=ye[t.type];return n?n(e,t):e}var Oe=c(79311),xe=c(63094),Se=Y().mark(Pe);function Pe(){var e,t,n,r,o,i,a,s,c;return Y().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,z.RE)(xe.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=Oe.Z.getLongTerm("session","locale"),n=Oe.Z.getLongTerm("session","principal"),u.next=7,(0,z.RE)(he.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,i=r.username,a=r.businessUnitId,s=!t||t!==o,c=n&&(n.currentBusinessUnit.id!==a||n.username!==i),u.abrupt("return",s||c||e);case 12:case"end":return u.stop()}}),Se)}var je=Y().mark(Ee),ke=Y().mark(Te);function Ee(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(me,Te)]);case 2:case"end":return e.stop()}}),je)}var _e=!1;function Te(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_e){e.next=4;break}return e.next=3,(0,z.gz)(ve(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,z.RE)(Pe);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,z.RE)(Oe.Z.clearAll);case 10:return _e=!0,e.next=13,(0,z.gz)(ve(!0));case 13:case"end":return e.stop()}}),ke)}var Ce,De,Re,Me,Ae=c(74806),Ie=c(46458),Ne=c(68957),Ze=c(93235),Le=c(34206),Fe=c(91411),He=c(32678),Ue=c(69829),Be=c(7281),We=(0,He.F4)(Ce||(Ce=(0,Fe.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Ve=(0,He.iv)(De||(De=(0,Fe.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),We),Ye=He.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Re||(Re=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Be.Z.space(-1),Ve,Ue.Fe,Be.Z.space(-1));const ze=He.ZP.div.withConfig({displayName:"StyledLoadMask"})(Me||(Me=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Ge,qe=c(85893);const $e=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,R.useState)(!1),s=(0,Ne.Z)(a,2),c=s[0],u=s[1],l=(0,R.useState)(!0),f=(0,Ne.Z)(l,2),p=f[0],d=f[1];return(0,R.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){p&&u(e)}(!0)})),function(){d(!1)}}),[]),(0,R.useEffect)((function(){n&&Array.isArray(n)&&u(!n.some((function(e){return!e})))}),[n]),(0,qe.jsx)(ze,{className:i,children:c?r:(0,qe.jsxs)(Ye,{children:[Ge||(Ge=(0,qe.jsx)(Ze.Z,{size:"30px"},"loading-spinner")),o&&(0,qe.jsx)(Le.ZP.Span,{children:o},"loadingText")]})})};const Ke=function(e){var t=e.children,n=e.initialised;return(0,qe.jsx)($e,{required:[n],children:t})};const Xe={addToStore:function(e){N.Z.injectReducers(e,{cache:we}),e.sagaMiddleware.run(Ee)},initialise:function(){return{type:me}},CacheInitLoadMask:(0,Ie.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,Ae.ZP)(Ke)),hasInvalidCache:Pe};var Je=c(21101),Qe=c(5435);const et={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var tt=c(85743),nt="keyDown/SET_CONFIG",rt="keyDown/KEY_DOWN",ot=function(e){return{type:nt,payload:{config:e}}},it=function(e){return{type:rt,payload:{config:e}}},at=t()({},nt,N.Z.singleTransferReducer("config")),st={config:[]};function ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st,t=arguments.length>1?arguments[1]:void 0,n=at[t.type];return n?n(e,t):e}var ut=Y().mark(pt),lt=Y().mark(dt),ft=Y().mark(ht);function pt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.$6)([(0,z.RE)(dt,e),(0,z.ib)(rt,ht)]);case 2:case"end":return t.stop()}}),ut)}function dt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(ot(e));case 2:case"end":return t.stop()}}),lt)}function ht(e){var t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,z.$6)(n.actions.map((function(e){return(0,z.gz)(e)})));case 5:case"end":return r.stop()}}),ft)}var mt,gt=c(28655),vt=c.n(gt),yt=He.ZP.div.withConfig({displayName:"StyledDiv"})(mt||(mt=vt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const bt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,R.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),i=(0,R.useCallback)((function(e){return o(e,!0)}),[o]);return(0,R.useEffect)((function(){return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}}),[i]),(0,qe.jsx)(yt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var wt={keyDownHandler:it};const Ot={keyDown:it,addToStore:function(e,t){N.Z.injectReducers(e,{keyDown:ct}),e.sagaMiddleware.run(pt,t)},KeyDownWatcher:(0,Ie.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),wt)(bt)};var xt,St,Pt,jt=He.ZP.div.withConfig({displayName:"StyledApp"})(xt||(xt=vt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),kt=c(82492),Et=c.n(kt),_t=c(76538),Tt=c(88601),Ct=(0,He.vJ)(St||(St=vt()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),Tt.Z.color("signal.success.text"),(function(e){var t=e.theme;return(0,_t._j)(.4,t.colors.paper)})),Dt=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,i=(0,R.useMemo)((function(){return Et()({},t,n)}),[t,n]);return(0,qe.jsxs)(He.f6,{theme:o||i,children:[Pt||(Pt=(0,qe.jsx)(Ct,{})),r]})};Dt.defaultProps={defaultTheme:Qe.Z};const Rt=(0,He.Zz)(Dt);var Mt=c(93379),At=c.n(Mt),It=c(7795),Nt=c.n(It),Zt=c(90569),Lt=c.n(Zt),Ft=c(3565),Ht=c.n(Ft),Ut=c(19216),Bt=c.n(Ut),Wt=c(44589),Vt=c.n(Wt),Yt=c(36420),zt={};zt.styleTagTransform=Vt(),zt.setAttributes=Ht(),zt.insert=Lt().bind(null,"head"),zt.domAPI=Nt(),zt.insertStyleElement=Bt();At()(Yt.Z,zt);Yt.Z&&Yt.Z.locals&&Yt.Z.locals;var Gt=function(e){return"widget"===e?et:Qe.Z};const qt=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,i=(0,R.useCallback)((function(e){e&&c.e(198).then(c.bind(c,78947)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),a=tt.Z.getEmbedType();return(0,qe.jsx)(Rt,{customTheme:o,defaultTheme:Gt(a),children:(0,qe.jsx)(Ie.Provider,{store:t,children:(0,qe.jsx)(Ot.KeyDownWatcher,{children:(0,qe.jsx)($e,{promises:[n],children:(0,qe.jsx)(Je.Pj,{children:(0,qe.jsx)(Xe.CacheInitLoadMask,{children:(0,qe.jsx)(jt,{ref:i,children:r})})})})})})})};var $t="app/INPUT_DISPATCHED",Kt=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Xt=function(e){c.p=e},Jt=function(e,t,n,r){var o=de()([n],r),i=e?e.locale:null;return he.Z.initIntl(t,o,i)},Qt=c(15857),en=(c(28500),c(44422));function tn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var nn=tn();nn.withExtraArgument=tn;const rn=nn;var on=c(24688),an={};const sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an;return e};function cn(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 un(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ln=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};c(63038);const fn=function(e,t,n,r){var o=r.input,i=void 0===o?{}:o,a=r.actions,s=void 0===a?void 0:a,c=r.publicPath,u=void 0===c?void 0:c,l=r.textResourceModules,f=void 0===l?[]:l;try{var p=i.customTheme;u&&Xt(u),s&&(Kt(s,n),n.dispatch({type:$t}),n.dispatch(Xe.initialise()));var d=Jt(i,n,e,f);return{component:(0,qe.jsx)(qt,{store:n,initIntlPromise:d,content:t,theme:p}),store:n,methods:{setLocale:function(e){return he.Z.changeLocale(n,f,e)}}}}catch(e){try{n.dispatch(le("Error","Error creating react application: ",e))}catch(t){q.Z.logError("Error creating react application: ",e),q.Z.logError("Unable to log error: ",t)}}},pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=ln(n),o=(0,en.ZP)(),i=(0,Qt.md)(rn,o),a=un(un({},e),{},{input:sn,intl:Je._8});e=(0,Qt.UY)(a);var s=(0,Qt.MT)(e,r,i);if(s.allReducers=a,s.sagas=t,s.sagaMiddleware=o,s.hotReloadReducers=N.Z.hotReloadReducers,t&&t.length>0){var c=on.Z.createGenerator(t.map((function(e){return(0,z.rM)(e)})));o.run(on.Z.autoRestartSaga(c,null,le))}return s},dn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var hn,mn=c(48479);function gn(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 vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?gn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yn=function(e,n){return function(r,o){return vn(vn({},r),{},t()({},n||o.payload.path,vn(vn({},r[n||o.payload.path]),{},{running:e})))}},bn=(hn={},t()(hn,mn.b0,N.Z.singleTransferReducer("version","dbRefactoring")),t()(hn,mn.FX,N.Z.singleTransferReducer("modules","dbRefactoring")),t()(hn,mn._2,N.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(hn,mn.ZD,N.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(hn,mn.Pt,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(hn,mn.Hx,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(L()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(hn,mn.X7,yn(!0,"dbRefactoring")),t()(hn,mn.DN,yn(!1)),t()(hn,mn.AF,N.Z.singleTransferReducer("language","languageUpgrade")),t()(hn,mn.Bw,yn(!0,"languageUpgrade")),hn),wn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var On=Y().mark(Cn),xn=Y().mark(Dn),Sn=Y().mark(Rn),Pn=Y().mark(Mn),jn=Y().mark(An),kn=Y().mark(In),En=Y().mark(Nn),_n=function(e){return e.dbRefactoring.dbRefactoring},Tn=function(e){return e.dbRefactoring.languageUpgrade};function Cn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(mn.VQ,Dn),(0,z.Fm)(mn.Tf,Rn),(0,z.Fm)(mn.X7,Mn),(0,z.Fm)(mn.Bw,An)]);case 2:case"end":return e.stop()}}),On)}function Dn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),xn)}function Rn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.Rg(e.body));case 5:case"end":return t.stop()}}),Sn)}function Mn(){var e,t,n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,z.Ys)(_n);case 2:return e=a.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,i={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},a.next=10,(0,z.RE)(In,i,"dbRefactoring");case 10:case"end":return a.stop()}}),Pn)}function An(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Tn);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,z.RE)(In,n,"languageUpgrade");case 7:case"end":return r.stop()}}),jn)}function In(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,z.Cs)(Nn,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),q.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),kn,null,[[1,9]])}function Nn(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,z.gw)(3e3);case 2:return o.next=4,(0,z.RE)(xe.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,z.gz)(mn.zL(t));case 9:return o.next=11,(0,z.gz)(X.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,z.gz)(mn.zL(t));case 16:return o.next=18,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,z.RE)(Nn,e);case 22:case"end":return o.stop()}}),En)}var Zn=Y().mark(Ln);function Ln(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Cn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wn,t=arguments.length>1?arguments[1]:void 0,n=bn[t.type];return n?n(e,t):e};var Hn=c(44586),Un="log/RECEIVE_ENTRY",Bn=function(e){return{type:Un,payload:{data:e}}};function Wn(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 Vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Wn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yn=t()({},Un,(function(e,t){var n=t.payload;return Vn(Vn({},e),{},{entries:[Vn(Vn({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))})})),zn={entries:[]};var Gn=c(47979),qn=Y().mark(Kn),$n=Y().mark(Xn);function Kn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Xn)]);case 2:case"end":return e.stop()}}),qn)}function Xn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Bn},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),$n)}var Jn=Y().mark(Qn);function Qn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Kn)]);case 2:case"end":return e.stop()}}),Jn)}const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zn,t=arguments.length>1?arguments[1]:void 0,n=Yn[t.type];return n?n(e,t):e};var tr,nr=c(49478);function rr(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 or(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ir=(tr={},t()(tr,nr.MW,(function(){return or(or({},ar),{},{state:or(or({},ar.state),{},{running:!0})})})),t()(tr,nr.LU,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{total:n.total})})})),t()(tr,nr.pe,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(tr,nr.HM,(function(e,n){var r=n.payload,o=r.id,i=r.type,a=r.label,s=e.checkEvents[i]||[],c=[].concat(L()(s),[{id:o,type:i,label:a}]),u=or(or({},e.checkEvents),{},t()({},i,c));return or(or({},e),{},{checkEvents:u})})),t()(tr,nr.iK,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!1,result:n.result})})})),t()(tr,nr.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),or(or({},e),{},{selection:n})})),t()(tr,nr.VD,N.Z.singleTransferReducer("sql")),t()(tr,nr.g6,N.Z.singleTransferReducer("changelog")),tr),ar={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var sr=c(84137),cr=c(65035);const ur=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const lr=(0,Ie.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(ur);const fr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n}}),(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var pr={setSql:nr.fq,executeSql:nr.Rj};const dr=(0,Ie.connect)((function(e){return{sql:e.modelValidation.sql}}),pr)(fr);var hr=Y().mark(Sr),mr=Y().mark(Pr),gr=Y().mark(jr),vr=Y().mark(kr),yr=Y().mark(Er),br=Y().mark(_r),wr=Y().mark(Tr),Or=function(e){return e.modelValidation.selection},xr=function(e){return e.modelValidation.sql};function Sr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Pr),(0,z.ib)(nr.MW,jr),(0,z.ib)(nr.EJ,kr),(0,z.ib)(nr.es,Er),(0,z.ib)(nr.dQ,_r),(0,z.ib)(nr.Ge,Tr)]);case 2:case"end":return e.stop()}}),hr)}function Pr(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:nr.QM},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),mr)}function jr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),q.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),gr,null,[[0,5]])}function kr(e){var t;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,z.gz)(nr.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,z.gz)(nr.o1(t.message.params.total));case 10:return n.next=12,(0,z.gz)(nr.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,z.gz)(nr.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),vr)}function Er(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,z.gz)(X.Z.modal("sql","SQL",null,dr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),yr,null,[[4,14]])}function _r(e){var t,n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,z.Ys)(xr);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,z.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),q.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),br,null,[[5,14]])}function Tr(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.EL(n.body.statements[0]));case 10:return r.next=12,(0,z.gz)(X.Z.modal("changelog","Changelog",null,lr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),wr,null,[[4,14]])}var Cr=Y().mark(Dr);function Dr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Sr)]);case 2:case"end":return e.stop()}}),Cr)}const Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1?arguments[1]:void 0,n=ir[t.type];return n?n(e,t):e};var Mr,Ar=c(22541);function Ir(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 Nr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ir(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=(Mr={},t()(Mr,Ar.Z9,(function(e,t){var n=t.payload;return e.active?Nr(Nr({},e),{},{entries:[Nr(Nr({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))}):e})),t()(Mr,Ar.HI,N.Z.singleTransferReducer("active")),t()(Mr,Ar.Zm,N.Z.singleTransferReducer("elapsed")),Mr),Lr={entries:[],active:!1,elapsed:null};var Fr=Y().mark(Ur),Hr=Y().mark(Br);function Ur(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Br)]);case 2:case"end":return e.stop()}}),Fr)}function Br(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:Ar.oS},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Hr)}var Wr=Y().mark(Vr);function Vr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Ur)]);case 2:case"end":return e.stop()}}),Wr)}const Yr={log:er,dbRefactoring:Fn,modelValidation:Rr,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Zr[t.type];return n?n(e,t):e}};var zr,Gr,qr=[Ln,Qn,Dr,Vr];function $r(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}var Kr="devcon",Xr=M().lazy((function(){return c.e(85).then(c.bind(c,5702))})),Jr=function(){return zr||(zr=(0,qe.jsx)("div",{children:(0,qe.jsx)(R.Suspense,{fallback:"",children:(0,qe.jsx)(Xr,{})})}))},Qr=function(e,n,r,o){var i=pn(Yr,qr,n,Kr);fe(i,!0,["console","remote","notification"]),X.Z.addToStore(i,!0);var a=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$r(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),s=(0,qe.jsx)(A.F0,{history:a,children:Gr||(Gr=(0,qe.jsx)(Jr,{}))});return fn(Kr,s,i,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",Kr]})};dn(Kr,Qr)})(),u})()));
63
+ e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,u="undefined"!=typeof Reflect&&Reflect,l=u.apply,f=u.construct;l||(l=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),s||(s=function(e){return e}),f||(f=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var p=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),m=x(String.prototype.toLowerCase),g=x(String.prototype.match),v=x(String.prototype.replace),y=x(String.prototype.indexOf),b=x(String.prototype.trim),w=x(RegExp.prototype.test),O=S(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(e,n)}}function P(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=m(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function j(e){var n=c(null),r=void 0;for(r in e)l(t,e,[r])&&(n[r]=e[r]);return n}function k(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=a(["#text"]),A=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=s(/<%[\s\S]*|[\s\S]*%>/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),U=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i),z="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};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!==(void 0===e?"undefined":z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),t=function(e){return K(e)};if(t.version="2.3.6",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,c=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,f=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,x=e.HTMLFormElement,S=e.DOMParser,X=e.trustedTypes,J=c.prototype,Q=k(J,"cloneNode"),ee=k(J,"nextSibling"),te=k(J,"childNodes"),ne=k(J,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=$(X,n),ie=oe?oe.createHTML(""):"",ae=r,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=n.importNode,pe={};try{pe=j(r).documentMode?r.documentMode:{}}catch(e){}var de={};t.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he=L,me=F,ge=H,ve=U,ye=W,be=V,we=B,Oe=null,xe=P({},[].concat(G(E),G(_),G(T),G(D),G(M))),Se=null,Pe=P({},[].concat(G(A),G(I),G(N),G(Z))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ee=null,_e=!0,Te=!0,Ce=!1,De=!1,Re=!1,Me=!1,Ae=!1,Ie=!1,Ne=!1,Ze=!1,Le=!0,Fe=!0,He=!1,Ue={},Be=null,We=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=P({},["audio","video","img","source","image","track"]),ze=null,Ge=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",Xe=Ke,Je=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":z(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?P({},e.ALLOWED_TAGS):xe,Se="ALLOWED_ATTR"in e?P({},e.ALLOWED_ATTR):Pe,ze="ADD_URI_SAFE_ATTR"in e?P(j(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ve="ADD_DATA_URI_TAGS"in e?P(j(Ye),e.ADD_DATA_URI_TAGS):Ye,Be="FORBID_CONTENTS"in e?P({},e.FORBID_CONTENTS):We,ke="FORBID_TAGS"in e?P({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?P({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Ze=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Xe=e.NAMESPACE||Ke,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:m,De&&(Te=!1),Ne&&(Ie=!0),Ue&&(Oe=P({},[].concat(G(M))),Se=[],!0===Ue.html&&(P(Oe,E),P(Se,A)),!0===Ue.svg&&(P(Oe,_),P(Se,I),P(Se,Z)),!0===Ue.svgFilters&&(P(Oe,T),P(Se,I),P(Se,Z)),!0===Ue.mathMl&&(P(Oe,D),P(Se,N),P(Se,Z))),e.ADD_TAGS&&(Oe===xe&&(Oe=j(Oe)),P(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(Se===Pe&&(Se=j(Se)),P(Se,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&P(ze,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===We&&(Be=j(Be)),P(Be,e.FORBID_CONTENTS)),Fe&&(Oe["#text"]=!0),Re&&P(Oe,["html","head","body"]),Oe.table&&(P(Oe,["tbody"]),delete ke.tbody),a&&a(e),rt=e)},st=P({},["mi","mo","mn","ms","mtext"]),ct=P({},["foreignobject","desc","title","annotation-xml"]),ut=P({},_);P(ut,T),P(ut,C);var lt=P({},D);P(lt,R);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===$e)return t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ut[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ke?"math"===n:t.namespaceURI===$e?"math"===n&&ct[r]:Boolean(lt[n]);if(e.namespaceURI===Ke){if(t.namespaceURI===$e&&!ct[r])return!1;if(t.namespaceURI===qe&&!st[r])return!1;var o=P({},["title","style","font","a","script"]);return!lt[n]&&(o[n]||!ut[n])}return!1},pt=function(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Se[e])if(Ie||Ne)try{pt(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Xe===Ke)try{t=(new S).parseFromString(i,Qe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ke?le.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof x&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===s?"undefined":z(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,n,r){de[e]&&p(de[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(yt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return pt(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return pt(e),!0;if(!Oe[r]||ke[r]){if(!ke[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Fe&&!Be[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e))}return pt(e),!0}return e instanceof c&&!ft(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(n=e.textContent,n=v(n,he," "),n=v(n,me," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),yt("afterSanitizeElements",e,null),!1):(pt(e),!0)},wt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Te&&!Ee[t]&&w(ge,t));else if(_e&&w(ve,t));else if(!Se[t]||Ee[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&w(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(ze[t]);else if(w(we,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ve[e])if(Ce&&!w(ye,v(n,be,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},xt=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;yt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=a.length;i--;){var c=n=a[i],u=c.name,l=c.namespaceURI;if(r=b(n.value),o=nt(u),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(dt(u,e),s.keepAttr))if(w(/\/>/i,r))dt(u,e);else{De&&(r=v(r,he," "),r=v(r,me," "));var f=nt(e.nodeName);if(wt(f,o,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),d(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},St=function e(t){var n=void 0,r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),xt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,u=void 0,l=void 0,f=void 0;if((Je=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!vt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||at(i),t.removed=[],"string"==typeof r&&(He=!1),He){if(r.nodeName){var p=nt(r.nodeName);if(!Oe[p]||ke[p])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof s)1===(c=(a=ht("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ie&&!De&&!Re&&-1===r.indexOf("<"))return oe&&Ze?oe.createHTML(r):r;if(!(a=ht(r)))return Ie?null:Ze?ie:""}a&&Ae&&pt(a.firstChild);for(var d=mt(He?r:a);u=d.nextNode();)3===u.nodeType&&u===l||bt(u)||(u.content instanceof o&&St(u.content),xt(u),l=u);if(l=null,He)return r;if(Ie){if(Ne)for(f=ue.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Se.shadowroot&&(f=fe.call(n,f,!0)),f}var h=Re?a.outerHTML:a.innerHTML;return Re&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&w(Y,a.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+h),De&&(h=v(h,he," "),h=v(h,me," ")),oe&&Ze?oe.createHTML(h):h},t.setConfig=function(e){at(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),o=nt(t);return wt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],h(de[e],t))},t.removeHook=function(e){de[e]&&d(de[e])},t.removeHooks=function(e){de[e]&&(de[e]=[])},t.removeAllHooks=function(){de={}},t}return K()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},73312:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(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&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},88098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(73891),o=n(73312);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(88911);var o=n(72753),i=n(61917);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(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.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js",905:"vendor-quill"}[e]||e)+"."+{44:"054fdf64e5fa0cf5b191",85:"3fc270ab551329a0bc5d",198:"7c2af778b99282c30521",399:"28c5e5463a834eb7f9b3",611:"1f345eacfd26bdb5ac6b",701:"c750b10226c905e8cd0f",877:"ea8e91a330344f5ac9c7",905:"40c3d7143484e753755b",949:"9253025651510464adca"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-devcon:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==i+n){a=f;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(d);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={179:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var u={};return(()=>{"use strict";c.r(u);var e=c(59713),t=c.n(e),n=c(30670),r=c.n(n),o=c(41143),i=c.n(o);function a(e){return"/"===e.charAt(0)}function s(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&a(e),i=t&&a(t),c=o||i;if(e&&a(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var u=void 0;if(r.length){var l=r[r.length-1];u="."===l||".."===l||""===l}else u=!1;for(var f=0,p=r.length;p>=0;p--){var d=r[p];"."===d?s(r,p):".."===d?(s(r,p),f++):f&&(s(r,p),f--)}if(!c)for(;f--;f)r.unshift("..");!c||""===r[0]||r[0]&&a(r[0])||r.unshift("");var h=r.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var f=function(e){return"/"===e.charAt(0)?e:"/"+e},p=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},d=function(e,t){return p(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,i):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},x=function(e,t){return t(window.confirm(e))},S=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},P=function(){return-1===window.navigator.userAgent.indexOf("Trident")},j=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_="popstate",T="hashchange",C=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(b,"Browser history needs a DOM");var t=window.history,n=S(),o=!P(),a=e.forceRefresh,s=void 0!==a&&a,c=e.getUserConfirmation,u=void 0===c?x:c,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(f(e.basename)):"",R=function(e){var t=e||{},n=t.key,o=t.state,i=window.location,a=i.pathname+i.search+i.hash;return r()(!D||p(a,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+D+'".'),D&&(a=d(a,D)),v(a,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},A=y(),I=function(e){E(ee,e),ee.length=t.length,A.notifyListeners(ee.location,ee.action)},N=function(e){j(e)||F(R(e.state))},Z=function(){F(R(C()))},L=!1,F=function(e){if(L)L=!1,I();else{A.confirmTransitionTo(e,"POP",u,(function(t){t?I({action:"POP",location:e}):H(e)}))}},H=function(e){var t=ee.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,z(o))},U=R(C()),B=[U.key],W=function(e){return D+m(e)},V=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.pushState({key:c,state:u},null,o),s)window.location.href=o;else{var l=B.indexOf(ee.location.key),f=B.slice(0,-1===l?0:l+1);f.push(a.key),B=f,I({action:i,location:a})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},Y=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.replaceState({key:c,state:u},null,o),s)window.location.replace(o);else{var l=B.indexOf(ee.location.key);-1!==l&&(B[l]=a.key),I({action:i,location:a})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},z=function(e){t.go(e)},G=function(){return z(-1)},q=function(){return z(1)},$=0,K=function(e){1===($+=e)?(w(window,_,N),o&&w(window,T,Z)):0===$&&(O(window,_,N),o&&O(window,T,Z))},X=!1,J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},Q=function(e){var t=A.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:U,createHref:W,push:V,replace:Y,go:z,goBack:G,goForward:q,block:J,listen:Q};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var R=c(1024),M=c.n(R),A=c(80467),I="tocco-util/LOG_ERROR",N=c(81770),Z=c(319),L=c.n(Z);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?F(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=t()({},I,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return H(H({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(L()(e.messages)).slice(0,100)})})),B={messages:[]};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0,n=U[t.type];return n?n(e,t):e}var V=c(87757),Y=c.n(V),z=c(34857),G=c(50600),q=c(44759),$=Y().mark(K);function K(e,t,n){return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.RE)(q.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),$)}var X=c(21477),J=Y().mark(Q);function Q(e,t,n){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,z.RE)(X.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,z.gz)(r);case 5:case"end":return n.stop()}}),J)}var ee=c(54159),te=Y().mark(ne);function ne(e,t,n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),e.next=3,(0,z.RE)(ee.Z.executeRequest,"log?level=error&message=".concat(encodeURI(r)),{method:"POST"});case 3:case"end":return e.stop()}}),te)}const re={console:K,notification:Q,remote:ne};var oe=Y().mark(se),ie=Y().mark(ce),ae=Y().mark(ue);function se(e,t){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,z.ib)(I,ce,t);case 3:n.next=7;break;case 5:return n.next=7,(0,z.ib)(I,ue);case 7:case"end":return n.stop()}}),oe)}function ce(e,t){var n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.payload,r=n.title,o=n.description,i=n.error,a.next=4,(0,z.$6)(e.map((function(e){return(0,z.RE)(re[e],r,o,i)})));case 4:case"end":return a.stop()}}),ie)}function ue(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(G.Z.emitAction(e));case 2:case"end":return t.stop()}}),ae)}const le=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:I,payload:{title:e,description:t,error:n,dateTime:r}}},fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&N.Z.injectReducers(e,{errorLogging:W}),e.sagaMiddleware.run(se,t,n)};var pe=c(93386),de=c.n(pe),he=(c(30314),c(2100)),me="cache/INITIALISE",ge="cache/SET_INITIALISED",ve=function(e){return{type:ge,payload:{initialised:e}}},ye=t()({},ge,N.Z.singleTransferReducer("initialised")),be={initialised:!1};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0,n=ye[t.type];return n?n(e,t):e}var Oe=c(79311),xe=c(63094),Se=Y().mark(Pe);function Pe(){var e,t,n,r,o,i,a,s,c;return Y().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,z.RE)(xe.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=Oe.Z.getLongTerm("session","locale"),n=Oe.Z.getLongTerm("session","principal"),u.next=7,(0,z.RE)(he.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,i=r.username,a=r.businessUnitId,s=!t||t!==o,c=n&&(n.currentBusinessUnit.id!==a||n.username!==i),u.abrupt("return",s||c||e);case 12:case"end":return u.stop()}}),Se)}var je=Y().mark(Ee),ke=Y().mark(Te);function Ee(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(me,Te)]);case 2:case"end":return e.stop()}}),je)}var _e=!1;function Te(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_e){e.next=4;break}return e.next=3,(0,z.gz)(ve(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,z.RE)(Pe);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,z.RE)(Oe.Z.clearAll);case 10:return _e=!0,e.next=13,(0,z.gz)(ve(!0));case 13:case"end":return e.stop()}}),ke)}var Ce,De,Re,Me,Ae=c(74806),Ie=c(46458),Ne=c(68957),Ze=c(93235),Le=c(34206),Fe=c(91411),He=c(32678),Ue=c(69829),Be=c(7281),We=(0,He.F4)(Ce||(Ce=(0,Fe.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Ve=(0,He.iv)(De||(De=(0,Fe.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),We),Ye=He.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Re||(Re=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Be.Z.space(-1),Ve,Ue.Fe,Be.Z.space(-1));const ze=He.ZP.div.withConfig({displayName:"StyledLoadMask"})(Me||(Me=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Ge,qe=c(85893);const $e=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,R.useState)(!1),s=(0,Ne.Z)(a,2),c=s[0],u=s[1],l=(0,R.useState)(!0),f=(0,Ne.Z)(l,2),p=f[0],d=f[1];return(0,R.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){p&&u(e)}(!0)})),function(){d(!1)}}),[]),(0,R.useEffect)((function(){n&&Array.isArray(n)&&u(!n.some((function(e){return!e})))}),[n]),(0,qe.jsx)(ze,{className:i,children:c?r:(0,qe.jsxs)(Ye,{children:[Ge||(Ge=(0,qe.jsx)(Ze.Z,{size:"30px"},"loading-spinner")),o&&(0,qe.jsx)(Le.ZP.Span,{children:o},"loadingText")]})})};const Ke=function(e){var t=e.children,n=e.initialised;return(0,qe.jsx)($e,{required:[n],children:t})};const Xe={addToStore:function(e){N.Z.injectReducers(e,{cache:we}),e.sagaMiddleware.run(Ee)},initialise:function(){return{type:me}},CacheInitLoadMask:(0,Ie.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,Ae.ZP)(Ke)),hasInvalidCache:Pe};var Je=c(21101),Qe=c(5435);const et={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var tt=c(85743),nt="keyDown/SET_CONFIG",rt="keyDown/KEY_DOWN",ot=function(e){return{type:nt,payload:{config:e}}},it=function(e){return{type:rt,payload:{config:e}}},at=t()({},nt,N.Z.singleTransferReducer("config")),st={config:[]};function ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st,t=arguments.length>1?arguments[1]:void 0,n=at[t.type];return n?n(e,t):e}var ut=Y().mark(pt),lt=Y().mark(dt),ft=Y().mark(ht);function pt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.$6)([(0,z.RE)(dt,e),(0,z.ib)(rt,ht)]);case 2:case"end":return t.stop()}}),ut)}function dt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(ot(e));case 2:case"end":return t.stop()}}),lt)}function ht(e){var t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,z.$6)(n.actions.map((function(e){return(0,z.gz)(e)})));case 5:case"end":return r.stop()}}),ft)}var mt,gt=c(28655),vt=c.n(gt),yt=He.ZP.div.withConfig({displayName:"StyledDiv"})(mt||(mt=vt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const bt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,R.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),i=(0,R.useCallback)((function(e){return o(e,!0)}),[o]);return(0,R.useEffect)((function(){return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}}),[i]),(0,qe.jsx)(yt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var wt={keyDownHandler:it};const Ot={keyDown:it,addToStore:function(e,t){N.Z.injectReducers(e,{keyDown:ct}),e.sagaMiddleware.run(pt,t)},KeyDownWatcher:(0,Ie.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),wt)(bt)};var xt,St,Pt,jt=He.ZP.div.withConfig({displayName:"StyledApp"})(xt||(xt=vt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),kt=c(82492),Et=c.n(kt),_t=c(76538),Tt=c(88601),Ct=(0,He.vJ)(St||(St=vt()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),Tt.Z.color("signal.success.text"),Tt.Z.color("signal.info.text"),Tt.Z.color("signal.warning.text"),Tt.Z.color("signal.danger.text"),(function(e){var t=e.theme;return(0,_t._j)(.4,t.colors.paper)})),Dt=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,i=(0,R.useMemo)((function(){return Et()({},t,n)}),[t,n]);return(0,qe.jsxs)(He.f6,{theme:o||i,children:[Pt||(Pt=(0,qe.jsx)(Ct,{})),r]})};Dt.defaultProps={defaultTheme:Qe.Z};const Rt=(0,He.Zz)(Dt);var Mt=c(93379),At=c.n(Mt),It=c(7795),Nt=c.n(It),Zt=c(90569),Lt=c.n(Zt),Ft=c(3565),Ht=c.n(Ft),Ut=c(19216),Bt=c.n(Ut),Wt=c(44589),Vt=c.n(Wt),Yt=c(36420),zt={};zt.styleTagTransform=Vt(),zt.setAttributes=Ht(),zt.insert=Lt().bind(null,"head"),zt.domAPI=Nt(),zt.insertStyleElement=Bt();At()(Yt.Z,zt);Yt.Z&&Yt.Z.locals&&Yt.Z.locals;var Gt=function(e){return"widget"===e?et:Qe.Z};const qt=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,i=(0,R.useCallback)((function(e){e&&c.e(198).then(c.bind(c,78947)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),a=tt.Z.getEmbedType();return(0,qe.jsx)(Rt,{customTheme:o,defaultTheme:Gt(a),children:(0,qe.jsx)(Ie.Provider,{store:t,children:(0,qe.jsx)(Ot.KeyDownWatcher,{children:(0,qe.jsx)($e,{promises:[n],children:(0,qe.jsx)(Je.Pj,{children:(0,qe.jsx)(Xe.CacheInitLoadMask,{children:(0,qe.jsx)(jt,{ref:i,children:r})})})})})})})};var $t="app/INPUT_DISPATCHED",Kt=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Xt=function(e){c.p=e},Jt=function(e,t,n,r){var o=de()([n],r),i=e?e.locale:null;return he.Z.initIntl(t,o,i)},Qt=c(15857),en=(c(28500),c(44422));function tn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var nn=tn();nn.withExtraArgument=tn;const rn=nn;var on=c(24688),an={};const sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an;return e};function cn(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 un(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ln=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};c(63038);const fn=function(e,t,n,r){var o=r.input,i=void 0===o?{}:o,a=r.actions,s=void 0===a?void 0:a,c=r.publicPath,u=void 0===c?void 0:c,l=r.textResourceModules,f=void 0===l?[]:l;try{var p=i.customTheme;u&&Xt(u),s&&(Kt(s,n),n.dispatch({type:$t}),n.dispatch(Xe.initialise()));var d=Jt(i,n,e,f);return{component:(0,qe.jsx)(qt,{store:n,initIntlPromise:d,content:t,theme:p}),store:n,methods:{setLocale:function(e){return he.Z.changeLocale(n,f,e)}}}}catch(e){try{n.dispatch(le("Error","Error creating react application: ",e))}catch(t){q.Z.logError("Error creating react application: ",e),q.Z.logError("Unable to log error: ",t)}}},pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=ln(n),o=(0,en.ZP)(),i=(0,Qt.md)(rn,o),a=un(un({},e),{},{input:sn,intl:Je._8});e=(0,Qt.UY)(a);var s=(0,Qt.MT)(e,r,i);if(s.allReducers=a,s.sagas=t,s.sagaMiddleware=o,s.hotReloadReducers=N.Z.hotReloadReducers,t&&t.length>0){var c=on.Z.createGenerator(t.map((function(e){return(0,z.rM)(e)})));o.run(on.Z.autoRestartSaga(c,null,le))}return s},dn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var hn,mn=c(48479);function gn(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 vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?gn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yn=function(e,n){return function(r,o){return vn(vn({},r),{},t()({},n||o.payload.path,vn(vn({},r[n||o.payload.path]),{},{running:e})))}},bn=(hn={},t()(hn,mn.b0,N.Z.singleTransferReducer("version","dbRefactoring")),t()(hn,mn.FX,N.Z.singleTransferReducer("modules","dbRefactoring")),t()(hn,mn._2,N.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(hn,mn.ZD,N.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(hn,mn.Pt,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(hn,mn.Hx,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(L()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(hn,mn.X7,yn(!0,"dbRefactoring")),t()(hn,mn.DN,yn(!1)),t()(hn,mn.AF,N.Z.singleTransferReducer("language","languageUpgrade")),t()(hn,mn.Bw,yn(!0,"languageUpgrade")),hn),wn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var On=Y().mark(Cn),xn=Y().mark(Dn),Sn=Y().mark(Rn),Pn=Y().mark(Mn),jn=Y().mark(An),kn=Y().mark(In),En=Y().mark(Nn),_n=function(e){return e.dbRefactoring.dbRefactoring},Tn=function(e){return e.dbRefactoring.languageUpgrade};function Cn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(mn.VQ,Dn),(0,z.Fm)(mn.Tf,Rn),(0,z.Fm)(mn.X7,Mn),(0,z.Fm)(mn.Bw,An)]);case 2:case"end":return e.stop()}}),On)}function Dn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),xn)}function Rn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.Rg(e.body));case 5:case"end":return t.stop()}}),Sn)}function Mn(){var e,t,n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,z.Ys)(_n);case 2:return e=a.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,i={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},a.next=10,(0,z.RE)(In,i,"dbRefactoring");case 10:case"end":return a.stop()}}),Pn)}function An(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Tn);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,z.RE)(In,n,"languageUpgrade");case 7:case"end":return r.stop()}}),jn)}function In(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,z.Cs)(Nn,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),q.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),kn,null,[[1,9]])}function Nn(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,z.gw)(3e3);case 2:return o.next=4,(0,z.RE)(xe.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,z.gz)(mn.zL(t));case 9:return o.next=11,(0,z.gz)(X.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,z.gz)(mn.zL(t));case 16:return o.next=18,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,z.RE)(Nn,e);case 22:case"end":return o.stop()}}),En)}var Zn=Y().mark(Ln);function Ln(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Cn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wn,t=arguments.length>1?arguments[1]:void 0,n=bn[t.type];return n?n(e,t):e};var Hn=c(44586),Un="log/RECEIVE_ENTRY",Bn=function(e){return{type:Un,payload:{data:e}}};function Wn(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 Vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Wn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yn=t()({},Un,(function(e,t){var n=t.payload;return Vn(Vn({},e),{},{entries:[Vn(Vn({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))})})),zn={entries:[]};var Gn=c(47979),qn=Y().mark(Kn),$n=Y().mark(Xn);function Kn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Xn)]);case 2:case"end":return e.stop()}}),qn)}function Xn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Bn},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),$n)}var Jn=Y().mark(Qn);function Qn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Kn)]);case 2:case"end":return e.stop()}}),Jn)}const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zn,t=arguments.length>1?arguments[1]:void 0,n=Yn[t.type];return n?n(e,t):e};var tr,nr=c(49478);function rr(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 or(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ir=(tr={},t()(tr,nr.MW,(function(){return or(or({},ar),{},{state:or(or({},ar.state),{},{running:!0})})})),t()(tr,nr.LU,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{total:n.total})})})),t()(tr,nr.pe,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(tr,nr.HM,(function(e,n){var r=n.payload,o=r.id,i=r.type,a=r.label,s=e.checkEvents[i]||[],c=[].concat(L()(s),[{id:o,type:i,label:a}]),u=or(or({},e.checkEvents),{},t()({},i,c));return or(or({},e),{},{checkEvents:u})})),t()(tr,nr.iK,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!1,result:n.result})})})),t()(tr,nr.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),or(or({},e),{},{selection:n})})),t()(tr,nr.VD,N.Z.singleTransferReducer("sql")),t()(tr,nr.g6,N.Z.singleTransferReducer("changelog")),tr),ar={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var sr=c(84137),cr=c(65035);const ur=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const lr=(0,Ie.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(ur);const fr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n}}),(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var pr={setSql:nr.fq,executeSql:nr.Rj};const dr=(0,Ie.connect)((function(e){return{sql:e.modelValidation.sql}}),pr)(fr);var hr=Y().mark(Sr),mr=Y().mark(Pr),gr=Y().mark(jr),vr=Y().mark(kr),yr=Y().mark(Er),br=Y().mark(_r),wr=Y().mark(Tr),Or=function(e){return e.modelValidation.selection},xr=function(e){return e.modelValidation.sql};function Sr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Pr),(0,z.ib)(nr.MW,jr),(0,z.ib)(nr.EJ,kr),(0,z.ib)(nr.es,Er),(0,z.ib)(nr.dQ,_r),(0,z.ib)(nr.Ge,Tr)]);case 2:case"end":return e.stop()}}),hr)}function Pr(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:nr.QM},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),mr)}function jr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),q.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),gr,null,[[0,5]])}function kr(e){var t;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,z.gz)(nr.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,z.gz)(nr.o1(t.message.params.total));case 10:return n.next=12,(0,z.gz)(nr.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,z.gz)(nr.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),vr)}function Er(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,z.gz)(X.Z.modal("sql","SQL",null,dr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),yr,null,[[4,14]])}function _r(e){var t,n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,z.Ys)(xr);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,z.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),q.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),br,null,[[5,14]])}function Tr(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.EL(n.body.statements[0]));case 10:return r.next=12,(0,z.gz)(X.Z.modal("changelog","Changelog",null,lr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),wr,null,[[4,14]])}var Cr=Y().mark(Dr);function Dr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Sr)]);case 2:case"end":return e.stop()}}),Cr)}const Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1?arguments[1]:void 0,n=ir[t.type];return n?n(e,t):e};var Mr,Ar=c(22541);function Ir(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 Nr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ir(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=(Mr={},t()(Mr,Ar.Z9,(function(e,t){var n=t.payload;return e.active?Nr(Nr({},e),{},{entries:[Nr(Nr({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))}):e})),t()(Mr,Ar.HI,N.Z.singleTransferReducer("active")),t()(Mr,Ar.Zm,N.Z.singleTransferReducer("elapsed")),Mr),Lr={entries:[],active:!1,elapsed:null};var Fr=Y().mark(Ur),Hr=Y().mark(Br);function Ur(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Br)]);case 2:case"end":return e.stop()}}),Fr)}function Br(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:Ar.oS},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Hr)}var Wr=Y().mark(Vr);function Vr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Ur)]);case 2:case"end":return e.stop()}}),Wr)}const Yr={log:er,dbRefactoring:Fn,modelValidation:Rr,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Zr[t.type];return n?n(e,t):e}};var zr,Gr,qr=[Ln,Qn,Dr,Vr];function $r(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}var Kr="devcon",Xr=M().lazy((function(){return c.e(85).then(c.bind(c,5702))})),Jr=function(){return zr||(zr=(0,qe.jsx)("div",{children:(0,qe.jsx)(R.Suspense,{fallback:"",children:(0,qe.jsx)(Xr,{})})}))},Qr=function(e,n,r,o){var i=pn(Yr,qr,n,Kr);fe(i,!0,["console","remote","notification"]),X.Z.addToStore(i,!0);var a=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$r(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),s=(0,qe.jsx)(A.F0,{history:a,children:Gr||(Gr=(0,qe.jsx)(Jr,{}))});return fn(Kr,s,i,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",Kr]})};dn(Kr,Qr)})(),u})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-devcon",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {