tocco-devcon 1.0.89 → 1.0.91

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,10 @@
1
+ 1.0.91
2
+ - send selection to adjusted POST endpoint when loading report settings
3
+ - use a new custom display when displaying entities in select boxes
4
+
5
+ 1.0.90
6
+ - harmonize spacing of ranged dates by increasing search panel width
7
+
1
8
  1.0.89
2
9
  - reintroduce min-width for Ball component, since normal width caused rendering issues in the main menu
3
10
  - replace useWindowWidth hook with universal useWindowSize hook
@@ -0,0 +1 @@
1
+ (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Nr});var r,o=t(56746),l=t(31366),a=t(34206),i=t(50558),c=t(48479),s=t(1024),u=t.n(s),d=t(46927),f=(t(46444),t(44066)),h=t(70696),p=t(10535),g=t(78958),b=t(45915),m=t(91411),v=t(58804),y=t(37188);const x=(0,v.ZP)(y.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,m.Z)(["\n && {\n list-style-type: none;\n }\n"])));var w=t(85893);const k=function(e){return(0,w.jsx)(x,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var j,Z,O=t(88162),P=t(27361),S=t.n(P),C=t(88601),_=t(58664),R=(j={},(0,d.Z)(j,g.Z.condition.BASE,"inherit"),(0,d.Z)(j,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,d.Z)(j,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,d.Z)(j,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,d.Z)(j,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,d.Z)(j,g.Z.condition.INFO,C.Z.color("signal.info.text")),j),E=(0,v.ZP)(y.EF).withConfig({displayName:"StyledSignalListItem"})(Z||(Z=(0,m.Z)(["\n && {\n color: ",";\n position: relative;\n\n > i,\n > svg {\n position: absolute;\n left: -1.6rem;\n text-align: left;\n }\n\n > svg {\n top: 0.2em;\n }\n }\n"])),(function(e){return function(e){return R[e.condition]||"inherit"}(e)}));E.propTypes={condition:g.Z.conditionPropTypes(R)};const D=E;var N,T,L=(N={},(0,d.Z)(N,g.Z.condition.BASE,!1),(0,d.Z)(N,g.Z.condition.PRIMARY,!1),(0,d.Z)(N,g.Z.condition.DANGER,"times"),(0,d.Z)(N,g.Z.condition.SUCCESS,"check"),(0,d.Z)(N,g.Z.condition.WARNING,"exclamation-triangle"),(0,d.Z)(N,g.Z.condition.INFO,"info"),N),A=function(e){var n=L[e.condition];return n?(0,w.jsx)(O.Z,{icon:n,position:g.Z.position.SOLE}):T||(T=(0,w.jsx)("i",{children:"•"}))},I=function(e){return(0,w.jsxs)(D,{condition:e.condition,children:[A(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};I.defaultProps={condition:g.Z.condition.BASE};const M={List:k,Item:I};const q=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,(0,b.Z)(e.error[t]))})),(0,w.jsx)(M.List,{children:n.map((function(e,n){return(0,w.jsx)(M.Item,{condition:"danger",label:e},n)}))})};var F,V,H,z,B,W,$,U=t(79686),G=t(7281),Y=t(30759),K=t(27896),J="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},X=v.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(F||(F=(0,m.Z)(["\n width: calc(100% - ",");\n"])),G.Z.space(.5)),ee=v.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(V||(V=(0,m.Z)(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Y.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:C.Z.lineHeight("dense")}),C.Z.color("paper"),(function(e){return K.v[(n=e,t=n.isDisplay,r=n.immutable,o=n.signal,l=n.hasValue,o?"signal":l?"hasValue":t?"shade1":r?"shade0":"shade1")](e);var n,t,r,o,l}),G.Z.space(-2),G.Z.font(0),G.Z.space(-2),(function(e){return e.immutable&&"0"}),G.Z.font(0),(function(e){return Q(e)})),ne=v.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(H||(H=(0,m.Z)(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),J,(function(e){return K.m[(n=e,t=n.immutable,r=n.isDisplay,o=n.signal,n.isDirty?"isDirty":r||t?"transparent":o?"signal":"shade1")](e);var n,t,r,o}),G.Z.space(-1),G.Z.space(-1),G.Z.space(-2),G.Z.space(-1),(function(e){return e.isDisplay&&G.Z.space(-1)}),(function(e){return e.immutable&&G.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&G.Z.space(-1)}),(function(e){return!e.immutable&&(0,_.kk)(e)}),(function(e){return Q(e)}),(function(e){return e.isDisplay&&"0"}),U.j,(function(e){return e.isDisplay&&G.Z.space(-1)})),te=v.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(z||(z=(0,m.Z)(["\n &&& {\n ","\n }\n"])),(0,Y.Z)({fontSize:G.Z.font(-1)})),re=v.ZP.div.withConfig({displayName:"StyledStatedValueError"})(B||(B=(0,m.Z)([""]))),oe=v.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(W||(W=(0,m.Z)(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n\n "," {\n margin-left: -",";\n }\n }\n }\n"])),G.Z.space(-1),G.Z.space(-1.5),ne,te,re,G.Z.space(-2),te,re,G.Z.space(-1),J,y.hc,G.Z.space(-2));v.ZP.input.withConfig({displayName:"StyledInput"})($||($=(0,m.Z)(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"not-allowed":"auto"}),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"#545454":"#000"}));function le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?le(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ie=function(e){var n,t,r,o=e.children,l=e.description,a=e.dirty,i=e.isDisplay,c=e.error,s=e.hasValue,u=e.id,d=e.label,b=e.mandatory,m=e.mandatoryTitle,v=e.immutable,y=e.touched,x=e.signal,k=!v&&y&&c&&Object.keys(c).length>0,j="".concat(h.Z.adjustedHTMLString(d)).concat(b&&m?", ".concat(m):""),Z=x||function(e,n,t,r){return n?g.Z.condition.DANGER:e?g.Z.condition.INFO:t&&!r?g.Z.condition.WARNING:void 0}(a,k,b,s),O={__html:"".concat(p.Z.sanitizeHtml(d)).concat(b?" *":"")},P=!i&&!v&&{htmlFor:u};return(0,w.jsx)(f.Z,{children:function(e){var u=e.getRef;return(0,w.jsxs)(oe,{ref:u,children:[(0,w.jsxs)(ne,{hasValue:s,immutable:v,isDisplay:i,signal:Z,children:[o,d&&(0,w.jsx)(X,{children:(0,w.jsx)(ee,ae(ae({},P),{},{hasValue:s,dirty:a,title:j,immutable:v,isDisplay:i,signal:Z,children:n||(n=(0,w.jsx)("span",{dangerouslySetInnerHTML:O}))}))})]}),l&&(t||(t=(0,w.jsx)(te,{children:l}))),k&&(r||(r=(0,w.jsx)(re,{children:(0,w.jsx)(q,{error:c})})))]})}})};var ce,se,ue=t(33133),de=t(65035),fe=t(28655),he=t.n(fe),pe=t(51032),ge=v.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=he()(["\n && {\n ","\n }\n"])),pe.k9),be=v.ZP.div.withConfig({displayName:"StyledInputWrapper"})(se||(se=he()(["\n && {\n ","\n }\n"])),pe.yP);const me=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,o=e.setFragmentSelected;return(0,w.jsx)(w.Fragment,{children:n.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){o(n,e.target.checked)}),disabled:r}),(0,w.jsx)(a.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const ve=function(e){var n=e.version,t=e.modules,r=e.selectedModules,o=e.fragments,l=e.selectedFragments,a=e.ignoreErrors,i=e.running,c=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,h=e.setSelectedModules,p=e.setFragmentSelected,g=e.setVersion,b=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&d(),0===o.length&&f()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,w.jsx)(ie,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(ue.Z,{options:t,value:r,onChange:h,isMulti:!0,immutable:c})}),(0,w.jsx)(ie,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:o,selectedFragments:l,disabled:c,setFragmentSelected:p})}),(0,w.jsx)(ie,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:c})})}),(0,w.jsx)(ie,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){b(e.target.checked)},disabled:c})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute",look:"raised",pending:i,disabled:c})]})};var ye={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const xe=(0,i.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),ye)(ve);const we=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,l=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,w.jsx)(ie,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){l(e.target.value)},disabled:r})})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var ke={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const je=(0,i.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),ke)(we);var Ze,Oe,Pe,Se;const Ce=function(){return(0,w.jsxs)(w.Fragment,{children:[Ze||(Ze=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Oe||(Oe=(0,w.jsx)(xe,{})),Pe||(Pe=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Se||(Se=(0,w.jsx)(je,{}))]})};var _e,Re,Ee,De,Ne,Te,Le,Ae=t(63038),Ie=t.n(Ae),Me={ERROR:"#a00"},qe=v.ZP.div.withConfig({displayName:"StyledLogTable"})(_e||(_e=he()(["\n display: grid;\n gap: 1px;\n"]))),Fe=v.ZP.div.withConfig({displayName:"StyledLogEntry"})(Re||(Re=he()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(Me[e.level]||"#ddd",";")})),Ve=v.ZP.span.withConfig({displayName:"StyledMessage"})(Ee||(Ee=he()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),He=v.ZP.span.withConfig({displayName:"StyledTime"})(De||(De=he()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),ze=v.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Ne||(Ne=he()(["\n margin-top: 1em;\n"]))),Be=v.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Te||(Te=he()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),We=v.ZP.div.withConfig({displayName:"StyledStackTrace"})(Le||(Le=he()(["\n && {\n ","\n }\n"])),(0,Y.Z)()),$e=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const Ue=function(e){var n=e.exception;return(0,w.jsxs)(ze,{children:[(0,w.jsx)(Be,{children:n.detailMessage}),(0,w.jsx)(We,{children:n.stackTrace.map((function(e,n){return(0,w.jsx)("div",{children:$e(e)},n)}))})]})};const Ge=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),o=r[0],l=r[1];return(0,w.jsxs)(Fe,{level:n.level,children:[(0,w.jsx)(Ve,{onClick:function(){n.exception&&l(!o)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(He,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,w.jsx)(Ue,{exception:n.exception})]})};var Ye;const Ke=function(e){var n=e.entries;return(0,w.jsx)(qe,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ge,{entry:e},e.key)})):Ye||(Ye=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Je=(0,i.connect)((function(e){return{entries:e.log.entries}}),{})(Ke);var Qe,Xe;const en=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Xe||(Xe=(0,w.jsx)(Je,{}))]})};var nn,tn,rn=t(49478),on=v.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(nn||(nn=he()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),ln=v.ZP.div.withConfig({displayName:"StyledGroupHeading"})(tn||(tn=he()(["\n margin-bottom: 1em;\n"])));function an(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return cn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cn(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function cn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}const sn=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,l=function(e,n){var t,r=an(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!n.has(o.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(on,{children:[(0,w.jsxs)(ln,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:l,onChange:function(e){o(t.map((function(e){return e.id})),e.target.checked)}}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+n,children:(0,w.jsxs)(a.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){o([n],e.target.checked)})}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const un=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,l=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(de.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(de.Z,{look:"raised",onClick:l,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,w.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,w.jsx)(sn,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var dn={setSelected:rn.Pq,generateSql:rn.$i,generateChangelog:rn._w};const fn=(0,i.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),dn)(un);var hn,pn,gn,bn=v.ZP.div.withConfig({displayName:"StyledProgressBar"})(hn||(hn=he()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=v.ZP.div.withConfig({displayName:"StyledInnerProgress"})(pn||(pn=he()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),vn=v.ZP.div.withConfig({displayName:"StyledProgressText"})(gn||(gn=he()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),yn=function(e){return e.result?e.result:e.running?e.total?"".concat(xn(e),"%"):"Preparing...":"Not started"},xn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const wn=function(e){var n=e.state;return(0,w.jsxs)(bn,{children:[(0,w.jsx)(mn,{percentage:xn(n)}),(0,w.jsx)(vn,{children:yn(n)})]})};const kn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(de.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(wn,{state:n})]})};var jn={startValidation:rn.YV};const Zn=(0,i.connect)((function(e){return{state:e.modelValidation.state}}),jn)(kn);var On,Pn,Sn;const Cn=function(){return(0,w.jsxs)(w.Fragment,{children:[On||(On=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),Pn||(Pn=(0,w.jsx)(Zn,{})),Sn||(Sn=(0,w.jsx)(fn,{}))]})};var _n=t(22541),Rn=t(68957),En=t(57557),Dn=t.n(En),Nn=t(2091),Tn=t(15103),Ln=t(84541),An=t(81084),In=t(75502),Mn=t(87486),qn=t(95395);function Fn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Hn="yyyy-MM-dd",zn=function(e){return(0,Ln.Z)(e,Hn)?(0,An.default)(e,Hn,new Date):(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,In.default)(new Date(e)):null};const Bn={number:{icons:{range:"square-plus",single:"square-minus"}},integer:{icons:{range:"square-plus",single:"square-minus"}},datetime:{type:"date",icons:{range:"calendar-plus",single:"calendar-minus"},toRange:function(e){return{from:e?zn(e).toISOString():null,to:e?(0,Mn.default)(zn(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?(0,qn.default)(new Date(e.from),Hn):e&&e.to?(0,qn.default)(new Date(e.to),Hn):null},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Wn,$n,Un,Gn,Yn,Kn,Jn,Qn=v.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Wn||(Wn=(0,m.Z)(["\n width: calc(100% - 25px); // subtract extender width\n"]))),Xn=v.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})($n||($n=(0,m.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n text-align: center;\n }\n"]))),et=v.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Un||(Un=(0,m.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n padding-left: ",";\n padding-right: ",";\n"])),G.Z.font(-2.7),G.Z.space(-.5),G.Z.space(-.9)),nt=v.ZP.div.withConfig({displayName:"StyledRange"})(Gn||(Gn=(0,m.Z)(["\n display: flex;\n"]))),tt=v.ZP.div.withConfig({displayName:"StyledInput"})(Yn||(Yn=(0,m.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n"]))),rt=v.ZP.div.withConfig({displayName:"StyledExtender"})(Kn||(Kn=(0,m.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function ot(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function lt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ot(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var at="expanded_initial",it="expanded",ct="collapsed";const st=function(e){var n,t,r=e.value,o=e.events,l=e.readOnly,a=e.type,i=e.options,c=e.fromText,u=e.toText,d=e.expanded?at:ct,f=(0,s.useState)(d),h=(0,Rn.Z)(f,2),p=h[0],g=h[1],b=Bn[a];(0,s.useEffect)((function(){var e,n=p===at&&r&&!r.isRangeValue,t=p===it&&!(null!=r&&r.isRangeValue),l=p===ct&&(null==r?void 0:r.isRangeValue);n?o.onChange({from:r,to:void 0,isRangeValue:!0}):t?o.onChange((e=r,null!=b&&b.toRange?b.toRange(e):{from:e,to:e,isRangeValue:!0})):l&&o.onChange(function(e){return null!=b&&b.fromRange?b.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r))}),[p,r,o,b]);var m=(null==r?void 0:r.isRangeValue)||!1,v=(0,s.useRef)(r);v.current=r;var y,x,k=(0,s.useMemo)((function(){return lt(lt({},o),{},{onChange:o.onChange})}),[o]),j={onChange:function(e){o.onChange(lt(lt({},v.current),{},{to:e}))}},Z={onChange:function(e){o.onChange(lt(lt({},v.current),{},{from:e}))}},P=(null==b||null===(n=b.icons)||void 0===n?void 0:n.range)||"chevron-down",S=(null==b||null===(t=b.icons)||void 0===t?void 0:t.single)||"chevron-left",C=(null==b?void 0:b.type)||a;return(0,w.jsxs)(nt,{children:[(0,w.jsx)(Qn,{children:m?(0,w.jsxs)(tt,{children:[(0,w.jsx)(Xn,{children:(0,w.jsx)(Tn.Z,lt(lt({},e),{},{options:(y=i,x=r.to,null!=b&&b.getFromOptions?b.getFromOptions(y,x):y),value:(null==r?void 0:r.from)||null,events:Z,placeholder:c}))}),Jn||(Jn=(0,w.jsx)(et,{children:(0,w.jsx)(O.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Xn,{children:(0,w.jsx)(Tn.Z,lt(lt({},e),{},{options:function(e,n){return null!=b&&b.getToOptions?b.getToOptions(e,n):e}(i,r.from),value:(null==r?void 0:r.to)||null,events:j,placeholder:u}))})]}):(0,w.jsx)(Tn.Z,lt(lt({type:C},Dn()(e,["type"])),{},{events:k}))}),(0,w.jsx)(rt,{children:(0,w.jsx)(Nn.Z,{disabled:l,icon:m?S:P,onClick:function(){g(m?ct:it)}})})]})};const ut=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ie,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ie,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(st,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var dt={setActive:_n.Iv,setElapsed:_n.uI};const ft=(0,i.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),dt)(ut);var ht,pt,gt,bt,mt,vt,yt,xt={ERROR:"#a00"},wt=v.ZP.div.withConfig({displayName:"StyledLogTable"})(ht||(ht=he()(["\n display: grid;\n gap: 1px;\n"]))),kt=v.ZP.div.withConfig({displayName:"StyledLogEntry"})(pt||(pt=he()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(xt[e.level]||"#ddd",";")})),jt=v.ZP.span.withConfig({displayName:"StyledStatementHeader"})(gt||(gt=he()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),Zt=v.ZP.span.withConfig({displayName:"StyledStatement"})(bt||(bt=he()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Ot=v.ZP.span.withConfig({displayName:"StyledTime"})(mt||(mt=he()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Pt=v.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(vt||(vt=he()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),St=v.ZP.span.withConfig({displayName:"StyledElapsed"})(yt||(yt=he()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const Ct=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),o=r[0],l=r[1],a=n.sql.length>100,i=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(kt,{children:[(0,w.jsx)(jt,{expandable:a,onClick:function(){a&&l(!o)},children:i}),o&&(0,w.jsx)(Zt,{children:n.sql}),(0,w.jsx)(Ot,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(Pt,{children:(0,w.jsxs)(St,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var _t;const Rt=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?e.elapsed>=n.from&&e.elapsed<=n.to:e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,w.jsx)(wt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ct,{entry:e},e.key)})):_t||(_t=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Et=(0,i.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Rt);var Dt,Nt,Tt;const Lt=function(){return(0,w.jsxs)(w.Fragment,{children:[Dt||(Dt=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Nt||(Nt=(0,w.jsx)(ft,{})),Tt||(Tt=(0,w.jsx)(Et,{}))]})};function At(e,n){return At=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},At(e,n)}function It(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,At(e,n)}function Mt(){return Mt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Mt.apply(this,arguments)}function qt(e){return"/"===e.charAt(0)}function Ft(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}const Vt=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],l=e&&qt(e),a=n&&qt(n),i=l||a;if(e&&qt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];t="."===c||".."===c||""===c}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Ft(o,u):".."===d?(Ft(o,u),s++):s&&(Ft(o,u),s--)}if(!i)for(;s--;s)o.unshift("..");!i||""===o[0]||o[0]&&qt(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Ht=t(2177);function zt(e){return"/"===e.charAt(0)?e:"/"+e}function Bt(e){return"/"===e.charAt(0)?e.substr(1):e}function Wt(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function $t(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Ut(e){var n=e.pathname,t=e.search,r=e.hash,o=n||"/";return t&&"?"!==t&&(o+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Gt(e,n,t,r){var o;"string"==typeof e?(o=function(e){var n=e||"/",t="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var l=n.indexOf("?");return-1!==l&&(t=n.substr(l),n=n.substr(0,l)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),o.state=n):(void 0===(o=Mt({},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!==n&&void 0===o.state&&(o.state=n));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 t&&(o.key=t),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Vt(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Yt(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,o){if(null!=e){var l="function"==typeof e?e(n,t):e;"string"==typeof l?"function"==typeof r?r(l,o):o(!0):o(!1!==l)}else o(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var Kt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Jt(e,n){n(window.confirm(e))}var Qt="popstate",Xt="hashchange";function er(){try{return window.history.state||{}}catch(e){return{}}}function nr(e){void 0===e&&(e={}),Kt||(0,Ht.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),l=e,a=l.forceRefresh,i=void 0!==a&&a,c=l.getUserConfirmation,s=void 0===c?Jt:c,u=l.keyLength,d=void 0===u?6:u,f=e.basename?$t(zt(e.basename)):"";function h(e){var n=e||{},t=n.key,r=n.state,o=window.location,l=o.pathname+o.search+o.hash;return f&&(l=Wt(l,f)),Gt(l,r,t)}function p(){return Math.random().toString(36).substr(2,d)}var g=Yt();function b(e){Mt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(h(e.state))}function v(){x(h(er()))}var y=!1;function x(e){if(y)y=!1,b();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?b({action:"POP",location:e}):function(e){var n=C.location,t=k.indexOf(n.key);-1===t&&(t=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,Z(o))}(e)}))}}var w=h(er()),k=[w.key];function j(e){return f+Ut(e)}function Z(e){t.go(e)}var O=0;function P(e){1===(O+=e)&&1===e?(window.addEventListener(Qt,m),o&&window.addEventListener(Xt,v)):0===O&&(window.removeEventListener(Qt,m),o&&window.removeEventListener(Xt,v))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:j,push:function(e,n){var o="PUSH",l=Gt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.pushState({key:a,state:c},null,n),i)window.location.href=n;else{var s=k.indexOf(C.location.key),u=k.slice(0,s+1);u.push(l.key),k=u,b({action:o,location:l})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",l=Gt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.replaceState({key:a,state:c},null,n),i)window.location.replace(n);else{var s=k.indexOf(C.location.key);-1!==s&&(k[s]=l.key),b({action:o,location:l})}else window.location.replace(n)}}))},go:Z,goBack:function(){Z(-1)},goForward:function(){Z(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return S||(P(1),S=!0),function(){return S&&(S=!1,P(-1)),n()}},listen:function(e){var n=g.appendListener(e);return P(1),function(){P(-1),n()}}};return C}var tr="hashchange",rr={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Bt(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Bt,decodePath:zt},slash:{encodePath:zt,decodePath:zt}};function or(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function lr(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function ar(e){window.location.replace(or(window.location.href)+"#"+e)}function ir(e){void 0===e&&(e={}),Kt||(0,Ht.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?Jt:r,l=t.hashType,a=void 0===l?"slash":l,i=e.basename?$t(zt(e.basename)):"",c=rr[a],s=c.encodePath,u=c.decodePath;function d(){var e=u(lr());return i&&(e=Wt(e,i)),Gt(e)}var f=Yt();function h(e){Mt(O,e),O.length=n.length,f.notifyListeners(O.location,O.action)}var p=!1,g=null;function b(){var e,n,t=lr(),r=s(t);if(t!==r)ar(r);else{var l=d(),a=O.location;if(!p&&(n=l,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===Ut(l))return;g=null,function(e){if(p)p=!1,h();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?h({action:n,location:e}):function(e){var n=O.location,t=x.lastIndexOf(Ut(n));-1===t&&(t=0);var r=x.lastIndexOf(Ut(e));-1===r&&(r=0);var o=t-r;o&&(p=!0,w(o))}(e)}))}}(l)}}var m=lr(),v=s(m);m!==v&&ar(v);var y=d(),x=[Ut(y)];function w(e){n.go(e)}var k=0;function j(e){1===(k+=e)&&1===e?window.addEventListener(tr,b):0===k&&window.removeEventListener(tr,b)}var Z=!1;var O={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=or(window.location.href)),t+"#"+s(i+Ut(e))},push:function(e,n){var t="PUSH",r=Gt(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=Ut(r),o=s(i+n);if(lr()!==o){g=n,function(e){window.location.hash=e}(o);var l=x.lastIndexOf(Ut(O.location)),a=x.slice(0,l+1);a.push(n),x=a,h({action:t,location:r})}else h()}}))},replace:function(e,n){var t="REPLACE",r=Gt(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=Ut(r),o=s(i+n);lr()!==o&&(g=n,ar(o));var l=x.indexOf(Ut(O.location));-1!==l&&(x[l]=n),h({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=f.setPrompt(e);return Z||(j(1),Z=!0),function(){return Z&&(Z=!1,j(-1)),n()}},listen:function(e){var n=f.appendListener(e);return j(1),function(){j(-1),n()}}};return O}t(94662);function cr(e,n){if(null==e)return{};var t,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}u().Component;u().Component;var sr=function(e,n){return"function"==typeof e?e(n):e},ur=function(e,n){return"string"==typeof e?Gt(e,null,null,n):e},dr=function(e){return e},fr=u().forwardRef;void 0===fr&&(fr=dr);var hr=fr((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,l=cr(e,["innerRef","navigate","onClick"]),a=l.target,i=Mt({},l,{onClick:function(e){try{o&&o(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return i.ref=dr!==fr&&n||t,u().createElement("a",i)}));var pr=fr((function(e,n){var t=e.component,r=void 0===t?hr:t,l=e.replace,a=e.to,i=e.innerRef,c=cr(e,["component","replace","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Ht.Z)(!1);var t=e.history,o=ur(sr(a,e.location),e.location),s=o?t.createHref(o):"",d=Mt({},c,{href:s,navigate:function(){var n=sr(a,e.location),r=Ut(e.location)===Ut(ur(n));(l||r?t.replace:t.push)(n)}});return dr!==fr?d.ref=n||i:d.innerRef=i,u().createElement(r,d)}))})),gr=function(e){return e},br=u().forwardRef;void 0===br&&(br=gr);br((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,l=e.activeClassName,a=void 0===l?"active":l,i=e.activeStyle,c=e.className,s=e.exact,d=e.isActive,f=e.location,h=e.sensitive,p=e.strict,g=e.style,b=e.to,m=e.innerRef,v=cr(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Ht.Z)(!1);var t=f||e.location,l=ur(sr(b,t),t),y=l.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,o.LX)(t.pathname,{path:x,exact:s,sensitive:h,strict:p}):null,k=!!(d?d(w,t):w),j="function"==typeof c?c(k):c,Z="function"==typeof g?g(k):g;k&&(j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(j,a),Z=Mt({},Z,i));var O=Mt({"aria-current":k&&r||null,className:j,style:Z,to:l},v);return gr!==br?O.ref=n||m:O.innerRef=m,u().createElement(pr,O)}))}));var mr,vr=t(24875);const yr=(0,v.ZP)(pr)(mr||(mr=(0,m.Z)(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,Y.Z)(),vr.FS.color("secondary"),vr.FS.color("text"),vr.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var n=e.neutral,t=e.theme;return n?(0,_.HO)(S()(t,"colors.text"),2):(0,_.HO)(S()(t,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var xr,wr,kr,jr,Zr,Or,Pr,Sr,Cr,_r,Rr=v.ZP.div.withConfig({displayName:"StyledDevCon"})(xr||(xr=he()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),C.Z.color("paper"),G.Z.space(0)),Er=v.ZP.div.withConfig({displayName:"StyledNavigation"})(wr||(wr=he()(["\n display: flex;\n"]))),Dr=(0,v.ZP)(yr).withConfig({displayName:"StyledRouterLink"})(kr||(kr=he()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Nr=function(){return(0,w.jsxs)(Rr,{children:[jr||(jr=(0,w.jsx)(l.Z.Notifications,{})),Zr||(Zr=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),Or||(Or=(0,w.jsxs)(Er,{children:[(0,w.jsx)(Dr,{to:"/log",children:"Log"}),(0,w.jsx)(Dr,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(Dr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(Dr,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(o.rs,{children:[(0,w.jsx)(o.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(o.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(o.AW,{path:"/log",exact:!0,render:function(){return Pr||(Pr=(0,w.jsx)(en,{}))}}),(0,w.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return Sr||(Sr=(0,w.jsx)(Ce,{}))}}),(0,w.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return Cr||(Cr=(0,w.jsx)(Cn,{}))}}),(0,w.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return _r||(_r=(0,w.jsx)(Lt,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>xe});var r=t(68957),o=t(91411),l=t(86249),a=t.n(l),i=(t(58900),t(78634)),c=t(84100),s=t(60131),u=t(48230),d=t(64952),f=t(469),h=t(81896),p=t(46940),g=t(27361),b=t.n(g),m=t(14293),v=t.n(m),y=t(13218),x=t.n(y),w=t(47037),k=t.n(w),j=t(1024),Z=t(58804),O=(t(39335),t(28212),t(6488),t(32510),t(79657),t(20844),t(41030),t(98827),t(37363),t(53299),t(54159)),P=function(e){return O.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},C=t(44822),_=t(11259),R=t(32208),E=t(99357),D=t(19241),N=(t(70646),t(1469)),T=t.n(N),L=t(30236),A=t.n(L),I=["==","!=","<=",">=","<",">","~="],M=["true","false","null"],q=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],F=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],V=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function H(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}const z=function(e){return function(n){(0,R.Z)(r,n);var t=H(r);function r(){var n;(0,_.Z)(this,r),n=t.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(V.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],l={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(I.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(F.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(M.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(q.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return n.$rules=A()(n.$rules,l,(function(e,n){return T()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function B(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var W=function(e){(0,R.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(this,t);return(e=n.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return(0,C.Z)(t)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules),$=function(e){(0,R.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(this,t),e=n.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var l in e.$rules)e.$rules[l].unshift.apply(e.$rules[l],o);e.embedRules(W,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(z(),"tql-",a,["start"]);var i={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=A()(e.$rules,i,(function(e,n){return T()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return(0,C.Z)(t)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),U=t(52902),G=t(45915),Y=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,n){return K(e.getCurrentToken())===n},Q=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!J(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return J(e,"rparen")?1:n>0&&J(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&J(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,G.Z)(re(e))):[]}if(J(e,"order_by")){if(X(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=ee(e,n),!e.stepBackward())return null}return null},te=function(e,n){for(var t=[],r=n(e);r;)Array.isArray(r)?r.forEach((function(e){return t.unshift(e)})):t.unshift(r),r=n(e);return t},re=function(e){return te(e,Q)},oe=function(e){return te(e,ne)},le=1e3,ae=function(e,n,t){var r=function(e,n){if(n){var t=oe(e());return{baseModel:n,modelScope:(0,U.Z)(t).slice(0)}}var r=oe(e()),o=(0,U.Z)(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,t),o=r.baseModel,l=r.modelScope;if(o){var a=re(e()),i=[].concat((0,G.Z)(l),(0,G.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=(0,U.Z)(e),t=n[0],r=n.slice(1);return P(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(S).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat((0,G.Z)(n.map((function(e){return{label:(n=e,n.label?"".concat(n.fieldName," (").concat(n.label,")"):n.fieldName),value:e.fieldName,meta:e.type};var n}))),(0,G.Z)(t.map((function(e){return{label:(n=e,n.label?"".concat(n.relationName," (").concat(n.label,")"):n.relationName),value:e.relationName,meta:e.targetEntity};var n}))))}))})([o].concat((0,G.Z)(i))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:le}}));n(null,t)})).catch((function(e){return n(e)}))}},ie=function(e,n){return n?"".concat(e," (").concat(n,")"):e},ce=function(e){return P("entities").then(S).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(n){var t=n.map((function(e){var n=e.modelName,t=e.label;return{caption:ie(n,t),value:n,score:le}}));e(null,t)})).catch((function(n){return e(n)}))},se=function(){return V.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ue=function(e){return{getCompletions:function(n,t,r,o,l){var a=function(){return new Y(t,r.row,r.column)},i=a(),c=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(K(c)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,l,e);break;case"where":case"conjunction":ae(a,l,e),l(null,se());break;case"nice_function":l(null,se());break;case"find":ce(l);break;case"type":case"tocco_placeholder":case"comparison":l(null,q.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),l(null,F.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,l,e),s&&"relation"!==K(s)&&ce(l);break;case null:e&&ae(a,l,e),l(null,se())}}}};function de(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var fe=function(e){(0,R.Z)(t,e);var n=de(t);function t(){var e;return(0,_.Z)(this,t),(e=n.call(this)).HighlightRules=$,e.completer=ue(),e}return(0,C.Z)(t)}(a().require("ace/mode/ftl").Mode);function he(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var pe,ge=function(e){(0,R.Z)(t,e);var n=he(t);function t(e){var r,o=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=z(o),r.completer=ue(o),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),be=t(85893),me=Z.ZP.div.withConfig({displayName:"StyledEditor"})(pe||(pe=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ve={groovy:function(){return new c.Mode},html:function(){return new s.Mode},xml:function(){return new p.Mode},properties:function(){return new f.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new fe},freemarkermixed:function(){return new fe},ftl:function(){return new fe},tql:function(e){return new ge(e)},less:function(){return new d.Mode},drools:function(){return new i.Mode},text:function(){return new h.Mode}},ye=function(e,n){var t=n.mode,o=n.theme,l=n.showGutter,a=n.editorOptions,i=void 0===a?{}:a;(function(e){return k()(e)?Promise.resolve(e):x()(e)?P("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(S).then((function(e){return b()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return b()(ve,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(o)),Object.entries(i).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],l=t[1];e.setOption(o,l)})),e.renderer.setShowGutter(l),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,l=e.onChange,i=e.showGutter,c=void 0===i||i,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,j.useRef)(null),h=(0,j.useRef)(null),p=(0,j.useMemo)((function(){return{mode:n,theme:r,showGutter:c,editorOptions:u,implicitModel:d}}),[n,r,c,u,d]);return(0,j.useEffect)((function(){var e=a().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return l(e.getValue())})),ye(e,p),h.current=e,function(){return e.destroy()}}),[]),(0,j.useEffect)((function(){h.current&&ye(h.current,p)}),[p]),(0,j.useEffect)((function(){h.current&&!v()(o)&&o!==h.current.getValue()&&h.current.getSession().setValue(o)}),[o]),(0,be.jsx)(me,{ref:f})}},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(52817),o=t(41609),l=t.n(o),a=(t(46444),t(41291)),i=t(85893);const c=function(e){var n=e.value,t=e.breakWords,o=(0,r._)(n),c=l()(o)?n:o.formatInternational();return(0,i.jsx)(a.Z,{href:"tel:".concat(n),target:"_blank",onClick:function(e){return e.stopPropagation()},label:c,breakWords:t})}},23710:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>K});var r=t(46927),o=t(72757),l=(t(46444),t(1024)),a=t(86896),i=t(44822),c=t(11259),s=t(32208),u=t(99357),d=t(19241),f=t(11820),h=t(39269),p=t(96840),g=t(75528),b=t(52079),m=t(84184),v=t(40569),y=t(75460),x=t(65761),w=t(53626),k=t(73043),j=t(16797),Z=t(71297),O=t(55444),P=t(6672),S=t(18195),C=t(23132),_=t(37060),R=t(4175),E=t(21094),D=t(20211),N=t(51778),T=t(87388),L=t(89906),A=t(41831);function I(e){var n=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 t,r=(0,d.Z)(e);if(n){var o=(0,d.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,u.Z)(this,t)}}var M=function(e){(0,s.Z)(t,e);var n=I(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,i.Z)(t)}(f.Z);M.builtinPlugins=[h.Z,p.Z,v.Z,y.Z,x.Z,w.Z,k.Z,Z.Z,j.Z,O.Z,P.Z,S.Z,g.Z,C.Z,_.Z,R.Z,E.Z,D.Z,N.Z,b.Z,T.Z,L.Z,A.Z,m.Z],M.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},link:{addTargetToExternalLinks:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const q=M;var F,V=t(91411),H=t(58804),z=t(56822),B=H.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(F||(F=(0,V.Z)(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,z.L)(e,"ckeditor")})),W=t(85893);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var G=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;default:return"de"}},Y=function(e){var n=e.value,t=e.onChange,r=e.contentLang,i=e.ckEditorConfig,c=(0,a.Z)().locale,s=(0,l.useRef)(!1);return(0,W.jsx)(B,{children:(0,W.jsx)(o.CKEditor,{editor:q,config:U({language:{ui:G(c),content:r}},i),data:n,onChange:function(e,n){if(n.plugins.get("SourceEditing").isSourceEditingMode){if(!0===s.current)return;s.current=!0}var r=n.getData();t(r)}})})};Y.defaultProps={value:"",contentLang:"de"};const K=Y},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>T,default:()=>L});var r,o=t(46927),l=t(46444),a=t.n(l),i=t(56315),c=t(23636),s=t(16785),u=t(46603),d=t(92590),f=t(30963),h=t(27361),p=t.n(h),g=t(91411),b=t(58804).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,g.Z)([""]))),m=t(85893),v=["icon","style","hasFixedWidth"];function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c.library.add(d.IJ7,u.IJ7,u.C65,u.kJo,u._tD,u.A35,u.mTx,u.ptq,u.g4A,u.r8p,u.Pk,u.g9M,u.Tab,d.Tab,u.NBC,u.eFW,u.acZ,u.u2A,u.gMD,u.cwv,u.w49,u.fUD,u.icc,u.ca9,u.Vmj,u.gSj,u.WFE,u.hQn,u.LEp,u.WV2,u.FU$,u.diR,u.f8k,s.xYR,s.neY,s.AYu,s.kBj,s.hVS,s.dc_,s.Av$,u.xiG,u.gJF,u.j1w,u.WKO,u.wn1,u.b7W,u.YHc,u.ZC5,u.UO1,d.Fyj,u.Qj4,u.FL8,u.foy,u.u9C,u.Fuz,u.iV1,u.Kl4,u.nYk,u.sqG,u.RLE,u.$aW,u.Zrf,u.jMV,u.pL1,u.g6h,u.SJY,u.qmU,u.nek,u.Qy6,u.lH_,d.pL1,u.hVM,u.yOf,u.Xgz,u.Mzg,u.r6l,u.IwR,u.aJJ,d.Alc,u.dLO,u.ntl,u.Hw7,u.FYs,u.$36,u.fT7,u.ioP,u.Cw9,u.Ry6,u.C3l,u.a1i,u.jGC,u.IeV,u.A8,u.hG5,u.FVb,u.AxY,u.mAj,u.hGM,u.UkD,u.BDt,u.QzV,u.py1,u.cf$,u.byT,u.dT$,u.G_j,u.A4,u.ar8,u.nNP,u.yGT,u.rux);var w=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,o=(0,i.Z)(e,v),l=n.includes(",")?n.replace(/\s+/,"").split(","):n,a=x({},p()(t,"color")&&{color:t.color});return(0,m.jsx)(b,{children:(0,m.jsx)(f.G,x(x({icon:l,style:t},a),{},{fixedWidth:r},o))})};w.defaultProps={hasFixedWidth:!0};const k=w,j=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"}}');var Z,O;function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C={logo:function(e){return(0,m.jsx)("svg",S(S({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Z||(Z=(0,m.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,m.jsx)("svg",S(S({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:O||(O=(0,m.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},_=function(e){var n=e.icon,t=e.style;return C[n](t)};_.propTypes={icon:a().string.isRequired,style:a().object};const R=_;function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N={fa:function(e,n){return(0,m.jsx)(k,D(D({},n),{},{icon:e.id}))},toc:function(e,n){return(0,m.jsx)(R,D(D({},n),{},{icon:e.id}))}},T=function(e){var n=j[e.icon];if(!n)return null;var t=N[n.lib];return t?t(n,e):null};T.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const L=T},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(46927),o=(t(46444),t(88162)),l=t(85893);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const c=function(e){var n=e.size,t=e.style,r=e.icon;return(0,l.jsx)(o.Z,i(i({},t),{},{style:{fontSize:n},spin:!0,icon:r||"circle-notch"}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,l,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:o};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
package/dist/index.js CHANGED
@@ -61,4 +61,4 @@ object-assign
61
61
  * LICENSE file in the root directory of this source tree.
62
62
  */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,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 k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function x(e){return k(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},94842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>h,default:()=>g});var r=n(1024),o=n(30314);function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var s,u,l=(void 0===s&&(s=0),function(){return++s}),p={},d={},f=["touchstart","touchmove"],h="ignore-react-onclickoutside";function m(e,t){var n=null;return-1!==f.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}const g=function(e,t){var n,s,f=e.displayName||e.name||"Component";return s=n=function(n){var s,h;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!d[r._uid]){void 0===u&&(u=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),d[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),p[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&c(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,p[r._uid],m(i(r),e))}))}},r.disableOnClickOutside=function(){delete d[r._uid];var e=p[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(i(r),t))})),delete p[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}h=n,(s=g).prototype=Object.create(h.prototype),s.prototype.constructor=s,a(s,h);var v=g.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},28384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>i,Popper:()=>d,Reference:()=>m,usePopper:()=>s.D});var r=n(1024),o=r.createContext(),a=r.createContext();function i(e){var t=e.children,n=r.useState(null),i=n[0],c=n[1],s=r.useRef(!1);r.useEffect((function(){return function(){s.current=!0}}),[]);var u=r.useCallback((function(e){s.current||c(e)}),[]);return r.createElement(o.Provider,{value:i},r.createElement(a.Provider,{value:u},t))}var c=n(87568),s=n(32654),u=function(){},l=function(){return Promise.resolve(null)},p=[];function d(e){var t=e.placement,n=void 0===t?"bottom":t,a=e.strategy,i=void 0===a?"absolute":a,d=e.modifiers,f=void 0===d?p:d,h=e.referenceElement,m=e.onFirstUpdate,g=e.innerRef,v=e.children,y=r.useContext(o),b=r.useState(null),w=b[0],k=b[1],x=r.useState(null),O=x[0],_=x[1];r.useEffect((function(){(0,c.k$)(g,w)}),[g,w]);var A=r.useMemo((function(){return{placement:n,strategy:i,onFirstUpdate:m,modifiers:[].concat(f,[{name:"arrow",enabled:null!=O,options:{element:O}}])}}),[n,i,m,f,O]),E=(0,s.D)(h||y,w,A),S=E.state,C=E.styles,P=E.forceUpdate,j=E.update,D=r.useMemo((function(){return{ref:k,style:C.popper,placement:S?S.placement:n,hasPopperEscaped:S&&S.modifiersData.hide?S.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:S&&S.modifiersData.hide?S.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:C.arrow,ref:_},forceUpdate:P||u,update:j||l}}),[k,_,n,S,C,j,P]);return(0,c.$p)(v)(D)}var f=n(99874),h=n.n(f);function m(e){var t=e.children,n=e.innerRef,o=r.useContext(a),i=r.useCallback((function(e){(0,c.k$)(n,e),(0,c.DL)(o,e)}),[n,o]);return r.useEffect((function(){return function(){return(0,c.k$)(n,null)}}),[]),r.useEffect((function(){h()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),(0,c.$p)(t)({ref:i})}},32654:(e,t,n)=>{"use strict";n.d(t,{D:()=>be});var r=n(1024),o=n(30314);function a(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof a(e).Element||e instanceof Element}function c(e){return e instanceof a(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,l=Math.min,p=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(c(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=p(n.width)/i||1),a>0&&(o=p(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function f(e){var t=a(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return d(m(e)).left+f(e).scrollLeft}function v(e){return a(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var r,o,i=c(t),s=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),l=d(e,s),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(i||!i&&!n)&&(("body"!==h(t)||y(u))&&(v=(r=t)!==a(r)&&c(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:f(r)),c(t)?((b=d(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:l.left+v.scrollLeft-b.x,y:l.top+v.scrollTop-b.y,width:l.width,height:l.height}}function w(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function x(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:c(e)&&y(e)?e:x(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=x(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=a(r),c=o?[i].concat(i.visualViewport||[],y(r)?r:[]):r,s=t.concat(c);return o?s:s.concat(O(k(c)))}function _(e){return["table","td","th"].indexOf(h(e))>=0}function A(e){return c(e)&&"fixed"!==v(e).position?e.offsetParent:null}function E(e){for(var t=a(e),n=A(e);n&&_(n)&&"static"===v(n).position;)n=A(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&c(e)&&"fixed"===v(e).position)return null;var n=k(e);for(s(n)&&(n=n.host);c(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",C="bottom",P="right",j="left",D="auto",T=[S,C,P,j],M="start",I="end",N="viewport",R="popper",Z=T.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+I])}),[]),B=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+I])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=a);var o,c,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:i(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var c=function(e){var t=F(e);return L.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:p,options:r}),i=function(){};u.push(a||i)}})),p.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(W(t,n)){s.rects={reference:b(t,E(n),"fixed"===s.options.strategy),popper:w(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,c=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:u,instance:p})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(o())}))}))),c}),destroy:function(){d(),l=!0}};if(!W(e,t))return p;function d(){u.forEach((function(e){return e()})),u=[]}return p.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var z={passive:!0};function q(e){return e.split("-")[0]}function Y(e){return e.split("-")[1]}function V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?q(o):null,i=o?Y(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case S:t={x:c,y:n.y-r.height};break;case C:t={x:c,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:s};break;case j:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?V(a):null;if(null!=u){var l="y"===u?"height":"width";switch(i){case M:t[u]=t[u]-(n[l]/2-r[l]/2);break;case I:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=c.x,g=void 0===h?0:h,y=c.y,b=void 0===y?0:y,w="function"==typeof d?d({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var k=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),O=j,_=S,A=window;if(l){var D=E(n),T="clientHeight",M="clientWidth";if(D===a(n)&&"static"!==v(D=m(n)).position&&"absolute"===s&&(T="scrollHeight",M="scrollWidth"),D=D,o===S||(o===j||o===P)&&i===I)_=C,b-=(f&&D===A&&A.visualViewport?A.visualViewport.height:D[T])-r.height,b*=u?1:-1;if(o===j||(o===S||o===C)&&i===I)O=P,g-=(f&&D===A&&A.visualViewport?A.visualViewport.width:D[M])-r.width,g*=u?1:-1}var N,R=Object.assign({position:s},l&&K),Z=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:p(t*r)/r||0,y:p(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=Z.x,b=Z.y,u?Object.assign({},R,((N={})[_]=x?"0":"",N[O]=k?"0":"",N.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",N)):Object.assign({},R,((t={})[_]=x?b+"px":"",t[O]=k?g+"px":"",t.transform="",t))}const X={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=B.reduce((function(e,n){return e[n]=function(e,t,n){var r=q(e),o=[j,S].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[j,P].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}(n,t.rects,a),e}),{}),c=i[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===N?re(function(e){var t=a(e),n=m(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,c=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:c+g(e),y:s}}(e)):i(t)?function(e){var t=d(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=m(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+g(e),s=-r.scrollTop;return"rtl"===v(o||n).direction&&(c+=u(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:s}}(m(e)))}function ae(e,t,n){var r="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&c(e)?E(e):e;return i(n)?t.filter((function(e){return i(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=oe(e,n);return t.top=u(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),oe(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,c=void 0===a?"clippingParents":a,s=n.rootBoundary,u=void 0===s?N:s,l=n.elementContext,p=void 0===l?R:l,f=n.altBoundary,h=void 0!==f&&f,g=n.padding,v=void 0===g?0:g,y=ie("number"!=typeof v?v:ce(v,T)),b=p===R?"reference":R,w=e.rects.popper,k=e.elements[h?b:p],x=ae(i(k)?k:k.contextElement||m(e.elements.popper),c,u),O=d(e.elements.reference),_=G({reference:O,element:w,strategy:"absolute",placement:o}),A=re(Object.assign({},w,_)),E=p===R?A:O,j={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},D=e.modifiersData.offset;if(p===R&&D){var M=D[o];Object.keys(j).forEach((function(e){var t=[P,C].indexOf(e)>=0?1:-1,n=[S,C].indexOf(e)>=0?"y":"x";j[e]+=M[n]*t}))}return j}function ue(e,t,n){return u(e,l(t,n))}const le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0!==i&&i,s=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=se(t,{boundary:s,rootBoundary:p,padding:f,altBoundary:d}),b=q(t.placement),k=Y(t.placement),x=!k,O=V(b),_="x"===O?"y":"x",A=t.modifiersData.popperOffsets,D=t.rects.reference,T=t.rects.popper,I="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Z={x:0,y:0};if(A){if(a){var B,L="y"===O?S:j,F="y"===O?C:P,H="y"===O?"height":"width",W=A[O],U=W+y[L],z=W-y[F],G=m?-T[H]/2:0,K=k===M?D[H]:T[H],$=k===M?-T[H]:-D[H],X=t.elements.arrow,Q=m&&X?w(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[L],te=J[F],ne=ue(0,D[H],Q[H]),re=x?D[H]/2-G-ne-ee-N.mainAxis:K-ne-ee-N.mainAxis,oe=x?-D[H]/2+G+ne+te+N.mainAxis:$+ne+te+N.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),ie=ae?"y"===O?ae.clientTop||0:ae.clientLeft||0:0,ce=null!=(B=null==R?void 0:R[O])?B:0,le=W+oe-ce,pe=ue(m?l(U,W+re-ce-ie):U,W,m?u(z,le):z);A[O]=pe,Z[O]=pe-W}if(c){var de,fe="x"===O?S:j,he="x"===O?C:P,me=A[_],ge="y"===_?"height":"width",ve=me+y[fe],ye=me-y[he],be=-1!==[S,j].indexOf(b),we=null!=(de=null==R?void 0:R[_])?de:0,ke=be?ve:me-D[ge]-T[ge]-we+N.altAxis,xe=be?me+D[ge]+T[ge]-we-N.altAxis:ye,Oe=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(ke,me,xe):ue(m?ke:ve,me,m?xe:ye);A[_]=Oe,Z[_]=Oe-me}t.modifiersData[r]=Z}},requiresIfExists:["offset"]};const pe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,c=q(n.placement),s=V(c),u=[j,P].indexOf(c)>=0?"height":"width";if(a&&i){var l=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,T))}(o.padding,n),p=w(a),d="y"===s?S:j,f="y"===s?C:P,h=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],m=i[s]-n.rects.reference[s],g=E(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[d],k=v-p[u]-l[f],x=v/2-p[u]/2+y,O=ue(b,x,k),_=s;n.modifiersData[r]=((t={})[_]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fe(e){return[S,P,C,j].some((function(t){return e[t]>=0}))}var he=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,c=r.resize,s=void 0===c||c,u=a(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,z)})),s&&u.addEventListener("resize",n.update,z),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,z)})),s&&u.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,c=n.roundOffsets,s=void 0===c||c,u={placement:q(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},X,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0===i||i,s=n.fallbackPlacements,u=n.padding,l=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=q(g),y=s||(v===g||!h?[J(g)]:function(e){if(q(e)===D)return[];var t=J(e);return[te(e),t,te(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(q(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?B:s,l=Y(r),p=l?c?Z:Z.filter((function(e){return Y(e)===l})):T,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[q(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,k=t.rects.popper,x=new Map,O=!0,_=b[0],A=0;A<b.length;A++){var E=b[A],I=q(E),N=Y(E)===M,R=[S,C].indexOf(I)>=0,L=R?"width":"height",F=se(t,{placement:E,boundary:l,rootBoundary:p,altBoundary:d,padding:u}),H=R?N?P:j:N?C:S;w[L]>k[L]&&(H=J(H));var W=J(H),U=[];if(a&&U.push(F[I]<=0),c&&U.push(F[H]<=0,F[W]<=0),U.every((function(e){return e}))){_=E,O=!1;break}x.set(E,U)}if(O)for(var z=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},V=h?3:1;V>0;V--){if("break"===z(V))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,pe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=se(t,{elementContext:"reference"}),c=se(t,{altBoundary:!0}),s=de(i,r),u=de(c,o,a),l=fe(s),p=fe(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),me=n(98836),ge=n.n(me),ve=n(87568),ye=[],be=function(e,t,n){void 0===n&&(n={});var a=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},c=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=c[0],u=c[1],l=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);o.flushSync((function(){u({styles:(0,ve.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,ve.sq)(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),p=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return ge()(a.current,e)?a.current||e:(a.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),d=r.useRef();return(0,ve.LI)((function(){d.current&&d.current.setOptions(p)}),[p]),(0,ve.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||he)(e,t,p);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}},87568:(e,t,n)=>{"use strict";n.d(t,{$p:()=>o,DL:()=>a,LI:()=>s,k$:()=>i,sq:()=>c});var r=n(1024),o=function(e){return Array.isArray(e)?e[0]:e},a=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},i=function(e,t){if("function"==typeof e)return a(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},s="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},13508:(e,t,n)=>{"use strict";n.d(t,{A:()=>q,B:()=>J,C:()=>Q,D:()=>X,E:()=>N,F:()=>Ve,G:()=>$,H:()=>B,I:()=>R,J:()=>U,K:()=>M,M:()=>ae,a:()=>_e,b:()=>he,c:()=>Ye,d:()=>je,e:()=>Oe,f:()=>Me,g:()=>Te,h:()=>Ae,i:()=>ge,j:()=>Ne,k:()=>ue,l:()=>Se,m:()=>re,n:()=>ie,o:()=>fe,p:()=>Le,q:()=>Fe,r:()=>ee,s:()=>K,t:()=>He,u:()=>se,v:()=>Ue,w:()=>ze,x:()=>qe,y:()=>me,z:()=>z});var r=n(8486),o=n(3640),a=n(89178),i=n(91411),c=n(56315),s=n(68957),u=n(73891),l=n(46927),p=n(1024),d=n(30314);Math.min,Math.max;const f=["top","right","bottom","left"];f.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function h(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function m(e){if(null==e)return window;if(!h(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){return m(e).getComputedStyle(e)}function v(e){return h(e)?"":e?(e.nodeName||"").toLowerCase():""}function y(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function b(e){return e instanceof m(e).HTMLElement}function w(e){return e instanceof m(e).Element}function k(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}function x(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=g(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function O(){return!/^((?!chrome|android).)*safari/i.test(y())}function _(e){return["html","body","#document"].includes(v(e))}Math.min,Math.max;const A=Math.round;function E(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect();let s=1,u=1;t&&b(e)&&(s=e.offsetWidth>0&&A(c.width)/e.offsetWidth||1,u=e.offsetHeight>0&&A(c.height)/e.offsetHeight||1);const l=w(e)?m(e):window,p=!O()&&n,d=(c.left+(p&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,f=(c.top+(p&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=c.width/s,g=c.height/u;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function S(e){return(t=e,(t instanceof m(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function C(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(k(e)?e.host:null)||S(e)}function P(e){const t=C(e);return _(t)?e.ownerDocument.body:b(t)&&x(t)?t:P(t)}function j(e,t){var n;void 0===t&&(t=[]);const r=P(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=m(r),i=o?[a].concat(a.visualViewport||[],x(r)?r:[]):r,c=t.concat(i);return o?c:c.concat(j(i))}var D=n(6919),T=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],M=function(){};function I(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function N(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(I(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var R=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,u.Z)(e)&&null!==e?[e]:[];var t},Z=function(e){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;var t=(0,c.Z)(e,T);return(0,r.Z)({},t)};function B(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function L(e){return B(e)?window.pageYOffset:e.scrollTop}function F(e,t){B(e)?window.scrollTo(0,t):e.scrollTop=t}function H(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:M,o=L(e),a=t-o,i=10,c=0;function s(){var t=H(c+=i,o,a,n);F(e,t),c<n?window.requestAnimationFrame(s):r(e)}s()}function U(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?F(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&F(e,Math.max(t.offsetTop-o,0))}function z(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function q(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var Y=!1,V={get passive(){return Y=!0}},G="undefined"!=typeof window?window:{};G.addEventListener&&G.removeEventListener&&(G.addEventListener("p",M,V),G.removeEventListener("p",M,!1));var K=Y;function $(e){return null!=e}function X(e,t,n){return e?t:n}function Q(e){return e}function J(e){return e}var ee=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 te(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,c=e.theme.spacing,s=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,p=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,g=n.offsetParent.getBoundingClientRect().top,v=i?window.innerHeight:B(l=s)?window.innerHeight:l.clientHeight,y=L(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=g-w,x=v-m,O=k+y,_=p-y-m,A=f-v+y+b,E=y+m-w,S=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!i)return a&&W(s,A,S),{placement:"bottom",maxHeight:t};if(!i&&_>=r||i&&x>=r)return a&&W(s,A,S),{placement:"bottom",maxHeight:i?x-b:_-b};if("auto"===o||i){var C=t,P=i?k:O;return P>=r&&(C=Math.min(P-b-c.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return a&&F(s,A),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(O>=h&&!i)return a&&W(s,E,S),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&k>=r){var j=t;return(!i&&O>=r||i&&k>=r)&&(j=i?k-w:O-w),a&&W(s,E,S),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var ne=function(e){return"auto"===e?"bottom":e},re=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return t={label:"menu"},(0,l.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,l.Z)(t,"backgroundColor",i.neutral0),(0,l.Z)(t,"borderRadius",o),(0,l.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,l.Z)(t,"marginBottom",a.menuGutter),(0,l.Z)(t,"marginTop",a.menuGutter),(0,l.Z)(t,"position","absolute"),(0,l.Z)(t,"width","100%"),(0,l.Z)(t,"zIndex",1),t},oe=(0,p.createContext)(null),ae=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,c=e.menuShouldScrollIntoView,u=e.theme,l=((0,p.useContext)(oe)||{}).setPortalPlacement,d=(0,p.useRef)(null),f=(0,p.useState)(o),h=(0,s.Z)(f,2),m=h[0],g=h[1],v=(0,p.useState)(null),y=(0,s.Z)(v,2),b=y[0],w=y[1];return(0,D.Z)((function(){var e=d.current;if(e){var t="fixed"===i,r=te({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:c&&!t,isFixedPosition:t,theme:u});g(r.maxHeight),w(r.placement),null==l||l(r.placement)}}),[o,a,i,c,n,l,u]),t({ref:d,placerProps:(0,r.Z)((0,r.Z)({},e),{},{placement:b||ne(a),maxHeight:m})})},ie=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},ce=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"}},se=ce,ue=ce,le=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},c),t)};le.defaultProps={children:"No options"};var pe=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},c),t)};pe.defaultProps={children:"Loading..."};var de,fe=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}},he=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},me=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"}},ge=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ve=["size"];var ye={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},be=function(e){var t=e.size,n=(0,c.Z)(e,ve);return(0,a.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ye},n))},we=function(e){return(0,a.tZ)(be,(0,o.Z)({size:20},e),(0,a.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"}))},ke=function(e){return(0,a.tZ)(be,(0,o.Z)({size:20},e),(0,a.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"}))},xe=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}}},Oe=xe,_e=xe,Ae=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}},Ee=(0,a.F4)(de||(de=(0,i.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Se=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},Ce=function(e){var t=e.delay,n=e.offset;return(0,a.tZ)("span",{css:(0,a.iv)({animation:"".concat(Ee," 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"},"","")})},Pe=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,c=e.isRtl;return(0,a.tZ)("div",(0,o.Z)({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),(0,a.tZ)(Ce,{delay:0,offset:c}),(0,a.tZ)(Ce,{delay:160,offset:!0}),(0,a.tZ)(Ce,{delay:320,offset:!c}))};Pe.defaultProps={size:4};var je=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,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:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},De=["data"],Te=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Me=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"}},Ie=["innerRef","isDisabled","isHidden","inputClassName"],Ne=function(e){var t=e.isDisabled,n=e.value,o=e.theme,a=o.spacing,i=o.colors;return(0,r.Z)({margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Ze)},Re={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ze={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Re)},Be=function(e){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Re)},Le=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}},Fe=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"}},He=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}}},We=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",n,t)};var Ue=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?i.primary:i.primary50}}},ze=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}},qe=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"}},Ye={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},c),t||(0,a.tZ)(we,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,c=e.isDisabled,s=e.isFocused,u=e.innerRef,l=e.innerProps,p=e.menuIsOpen;return(0,a.tZ)("div",(0,o.Z)({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":c,"control--is-focused":s,"control--menu-is-open":p},i)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},c),t||(0,a.tZ)(ke,null))},DownChevron:ke,CrossIcon:we,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,p=e.theme,d=e.selectProps;return(0,a.tZ)("div",(0,o.Z)({css:i("group",e),className:r({group:!0},n)},u),(0,a.tZ)(c,(0,o.Z)({},s,{selectProps:d,theme:p,getStyles:i,cx:r}),l),(0,a.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,i=Z(e);i.data;var s=(0,c.Z)(i,De);return(0,a.tZ)("div",(0,o.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},r)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,c=e.getStyles;return(0,a.tZ)("div",(0,o.Z)({css:c("indicatorsContainer",e),className:r({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return(0,a.tZ)("span",(0,o.Z)({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.value,s=Z(e),u=s.innerRef,l=s.isDisabled,p=s.isHidden,d=s.inputClassName,f=(0,c.Z)(s,Ie);return(0,a.tZ)("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":i||""},(0,a.tZ)("input",(0,o.Z)({className:n({input:!0},d),ref:u,style:Be(p),disabled:l},f)))},LoadingIndicator:Pe,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerRef,s=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("menu",e),className:r({menu:!0},n),ref:c},s),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps,s=e.innerRef,u=e.isMulti;return(0,a.tZ)("div",(0,o.Z)({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":u},n),ref:s},c),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.className,i=e.controlElement,c=e.cx,u=e.innerProps,l=e.menuPlacement,f=e.menuPosition,h=e.getStyles,m=(0,p.useRef)(null),g=(0,p.useRef)(null),v=(0,p.useState)(ne(l)),y=(0,s.Z)(v,2),b=y[0],k=y[1],x=(0,p.useMemo)((function(){return{setPortalPlacement:k}}),[]),O=(0,p.useState)(null),_=(0,s.Z)(O,2),A=_[0],S=_[1],C=(0,p.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===f?0:window.pageYOffset,n=e[b]+t;n===(null==A?void 0:A.offset)&&e.left===(null==A?void 0:A.rect.left)&&e.width===(null==A?void 0:A.rect.width)||S({offset:n,rect:e})}}),[i,f,b,null==A?void 0:A.offset,null==A?void 0:A.rect.left,null==A?void 0:A.rect.width]);(0,D.Z)((function(){C()}),[C]);var P=(0,p.useCallback)((function(){"function"==typeof g.current&&(g.current(),g.current=null),i&&m.current&&(g.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...w(e)?j(e):[],...j(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,p=null;if(i){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),w(e)&&!c&&p.observe(e),p.observe(t)}let d=c?E(e):null;return c&&function t(){const r=E(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n(),d=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(l)}}(i,m.current,C,{elementResize:"ResizeObserver"in window}))}),[i,C]);(0,D.Z)((function(){P()}),[P]);var T=(0,p.useCallback)((function(e){m.current=e,P()}),[P]);if(!t&&"fixed"!==f||!A)return null;var M=(0,a.tZ)("div",(0,o.Z)({ref:T,css:h("menuPortal",{offset:A.offset,position:f,rect:A.rect}),className:c({"menu-portal":!0},r)},u),n);return(0,a.tZ)(oe.Provider,{value:x},t?(0,d.createPortal)(M,t):M)},LoadingMessage:pe,NoOptionsMessage:le,MultiValue:function(e){var t=e.children,n=e.className,o=e.components,i=e.cx,c=e.data,s=e.getStyles,u=e.innerProps,l=e.isDisabled,p=e.removeProps,d=e.selectProps,f=o.Container,h=o.Label,m=o.Remove;return(0,a.tZ)(a.ms,null,(function(o){var g=o.css,v=o.cx;return(0,a.tZ)(f,{data:c,innerProps:(0,r.Z)({className:v(g(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},n))},u),selectProps:d},(0,a.tZ)(h,{data:c,innerProps:{className:v(g(s("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:d},t),(0,a.tZ)(m,{data:c,innerProps:(0,r.Z)({className:v(g(s("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},p),selectProps:d}))}))},MultiValueContainer:We,MultiValueLabel:We,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,a.tZ)(we,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.isDisabled,s=e.isFocused,u=e.isSelected,l=e.innerRef,p=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("option",e),className:r({option:!0,"option--is-disabled":c,"option--is-focused":s,"option--is-selected":u},n),ref:l,"aria-disabled":c},p),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("placeholder",e),className:r({placeholder:!0},n)},c),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps,s=e.isDisabled,u=e.isRtl;return(0,a.tZ)("div",(0,o.Z)({css:i("container",e),className:r({"--is-disabled":s,"--is-rtl":u},n)},c),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.isDisabled,s=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":c},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,c=e.isMulti,s=e.getStyles,u=e.hasValue;return(0,a.tZ)("div",(0,o.Z)({css:s("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":c,"value-container--has-value":u},n)},i),t)}},Ve=function(e){return(0,r.Z)((0,r.Z)({},Ye),e.components)}},44066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(1024),o=n.n(r),a=n(66462),i=n.n(a),c=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=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"},p=function(e){function t(){var n,r;c(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=u(this,e.call.apply(e,[this].concat(i))),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",s({ref:this.ref,style:l},n),e)},t}(o().Component);p.propTypes={children:i().oneOfType([i().node,i().func]).isRequired,onBlur:i().func,onFocus:i().func},p.defaultProps={onBlur:function(){},onFocus:function(){}};const d=p},46335:(e,t,n)=>{"use strict";var r=n(33890);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},66462:(e,t,n)=>{e.exports=n(46335)()},33890:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}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 a,i=n(6663),c=(a=i)&&a.__esModule?a:{default:a},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),a=n[0],i=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 a[e]})).filter(s);return"string"==typeof u[0]||"function"==typeof i?{key:e,className:i?i.apply(void 0,o(u)):u.join(" ")}:{key:e,style:c.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,a,i=n(e),c=1;c<arguments.length;c++){o=arguments[c],a=r(Object(o));for(var s=0;s<a.length;s++)i[a[s]]=o[a[s]]}return i}},59211:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=p;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=A(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),a}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 p="suspendedStart",d="suspendedYield",f="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};b[a]=function(){return this};var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&r.call(k,a)&&(b=k);var x=y.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,a,i,c){var s=l(e[o],e,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(p).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function A(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,A(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 a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=s(y,c,"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,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(_.prototype),_.prototype[i]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new _(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),s(x,c,"Generator"),x[a]=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=P,C.prototype={constructor:C,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(S),!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 c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.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 a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},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),S(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;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}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),a=o[0],i=o[1];return r?null===i||i===n[a]-1?null===(a=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(a))?[null,null]:[a,0]:[a,i+1]:0===n||i===n-1?[null,null]:null===i?[null,0]:[null,i+1]}return{next:o,prev:function(e){var o=t(e,2),a=o[0],i=o[1];return r?null===i||0===i?null===(a=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(a))?[null,null]:[a,n[a]-1]:[a,i-1]:0===n||0===i?[null,null]:null===i?[null,n-1]:[null,i-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 a=e.ownerDocument.defaultView.frameElement;if(a){var i=o(a);n.top+=i.top,n.bottom+=i.top,n.left+=i.left,n.right+=i.left}}}catch(e){}return n}function a(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 a=o,i=a.overflow,c=a.overflowX,s=a.overflowY;/(auto|scroll|overlay)/.test(i+s+c)&&("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 i,c=(i=0,function(){return++i}),s={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",c()),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===s[t]&&(s[t]=o(e),O((function(){delete s[t]}))),s[t]};function l(){r&&document.body.removeChild(r),r=null}function p(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),a=u();return r.top-=a.top,r.left-=a.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 d(e){return e.offsetParent||document.documentElement}var f=null;function h(){if(f)return f;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 f={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 k(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=[],O=function(e){x.push(e)},_=function(){for(var e=void 0;e=x.pop();)e()},A=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 a=this.bindings[e][t],i=a.handler,c=a.ctx,s=a.once,u=c;void 0===u&&(u=this),i.apply(u,r),s?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:a,getBounds:p,getOffsetParent:d,extend:m,addClass:v,removeClass:g,hasClass:y,updateClasses:k,defer:O,flush:_,uniqueId:c,Evented:A,getScrollBarSize:h,removeUtilElements:l};var E=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}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")}}(),S=(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,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,a);if(void 0!==c){if("value"in c)return c.value;var s=c.get;if(void 0===s)return;return s.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,c=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(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 a=(X=n.Utils).getScrollParents,d=(p=X.getBounds,X.getOffsetParent),v=(m=X.extend,X.addClass),g=X.removeClass,h=(k=X.updateClasses,O=X.defer,_=X.flush,X.getScrollBarSize),l=X.removeUtilElements;function P(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var j,D,T,M,I=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}}(),N=[],R=function(){N.forEach((function(e){e.position(!1)})),_()};function Z(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}j=null,D=null,T=null,M=function e(){if(void 0!==D&&D>16)return D=Math.min(D-16,250),void(T=setTimeout(e,250));void 0!==j&&Z()-j<10||(null!=T&&(clearTimeout(T),T=null),j=Z(),R(),D=Z()-j)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var B={center:"center",left:"right",right:"left"},L={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=B[t.left]),"auto"===r&&(r=L[t.top]),{left:n,top:r}},W=function(e){var t=e.left,n=e.top;return void 0!==F[e.left]&&(t=F[e.left]),void 0!==F[e.top]&&(n=F[e.top]),{left:t,top:n}};function U(){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 z(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 q=function(e){var t=e.split(" "),n=E(t,2);return{top:n[0],left:n[1]}},Y=q,V=function(r){function o(e){var r=this;t(this,o),S(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),N.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return C(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,i=o.element,c=o.target,s=o.targetModifier;if(this.element=i,this.target=c,this.targetModifier=s,"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=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=a(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return p(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((a={height:(e=p(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(a.height,e.height-(pageYOffset-e.top)),a.height=Math.min(a.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),a.height=Math.min(innerHeight,a.height),a.height-=2,a.width=Math.min(a.width,e.width-(pageXOffset-e.left)),a.width=Math.min(a.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),a.width=Math.min(innerWidth,a.width),a.width-=2,a.top<pageYOffset&&(a.top=pageYOffset),a.left<pageXOffset&&(a.left=pageXOffset),a);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=p(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,a={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},i=0;o<408&&this.target===document.body&&(i=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(a.height=Math.max(a.height,24));var c=this.target.scrollTop/(t.scrollHeight-o);return a.top=c*(o-a.height-i)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(a.height=Math.max(a.height,24)),a}}},{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(),N.forEach((function(t,n){t===e&&N.splice(n,1)})),0===N.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 a=[];r.forEach((function(e){a.push(n.getClass("element-attached")+"-"+e),a.push(n.getClass("target-attached")+"-"+e)})),O((function(){void 0!==n._addAttachClasses&&(k(n.element,n._addAttachClasses,a),!1!==n.options.addTargetClasses&&k(n.target,n._addAttachClasses,a),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=H(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return p(e.element)})),a=o.width,i=o.height;if(0===a&&0===i&&void 0!==this.lastSize){var c=this.lastSize;a=c.width,i=c.height}else this.lastSize={width:a,height:i};var s=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=s,l=z(W(this.attachment),{width:a,height:i}),f=z(W(r),u),m=z(this.offset,{width:a,height:i}),g=z(this.targetOffset,u);l=U(l,m),f=U(f,g);for(var v=s.left+f.left-l.left,y=s.top+f.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:s,elementPos:o,offset:l,targetOffset:f,manualOffset:m,manualTargetOffset:g,scrollbarSize:A,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,v=w.left)}var k={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-i+innerHeight,left:v-pageXOffset,right:pageXOffset-v-a+innerWidth}},x=this.target.ownerDocument,O=x.defaultView,A=void 0;return O.innerHeight>x.documentElement.clientHeight&&(A=this.cache("scrollbar-size",h),k.viewport.bottom-=A.height),O.innerWidth>x.documentElement.clientWidth&&(A=this.cache("scrollbar-size",h),k.viewport.right-=A.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(k.page.bottom=x.body.scrollHeight-y-i,k.page.right=x.body.scrollWidth-v-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return d(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return p(t)})),r=getComputedStyle(t),o=n,a={};if(["Top","Left","Bottom","Right"].forEach((function(e){a[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=x.body.scrollWidth-n.left-o.width+a.right,n.bottom=x.body.scrollHeight-n.top-o.height+a.bottom,k.page.top>=n.top+a.top&&k.page.bottom>=n.bottom&&k.page.left>=n.left+a.left&&k.page.right>=n.right){var i=t.scrollTop,c=t.scrollLeft;k.offset={top:k.page.top-n.top+i-a.top,left:k.page.left-n.left+c-a.left}}}(),this.move(k),this.history.unshift(k),this.history.length>3&&this.history.pop(),t&&_(),!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 a=!1,i=0;i<this.history.length;++i){var c=this.history[i];if(void 0!==c[r]&&!P(c[r][o],e[r][o])){a=!0;break}}a||(n[r][o]=!0)}var s={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?(s.top=0,r=n.top):(s.bottom=0,r=-n.bottom),e.left?(s.left=0,o=n.left):(s.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),s[I]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==I&&(s[I]+=" translateZ(0)")}else e.top?s.top=n.top+"px":s.bottom=n.bottom+"px",e.left?s.left=n.left+"px":s.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(s.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(s.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){s.position="absolute";var r=t.cache("target-offsetparent",(function(){return d(t.target)}));d(t.element)!==r&&O((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(s.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 p=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},f=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!p(h);){if("static"!==getComputedStyle(h).position){f=!1;break}h=h.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},v=!1;for(var o in s){var y=s[o];this.element.style[o]!==y&&(v=!0,g[o]=y)}v&&O((function(){m(t.element.style,g),t.trigger("repositioned")}))}}}]),o}(A);V.modules=[],n.position=R;var G=m(V,n);E=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}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")}}(),p=(X=n.Utils).getBounds;var m=X.extend,K=(k=X.updateClasses,O=X.defer,["left","top","right","bottom"]);function $(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=p(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var a=e.ownerDocument.defaultView;t[0]+=a.pageXOffset,t[1]+=a.pageYOffset,t[2]+=a.pageXOffset,t[3]+=a.pageYOffset}K.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 a=this.cache("element-bounds",(function(){return p(t.element)})),i=a.height,c=a.width;if(0===c&&0===i&&void 0!==this.lastSize){var s=this.lastSize;c=s.width,i=s.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,d=u.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&f.push(t),n&&f.push(n)})),f.forEach((function(e){["left","top","right","bottom"].forEach((function(t){f.push(e+"-"+t)}))}));var h=[],g=m({},o),v=m({},this.attachment);return this.options.constraints.forEach((function(e){var a=e.to,s=e.attachment,u=e.pin;void 0===s&&(s="");var p=void 0,f=void 0;if(s.indexOf(" ")>=0){var m=s.split(" "),y=E(m,2);f=y[0],p=y[1]}else p=f=s;var b=$(t,a);"target"!==f&&"both"!==f||(n<b[1]&&"top"===g.top&&(n+=l,g.top="bottom"),n+i>b[3]&&"bottom"===g.top&&(n-=l,g.top="top")),"together"===f&&("top"===g.top&&("bottom"===v.top&&n<b[1]?(n+=l,g.top="bottom",n+=i,v.top="top"):"top"===v.top&&n+i>b[3]&&n-(i-l)>=b[1]&&(n-=i-l,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+i>b[3]?(n-=l,g.top="top",n-=i,v.top="bottom"):"bottom"===v.top&&n<b[1]&&n+(2*i-l)<=b[3]&&(n+=i-l,g.top="top",v.top="top")),"middle"===g.top&&(n+i>b[3]&&"top"===v.top?(n-=i,v.top="bottom"):n<b[1]&&"bottom"===v.top&&(n+=i,v.top="top"))),"target"!==p&&"both"!==p||(r<b[0]&&"left"===g.left&&(r+=d,g.left="right"),r+c>b[2]&&"right"===g.left&&(r-=d,g.left="left")),"together"===p&&(r<b[0]&&"left"===g.left?"right"===v.left?(r+=d,g.left="right",r+=c,v.left="left"):"left"===v.left&&(r+=d,g.left="right",r-=c,v.left="right"):r+c>b[2]&&"right"===g.left?"left"===v.left?(r-=d,g.left="left",r-=c,v.left="right"):"right"===v.left&&(r-=d,g.left="left",r+=c,v.left="left"):"center"===g.left&&(r+c>b[2]&&"left"===v.left?(r-=c,v.left="right"):r<b[0]&&"right"===v.left&&(r+=c,v.left="left"))),"element"!==f&&"both"!==f||(n<b[1]&&"bottom"===v.top&&(n+=i,v.top="top"),n+i>b[3]&&"top"===v.top&&(n-=i,v.top="bottom")),"element"!==p&&"both"!==p||(r<b[0]&&("right"===v.left?(r+=c,v.left="left"):"center"===v.left&&(r+=c/2,v.left="left")),r+c>b[2]&&("left"===v.left?(r-=c,v.left="right"):"center"===v.left&&(r-=c/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,k,x=[],O=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],x.push("top")):O.push("top")),n+i>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-i,x.push("bottom")):O.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],x.push("left")):O.push("left")),r+c>b[2]&&(u.indexOf("right")>=0?(r=b[2]-c,x.push("right")):O.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)}))),O.length&&(k=void 0,k=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(k),O.forEach((function(e){h.push(k+"-"+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}))})),O((function(){!1!==t.options.addTargetClasses&&k(t.target,h,f),k(t.element,h,f)})),{top:n,left:r}}});var X,p=(X=n.Utils).getBounds,k=X.updateClasses;return O=X.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return p(t.element)})),a=o.height,i=o.width,c=this.getTargetBounds(),s=n+a,u=r+i,l=[];n<=c.bottom&&s>=c.top&&["left","right"].forEach((function(e){var t=c[e];t!==r&&t!==u||l.push(e)})),r<=c.right&&u>=c.left&&["top","bottom"].forEach((function(e){var t=c[e];t!==n&&t!==s||l.push(e)}));var d=[],f=[],h=["left","top","right","bottom"];return d.push(this.getClass("abutted")),h.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),l.length&&f.push(this.getClass("abutted")),l.forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),O((function(){!1!==t.options.addTargetClasses&&k(t.target,f,d),k(t.element,f,d)})),!0}}),E=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}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,a=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var i=E(r,2);o=i[0],a=i[1],o=parseFloat(o,10),a=parseFloat(a,10)}else o=r.top,a=r.left;return{top:t+=o,left:n+=a}}}}),G},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},6919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1024);const o=r.useLayoutEffect},99874:e=>{"use strict";var t=function(){};e.exports=t},13615:function(e){
63
63
  /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */
64
- e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||c(e)||u()}function a(e){if(Array.isArray(e))return s(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,p=Object.setPrototypeOf,d=Object.isFrozen,f=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var k=D(Array.prototype.forEach),x=D(Array.prototype.pop),O=D(Array.prototype.push),_=D(String.prototype.toLowerCase),A=D(String.prototype.match),E=D(String.prototype.replace),S=D(String.prototype.indexOf),C=D(String.prototype.trim),P=D(RegExp.prototype.test),j=T(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function T(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){n=n||_,p&&p(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(d(t)||(t[r]=a),o=a)}e[o]=!0}return e}function I(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function N(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var R=m(["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"]),Z=m(["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"]),B=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=m(["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"]),F=m(["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"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=m(["#text"]),U=m(["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"]),z=m(["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"]),q=m(["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"]),Y=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),K=g(/^data-[\-\w.\u00B7-\uFFFF]/),$=g(/^aria-[\-\w]+$/),X=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,f=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=N(v,"cloneNode"),b=N(v,"nextSibling"),w=N(v,"childNodes"),D=N(v,"parentNode");if("function"==typeof c){var T=a.createElement("template");T.content&&T.content.ownerDocument&&(a=T.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,ce=ie.implementation,se=ie.createNodeIterator,ue=ie.createDocumentFragment,le=ie.getElementsByTagName,pe=r.importNode,de={};try{de=I(a).documentMode?a.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var he,me,ge=V,ve=G,ye=K,be=$,we=Q,ke=J,xe=X,Oe=null,_e=M({},[].concat(o(R),o(Z),o(B),o(F),o(W))),Ae=null,Ee=M({},[].concat(o(U),o(z),o(q),o(Y))),Se=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}})),Ce=null,Pe=null,je=!0,De=!0,Te=!1,Me=!1,Ie=!1,Ne=!1,Re=!1,Ze=!1,Be=!1,Le=!1,Fe=!0,He=!1,We="user-content-",Ue=!0,ze=!1,qe={},Ye=null,Ve=M({},["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"]),Ge=null,Ke=M({},["audio","video","img","source","image","track"]),$e=null,Xe=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",at=null,it=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){at&&at===t||(t&&"object"===e(t)||(t={}),t=I(t),he=he=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:_,Oe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):_e,Ae="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Ee,$e="ADD_URI_SAFE_ATTR"in t?M(I(Xe),t.ADD_URI_SAFE_ATTR,me):Xe,Ge="ADD_DATA_URI_TAGS"in t?M(I(Ke),t.ADD_DATA_URI_TAGS,me):Ke,Ye="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):Ve,Ce="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Ze=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Re=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(De=!1),Be&&(Ze=!0),qe&&(Oe=M({},o(W)),Ae=[],!0===qe.html&&(M(Oe,R),M(Ae,U)),!0===qe.svg&&(M(Oe,Z),M(Ae,z),M(Ae,Y)),!0===qe.svgFilters&&(M(Oe,B),M(Ae,z),M(Ae,Y)),!0===qe.mathMl&&(M(Oe,F),M(Ae,q),M(Ae,Y))),t.ADD_TAGS&&(Oe===_e&&(Oe=I(Oe)),M(Oe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ae===Ee&&(Ae=I(Ae)),M(Ae,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M($e,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ye===Ve&&(Ye=I(Ye)),M(Ye,t.FORBID_CONTENTS,me)),Ue&&(Oe["#text"]=!0),Ie&&M(Oe,["html","head","body"]),Oe.table&&(M(Oe,["tbody"]),delete Ce.tbody),m&&m(t),at=t)},ut=M({},["mi","mo","mn","ms","mtext"]),lt=M({},["foreignobject","desc","title","annotation-xml"]),pt=M({},["title","style","font","a","script"]),dt=M({},Z);M(dt,B),M(dt,L);var ft=M({},F);M(ft,H);var ht=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===Je?t.namespaceURI===et?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(dt[n]):e.namespaceURI===Qe?t.namespaceURI===et?"math"===n:t.namespaceURI===Je?"math"===n&&lt[r]:Boolean(ft[n]):e.namespaceURI===et&&!(t.namespaceURI===Je&&!lt[r])&&!(t.namespaceURI===Qe&&!ut[r])&&!ft[n]&&(pt[n]||!dt[n])},mt=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},gt=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Ze||Be)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(Re)e="<remove></remove>"+e;else{var r=A(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),tt===et?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},yt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,r){fe[e]&&k(fe[e],(function(e){e.call(n,t,r,at)}))},xt=function(e){var t;if(kt("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var r=me(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return mt(e),!0;if(!Oe[r]||Ce[r]){if(!Ce[r]&&_t(r)){if(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(Ue&&!Ye[r]){var o=D(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(y(a[i],!0),b(e))}return mt(e),!0}return e instanceof u&&!ht(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r||!P(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=E(t,ge," "),t=E(t,ve," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Ot=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in it))return!1;if(De&&!Pe[t]&&P(ye,t));else if(je&&P(be,t));else if(!Ae[t]||Pe[t]){if(!(_t(e)&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&P(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if($e[t]);else if(P(xe,E(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ge[e])if(Te&&!P(we,E(n,ke,"")));else if(n)return!1;return!0},_t=function(e){return e.indexOf("-")>0},At=function(t){var r,o,a,i;kt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(i=c.length;i--;){var u=r=c[i],l=u.name,p=u.namespaceURI;if(o="value"===l?r.value:C(r.value),a=me(l),s.attrName=a,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(gt(l,t),s.keepAttr))if(P(/\/>/i,o))gt(l,t);else{Me&&(o=E(o,ge," "),o=E(o,ve," "));var d=me(t.nodeName);if(Ot(d,a,o)){if(!He||"id"!==a&&"name"!==a||(gt(l,t),o=We+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(p);else switch(g.getAttributeType(d,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,l,o):t.setAttribute(l,o),x(n.removed)}catch(e){}}}}kt("afterSanitizeAttributes",t,null)}},Et=function e(t){var n,r=yt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)kt("uponSanitizeShadowNode",n,null),xt(n)||(n.content instanceof i&&e(n.content),At(n));kt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var a,c,u,l,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!wt(o)){if("function"!=typeof o.toString)throw j("toString is not a function");if("string"!=typeof(o=o.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(wt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ne||st(d),n.removed=[],"string"==typeof o&&(ze=!1),ze){if(o.nodeName){var f=me(o.nodeName);if(!Oe[f]||Ce[f])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(c=(a=vt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ze&&!Me&&!Ie&&-1===o.indexOf("<"))return oe&&Le?oe.createHTML(o):o;if(!(a=vt(o)))return Ze?null:Le?ae:""}a&&Re&&mt(a.firstChild);for(var h=yt(ze?o:a);u=h.nextNode();)3===u.nodeType&&u===l||xt(u)||(u.content instanceof i&&Et(u.content),At(u),l=u);if(l=null,ze)return o;if(Ze){if(Be)for(p=ue.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return Ae.shadowroot&&(p=pe.call(r,p,!0)),p}var m=Ie?a.outerHTML:a.innerHTML;return Ie&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&P(ee,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Me&&(m=E(m,ge," "),m=E(m,ve," ")),oe&&Le?oe.createHTML(m):m},n.setConfig=function(e){st(e),Ne=!0},n.clearConfig=function(){at=null,Ne=!1},n.isValidAttribute=function(e,t,n){at||st({});var r=me(e),o=me(t);return Ot(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],O(fe[e],t))},n.removeHook=function(e){if(fe[e])return x(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},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})},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})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},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={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},99357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73891);function o(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);function i(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,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.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:()=>i});var r=n(88911);var o=n(72753),a=n(61917);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.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}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.1bb78e462d0c1610b1b4.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"3b846d7c1a5877472286",198:"30f57ac2b24d6c67bd48",414:"600d0fdfe85b457aca04",759:"2bc4fee93df731cf6d21",817:"586199136bcea7bd0e90",877:"f6f6e19fe9b59c9681eb",909:"8c2e2a144c7b836388fd"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.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),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-devcon:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={179:0};i.f.j=(t,n)=>{var r=i.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 a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.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))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(59713),t=i.n(e),n=i(30670),r=i.n(n),o=i(41143),a=i.n(o);function s(e){return"/"===e.charAt(0)}function u(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&&s(e),a=t&&s(t),i=o||a;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,d=r.length;d>=0;d--){var f=r[d];"."===f?u(r,d):".."===f?(u(r,d),p++):p&&(u(r,d),p--)}if(!i)for(;p--;p)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},f=function(e,t){return d(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 a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{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,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,a):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!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)},k=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))},O=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)},_=function(){return-1===window.navigator.userAgent.indexOf("Trident")},A=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C="popstate",P="hashchange",j=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(b,"Browser history needs a DOM");var t=window.history,n=O(),o=!_(),i=e.forceRefresh,c=void 0!==i&&i,s=e.getUserConfirmation,u=void 0===s?x:s,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(p(e.basename)):"",T=function(e){var t=e||{},n=t.key,o=t.state,a=window.location,i=a.pathname+a.search+a.hash;return r()(!D||d(i,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+D+'".'),D&&(i=f(i,D)),v(i,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},I=y(),N=function(e){S(ee,e),ee.length=t.length,I.notifyListeners(ee.location,ee.action)},R=function(e){A(e)||L(T(e.state))},Z=function(){L(T(j()))},B=!1,L=function(e){if(B)B=!1,N();else{I.confirmTransitionTo(e,"POP",u,(function(t){t?N({action:"POP",location:e}):F(e)}))}},F=function(e){var t=ee.location,n=W.indexOf(t.key);-1===n&&(n=0);var r=W.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(B=!0,Y(o))},H=T(j()),W=[H.key],U=function(e){return D+m(e)},z=function(e,o){r()(!("object"===(void 0===e?"undefined":E(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 a="PUSH",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=U(i),s=i.key,u=i.state;if(n)if(t.pushState({key:s,state:u},null,o),c)window.location.href=o;else{var l=W.indexOf(ee.location.key),p=W.slice(0,-1===l?0:l+1);p.push(i.key),W=p,N({action:a,location:i})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},q=function(e,o){r()(!("object"===(void 0===e?"undefined":E(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 a="REPLACE",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=U(i),s=i.key,u=i.state;if(n)if(t.replaceState({key:s,state:u},null,o),c)window.location.replace(o);else{var l=W.indexOf(ee.location.key);-1!==l&&(W[l]=i.key),N({action:a,location:i})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},Y=function(e){t.go(e)},V=function(){return Y(-1)},G=function(){return Y(1)},K=0,$=function(e){1===(K+=e)?(w(window,C,R),o&&w(window,P,Z)):0===K&&(k(window,C,R),o&&k(window,P,Z))},X=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return X||($(1),X=!0),function(){return X&&(X=!1,$(-1)),t()}},J=function(e){var t=I.appendListener(e);return $(1),function(){$(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:U,push:z,replace:q,go:Y,goBack:V,goForward:G,block:Q,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var T,M,I=i(1024),N=i.n(I),R=i(56746),Z="tocco-util/LOG_ERROR",B=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:Z,payload:{title:e,description:t,error:n,dateTime:r}}},L=i(74806),F=i(50558),H=i(34575),W=i.n(H),U=i(93913),z=i.n(U),q=i(2205),Y=i.n(q),V=i(78585),G=i.n(V),K=i(29754),$=i.n(K),X=i(44012),Q=i(91411),J=i(58804),ee=i(30759),te=i(24875),ne=i(7281),re=J.ZP.div.withConfig({displayName:"StyledWrapper"})(T||(T=(0,Q.Z)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,ee.Z)(),(function(e){return e.theme.colors.signal.danger.text}),te.FS.color("paper"),ne.Z.space(-.5)),oe=i(85893);const ae=function(){return M||(M=(0,oe.jsx)(re,{children:(0,oe.jsx)(X.Z,{id:"client.component.errorBoundary.text"})}))};var ie;function ce(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=$()(e);if(t){var o=$()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G()(this,n)}}var se=function(e){Y()(n,e);var t=ce(n);function n(e){var r;return W()(this,n),(r=t.call(this,e)).state={hasError:!1,error:null},r}return z()(n,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?ie||(ie=(0,oe.jsx)(ae,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(I.Component);const ue=se;var le={logError:B};(0,F.connect)(null,le)((0,L.ZP)(ue));var pe=i(81770),de=i(319),fe=i.n(de);function he(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 me(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?he(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=t()({},Z,(function(e,t){var n=t.payload,r=n.title,o=n.description,a=n.error,i=n.dateTime;return me(me({},e),{},{messages:[{title:r,description:o,error:a,dateTime:i}].concat(fe()(e.messages)).slice(0,100)})})),ve={messages:[]};function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,t=arguments.length>1?arguments[1]:void 0,n=ge[t.type];return n?n(e,t):e}var be=i(87757),we=i.n(be),ke=i(34857),xe=i(50600),Oe=i(44759),_e=we().mark(Ae);function Ae(e,t,n){return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.RE)(Oe.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),_e)}var Ee=i(31366),Se=we().mark(Ce);function Ce(e,t,n){var r;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ke.RE)(Ee.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,ke.gz)(r);case 5:case"end":return n.stop()}}),Se)}var Pe=i(48926),je=i.n(Pe),De=i(54159),Te="error",Me=function(){var e=je()(we().mark((function e(t){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),Oe.Z.logError(n),e.next=4,Ne(Te,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=je()(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Oe.Z.logError(t),e.next=3,Ne(Te,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=je()(we().mark((function e(t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,De.Z.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const Re={logError:Ie,logException:Me};var Ze=we().mark(Be);function Be(e,t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.RE)(Re.logException,n);case 2:case"end":return e.stop()}}),Ze)}const Le={console:Ae,notification:Ce,remote:Be};var Fe=we().mark(Ue),He=we().mark(ze),We=we().mark(qe);function Ue(e,t){return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,ke.ib)(Z,ze,t);case 3:n.next=7;break;case 5:return n.next=7,(0,ke.ib)(Z,qe);case 7:case"end":return n.stop()}}),Fe)}function ze(e,t){var n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.payload,r=n.title,o=n.description,a=n.error,i.next=4,(0,ke.$6)(e.map((function(e){return(0,ke.RE)(Le[e],r,o,a)})));case 4:case"end":return i.stop()}}),He)}function qe(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(xe.Z.emitAction(e));case 2:case"end":return t.stop()}}),We)}const Ye=B,Ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&pe.Z.injectReducers(e,{errorLogging:ye}),e.sagaMiddleware.run(Ue,t,n)};var Ge=i(93386),Ke=i.n(Ge),$e=(i(30314),i(2100)),Xe="cache/INITIALISE",Qe="cache/SET_INITIALISED",Je=function(e){return{type:Qe,payload:{initialised:e}}},et=t()({},Qe,pe.Z.singleTransferReducer("initialised")),tt={initialised:!1};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt,t=arguments.length>1?arguments[1]:void 0,n=et[t.type];return n?n(e,t):e}var rt=i(79311),ot=i(63094),at=we().mark(it);function it(){var e,t,n,r,o,a,i,c,s;return we().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,ke.RE)(ot.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=rt.Z.getLongTerm("session","locale"),n=rt.Z.getLongTerm("session","principal"),u.next=7,(0,ke.RE)($e.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,a=r.username,i=r.businessUnitId,c=!t||t!==o,s=n&&(n.currentBusinessUnit.id!==i||n.username!==a),u.abrupt("return",c||s||e);case 12:case"end":return u.stop()}}),at)}var ct=we().mark(ut),st=we().mark(pt);function ut(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Xe,pt)]);case 2:case"end":return e.stop()}}),ct)}var lt=!1;function pt(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!lt){e.next=4;break}return e.next=3,(0,ke.gz)(Je(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,ke.RE)(it);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,ke.RE)(rt.Z.clearAll);case 10:return lt=!0,e.next=13,(0,ke.gz)(Je(!0));case 13:case"end":return e.stop()}}),st)}var dt,ft,ht,mt,gt=i(68957),vt=(i(46444),i(93235)),yt=i(34206),bt=i(69829),wt=(0,J.F4)(dt||(dt=(0,Q.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),kt=(0,J.iv)(ft||(ft=(0,Q.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),wt),xt=J.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(ht||(ht=(0,Q.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"])),ne.Z.space(-1),kt,bt.Fe,ne.Z.space(-1));const Ot=J.ZP.div.withConfig({displayName:"StyledLoadMask"})(mt||(mt=(0,Q.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 _t;const At=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,I.useState)(!1),c=(0,gt.Z)(i,2),s=c[0],u=c[1],l=(0,I.useState)(!0),p=(0,gt.Z)(l,2),d=p[0],f=p[1];(0,I.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){d&&u(e)}(!0)})),function(){f(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,oe.jsx)(Ot,{className:a,children:h?r:(0,oe.jsxs)(xt,{children:[_t||(_t=(0,oe.jsx)(vt.Z,{size:"30px"},"loading-spinner")),o&&(0,oe.jsx)(yt.ZP.Span,{children:o},"loadingText")]})})};const Et=function(e){var t=e.children,n=e.initialised;return(0,oe.jsx)(At,{required:[n],children:t})};const St={addToStore:function(e){pe.Z.injectReducers(e,{cache:nt}),e.sagaMiddleware.run(ut)},initialise:function(){return{type:Xe}},CacheInitLoadMask:(0,F.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,L.ZP)(Et)),hasInvalidCache:it};var Ct=i(21101),Pt=i(5435);const jt={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 Dt=i(85743),Tt="keyDown/SET_CONFIG",Mt="keyDown/KEY_DOWN",It=function(e){return{type:Tt,payload:{config:e}}},Nt=function(e){return{type:Mt,payload:{config:e}}},Rt=t()({},Tt,pe.Z.singleTransferReducer("config")),Zt={config:[]};function Bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt,t=arguments.length>1?arguments[1]:void 0,n=Rt[t.type];return n?n(e,t):e}var Lt=we().mark(Wt),Ft=we().mark(Ut),Ht=we().mark(zt);function Wt(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.$6)([(0,ke.RE)(Ut,e),(0,ke.ib)(Mt,zt)]);case 2:case"end":return t.stop()}}),Lt)}function Ut(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(It(e));case 2:case"end":return t.stop()}}),Ft)}function zt(e){var t,n;return we().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,ke.$6)(n.actions.map((function(e){return(0,ke.gz)(e)})));case 5:case"end":return r.stop()}}),Ht)}var qt,Yt=i(28655),Vt=i.n(Yt),Gt=J.ZP.div.withConfig({displayName:"StyledDiv"})(qt||(qt=Vt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const Kt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,I.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]),a=(0,I.useCallback)((function(e){return o(e,!0)}),[o]);return(0,I.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,oe.jsx)(Gt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var $t={keyDownHandler:Nt};const Xt={keyDown:Nt,addToStore:function(e,t){pe.Z.injectReducers(e,{keyDown:Bt}),e.sagaMiddleware.run(Wt,t)},KeyDownWatcher:(0,F.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),$t)(Kt)};var Qt,Jt,en,tn=J.ZP.div.withConfig({displayName:"StyledApp"})(Qt||(Qt=Vt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),nn=i(82492),rn=i.n(nn),on=i(76538),an=(0,J.vJ)(Jt||(Jt=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"])),te.FS.color("signal.success.text"),te.FS.color("signal.info.text"),te.FS.color("signal.warning.text"),te.FS.color("signal.danger.text"),(function(e){var t=e.theme;return(0,on._j)(.4,t.colors.paper)})),cn=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,a=(0,I.useMemo)((function(){return rn()({},t,n)}),[t,n]);return(0,oe.jsxs)(J.f6,{theme:o||a,children:[en||(en=(0,oe.jsx)(an,{})),r]})};cn.defaultProps={defaultTheme:Pt.Z};const sn=(0,J.Zz)(cn);var un=i(93379),ln=i.n(un),pn=i(7795),dn=i.n(pn),fn=i(90569),hn=i.n(fn),mn=i(3565),gn=i.n(mn),vn=i(19216),yn=i.n(vn),bn=i(44589),wn=i.n(bn),kn=i(36420),xn={};xn.styleTagTransform=wn(),xn.setAttributes=gn(),xn.insert=hn().bind(null,"head"),xn.domAPI=dn(),xn.insertStyleElement=yn();ln()(kn.Z,xn);kn.Z&&kn.Z.locals&&kn.Z.locals;var On=function(e){return"widget"===e?jt:Pt.Z};const _n=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,a=(0,I.useCallback)((function(e){e&&i.e(198).then(i.bind(i,23636)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),c=Dt.Z.getEmbedType();return(0,oe.jsx)(sn,{customTheme:o,defaultTheme:On(c),children:(0,oe.jsx)(F.Provider,{store:t,children:(0,oe.jsx)(Xt.KeyDownWatcher,{children:(0,oe.jsx)(At,{promises:[n],children:(0,oe.jsx)(Ct.Pj,{children:(0,oe.jsx)(St.CacheInitLoadMask,{children:(0,oe.jsx)(tn,{ref:a,children:r})})})})})})})};var An="input/SET_INPUT",En="input/INPUT_INITIALIZED",Sn=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Cn=function(e){i.p=e},Pn=function(e,t,n,r){var o=Ke()([n],r),a=e?e.locale:null;return $e.Z.initIntl(t,o,a)},jn=i(15857),Dn=(i(28500),i(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 Mn=Tn();Mn.withExtraArgument=Tn;const In=Mn;var Nn=i(24688);function Rn(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 Zn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Rn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bn=t()({},An,(function(e,t){var n=t.payload;return Zn(Zn({},e),n)})),Ln={};const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ln,t=arguments.length>1?arguments[1]:void 0,n=Bn[t.type];return n?n(e,t):e};function Hn(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 Wn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Un=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};i(63038),i(41609),i(18446),i(35937),i(35997);const zn=function(e,t,n,r){var o=r.input,a=void 0===o?{}:o,i=r.actions,c=void 0===i?void 0:i,s=r.publicPath,u=void 0===s?void 0:s,l=r.textResourceModules,p=void 0===l?[]:l;try{var d=a.customTheme;u&&Cn(u),c&&Sn(c,n),n.dispatch({type:En}),n.dispatch(St.initialise());var f=Pn(a,n,e,p);return{component:(0,oe.jsx)(_n,{store:n,initIntlPromise:f,content:t,theme:d}),store:n,methods:{setLocale:function(e){return $e.Z.changeLocale(n,p,e)}}}}catch(e){try{n.dispatch(Ye("Error","Error creating react application: ",e))}catch(t){Oe.Z.logError("Error creating react application: ",e),Oe.Z.logError("Unable to log error: ",t)}}},qn=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&&void 0!==arguments[2]?arguments[2]:{},r=Un(n),o=(0,Dn.ZP)(),a=(0,jn.md)(In,o),i=Wn(Wn({},e),{},{input:Fn,intl:Ct._8});e=(0,jn.UY)(i);var c=(0,jn.MT)(e,r,a);if(c.allReducers=i,c.sagas=t,c.sagaMiddleware=o,c.hotReloadReducers=pe.Z.hotReloadReducers,t&&t.length>0){var s=Nn.Z.createGenerator(t.map((function(e){return(0,ke.rM)(e)})));o.run(Nn.Z.autoRestartSaga(s,null,Ye))}return c},Yn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var Vn,Gn=i(48479);function Kn(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 $n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Kn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xn=function(e,n){return function(r,o){return $n($n({},r),{},t()({},n||o.payload.path,$n($n({},r[n||o.payload.path]),{},{running:e})))}},Qn=(Vn={},t()(Vn,Gn.b0,pe.Z.singleTransferReducer("version","dbRefactoring")),t()(Vn,Gn.FX,pe.Z.singleTransferReducer("modules","dbRefactoring")),t()(Vn,Gn._2,pe.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(Vn,Gn.ZD,pe.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(Vn,Gn.Pt,(function(e,t){return $n($n({},e),{},{dbRefactoring:$n($n({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(Vn,Gn.Hx,(function(e,t){return $n($n({},e),{},{dbRefactoring:$n($n({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(fe()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(Vn,Gn.X7,Xn(!0,"dbRefactoring")),t()(Vn,Gn.DN,Xn(!1)),t()(Vn,Gn.AF,pe.Z.singleTransferReducer("language","languageUpgrade")),t()(Vn,Gn.Bw,Xn(!0,"languageUpgrade")),Vn),Jn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var er=we().mark(ur),tr=we().mark(lr),nr=we().mark(pr),rr=we().mark(dr),or=we().mark(fr),ar=we().mark(hr),ir=we().mark(mr),cr=function(e){return e.dbRefactoring.dbRefactoring},sr=function(e){return e.dbRefactoring.languageUpgrade};function ur(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Gn.VQ,lr),(0,ke.Fm)(Gn.Tf,pr),(0,ke.Fm)(Gn.X7,dr),(0,ke.Fm)(Gn.Bw,fr)]);case 2:case"end":return e.stop()}}),er)}function lr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(ot.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),tr)}function pr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(ot.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.Rg(e.body));case 5:case"end":return t.stop()}}),nr)}function dr(){var e,t,n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ke.Ys)(cr);case 2:return e=i.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,a={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},i.next=10,(0,ke.RE)(hr,a,"dbRefactoring");case 10:case"end":return i.stop()}}),rr)}function fr(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(sr);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,ke.RE)(hr,n,"languageUpgrade");case 7:case"end":return r.stop()}}),or)}function hr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,ke.RE)(ot.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,ke.Cs)(mr,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),Oe.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),ar,null,[[1,9]])}function mr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.gw)(3e3);case 2:return o.next=4,(0,ke.RE)(ot.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,ke.gz)(Gn.zL(t));case 9:return o.next=11,(0,ke.gz)(Ee.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,ke.gz)(Gn.zL(t));case 16:return o.next=18,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,ke.RE)(mr,e);case 22:case"end":return o.stop()}}),ir)}var gr=we().mark(vr);function vr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(ur)]);case 2:case"end":return e.stop()}}),gr)}const yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments.length>1?arguments[1]:void 0,n=Qn[t.type];return n?n(e,t):e};var br=i(28721),wr="log/RECEIVE_ENTRY",kr=function(e){return{type:wr,payload:{data:e}}};function xr(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?xr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _r=t()({},wr,(function(e,t){var n=t.payload;return Or(Or({},e),{},{entries:[Or(Or({},n.data),{},{key:(0,br.Z)()})].concat(fe()(e.entries))})})),Ar={entries:[]};var Er=i(47979),Sr=we().mark(Pr),Cr=we().mark(jr);function Pr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(jr)]);case 2:case"end":return e.stop()}}),Sr)}function jr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:kr},t.next=3,(0,ke.RE)(Er.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Cr)}var Dr=we().mark(Tr);function Tr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Pr)]);case 2:case"end":return e.stop()}}),Dr)}const Mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar,t=arguments.length>1?arguments[1]:void 0,n=_r[t.type];return n?n(e,t):e};var Ir,Nr=i(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 Zr(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 Br=(Ir={},t()(Ir,Nr.MW,(function(){return Zr(Zr({},Lr),{},{state:Zr(Zr({},Lr.state),{},{running:!0})})})),t()(Ir,Nr.LU,(function(e,t){var n=t.payload;return Zr(Zr({},e),{},{state:Zr(Zr({},e.state),{},{total:n.total})})})),t()(Ir,Nr.pe,(function(e,t){var n=t.payload;return Zr(Zr({},e),{},{state:Zr(Zr({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(Ir,Nr.HM,(function(e,n){var r=n.payload,o=r.id,a=r.type,i=r.label,c=e.checkEvents[a]||[],s=[].concat(fe()(c),[{id:o,type:a,label:i}]),u=Zr(Zr({},e.checkEvents),{},t()({},a,s));return Zr(Zr({},e),{},{checkEvents:u})})),t()(Ir,Nr.iK,(function(e,t){var n=t.payload;return Zr(Zr({},e),{},{state:Zr(Zr({},e.state),{},{running:!1,result:n.result})})})),t()(Ir,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)}))),Zr(Zr({},e),{},{selection:n})})),t()(Ir,Nr.VD,pe.Z.singleTransferReducer("sql")),t()(Ir,Nr.g6,pe.Z.singleTransferReducer("changelog")),Ir),Lr={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var Fr=i(15103),Hr=i(65035);const Wr=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,oe.jsx)(Hr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const Ur=(0,F.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(Wr);const zr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n}}),(0,oe.jsx)(Hr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var qr={setSql:Nr.fq,executeSql:Nr.Rj};const Yr=(0,F.connect)((function(e){return{sql:e.modelValidation.sql}}),qr)(zr);var Vr=we().mark(no),Gr=we().mark(ro),Kr=we().mark(oo),$r=we().mark(ao),Xr=we().mark(io),Qr=we().mark(co),Jr=we().mark(so),eo=function(e){return e.modelValidation.selection},to=function(e){return e.modelValidation.sql};function no(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(ro),(0,ke.ib)(Nr.MW,oo),(0,ke.ib)(Nr.EJ,ao),(0,ke.ib)(Nr.es,io),(0,ke.ib)(Nr.dQ,co),(0,ke.ib)(Nr.Ge,so)]);case 2:case"end":return e.stop()}}),Vr)}function ro(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:Nr.QM},t.next=3,(0,ke.RE)(Er.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Gr)}function oo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),Oe.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),Kr,null,[[0,5]])}function ao(e){var t;return we().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,ke.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,ke.gz)(Nr.o1(t.message.params.total));case 10:return n.next=12,(0,ke.gz)(Nr.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,ke.gz)(Nr.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),$r)}function io(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Nr.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("sql","SQL",null,Yr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),Xr,null,[[4,14]])}function co(e){var t,n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,ke.Ys)(to);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,ke.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),Oe.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),Qr,null,[[5,14]])}function so(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Nr.EL(n.body.statements[0]));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("changelog","Changelog",null,Ur,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),Jr,null,[[4,14]])}var uo=we().mark(lo);function lo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(no)]);case 2:case"end":return e.stop()}}),uo)}const po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Br[t.type];return n?n(e,t):e};var fo,ho=i(22541);function mo(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 go(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?mo(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vo=(fo={},t()(fo,ho.Z9,(function(e,t){var n=t.payload;return e.active?go(go({},e),{},{entries:[go(go({},n.data),{},{key:(0,br.Z)()})].concat(fe()(e.entries))}):e})),t()(fo,ho.HI,pe.Z.singleTransferReducer("active")),t()(fo,ho.Zm,pe.Z.singleTransferReducer("elapsed")),fo),yo={entries:[],active:!1,elapsed:null};var bo=we().mark(ko),wo=we().mark(xo);function ko(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(xo)]);case 2:case"end":return e.stop()}}),bo)}function xo(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:ho.oS},t.next=3,(0,ke.RE)(Er.Z.connectSocket,e);case 3:case"end":return t.stop()}}),wo)}var Oo=we().mark(_o);function _o(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(ko)]);case 2:case"end":return e.stop()}}),Oo)}const Ao={log:Mr,dbRefactoring:yr,modelValidation:po,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yo,t=arguments.length>1?arguments[1]:void 0,n=vo[t.type];return n?n(e,t):e}};var Eo,So,Co=[vr,Tr,lo,_o];function Po(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 jo="devcon",Do=N().lazy((function(){return i.e(85).then(i.bind(i,5702))})),To=function(){return Eo||(Eo=(0,oe.jsx)("div",{children:(0,oe.jsx)(I.Suspense,{fallback:"",children:(0,oe.jsx)(Do,{})})}))},Mo=function(e,n,r,o){var a=qn(Ao,Co,n,jo);Ve(a,!0,["console","remote","notification"]),Ee.Z.addToStore(a,!0);var i=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Po(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),c=(0,oe.jsx)(R.F0,{history:i,children:So||(So=(0,oe.jsx)(To,{}))});return zn(jo,c,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",jo]})};Yn(jo,Mo)})(),c})()));
64
+ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||c(e)||u()}function a(e){if(Array.isArray(e))return s(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,p=Object.setPrototypeOf,d=Object.isFrozen,f=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var k=D(Array.prototype.forEach),x=D(Array.prototype.pop),O=D(Array.prototype.push),_=D(String.prototype.toLowerCase),A=D(String.prototype.match),E=D(String.prototype.replace),S=D(String.prototype.indexOf),C=D(String.prototype.trim),P=D(RegExp.prototype.test),j=T(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function T(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){n=n||_,p&&p(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(d(t)||(t[r]=a),o=a)}e[o]=!0}return e}function I(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function N(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var R=m(["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"]),Z=m(["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"]),B=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=m(["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"]),F=m(["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"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=m(["#text"]),U=m(["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"]),z=m(["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"]),q=m(["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"]),Y=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),K=g(/^data-[\-\w.\u00B7-\uFFFF]/),$=g(/^aria-[\-\w]+$/),X=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,f=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=N(v,"cloneNode"),b=N(v,"nextSibling"),w=N(v,"childNodes"),D=N(v,"parentNode");if("function"==typeof c){var T=a.createElement("template");T.content&&T.content.ownerDocument&&(a=T.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,ce=ie.implementation,se=ie.createNodeIterator,ue=ie.createDocumentFragment,le=ie.getElementsByTagName,pe=r.importNode,de={};try{de=I(a).documentMode?a.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var he,me,ge=V,ve=G,ye=K,be=$,we=Q,ke=J,xe=X,Oe=null,_e=M({},[].concat(o(R),o(Z),o(B),o(F),o(W))),Ae=null,Ee=M({},[].concat(o(U),o(z),o(q),o(Y))),Se=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}})),Ce=null,Pe=null,je=!0,De=!0,Te=!1,Me=!1,Ie=!1,Ne=!1,Re=!1,Ze=!1,Be=!1,Le=!1,Fe=!0,He=!1,We="user-content-",Ue=!0,ze=!1,qe={},Ye=null,Ve=M({},["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"]),Ge=null,Ke=M({},["audio","video","img","source","image","track"]),$e=null,Xe=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",at=null,it=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){at&&at===t||(t&&"object"===e(t)||(t={}),t=I(t),he=he=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:_,Oe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):_e,Ae="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Ee,$e="ADD_URI_SAFE_ATTR"in t?M(I(Xe),t.ADD_URI_SAFE_ATTR,me):Xe,Ge="ADD_DATA_URI_TAGS"in t?M(I(Ke),t.ADD_DATA_URI_TAGS,me):Ke,Ye="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):Ve,Ce="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Ze=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Re=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(De=!1),Be&&(Ze=!0),qe&&(Oe=M({},o(W)),Ae=[],!0===qe.html&&(M(Oe,R),M(Ae,U)),!0===qe.svg&&(M(Oe,Z),M(Ae,z),M(Ae,Y)),!0===qe.svgFilters&&(M(Oe,B),M(Ae,z),M(Ae,Y)),!0===qe.mathMl&&(M(Oe,F),M(Ae,q),M(Ae,Y))),t.ADD_TAGS&&(Oe===_e&&(Oe=I(Oe)),M(Oe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ae===Ee&&(Ae=I(Ae)),M(Ae,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M($e,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ye===Ve&&(Ye=I(Ye)),M(Ye,t.FORBID_CONTENTS,me)),Ue&&(Oe["#text"]=!0),Ie&&M(Oe,["html","head","body"]),Oe.table&&(M(Oe,["tbody"]),delete Ce.tbody),m&&m(t),at=t)},ut=M({},["mi","mo","mn","ms","mtext"]),lt=M({},["foreignobject","desc","title","annotation-xml"]),pt=M({},["title","style","font","a","script"]),dt=M({},Z);M(dt,B),M(dt,L);var ft=M({},F);M(ft,H);var ht=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===Je?t.namespaceURI===et?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(dt[n]):e.namespaceURI===Qe?t.namespaceURI===et?"math"===n:t.namespaceURI===Je?"math"===n&&lt[r]:Boolean(ft[n]):e.namespaceURI===et&&!(t.namespaceURI===Je&&!lt[r])&&!(t.namespaceURI===Qe&&!ut[r])&&!ft[n]&&(pt[n]||!dt[n])},mt=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},gt=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Ze||Be)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(Re)e="<remove></remove>"+e;else{var r=A(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),tt===et?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},yt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,r){fe[e]&&k(fe[e],(function(e){e.call(n,t,r,at)}))},xt=function(e){var t;if(kt("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var r=me(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return mt(e),!0;if(!Oe[r]||Ce[r]){if(!Ce[r]&&_t(r)){if(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(Ue&&!Ye[r]){var o=D(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(y(a[i],!0),b(e))}return mt(e),!0}return e instanceof u&&!ht(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r||!P(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=E(t,ge," "),t=E(t,ve," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Ot=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in it))return!1;if(De&&!Pe[t]&&P(ye,t));else if(je&&P(be,t));else if(!Ae[t]||Pe[t]){if(!(_t(e)&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&P(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if($e[t]);else if(P(xe,E(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ge[e])if(Te&&!P(we,E(n,ke,"")));else if(n)return!1;return!0},_t=function(e){return e.indexOf("-")>0},At=function(t){var r,o,a,i;kt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(i=c.length;i--;){var u=r=c[i],l=u.name,p=u.namespaceURI;if(o="value"===l?r.value:C(r.value),a=me(l),s.attrName=a,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(gt(l,t),s.keepAttr))if(P(/\/>/i,o))gt(l,t);else{Me&&(o=E(o,ge," "),o=E(o,ve," "));var d=me(t.nodeName);if(Ot(d,a,o)){if(!He||"id"!==a&&"name"!==a||(gt(l,t),o=We+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(p);else switch(g.getAttributeType(d,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,l,o):t.setAttribute(l,o),x(n.removed)}catch(e){}}}}kt("afterSanitizeAttributes",t,null)}},Et=function e(t){var n,r=yt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)kt("uponSanitizeShadowNode",n,null),xt(n)||(n.content instanceof i&&e(n.content),At(n));kt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var a,c,u,l,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!wt(o)){if("function"!=typeof o.toString)throw j("toString is not a function");if("string"!=typeof(o=o.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(wt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ne||st(d),n.removed=[],"string"==typeof o&&(ze=!1),ze){if(o.nodeName){var f=me(o.nodeName);if(!Oe[f]||Ce[f])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(c=(a=vt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ze&&!Me&&!Ie&&-1===o.indexOf("<"))return oe&&Le?oe.createHTML(o):o;if(!(a=vt(o)))return Ze?null:Le?ae:""}a&&Re&&mt(a.firstChild);for(var h=yt(ze?o:a);u=h.nextNode();)3===u.nodeType&&u===l||xt(u)||(u.content instanceof i&&Et(u.content),At(u),l=u);if(l=null,ze)return o;if(Ze){if(Be)for(p=ue.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return Ae.shadowroot&&(p=pe.call(r,p,!0)),p}var m=Ie?a.outerHTML:a.innerHTML;return Ie&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&P(ee,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Me&&(m=E(m,ge," "),m=E(m,ve," ")),oe&&Le?oe.createHTML(m):m},n.setConfig=function(e){st(e),Ne=!0},n.clearConfig=function(){at=null,Ne=!1},n.isValidAttribute=function(e,t,n){at||st({});var r=me(e),o=me(t);return Ot(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],O(fe[e],t))},n.removeHook=function(e){if(fe[e])return x(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},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})},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})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},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={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},99357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73891);function o(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);function i(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,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.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:()=>i});var r=n(88911);var o=n(72753),a=n(61917);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.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}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.1bb78e462d0c1610b1b4.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"32f116b6ff2379a6e617",198:"30f57ac2b24d6c67bd48",414:"600d0fdfe85b457aca04",759:"2bc4fee93df731cf6d21",817:"586199136bcea7bd0e90",877:"f6f6e19fe9b59c9681eb",909:"8c2e2a144c7b836388fd"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.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),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-devcon:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={179:0};i.f.j=(t,n)=>{var r=i.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 a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.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))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(59713),t=i.n(e),n=i(30670),r=i.n(n),o=i(41143),a=i.n(o);function s(e){return"/"===e.charAt(0)}function u(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&&s(e),a=t&&s(t),i=o||a;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,d=r.length;d>=0;d--){var f=r[d];"."===f?u(r,d):".."===f?(u(r,d),p++):p&&(u(r,d),p--)}if(!i)for(;p--;p)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},f=function(e,t){return d(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 a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{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,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,a):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!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)},k=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))},O=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)},_=function(){return-1===window.navigator.userAgent.indexOf("Trident")},A=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C="popstate",P="hashchange",j=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(b,"Browser history needs a DOM");var t=window.history,n=O(),o=!_(),i=e.forceRefresh,c=void 0!==i&&i,s=e.getUserConfirmation,u=void 0===s?x:s,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(p(e.basename)):"",T=function(e){var t=e||{},n=t.key,o=t.state,a=window.location,i=a.pathname+a.search+a.hash;return r()(!D||d(i,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+D+'".'),D&&(i=f(i,D)),v(i,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},I=y(),N=function(e){S(ee,e),ee.length=t.length,I.notifyListeners(ee.location,ee.action)},R=function(e){A(e)||L(T(e.state))},Z=function(){L(T(j()))},B=!1,L=function(e){if(B)B=!1,N();else{I.confirmTransitionTo(e,"POP",u,(function(t){t?N({action:"POP",location:e}):F(e)}))}},F=function(e){var t=ee.location,n=W.indexOf(t.key);-1===n&&(n=0);var r=W.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(B=!0,Y(o))},H=T(j()),W=[H.key],U=function(e){return D+m(e)},z=function(e,o){r()(!("object"===(void 0===e?"undefined":E(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 a="PUSH",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=U(i),s=i.key,u=i.state;if(n)if(t.pushState({key:s,state:u},null,o),c)window.location.href=o;else{var l=W.indexOf(ee.location.key),p=W.slice(0,-1===l?0:l+1);p.push(i.key),W=p,N({action:a,location:i})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},q=function(e,o){r()(!("object"===(void 0===e?"undefined":E(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 a="REPLACE",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=U(i),s=i.key,u=i.state;if(n)if(t.replaceState({key:s,state:u},null,o),c)window.location.replace(o);else{var l=W.indexOf(ee.location.key);-1!==l&&(W[l]=i.key),N({action:a,location:i})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},Y=function(e){t.go(e)},V=function(){return Y(-1)},G=function(){return Y(1)},K=0,$=function(e){1===(K+=e)?(w(window,C,R),o&&w(window,P,Z)):0===K&&(k(window,C,R),o&&k(window,P,Z))},X=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return X||($(1),X=!0),function(){return X&&(X=!1,$(-1)),t()}},J=function(e){var t=I.appendListener(e);return $(1),function(){$(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:U,push:z,replace:q,go:Y,goBack:V,goForward:G,block:Q,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var T,M,I=i(1024),N=i.n(I),R=i(56746),Z="tocco-util/LOG_ERROR",B=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:Z,payload:{title:e,description:t,error:n,dateTime:r}}},L=i(74806),F=i(50558),H=i(34575),W=i.n(H),U=i(93913),z=i.n(U),q=i(2205),Y=i.n(q),V=i(78585),G=i.n(V),K=i(29754),$=i.n(K),X=i(44012),Q=i(91411),J=i(58804),ee=i(30759),te=i(24875),ne=i(7281),re=J.ZP.div.withConfig({displayName:"StyledWrapper"})(T||(T=(0,Q.Z)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,ee.Z)(),(function(e){return e.theme.colors.signal.danger.text}),te.FS.color("paper"),ne.Z.space(-.5)),oe=i(85893);const ae=function(){return M||(M=(0,oe.jsx)(re,{children:(0,oe.jsx)(X.Z,{id:"client.component.errorBoundary.text"})}))};var ie;function ce(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=$()(e);if(t){var o=$()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G()(this,n)}}var se=function(e){Y()(n,e);var t=ce(n);function n(e){var r;return W()(this,n),(r=t.call(this,e)).state={hasError:!1,error:null},r}return z()(n,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?ie||(ie=(0,oe.jsx)(ae,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(I.Component);const ue=se;var le={logError:B};(0,F.connect)(null,le)((0,L.ZP)(ue));var pe=i(81770),de=i(319),fe=i.n(de);function he(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 me(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?he(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=t()({},Z,(function(e,t){var n=t.payload,r=n.title,o=n.description,a=n.error,i=n.dateTime;return me(me({},e),{},{messages:[{title:r,description:o,error:a,dateTime:i}].concat(fe()(e.messages)).slice(0,100)})})),ve={messages:[]};function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,t=arguments.length>1?arguments[1]:void 0,n=ge[t.type];return n?n(e,t):e}var be=i(87757),we=i.n(be),ke=i(34857),xe=i(50600),Oe=i(44759),_e=we().mark(Ae);function Ae(e,t,n){return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.RE)(Oe.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),_e)}var Ee=i(31366),Se=we().mark(Ce);function Ce(e,t,n){var r;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ke.RE)(Ee.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,ke.gz)(r);case 5:case"end":return n.stop()}}),Se)}var Pe=i(48926),je=i.n(Pe),De=i(54159),Te="error",Me=function(){var e=je()(we().mark((function e(t){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),Oe.Z.logError(n),e.next=4,Ne(Te,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=je()(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Oe.Z.logError(t),e.next=3,Ne(Te,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=je()(we().mark((function e(t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,De.Z.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const Re={logError:Ie,logException:Me};var Ze=we().mark(Be);function Be(e,t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.RE)(Re.logException,n);case 2:case"end":return e.stop()}}),Ze)}const Le={console:Ae,notification:Ce,remote:Be};var Fe=we().mark(Ue),He=we().mark(ze),We=we().mark(qe);function Ue(e,t){return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,ke.ib)(Z,ze,t);case 3:n.next=7;break;case 5:return n.next=7,(0,ke.ib)(Z,qe);case 7:case"end":return n.stop()}}),Fe)}function ze(e,t){var n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.payload,r=n.title,o=n.description,a=n.error,i.next=4,(0,ke.$6)(e.map((function(e){return(0,ke.RE)(Le[e],r,o,a)})));case 4:case"end":return i.stop()}}),He)}function qe(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(xe.Z.emitAction(e));case 2:case"end":return t.stop()}}),We)}const Ye=B,Ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&pe.Z.injectReducers(e,{errorLogging:ye}),e.sagaMiddleware.run(Ue,t,n)};var Ge=i(93386),Ke=i.n(Ge),$e=(i(30314),i(2100)),Xe="cache/INITIALISE",Qe="cache/SET_INITIALISED",Je=function(e){return{type:Qe,payload:{initialised:e}}},et=t()({},Qe,pe.Z.singleTransferReducer("initialised")),tt={initialised:!1};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt,t=arguments.length>1?arguments[1]:void 0,n=et[t.type];return n?n(e,t):e}var rt=i(79311),ot=i(63094),at=we().mark(it);function it(){var e,t,n,r,o,a,i,c,s;return we().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,ke.RE)(ot.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=rt.Z.getLongTerm("session","locale"),n=rt.Z.getLongTerm("session","principal"),u.next=7,(0,ke.RE)($e.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,a=r.username,i=r.businessUnitId,c=!t||t!==o,s=n&&(n.currentBusinessUnit.id!==i||n.username!==a),u.abrupt("return",c||s||e);case 12:case"end":return u.stop()}}),at)}var ct=we().mark(ut),st=we().mark(pt);function ut(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Xe,pt)]);case 2:case"end":return e.stop()}}),ct)}var lt=!1;function pt(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!lt){e.next=4;break}return e.next=3,(0,ke.gz)(Je(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,ke.RE)(it);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,ke.RE)(rt.Z.clearAll);case 10:return lt=!0,e.next=13,(0,ke.gz)(Je(!0));case 13:case"end":return e.stop()}}),st)}var dt,ft,ht,mt,gt=i(68957),vt=(i(46444),i(93235)),yt=i(34206),bt=i(69829),wt=(0,J.F4)(dt||(dt=(0,Q.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),kt=(0,J.iv)(ft||(ft=(0,Q.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),wt),xt=J.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(ht||(ht=(0,Q.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"])),ne.Z.space(-1),kt,bt.Fe,ne.Z.space(-1));const Ot=J.ZP.div.withConfig({displayName:"StyledLoadMask"})(mt||(mt=(0,Q.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 _t;const At=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,I.useState)(!1),c=(0,gt.Z)(i,2),s=c[0],u=c[1],l=(0,I.useState)(!0),p=(0,gt.Z)(l,2),d=p[0],f=p[1];(0,I.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){d&&u(e)}(!0)})),function(){f(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,oe.jsx)(Ot,{className:a,children:h?r:(0,oe.jsxs)(xt,{children:[_t||(_t=(0,oe.jsx)(vt.Z,{size:"30px"},"loading-spinner")),o&&(0,oe.jsx)(yt.ZP.Span,{children:o},"loadingText")]})})};const Et=function(e){var t=e.children,n=e.initialised;return(0,oe.jsx)(At,{required:[n],children:t})};const St={addToStore:function(e){pe.Z.injectReducers(e,{cache:nt}),e.sagaMiddleware.run(ut)},initialise:function(){return{type:Xe}},CacheInitLoadMask:(0,F.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,L.ZP)(Et)),hasInvalidCache:it};var Ct=i(21101),Pt=i(5435);const jt={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 Dt=i(85743),Tt="keyDown/SET_CONFIG",Mt="keyDown/KEY_DOWN",It=function(e){return{type:Tt,payload:{config:e}}},Nt=function(e){return{type:Mt,payload:{config:e}}},Rt=t()({},Tt,pe.Z.singleTransferReducer("config")),Zt={config:[]};function Bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt,t=arguments.length>1?arguments[1]:void 0,n=Rt[t.type];return n?n(e,t):e}var Lt=we().mark(Wt),Ft=we().mark(Ut),Ht=we().mark(zt);function Wt(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.$6)([(0,ke.RE)(Ut,e),(0,ke.ib)(Mt,zt)]);case 2:case"end":return t.stop()}}),Lt)}function Ut(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(It(e));case 2:case"end":return t.stop()}}),Ft)}function zt(e){var t,n;return we().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,ke.$6)(n.actions.map((function(e){return(0,ke.gz)(e)})));case 5:case"end":return r.stop()}}),Ht)}var qt,Yt=i(28655),Vt=i.n(Yt),Gt=J.ZP.div.withConfig({displayName:"StyledDiv"})(qt||(qt=Vt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const Kt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,I.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]),a=(0,I.useCallback)((function(e){return o(e,!0)}),[o]);return(0,I.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,oe.jsx)(Gt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var $t={keyDownHandler:Nt};const Xt={keyDown:Nt,addToStore:function(e,t){pe.Z.injectReducers(e,{keyDown:Bt}),e.sagaMiddleware.run(Wt,t)},KeyDownWatcher:(0,F.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),$t)(Kt)};var Qt,Jt,en,tn=J.ZP.div.withConfig({displayName:"StyledApp"})(Qt||(Qt=Vt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),nn=i(82492),rn=i.n(nn),on=i(76538),an=(0,J.vJ)(Jt||(Jt=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"])),te.FS.color("signal.success.text"),te.FS.color("signal.info.text"),te.FS.color("signal.warning.text"),te.FS.color("signal.danger.text"),(function(e){var t=e.theme;return(0,on._j)(.4,t.colors.paper)})),cn=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,a=(0,I.useMemo)((function(){return rn()({},t,n)}),[t,n]);return(0,oe.jsxs)(J.f6,{theme:o||a,children:[en||(en=(0,oe.jsx)(an,{})),r]})};cn.defaultProps={defaultTheme:Pt.Z};const sn=(0,J.Zz)(cn);var un=i(93379),ln=i.n(un),pn=i(7795),dn=i.n(pn),fn=i(90569),hn=i.n(fn),mn=i(3565),gn=i.n(mn),vn=i(19216),yn=i.n(vn),bn=i(44589),wn=i.n(bn),kn=i(36420),xn={};xn.styleTagTransform=wn(),xn.setAttributes=gn(),xn.insert=hn().bind(null,"head"),xn.domAPI=dn(),xn.insertStyleElement=yn();ln()(kn.Z,xn);kn.Z&&kn.Z.locals&&kn.Z.locals;var On=function(e){return"widget"===e?jt:Pt.Z};const _n=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,a=(0,I.useCallback)((function(e){e&&i.e(198).then(i.bind(i,23636)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),c=Dt.Z.getEmbedType();return(0,oe.jsx)(sn,{customTheme:o,defaultTheme:On(c),children:(0,oe.jsx)(F.Provider,{store:t,children:(0,oe.jsx)(Xt.KeyDownWatcher,{children:(0,oe.jsx)(At,{promises:[n],children:(0,oe.jsx)(Ct.Pj,{children:(0,oe.jsx)(St.CacheInitLoadMask,{children:(0,oe.jsx)(tn,{ref:a,children:r})})})})})})})};var An="input/SET_INPUT",En="input/INPUT_INITIALIZED",Sn=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Cn=function(e){i.p=e},Pn=function(e,t,n,r){var o=Ke()([n],r),a=e?e.locale:null;return $e.Z.initIntl(t,o,a)},jn=i(15857),Dn=(i(28500),i(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 Mn=Tn();Mn.withExtraArgument=Tn;const In=Mn;var Nn=i(24688);function Rn(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 Zn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Rn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bn=t()({},An,(function(e,t){var n=t.payload;return Zn(Zn({},e),n)})),Ln={};const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ln,t=arguments.length>1?arguments[1]:void 0,n=Bn[t.type];return n?n(e,t):e};function Hn(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 Wn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Un=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};i(63038),i(41609),i(18446),i(35937),i(35997);const zn=function(e,t,n,r){var o=r.input,a=void 0===o?{}:o,i=r.actions,c=void 0===i?void 0:i,s=r.publicPath,u=void 0===s?void 0:s,l=r.textResourceModules,p=void 0===l?[]:l;try{var d=a.customTheme;u&&Cn(u),c&&Sn(c,n),n.dispatch({type:En}),n.dispatch(St.initialise());var f=Pn(a,n,e,p);return{component:(0,oe.jsx)(_n,{store:n,initIntlPromise:f,content:t,theme:d}),store:n,methods:{setLocale:function(e){return $e.Z.changeLocale(n,p,e)}}}}catch(e){try{n.dispatch(Ye("Error","Error creating react application: ",e))}catch(t){Oe.Z.logError("Error creating react application: ",e),Oe.Z.logError("Unable to log error: ",t)}}},qn=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&&void 0!==arguments[2]?arguments[2]:{},r=Un(n),o=(0,Dn.ZP)(),a=(0,jn.md)(In,o),i=Wn(Wn({},e),{},{input:Fn,intl:Ct._8});e=(0,jn.UY)(i);var c=(0,jn.MT)(e,r,a);if(c.allReducers=i,c.sagas=t,c.sagaMiddleware=o,c.hotReloadReducers=pe.Z.hotReloadReducers,t&&t.length>0){var s=Nn.Z.createGenerator(t.map((function(e){return(0,ke.rM)(e)})));o.run(Nn.Z.autoRestartSaga(s,null,Ye))}return c},Yn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var Vn,Gn=i(48479);function Kn(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 $n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Kn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xn=function(e,n){return function(r,o){return $n($n({},r),{},t()({},n||o.payload.path,$n($n({},r[n||o.payload.path]),{},{running:e})))}},Qn=(Vn={},t()(Vn,Gn.b0,pe.Z.singleTransferReducer("version","dbRefactoring")),t()(Vn,Gn.FX,pe.Z.singleTransferReducer("modules","dbRefactoring")),t()(Vn,Gn._2,pe.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(Vn,Gn.ZD,pe.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(Vn,Gn.Pt,(function(e,t){return $n($n({},e),{},{dbRefactoring:$n($n({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(Vn,Gn.Hx,(function(e,t){return $n($n({},e),{},{dbRefactoring:$n($n({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(fe()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(Vn,Gn.X7,Xn(!0,"dbRefactoring")),t()(Vn,Gn.DN,Xn(!1)),t()(Vn,Gn.AF,pe.Z.singleTransferReducer("language","languageUpgrade")),t()(Vn,Gn.Bw,Xn(!0,"languageUpgrade")),Vn),Jn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var er=we().mark(ur),tr=we().mark(lr),nr=we().mark(pr),rr=we().mark(dr),or=we().mark(fr),ar=we().mark(hr),ir=we().mark(mr),cr=function(e){return e.dbRefactoring.dbRefactoring},sr=function(e){return e.dbRefactoring.languageUpgrade};function ur(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Gn.VQ,lr),(0,ke.Fm)(Gn.Tf,pr),(0,ke.Fm)(Gn.X7,dr),(0,ke.Fm)(Gn.Bw,fr)]);case 2:case"end":return e.stop()}}),er)}function lr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(ot.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),tr)}function pr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(ot.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.Rg(e.body));case 5:case"end":return t.stop()}}),nr)}function dr(){var e,t,n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ke.Ys)(cr);case 2:return e=i.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,a={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},i.next=10,(0,ke.RE)(hr,a,"dbRefactoring");case 10:case"end":return i.stop()}}),rr)}function fr(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(sr);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,ke.RE)(hr,n,"languageUpgrade");case 7:case"end":return r.stop()}}),or)}function hr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,ke.RE)(ot.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,ke.Cs)(mr,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),Oe.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),ar,null,[[1,9]])}function mr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.gw)(3e3);case 2:return o.next=4,(0,ke.RE)(ot.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,ke.gz)(Gn.zL(t));case 9:return o.next=11,(0,ke.gz)(Ee.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,ke.gz)(Gn.zL(t));case 16:return o.next=18,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,ke.RE)(mr,e);case 22:case"end":return o.stop()}}),ir)}var gr=we().mark(vr);function vr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(ur)]);case 2:case"end":return e.stop()}}),gr)}const yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments.length>1?arguments[1]:void 0,n=Qn[t.type];return n?n(e,t):e};var br=i(28721),wr="log/RECEIVE_ENTRY",kr=function(e){return{type:wr,payload:{data:e}}};function xr(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?xr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _r=t()({},wr,(function(e,t){var n=t.payload;return Or(Or({},e),{},{entries:[Or(Or({},n.data),{},{key:(0,br.Z)()})].concat(fe()(e.entries))})})),Ar={entries:[]};var Er=i(47979),Sr=we().mark(Pr),Cr=we().mark(jr);function Pr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(jr)]);case 2:case"end":return e.stop()}}),Sr)}function jr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:kr},t.next=3,(0,ke.RE)(Er.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Cr)}var Dr=we().mark(Tr);function Tr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Pr)]);case 2:case"end":return e.stop()}}),Dr)}const Mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar,t=arguments.length>1?arguments[1]:void 0,n=_r[t.type];return n?n(e,t):e};var Ir,Nr=i(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 Zr(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 Br=(Ir={},t()(Ir,Nr.MW,(function(){return Zr(Zr({},Lr),{},{state:Zr(Zr({},Lr.state),{},{running:!0})})})),t()(Ir,Nr.LU,(function(e,t){var n=t.payload;return Zr(Zr({},e),{},{state:Zr(Zr({},e.state),{},{total:n.total})})})),t()(Ir,Nr.pe,(function(e,t){var n=t.payload;return Zr(Zr({},e),{},{state:Zr(Zr({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(Ir,Nr.HM,(function(e,n){var r=n.payload,o=r.id,a=r.type,i=r.label,c=e.checkEvents[a]||[],s=[].concat(fe()(c),[{id:o,type:a,label:i}]),u=Zr(Zr({},e.checkEvents),{},t()({},a,s));return Zr(Zr({},e),{},{checkEvents:u})})),t()(Ir,Nr.iK,(function(e,t){var n=t.payload;return Zr(Zr({},e),{},{state:Zr(Zr({},e.state),{},{running:!1,result:n.result})})})),t()(Ir,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)}))),Zr(Zr({},e),{},{selection:n})})),t()(Ir,Nr.VD,pe.Z.singleTransferReducer("sql")),t()(Ir,Nr.g6,pe.Z.singleTransferReducer("changelog")),Ir),Lr={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var Fr=i(15103),Hr=i(65035);const Wr=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,oe.jsx)(Hr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const Ur=(0,F.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(Wr);const zr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n}}),(0,oe.jsx)(Hr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var qr={setSql:Nr.fq,executeSql:Nr.Rj};const Yr=(0,F.connect)((function(e){return{sql:e.modelValidation.sql}}),qr)(zr);var Vr=we().mark(no),Gr=we().mark(ro),Kr=we().mark(oo),$r=we().mark(ao),Xr=we().mark(io),Qr=we().mark(co),Jr=we().mark(so),eo=function(e){return e.modelValidation.selection},to=function(e){return e.modelValidation.sql};function no(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(ro),(0,ke.ib)(Nr.MW,oo),(0,ke.ib)(Nr.EJ,ao),(0,ke.ib)(Nr.es,io),(0,ke.ib)(Nr.dQ,co),(0,ke.ib)(Nr.Ge,so)]);case 2:case"end":return e.stop()}}),Vr)}function ro(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:Nr.QM},t.next=3,(0,ke.RE)(Er.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Gr)}function oo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),Oe.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),Kr,null,[[0,5]])}function ao(e){var t;return we().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,ke.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,ke.gz)(Nr.o1(t.message.params.total));case 10:return n.next=12,(0,ke.gz)(Nr.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,ke.gz)(Nr.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),$r)}function io(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Nr.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("sql","SQL",null,Yr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),Xr,null,[[4,14]])}function co(e){var t,n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,ke.Ys)(to);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,ke.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),Oe.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),Qr,null,[[5,14]])}function so(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(ot.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Nr.EL(n.body.statements[0]));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("changelog","Changelog",null,Ur,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),Jr,null,[[4,14]])}var uo=we().mark(lo);function lo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(no)]);case 2:case"end":return e.stop()}}),uo)}const po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Br[t.type];return n?n(e,t):e};var fo,ho=i(22541);function mo(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 go(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?mo(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vo=(fo={},t()(fo,ho.Z9,(function(e,t){var n=t.payload;return e.active?go(go({},e),{},{entries:[go(go({},n.data),{},{key:(0,br.Z)()})].concat(fe()(e.entries))}):e})),t()(fo,ho.HI,pe.Z.singleTransferReducer("active")),t()(fo,ho.Zm,pe.Z.singleTransferReducer("elapsed")),fo),yo={entries:[],active:!1,elapsed:null};var bo=we().mark(ko),wo=we().mark(xo);function ko(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(xo)]);case 2:case"end":return e.stop()}}),bo)}function xo(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:ho.oS},t.next=3,(0,ke.RE)(Er.Z.connectSocket,e);case 3:case"end":return t.stop()}}),wo)}var Oo=we().mark(_o);function _o(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(ko)]);case 2:case"end":return e.stop()}}),Oo)}const Ao={log:Mr,dbRefactoring:yr,modelValidation:po,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yo,t=arguments.length>1?arguments[1]:void 0,n=vo[t.type];return n?n(e,t):e}};var Eo,So,Co=[vr,Tr,lo,_o];function Po(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 jo="devcon",Do=N().lazy((function(){return i.e(85).then(i.bind(i,5702))})),To=function(){return Eo||(Eo=(0,oe.jsx)("div",{children:(0,oe.jsx)(I.Suspense,{fallback:"",children:(0,oe.jsx)(Do,{})})}))},Mo=function(e,n,r,o){var a=qn(Ao,Co,n,jo);Ve(a,!0,["console","remote","notification"]),Ee.Z.addToStore(a,!0);var i=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Po(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),c=(0,oe.jsx)(R.F0,{history:i,children:So||(So=(0,oe.jsx)(To,{}))});return zn(jo,c,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",jo]})};Yn(jo,Mo)})(),c})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-devcon",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Nr});var r,o=t(56746),l=t(31366),a=t(34206),i=t(50558),c=t(48479),s=t(1024),u=t.n(s),d=t(46927),f=(t(46444),t(44066)),h=t(70696),p=t(10535),g=t(78958),b=t(45915),m=t(91411),v=t(58804),y=t(37188);const x=(0,v.ZP)(y.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,m.Z)(["\n && {\n list-style-type: none;\n }\n"])));var w=t(85893);const k=function(e){return(0,w.jsx)(x,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var j,Z,O=t(88162),P=t(27361),S=t.n(P),C=t(88601),_=t(58664),R=(j={},(0,d.Z)(j,g.Z.condition.BASE,"inherit"),(0,d.Z)(j,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,d.Z)(j,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,d.Z)(j,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,d.Z)(j,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,d.Z)(j,g.Z.condition.INFO,C.Z.color("signal.info.text")),j),E=(0,v.ZP)(y.EF).withConfig({displayName:"StyledSignalListItem"})(Z||(Z=(0,m.Z)(["\n && {\n color: ",";\n position: relative;\n\n > i,\n > svg {\n position: absolute;\n left: -1.6rem;\n text-align: left;\n }\n\n > svg {\n top: 0.2em;\n }\n }\n"])),(function(e){return function(e){return R[e.condition]||"inherit"}(e)}));E.propTypes={condition:g.Z.conditionPropTypes(R)};const D=E;var N,T,L=(N={},(0,d.Z)(N,g.Z.condition.BASE,!1),(0,d.Z)(N,g.Z.condition.PRIMARY,!1),(0,d.Z)(N,g.Z.condition.DANGER,"times"),(0,d.Z)(N,g.Z.condition.SUCCESS,"check"),(0,d.Z)(N,g.Z.condition.WARNING,"exclamation-triangle"),(0,d.Z)(N,g.Z.condition.INFO,"info"),N),A=function(e){var n=L[e.condition];return n?(0,w.jsx)(O.Z,{icon:n,position:g.Z.position.SOLE}):T||(T=(0,w.jsx)("i",{children:"•"}))},I=function(e){return(0,w.jsxs)(D,{condition:e.condition,children:[A(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};I.defaultProps={condition:g.Z.condition.BASE};const M={List:k,Item:I};const q=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,(0,b.Z)(e.error[t]))})),(0,w.jsx)(M.List,{children:n.map((function(e,n){return(0,w.jsx)(M.Item,{condition:"danger",label:e},n)}))})};var F,V,H,z,B,W,$,U=t(79686),G=t(7281),Y=t(30759),K=t(27896),J="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},X=v.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(F||(F=(0,m.Z)(["\n width: calc(100% - ",");\n"])),G.Z.space(.5)),ee=v.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(V||(V=(0,m.Z)(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Y.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:C.Z.lineHeight("dense")}),C.Z.color("paper"),(function(e){return K.v[(n=e,t=n.isDisplay,r=n.immutable,o=n.signal,l=n.hasValue,o?"signal":l?"hasValue":t?"shade1":r?"shade0":"shade1")](e);var n,t,r,o,l}),G.Z.space(-2),G.Z.font(0),G.Z.space(-2),(function(e){return e.immutable&&"0"}),G.Z.font(0),(function(e){return Q(e)})),ne=v.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(H||(H=(0,m.Z)(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),J,(function(e){return K.m[(n=e,t=n.immutable,r=n.isDisplay,o=n.signal,n.isDirty?"isDirty":r||t?"transparent":o?"signal":"shade1")](e);var n,t,r,o}),G.Z.space(-1),G.Z.space(-1),G.Z.space(-2),G.Z.space(-1),(function(e){return e.isDisplay&&G.Z.space(-1)}),(function(e){return e.immutable&&G.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&G.Z.space(-1)}),(function(e){return!e.immutable&&(0,_.kk)(e)}),(function(e){return Q(e)}),(function(e){return e.isDisplay&&"0"}),U.j,(function(e){return e.isDisplay&&G.Z.space(-1)})),te=v.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(z||(z=(0,m.Z)(["\n &&& {\n ","\n }\n"])),(0,Y.Z)({fontSize:G.Z.font(-1)})),re=v.ZP.div.withConfig({displayName:"StyledStatedValueError"})(B||(B=(0,m.Z)([""]))),oe=v.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(W||(W=(0,m.Z)(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n\n "," {\n margin-left: -",";\n }\n }\n }\n"])),G.Z.space(-1),G.Z.space(-1.5),ne,te,re,G.Z.space(-2),te,re,G.Z.space(-1),J,y.hc,G.Z.space(-2));v.ZP.input.withConfig({displayName:"StyledInput"})($||($=(0,m.Z)(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"not-allowed":"auto"}),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"#545454":"#000"}));function le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?le(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ie=function(e){var n,t,r,o=e.children,l=e.description,a=e.dirty,i=e.isDisplay,c=e.error,s=e.hasValue,u=e.id,d=e.label,b=e.mandatory,m=e.mandatoryTitle,v=e.immutable,y=e.touched,x=e.signal,k=!v&&y&&c&&Object.keys(c).length>0,j="".concat(h.Z.adjustedHTMLString(d)).concat(b&&m?", ".concat(m):""),Z=x||function(e,n,t,r){return n?g.Z.condition.DANGER:e?g.Z.condition.INFO:t&&!r?g.Z.condition.WARNING:void 0}(a,k,b,s),O={__html:"".concat(p.Z.sanitizeHtml(d)).concat(b?" *":"")},P=!i&&!v&&{htmlFor:u};return(0,w.jsx)(f.Z,{children:function(e){var u=e.getRef;return(0,w.jsxs)(oe,{ref:u,children:[(0,w.jsxs)(ne,{hasValue:s,immutable:v,isDisplay:i,signal:Z,children:[o,d&&(0,w.jsx)(X,{children:(0,w.jsx)(ee,ae(ae({},P),{},{hasValue:s,dirty:a,title:j,immutable:v,isDisplay:i,signal:Z,children:n||(n=(0,w.jsx)("span",{dangerouslySetInnerHTML:O}))}))})]}),l&&(t||(t=(0,w.jsx)(te,{children:l}))),k&&(r||(r=(0,w.jsx)(re,{children:(0,w.jsx)(q,{error:c})})))]})}})};var ce,se,ue=t(33133),de=t(65035),fe=t(28655),he=t.n(fe),pe=t(51032),ge=v.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=he()(["\n && {\n ","\n }\n"])),pe.k9),be=v.ZP.div.withConfig({displayName:"StyledInputWrapper"})(se||(se=he()(["\n && {\n ","\n }\n"])),pe.yP);const me=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,o=e.setFragmentSelected;return(0,w.jsx)(w.Fragment,{children:n.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){o(n,e.target.checked)}),disabled:r}),(0,w.jsx)(a.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const ve=function(e){var n=e.version,t=e.modules,r=e.selectedModules,o=e.fragments,l=e.selectedFragments,a=e.ignoreErrors,i=e.running,c=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,h=e.setSelectedModules,p=e.setFragmentSelected,g=e.setVersion,b=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&d(),0===o.length&&f()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,w.jsx)(ie,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(ue.Z,{options:t,value:r,onChange:h,isMulti:!0,immutable:c})}),(0,w.jsx)(ie,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:o,selectedFragments:l,disabled:c,setFragmentSelected:p})}),(0,w.jsx)(ie,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:c})})}),(0,w.jsx)(ie,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){b(e.target.checked)},disabled:c})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute",look:"raised",pending:i,disabled:c})]})};var ye={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const xe=(0,i.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),ye)(ve);const we=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,l=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,w.jsx)(ie,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){l(e.target.value)},disabled:r})})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var ke={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const je=(0,i.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),ke)(we);var Ze,Oe,Pe,Se;const Ce=function(){return(0,w.jsxs)(w.Fragment,{children:[Ze||(Ze=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Oe||(Oe=(0,w.jsx)(xe,{})),Pe||(Pe=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Se||(Se=(0,w.jsx)(je,{}))]})};var _e,Re,Ee,De,Ne,Te,Le,Ae=t(63038),Ie=t.n(Ae),Me={ERROR:"#a00"},qe=v.ZP.div.withConfig({displayName:"StyledLogTable"})(_e||(_e=he()(["\n display: grid;\n gap: 1px;\n"]))),Fe=v.ZP.div.withConfig({displayName:"StyledLogEntry"})(Re||(Re=he()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(Me[e.level]||"#ddd",";")})),Ve=v.ZP.span.withConfig({displayName:"StyledMessage"})(Ee||(Ee=he()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),He=v.ZP.span.withConfig({displayName:"StyledTime"})(De||(De=he()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),ze=v.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Ne||(Ne=he()(["\n margin-top: 1em;\n"]))),Be=v.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Te||(Te=he()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),We=v.ZP.div.withConfig({displayName:"StyledStackTrace"})(Le||(Le=he()(["\n && {\n ","\n }\n"])),(0,Y.Z)()),$e=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const Ue=function(e){var n=e.exception;return(0,w.jsxs)(ze,{children:[(0,w.jsx)(Be,{children:n.detailMessage}),(0,w.jsx)(We,{children:n.stackTrace.map((function(e,n){return(0,w.jsx)("div",{children:$e(e)},n)}))})]})};const Ge=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),o=r[0],l=r[1];return(0,w.jsxs)(Fe,{level:n.level,children:[(0,w.jsx)(Ve,{onClick:function(){n.exception&&l(!o)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(He,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,w.jsx)(Ue,{exception:n.exception})]})};var Ye;const Ke=function(e){var n=e.entries;return(0,w.jsx)(qe,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ge,{entry:e},e.key)})):Ye||(Ye=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Je=(0,i.connect)((function(e){return{entries:e.log.entries}}),{})(Ke);var Qe,Xe;const en=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Xe||(Xe=(0,w.jsx)(Je,{}))]})};var nn,tn,rn=t(49478),on=v.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(nn||(nn=he()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),ln=v.ZP.div.withConfig({displayName:"StyledGroupHeading"})(tn||(tn=he()(["\n margin-bottom: 1em;\n"])));function an(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return cn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cn(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function cn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}const sn=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,l=function(e,n){var t,r=an(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!n.has(o.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(on,{children:[(0,w.jsxs)(ln,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:l,onChange:function(e){o(t.map((function(e){return e.id})),e.target.checked)}}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+n,children:(0,w.jsxs)(a.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){o([n],e.target.checked)})}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const un=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,l=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(de.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(de.Z,{look:"raised",onClick:l,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,w.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,w.jsx)(sn,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var dn={setSelected:rn.Pq,generateSql:rn.$i,generateChangelog:rn._w};const fn=(0,i.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),dn)(un);var hn,pn,gn,bn=v.ZP.div.withConfig({displayName:"StyledProgressBar"})(hn||(hn=he()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=v.ZP.div.withConfig({displayName:"StyledInnerProgress"})(pn||(pn=he()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),vn=v.ZP.div.withConfig({displayName:"StyledProgressText"})(gn||(gn=he()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),yn=function(e){return e.result?e.result:e.running?e.total?"".concat(xn(e),"%"):"Preparing...":"Not started"},xn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const wn=function(e){var n=e.state;return(0,w.jsxs)(bn,{children:[(0,w.jsx)(mn,{percentage:xn(n)}),(0,w.jsx)(vn,{children:yn(n)})]})};const kn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(de.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(wn,{state:n})]})};var jn={startValidation:rn.YV};const Zn=(0,i.connect)((function(e){return{state:e.modelValidation.state}}),jn)(kn);var On,Pn,Sn;const Cn=function(){return(0,w.jsxs)(w.Fragment,{children:[On||(On=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),Pn||(Pn=(0,w.jsx)(Zn,{})),Sn||(Sn=(0,w.jsx)(fn,{}))]})};var _n=t(22541),Rn=t(68957),En=t(57557),Dn=t.n(En),Nn=t(2091),Tn=t(15103),Ln=t(84541),An=t(81084),In=t(75502),Mn=t(87486),qn=t(95395);function Fn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Hn="yyyy-MM-dd",zn=function(e){return(0,Ln.Z)(e,Hn)?(0,An.default)(e,Hn,new Date):(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,In.default)(new Date(e)):null};const Bn={number:{icons:{range:"square-plus",single:"square-minus"}},integer:{icons:{range:"square-plus",single:"square-minus"}},datetime:{type:"date",icons:{range:"calendar-plus",single:"calendar-minus"},toRange:function(e){return{from:e?zn(e).toISOString():null,to:e?(0,Mn.default)(zn(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?(0,qn.default)(new Date(e.from),Hn):e&&e.to?(0,qn.default)(new Date(e.to),Hn):null},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Wn,$n,Un,Gn,Yn,Kn,Jn,Qn=v.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Wn||(Wn=(0,m.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Xn=v.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})($n||($n=(0,m.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n text-align: center;\n }\n"]))),et=v.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Un||(Un=(0,m.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),G.Z.font(-2.7)),nt=v.ZP.div.withConfig({displayName:"StyledRange"})(Gn||(Gn=(0,m.Z)(["\n display: flex;\n"]))),tt=v.ZP.div.withConfig({displayName:"StyledInput"})(Yn||(Yn=(0,m.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),rt=v.ZP.div.withConfig({displayName:"StyledExtender"})(Kn||(Kn=(0,m.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function ot(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function lt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ot(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var at="expanded_initial",it="expanded",ct="collapsed";const st=function(e){var n,t,r=e.value,o=e.events,l=e.readOnly,a=e.type,i=e.options,c=e.fromText,u=e.toText,d=e.expanded,f=(0,s.useState)(d?at:ct),h=(0,Rn.Z)(f,2),p=h[0],g=h[1],b=Bn[a];(0,s.useEffect)((function(){var e;p===at&&r&&!r.isRangeValue?o.onChange({from:r,to:void 0,isRangeValue:!0}):p!==it||null!=r&&r.isRangeValue?p===ct&&null!=r&&r.isRangeValue&&o.onChange(function(e){return null!=b&&b.fromRange?b.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r)):o.onChange((e=r,null!=b&&b.toRange?b.toRange(e):{from:e,to:e,isRangeValue:!0}))}),[p,r,o,b]);var m=(null==r?void 0:r.isRangeValue)||!1,v=(0,s.useRef)(r);v.current=r;var y,x,k=(0,s.useMemo)((function(){return lt(lt({},o),{},{onChange:o.onChange})}),[o]),j={onChange:function(e){o.onChange(lt(lt({},v.current),{},{to:e}))}},Z={onChange:function(e){o.onChange(lt(lt({},v.current),{},{from:e}))}},P=(null==b||null===(n=b.icons)||void 0===n?void 0:n.range)||"chevron-down",S=(null==b||null===(t=b.icons)||void 0===t?void 0:t.single)||"chevron-left",C=(null==b?void 0:b.type)||a;return(0,w.jsxs)(nt,{children:[(0,w.jsx)(Qn,{children:m?(0,w.jsxs)(tt,{children:[(0,w.jsx)(Xn,{children:(0,w.jsx)(Tn.Z,lt(lt({},e),{},{options:(y=i,x=r.to,null!=b&&b.getFromOptions?b.getFromOptions(y,x):y),value:(null==r?void 0:r.from)||null,events:Z,placeholder:c}))}),Jn||(Jn=(0,w.jsx)(et,{children:(0,w.jsx)(O.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Xn,{children:(0,w.jsx)(Tn.Z,lt(lt({},e),{},{options:function(e,n){return null!=b&&b.getToOptions?b.getToOptions(e,n):e}(i,r.from),value:(null==r?void 0:r.to)||null,events:j,placeholder:u}))})]}):(0,w.jsx)(Tn.Z,lt(lt({type:C},Dn()(e,["type"])),{},{events:k}))}),(0,w.jsx)(rt,{children:(0,w.jsx)(Nn.Z,{disabled:l,icon:m?S:P,onClick:function(){g(m?ct:it)}})})]})};const ut=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ie,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ie,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(st,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var dt={setActive:_n.Iv,setElapsed:_n.uI};const ft=(0,i.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),dt)(ut);var ht,pt,gt,bt,mt,vt,yt,xt={ERROR:"#a00"},wt=v.ZP.div.withConfig({displayName:"StyledLogTable"})(ht||(ht=he()(["\n display: grid;\n gap: 1px;\n"]))),kt=v.ZP.div.withConfig({displayName:"StyledLogEntry"})(pt||(pt=he()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(xt[e.level]||"#ddd",";")})),jt=v.ZP.span.withConfig({displayName:"StyledStatementHeader"})(gt||(gt=he()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),Zt=v.ZP.span.withConfig({displayName:"StyledStatement"})(bt||(bt=he()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Ot=v.ZP.span.withConfig({displayName:"StyledTime"})(mt||(mt=he()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Pt=v.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(vt||(vt=he()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),St=v.ZP.span.withConfig({displayName:"StyledElapsed"})(yt||(yt=he()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const Ct=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),o=r[0],l=r[1],a=n.sql.length>100,i=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(kt,{children:[(0,w.jsx)(jt,{expandable:a,onClick:function(){a&&l(!o)},children:i}),o&&(0,w.jsx)(Zt,{children:n.sql}),(0,w.jsx)(Ot,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(Pt,{children:(0,w.jsxs)(St,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var _t;const Rt=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?e.elapsed>=n.from&&e.elapsed<=n.to:e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,w.jsx)(wt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ct,{entry:e},e.key)})):_t||(_t=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Et=(0,i.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Rt);var Dt,Nt,Tt;const Lt=function(){return(0,w.jsxs)(w.Fragment,{children:[Dt||(Dt=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Nt||(Nt=(0,w.jsx)(ft,{})),Tt||(Tt=(0,w.jsx)(Et,{}))]})};function At(e,n){return At=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},At(e,n)}function It(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,At(e,n)}function Mt(){return Mt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Mt.apply(this,arguments)}function qt(e){return"/"===e.charAt(0)}function Ft(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}const Vt=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],l=e&&qt(e),a=n&&qt(n),i=l||a;if(e&&qt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];t="."===c||".."===c||""===c}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Ft(o,u):".."===d?(Ft(o,u),s++):s&&(Ft(o,u),s--)}if(!i)for(;s--;s)o.unshift("..");!i||""===o[0]||o[0]&&qt(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Ht=t(2177);function zt(e){return"/"===e.charAt(0)?e:"/"+e}function Bt(e){return"/"===e.charAt(0)?e.substr(1):e}function Wt(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function $t(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Ut(e){var n=e.pathname,t=e.search,r=e.hash,o=n||"/";return t&&"?"!==t&&(o+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Gt(e,n,t,r){var o;"string"==typeof e?(o=function(e){var n=e||"/",t="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var l=n.indexOf("?");return-1!==l&&(t=n.substr(l),n=n.substr(0,l)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),o.state=n):(void 0===(o=Mt({},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!==n&&void 0===o.state&&(o.state=n));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 t&&(o.key=t),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Vt(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Yt(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,o){if(null!=e){var l="function"==typeof e?e(n,t):e;"string"==typeof l?"function"==typeof r?r(l,o):o(!0):o(!1!==l)}else o(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var Kt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Jt(e,n){n(window.confirm(e))}var Qt="popstate",Xt="hashchange";function er(){try{return window.history.state||{}}catch(e){return{}}}function nr(e){void 0===e&&(e={}),Kt||(0,Ht.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),l=e,a=l.forceRefresh,i=void 0!==a&&a,c=l.getUserConfirmation,s=void 0===c?Jt:c,u=l.keyLength,d=void 0===u?6:u,f=e.basename?$t(zt(e.basename)):"";function h(e){var n=e||{},t=n.key,r=n.state,o=window.location,l=o.pathname+o.search+o.hash;return f&&(l=Wt(l,f)),Gt(l,r,t)}function p(){return Math.random().toString(36).substr(2,d)}var g=Yt();function b(e){Mt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(h(e.state))}function v(){x(h(er()))}var y=!1;function x(e){if(y)y=!1,b();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?b({action:"POP",location:e}):function(e){var n=C.location,t=k.indexOf(n.key);-1===t&&(t=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,Z(o))}(e)}))}}var w=h(er()),k=[w.key];function j(e){return f+Ut(e)}function Z(e){t.go(e)}var O=0;function P(e){1===(O+=e)&&1===e?(window.addEventListener(Qt,m),o&&window.addEventListener(Xt,v)):0===O&&(window.removeEventListener(Qt,m),o&&window.removeEventListener(Xt,v))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:j,push:function(e,n){var o="PUSH",l=Gt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.pushState({key:a,state:c},null,n),i)window.location.href=n;else{var s=k.indexOf(C.location.key),u=k.slice(0,s+1);u.push(l.key),k=u,b({action:o,location:l})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",l=Gt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.replaceState({key:a,state:c},null,n),i)window.location.replace(n);else{var s=k.indexOf(C.location.key);-1!==s&&(k[s]=l.key),b({action:o,location:l})}else window.location.replace(n)}}))},go:Z,goBack:function(){Z(-1)},goForward:function(){Z(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return S||(P(1),S=!0),function(){return S&&(S=!1,P(-1)),n()}},listen:function(e){var n=g.appendListener(e);return P(1),function(){P(-1),n()}}};return C}var tr="hashchange",rr={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Bt(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Bt,decodePath:zt},slash:{encodePath:zt,decodePath:zt}};function or(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function lr(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function ar(e){window.location.replace(or(window.location.href)+"#"+e)}function ir(e){void 0===e&&(e={}),Kt||(0,Ht.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?Jt:r,l=t.hashType,a=void 0===l?"slash":l,i=e.basename?$t(zt(e.basename)):"",c=rr[a],s=c.encodePath,u=c.decodePath;function d(){var e=u(lr());return i&&(e=Wt(e,i)),Gt(e)}var f=Yt();function h(e){Mt(O,e),O.length=n.length,f.notifyListeners(O.location,O.action)}var p=!1,g=null;function b(){var e,n,t=lr(),r=s(t);if(t!==r)ar(r);else{var l=d(),a=O.location;if(!p&&(n=l,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===Ut(l))return;g=null,function(e){if(p)p=!1,h();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?h({action:n,location:e}):function(e){var n=O.location,t=x.lastIndexOf(Ut(n));-1===t&&(t=0);var r=x.lastIndexOf(Ut(e));-1===r&&(r=0);var o=t-r;o&&(p=!0,w(o))}(e)}))}}(l)}}var m=lr(),v=s(m);m!==v&&ar(v);var y=d(),x=[Ut(y)];function w(e){n.go(e)}var k=0;function j(e){1===(k+=e)&&1===e?window.addEventListener(tr,b):0===k&&window.removeEventListener(tr,b)}var Z=!1;var O={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=or(window.location.href)),t+"#"+s(i+Ut(e))},push:function(e,n){var t="PUSH",r=Gt(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=Ut(r),o=s(i+n);if(lr()!==o){g=n,function(e){window.location.hash=e}(o);var l=x.lastIndexOf(Ut(O.location)),a=x.slice(0,l+1);a.push(n),x=a,h({action:t,location:r})}else h()}}))},replace:function(e,n){var t="REPLACE",r=Gt(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=Ut(r),o=s(i+n);lr()!==o&&(g=n,ar(o));var l=x.indexOf(Ut(O.location));-1!==l&&(x[l]=n),h({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=f.setPrompt(e);return Z||(j(1),Z=!0),function(){return Z&&(Z=!1,j(-1)),n()}},listen:function(e){var n=f.appendListener(e);return j(1),function(){j(-1),n()}}};return O}t(94662);function cr(e,n){if(null==e)return{};var t,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}u().Component;u().Component;var sr=function(e,n){return"function"==typeof e?e(n):e},ur=function(e,n){return"string"==typeof e?Gt(e,null,null,n):e},dr=function(e){return e},fr=u().forwardRef;void 0===fr&&(fr=dr);var hr=fr((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,l=cr(e,["innerRef","navigate","onClick"]),a=l.target,i=Mt({},l,{onClick:function(e){try{o&&o(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return i.ref=dr!==fr&&n||t,u().createElement("a",i)}));var pr=fr((function(e,n){var t=e.component,r=void 0===t?hr:t,l=e.replace,a=e.to,i=e.innerRef,c=cr(e,["component","replace","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Ht.Z)(!1);var t=e.history,o=ur(sr(a,e.location),e.location),s=o?t.createHref(o):"",d=Mt({},c,{href:s,navigate:function(){var n=sr(a,e.location),r=Ut(e.location)===Ut(ur(n));(l||r?t.replace:t.push)(n)}});return dr!==fr?d.ref=n||i:d.innerRef=i,u().createElement(r,d)}))})),gr=function(e){return e},br=u().forwardRef;void 0===br&&(br=gr);br((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,l=e.activeClassName,a=void 0===l?"active":l,i=e.activeStyle,c=e.className,s=e.exact,d=e.isActive,f=e.location,h=e.sensitive,p=e.strict,g=e.style,b=e.to,m=e.innerRef,v=cr(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Ht.Z)(!1);var t=f||e.location,l=ur(sr(b,t),t),y=l.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,o.LX)(t.pathname,{path:x,exact:s,sensitive:h,strict:p}):null,k=!!(d?d(w,t):w),j="function"==typeof c?c(k):c,Z="function"==typeof g?g(k):g;k&&(j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(j,a),Z=Mt({},Z,i));var O=Mt({"aria-current":k&&r||null,className:j,style:Z,to:l},v);return gr!==br?O.ref=n||m:O.innerRef=m,u().createElement(pr,O)}))}));var mr,vr=t(24875);const yr=(0,v.ZP)(pr)(mr||(mr=(0,m.Z)(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,Y.Z)(),vr.FS.color("secondary"),vr.FS.color("text"),vr.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var n=e.neutral,t=e.theme;return n?(0,_.HO)(S()(t,"colors.text"),2):(0,_.HO)(S()(t,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var xr,wr,kr,jr,Zr,Or,Pr,Sr,Cr,_r,Rr=v.ZP.div.withConfig({displayName:"StyledDevCon"})(xr||(xr=he()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),C.Z.color("paper"),G.Z.space(0)),Er=v.ZP.div.withConfig({displayName:"StyledNavigation"})(wr||(wr=he()(["\n display: flex;\n"]))),Dr=(0,v.ZP)(yr).withConfig({displayName:"StyledRouterLink"})(kr||(kr=he()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Nr=function(){return(0,w.jsxs)(Rr,{children:[jr||(jr=(0,w.jsx)(l.Z.Notifications,{})),Zr||(Zr=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),Or||(Or=(0,w.jsxs)(Er,{children:[(0,w.jsx)(Dr,{to:"/log",children:"Log"}),(0,w.jsx)(Dr,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(Dr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(Dr,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(o.rs,{children:[(0,w.jsx)(o.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(o.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(o.AW,{path:"/log",exact:!0,render:function(){return Pr||(Pr=(0,w.jsx)(en,{}))}}),(0,w.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return Sr||(Sr=(0,w.jsx)(Ce,{}))}}),(0,w.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return Cr||(Cr=(0,w.jsx)(Cn,{}))}}),(0,w.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return _r||(_r=(0,w.jsx)(Lt,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>xe});var r=t(68957),o=t(91411),l=t(86249),a=t.n(l),i=(t(58900),t(78634)),c=t(84100),s=t(60131),u=t(48230),d=t(64952),f=t(469),h=t(81896),p=t(46940),g=t(27361),b=t.n(g),m=t(14293),v=t.n(m),y=t(13218),x=t.n(y),w=t(47037),k=t.n(w),j=t(1024),Z=t(58804),O=(t(39335),t(28212),t(6488),t(32510),t(79657),t(20844),t(41030),t(98827),t(37363),t(53299),t(54159)),P=function(e){return O.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},C=t(44822),_=t(11259),R=t(32208),E=t(99357),D=t(19241),N=(t(70646),t(1469)),T=t.n(N),L=t(30236),A=t.n(L),I=["==","!=","<=",">=","<",">","~="],M=["true","false","null"],q=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],F=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],V=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function H(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}const z=function(e){return function(n){(0,R.Z)(r,n);var t=H(r);function r(){var n;(0,_.Z)(this,r),n=t.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(V.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],l={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(I.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(F.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(M.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(q.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return n.$rules=A()(n.$rules,l,(function(e,n){return T()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function B(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var W=function(e){(0,R.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(this,t);return(e=n.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return(0,C.Z)(t)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules),$=function(e){(0,R.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(this,t),e=n.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var l in e.$rules)e.$rules[l].unshift.apply(e.$rules[l],o);e.embedRules(W,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(z(),"tql-",a,["start"]);var i={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=A()(e.$rules,i,(function(e,n){return T()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return(0,C.Z)(t)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),U=t(52902),G=t(45915),Y=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,n){return K(e.getCurrentToken())===n},Q=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!J(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return J(e,"rparen")?1:n>0&&J(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&J(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,G.Z)(re(e))):[]}if(J(e,"order_by")){if(X(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=ee(e,n),!e.stepBackward())return null}return null},te=function(e,n){for(var t=[],r=n(e);r;)Array.isArray(r)?r.forEach((function(e){return t.unshift(e)})):t.unshift(r),r=n(e);return t},re=function(e){return te(e,Q)},oe=function(e){return te(e,ne)},le=1e3,ae=function(e,n,t){var r=function(e,n){if(n){var t=oe(e());return{baseModel:n,modelScope:(0,U.Z)(t).slice(0)}}var r=oe(e()),o=(0,U.Z)(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,t),o=r.baseModel,l=r.modelScope;if(o){var a=re(e()),i=[].concat((0,G.Z)(l),(0,G.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=(0,U.Z)(e),t=n[0],r=n.slice(1);return P(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(S).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat((0,G.Z)(n.map((function(e){return{label:(n=e,n.label?"".concat(n.fieldName," (").concat(n.label,")"):n.fieldName),value:e.fieldName,meta:e.type};var n}))),(0,G.Z)(t.map((function(e){return{label:(n=e,n.label?"".concat(n.relationName," (").concat(n.label,")"):n.relationName),value:e.relationName,meta:e.targetEntity};var n}))))}))})([o].concat((0,G.Z)(i))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:le}}));n(null,t)})).catch((function(e){return n(e)}))}},ie=function(e,n){return n?"".concat(e," (").concat(n,")"):e},ce=function(e){return P("entities").then(S).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(n){var t=n.map((function(e){var n=e.modelName,t=e.label;return{caption:ie(n,t),value:n,score:le}}));e(null,t)})).catch((function(n){return e(n)}))},se=function(){return V.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ue=function(e){return{getCompletions:function(n,t,r,o,l){var a=function(){return new Y(t,r.row,r.column)},i=a(),c=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(K(c)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,l,e);break;case"where":case"conjunction":ae(a,l,e),l(null,se());break;case"nice_function":l(null,se());break;case"find":ce(l);break;case"type":case"tocco_placeholder":case"comparison":l(null,q.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),l(null,F.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,l,e),s&&"relation"!==K(s)&&ce(l);break;case null:e&&ae(a,l,e),l(null,se())}}}};function de(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var fe=function(e){(0,R.Z)(t,e);var n=de(t);function t(){var e;return(0,_.Z)(this,t),(e=n.call(this)).HighlightRules=$,e.completer=ue(),e}return(0,C.Z)(t)}(a().require("ace/mode/ftl").Mode);function he(e){var n=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 t,r=(0,D.Z)(e);if(n){var o=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var pe,ge=function(e){(0,R.Z)(t,e);var n=he(t);function t(e){var r,o=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=z(o),r.completer=ue(o),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),be=t(85893),me=Z.ZP.div.withConfig({displayName:"StyledEditor"})(pe||(pe=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ve={groovy:function(){return new c.Mode},html:function(){return new s.Mode},xml:function(){return new p.Mode},properties:function(){return new f.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new fe},freemarkermixed:function(){return new fe},ftl:function(){return new fe},tql:function(e){return new ge(e)},less:function(){return new d.Mode},drools:function(){return new i.Mode},text:function(){return new h.Mode}},ye=function(e,n){var t=n.mode,o=n.theme,l=n.showGutter,a=n.editorOptions,i=void 0===a?{}:a;(function(e){return k()(e)?Promise.resolve(e):x()(e)?P("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(S).then((function(e){return b()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return b()(ve,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(o)),Object.entries(i).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],l=t[1];e.setOption(o,l)})),e.renderer.setShowGutter(l),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,l=e.onChange,i=e.showGutter,c=void 0===i||i,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,j.useRef)(null),h=(0,j.useRef)(null),p=(0,j.useMemo)((function(){return{mode:n,theme:r,showGutter:c,editorOptions:u,implicitModel:d}}),[n,r,c,u,d]);return(0,j.useEffect)((function(){var e=a().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return l(e.getValue())})),ye(e,p),h.current=e,function(){return e.destroy()}}),[]),(0,j.useEffect)((function(){h.current&&ye(h.current,p)}),[p]),(0,j.useEffect)((function(){h.current&&!v()(o)&&o!==h.current.getValue()&&h.current.getSession().setValue(o)}),[o]),(0,be.jsx)(me,{ref:f})}},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(52817),o=t(41609),l=t.n(o),a=(t(46444),t(41291)),i=t(85893);const c=function(e){var n=e.value,t=e.breakWords,o=(0,r._)(n),c=l()(o)?n:o.formatInternational();return(0,i.jsx)(a.Z,{href:"tel:".concat(n),target:"_blank",onClick:function(e){return e.stopPropagation()},label:c,breakWords:t})}},23710:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>K});var r=t(46927),o=t(72757),l=(t(46444),t(1024)),a=t(86896),i=t(44822),c=t(11259),s=t(32208),u=t(99357),d=t(19241),f=t(11820),h=t(39269),p=t(96840),g=t(75528),b=t(52079),m=t(84184),v=t(40569),y=t(75460),x=t(65761),w=t(53626),k=t(73043),j=t(16797),Z=t(71297),O=t(55444),P=t(6672),S=t(18195),C=t(23132),_=t(37060),R=t(4175),E=t(21094),D=t(20211),N=t(51778),T=t(87388),L=t(89906),A=t(41831);function I(e){var n=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 t,r=(0,d.Z)(e);if(n){var o=(0,d.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,u.Z)(this,t)}}var M=function(e){(0,s.Z)(t,e);var n=I(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,i.Z)(t)}(f.Z);M.builtinPlugins=[h.Z,p.Z,v.Z,y.Z,x.Z,w.Z,k.Z,Z.Z,j.Z,O.Z,P.Z,S.Z,g.Z,C.Z,_.Z,R.Z,E.Z,D.Z,N.Z,b.Z,T.Z,L.Z,A.Z,m.Z],M.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},link:{addTargetToExternalLinks:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const q=M;var F,V=t(91411),H=t(58804),z=t(56822),B=H.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(F||(F=(0,V.Z)(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,z.L)(e,"ckeditor")})),W=t(85893);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var G=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;default:return"de"}},Y=function(e){var n=e.value,t=e.onChange,r=e.contentLang,i=e.ckEditorConfig,c=(0,a.Z)().locale,s=(0,l.useRef)(!1);return(0,W.jsx)(B,{children:(0,W.jsx)(o.CKEditor,{editor:q,config:U({language:{ui:G(c),content:r}},i),data:n,onChange:function(e,n){if(n.plugins.get("SourceEditing").isSourceEditingMode){if(!0===s.current)return;s.current=!0}var r=n.getData();t(r)}})})};Y.defaultProps={value:"",contentLang:"de"};const K=Y},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>T,default:()=>L});var r,o=t(46927),l=t(46444),a=t.n(l),i=t(56315),c=t(23636),s=t(16785),u=t(46603),d=t(92590),f=t(30963),h=t(27361),p=t.n(h),g=t(91411),b=t(58804).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,g.Z)([""]))),m=t(85893),v=["icon","style","hasFixedWidth"];function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c.library.add(d.IJ7,u.IJ7,u.C65,u.kJo,u._tD,u.A35,u.mTx,u.ptq,u.g4A,u.r8p,u.Pk,u.g9M,u.Tab,d.Tab,u.NBC,u.eFW,u.acZ,u.u2A,u.gMD,u.cwv,u.w49,u.fUD,u.icc,u.ca9,u.Vmj,u.gSj,u.WFE,u.hQn,u.LEp,u.WV2,u.FU$,u.diR,u.f8k,s.xYR,s.neY,s.AYu,s.kBj,s.hVS,s.dc_,s.Av$,u.xiG,u.gJF,u.j1w,u.WKO,u.wn1,u.b7W,u.YHc,u.ZC5,u.UO1,d.Fyj,u.Qj4,u.FL8,u.foy,u.u9C,u.Fuz,u.iV1,u.Kl4,u.nYk,u.sqG,u.RLE,u.$aW,u.Zrf,u.jMV,u.pL1,u.g6h,u.SJY,u.qmU,u.nek,u.Qy6,u.lH_,d.pL1,u.hVM,u.yOf,u.Xgz,u.Mzg,u.r6l,u.IwR,u.aJJ,d.Alc,u.dLO,u.ntl,u.Hw7,u.FYs,u.$36,u.fT7,u.ioP,u.Cw9,u.Ry6,u.C3l,u.a1i,u.jGC,u.IeV,u.A8,u.hG5,u.FVb,u.AxY,u.mAj,u.hGM,u.UkD,u.BDt,u.QzV,u.py1,u.cf$,u.byT,u.dT$,u.G_j,u.A4,u.ar8,u.nNP,u.yGT,u.rux);var w=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,o=(0,i.Z)(e,v),l=n.includes(",")?n.replace(/\s+/,"").split(","):n,a=x({},p()(t,"color")&&{color:t.color});return(0,m.jsx)(b,{children:(0,m.jsx)(f.G,x(x({icon:l,style:t},a),{},{fixedWidth:r},o))})};w.defaultProps={hasFixedWidth:!0};const k=w,j=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"}}');var Z,O;function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C={logo:function(e){return(0,m.jsx)("svg",S(S({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Z||(Z=(0,m.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,m.jsx)("svg",S(S({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:O||(O=(0,m.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},_=function(e){var n=e.icon,t=e.style;return C[n](t)};_.propTypes={icon:a().string.isRequired,style:a().object};const R=_;function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N={fa:function(e,n){return(0,m.jsx)(k,D(D({},n),{},{icon:e.id}))},toc:function(e,n){return(0,m.jsx)(R,D(D({},n),{},{icon:e.id}))}},T=function(e){var n=j[e.icon];if(!n)return null;var t=N[n.lib];return t?t(n,e):null};T.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const L=T},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(46927),o=(t(46444),t(88162)),l=t(85893);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const c=function(e){var n=e.size,t=e.style,r=e.icon;return(0,l.jsx)(o.Z,i(i({},t),{},{style:{fontSize:n},spin:!0,icon:r||"circle-notch"}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,l,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:o};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);