tocco-devcon 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ 1.0.37
2
+ - show today button in datepicker
3
+
1
4
  1.0.36
2
5
  - fix datepicker max-, mind-date value for ranges
3
6
 
@@ -1 +1 @@
1
- (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Zr});var r,o=t(80467),i=t(21477),a=t(34206),c=t(46458),l=t(48479),s=t(1024),u=t.n(s),d=t(46927),f=(t(46444),t(44066)),p=t(70696),h=t(10535),g=t(78958),m=t(45915),v=t(91411),b=t(32678),y=t(37188);const x=(0,b.ZP)(y.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,v.Z)(["\n && {\n list-style-type: none;\n }\n"])));var w=t(85893);const j=function(e){return(0,w.jsx)(x,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var k,Z,O=t(88162),P=t(32884),S=t.n(P),C=t(88601),_=t(58664),R=(k={},(0,d.Z)(k,g.Z.condition.BASE,"inherit"),(0,d.Z)(k,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,d.Z)(k,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,d.Z)(k,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,d.Z)(k,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,d.Z)(k,g.Z.condition.INFO,C.Z.color("signal.info.text")),k),D=(0,b.ZP)(y.EF).withConfig({displayName:"StyledSignalListItem"})(Z||(Z=(0,v.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)}));D.propTypes={condition:g.Z.conditionPropTypes(R)};const E=D;var N,L,T=(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=T[e.condition];return n?(0,w.jsx)(O.Z,{icon:n,position:g.Z.position.SOLE}):L||(L=(0,w.jsx)("i",{children:"•"}))},I=function(e){return(0,w.jsxs)(E,{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:j,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,m.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,z,B,W,H,$=t(79686),U=t(7281),G=t(30759),Y=t(40953),K="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},J=b.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(F||(F=(0,v.Z)(["\n width: calc(100% - ",");\n"])),U.Z.space(.5)),X=b.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(V||(V=(0,v.Z)(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 1px ","; // 1px to prevent label bottom from being cut\n padding-left: ",";\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n ","\n pointer-events: auto;\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,G.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:1}),C.Z.color("paper"),(function(e){return Y.v[(n=e,t=n.isDisplay,r=n.immutable,o=n.signal,i=n.hasValue,o?"signal":i?"hasValue":t?"shade1":r?"shade0":o?"signal":"shade1")](e);var n,t,r,o,i}),U.Z.space(-2),U.Z.font(0),U.Z.space(-2),(function(e){return e.immutable&&"0"}),U.Z.font(0),(function(e){return Q(e)})),ee=b.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(z||(z=(0,v.Z)(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n ","\n ","\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\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"])),K,(function(e){return Y.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}),U.Z.space(-1),U.Z.space(-1),U.Z.space(-2),U.Z.space(-1),(function(e){return!e.immutable&&(0,_.kk)(e)}),(function(e){return Q(e)}),(function(e){return e.isDisplay&&U.Z.space(-1)}),(function(e){return e.immutable&&U.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&U.Z.space(-1)}),(function(e){return e.isDisplay&&"0"}),$.j,(function(e){return e.isDisplay&&U.Z.space(-1)})),ne=b.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(B||(B=(0,v.Z)(["\n &&& {\n ","\n }\n"])),(0,G.Z)({fontSize:U.Z.font(-1)})),te=b.ZP.div.withConfig({displayName:"StyledStatedValueError"})(W||(W=(0,v.Z)([""]))),re=b.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(H||(H=(0,v.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"])),U.Z.space(-1),U.Z.space(-2),ee,ne,te,U.Z.space(-2),ne,te,U.Z.space(-1),K,y.hc,U.Z.space(-2));function oe(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 ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ae=function(e){var n,t,r=e.children,o=e.description,i=e.dirty,a=e.isDisplay,c=e.error,l=e.hasValue,s=e.id,u=e.label,d=e.mandatory,m=e.mandatoryTitle,v=e.immutable,b=e.touched,y=e.signal,x=!v&&b&&c&&Object.keys(c).length>0,j="".concat(p.Z.adjustedHTMLString(u)).concat(d&&m?", ".concat(m):""),k=y||function(e,n,t,r){return n?g.Z.condition.DANGER:e?g.Z.condition.INFO:t&&!r?g.Z.condition.WARNING:void 0}(i,x,d,l);return(0,w.jsx)(f.Z,{children:function(e){var f=e.getRef;return(0,w.jsxs)(re,{ref:f,children:[(0,w.jsxs)(ee,{hasValue:l,immutable:v,isDisplay:a,signal:k,children:[r,u&&(0,w.jsx)(J,{children:(0,w.jsx)(X,ie(ie({},!a&&!v&&{htmlFor:s}),{},{hasValue:l,dirty:i,title:j,immutable:v,isDisplay:a,signal:k,children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(h.Z.sanitizeHtml(u)).concat(d?" *":"")}})}))})]}),o&&(n||(n=(0,w.jsx)(ne,{children:o}))),x&&(t||(t=(0,w.jsx)(te,{children:(0,w.jsx)(q,{error:c})})))]})}})};var ce,le,se=t(8342),ue=t(65035),de=t(28655),fe=t.n(de),pe=t(51032),he=b.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=fe()(["\n && {\n ","\n }\n"])),pe.k9),ge=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(le||(le=fe()(["\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,i=e.selectedFragments,a=e.ignoreErrors,c=e.running,l=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,p=e.setSelectedModules,h=e.setFragmentSelected,g=e.setVersion,m=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)(ae,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(se.Z,{options:t,value:r,onChange:p,isMulti:!0,immutable:l})}),(0,w.jsx)(ae,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:o,selectedFragments:i,disabled:l,setFragmentSelected:h})}),(0,w.jsx)(ae,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:l})})}),(0,w.jsx)(ae,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){m(e.target.checked)},disabled:l})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute",look:"raised",pending:c,disabled:l})]})};var be={loadModules:l.H6,loadFragments:l.VL,setSelectedModules:l.pi,setFragmentSelected:l.LO,setVersion:l.xO,setIgnoreErrors:l.Pm,executeDbRefactoring:l.KK};const ye=(0,c.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}}),be)(ve);const xe=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,i=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,w.jsx)(ae,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){i(e.target.value)},disabled:r})})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var we={setLanguage:l.m0,executeLanguageUpgrade:l.b7};const je=(0,c.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}}),we)(xe);var ke,Ze,Oe,Pe;const Se=function(){return(0,w.jsxs)(w.Fragment,{children:[ke||(ke=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Ze||(Ze=(0,w.jsx)(ye,{})),Oe||(Oe=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Pe||(Pe=(0,w.jsx)(je,{}))]})};var Ce,_e,Re,De,Ee,Ne,Le,Te=t(63038),Ae=t.n(Te),Ie={ERROR:"#a00"},Me=b.ZP.div.withConfig({displayName:"StyledLogTable"})(Ce||(Ce=fe()(["\n display: grid;\n gap: 1px;\n"]))),qe=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(_e||(_e=fe()(["\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(Ie[e.level]||"#ddd",";")})),Fe=b.ZP.span.withConfig({displayName:"StyledMessage"})(Re||(Re=fe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),Ve=b.ZP.span.withConfig({displayName:"StyledTime"})(De||(De=fe()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),ze=b.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Ee||(Ee=fe()(["\n margin-top: 1em;\n"]))),Be=b.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Ne||(Ne=fe()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),We=b.ZP.div.withConfig({displayName:"StyledStackTrace"})(Le||(Le=fe()(["\n && {\n ","\n }\n"])),(0,G.Z)()),He=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const $e=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:He(e)},n)}))})]})};const Ue=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ae()(t,2),o=r[0],i=r[1];return(0,w.jsxs)(qe,{level:n.level,children:[(0,w.jsx)(Fe,{onClick:function(){n.exception&&i(!o)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(Ve,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,w.jsx)($e,{exception:n.exception})]})};var Ge;const Ye=function(e){var n=e.entries;return(0,w.jsx)(Me,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ue,{entry:e},e.key)})):Ge||(Ge=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Ke=(0,c.connect)((function(e){return{entries:e.log.entries}}),{})(Ye);var Qe,Je;const Xe=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Je||(Je=(0,w.jsx)(Ke,{}))]})};var en,nn,tn=t(49478),rn=b.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(en||(en=fe()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),on=b.ZP.div.withConfig({displayName:"StyledGroupHeading"})(nn||(nn=fe()(["\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 i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}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 ln=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,i=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)(rn,{children:[(0,w.jsxs)(on,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:i,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 sn=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,i=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(ue.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(ue.Z,{look:"raised",onClick:i,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)(ln,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var un={setSelected:tn.Pq,generateSql:tn.$i,generateChangelog:tn._w};const dn=(0,c.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),un)(sn);var fn,pn,hn,gn=b.ZP.div.withConfig({displayName:"StyledProgressBar"})(fn||(fn=fe()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=b.ZP.div.withConfig({displayName:"StyledInnerProgress"})(pn||(pn=fe()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),vn=b.ZP.div.withConfig({displayName:"StyledProgressText"})(hn||(hn=fe()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bn=function(e){return e.result?e.result:e.running?e.total?"".concat(yn(e),"%"):"Preparing...":"Not started"},yn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const xn=function(e){var n=e.state;return(0,w.jsxs)(gn,{children:[(0,w.jsx)(mn,{percentage:yn(n)}),(0,w.jsx)(vn,{children:bn(n)})]})};const wn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ue.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(xn,{state:n})]})};var jn={startValidation:tn.YV};const kn=(0,c.connect)((function(e){return{state:e.modelValidation.state}}),jn)(wn);var Zn,On,Pn;const Sn=function(){return(0,w.jsxs)(w.Fragment,{children:[Zn||(Zn=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),On||(On=(0,w.jsx)(kn,{})),Pn||(Pn=(0,w.jsx)(dn,{}))]})};var Cn=t(22541),_n=t(87852),Rn=t.n(_n),Dn=t(2091),En=t(84137),Nn=t(30381),Ln=t.n(Nn);function Tn(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 An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Tn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var In="YYYY-MM-DD[T]HH:mm:ss.SSS[Z]",Mn="YYYY-MM-DD";const qn={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?Ln()(e).utc().format(In):null,to:e?Ln()(e).utc().add(1,"d").format(In):null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?Ln().utc(e.from,In).local().format(Mn):e&&e.to?Ln().utc(e.to,In).local().format(Mn):null},getToOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}}};var Fn,Vn,zn,Bn,Wn,Hn,$n,Un=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Fn||(Fn=(0,v.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Gn=b.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})(Vn||(Vn=(0,v.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n line-height: unset !important;\n text-align: center;\n }\n"]))),Yn=b.ZP.div.withConfig({displayName:"StyledIconWrapper"})(zn||(zn=(0,v.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),U.Z.font(-2.7)),Kn=b.ZP.div.withConfig({displayName:"StyledRange"})(Bn||(Bn=(0,v.Z)(["\n display: flex;\n"]))),Qn=b.ZP.div.withConfig({displayName:"StyledInput"})(Wn||(Wn=(0,v.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),Jn=b.ZP.div.withConfig({displayName:"StyledExtender"})(Hn||(Hn=(0,v.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function Xn(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 et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const nt=function(e){var n,t,r=e.value,o=e.events,i=e.readOnly,a=e.type,c=e.options,l=e.fromText,u=e.toText,d=(null==r?void 0:r.isRangeValue)||!1,f=(0,s.useRef)(r);f.current=r;var p=(0,s.useMemo)((function(){return et(et({},o),{},{onChange:function(e){o.onChange(e)}})}),[o]),h={onChange:function(e){o.onChange(et(et({},f.current),{},{to:e}))}},g={onChange:function(e){o.onChange(et(et({},f.current),{},{from:e}))}},m=qn[a],v=(null==m||null===(n=m.icons)||void 0===n?void 0:n.range)||"chevron-down",b=(null==m||null===(t=m.icons)||void 0===t?void 0:t.single)||"chevron-left",y=(null==m?void 0:m.type)||a;return(0,w.jsxs)(Kn,{children:[(0,w.jsx)(Un,{children:d?(0,w.jsxs)(Qn,{children:[(0,w.jsx)(Gn,{children:(0,w.jsx)(En.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getFromOptions?m.getFromOptions(e,n):e}(c,r.to),value:(null==r?void 0:r.from)||null,events:g,placeholder:l}))}),$n||($n=(0,w.jsx)(Yn,{children:(0,w.jsx)(O.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Gn,{children:(0,w.jsx)(En.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getToOptions?m.getToOptions(e,n):e}(c,r.from),value:(null==r?void 0:r.to)||null,events:h,placeholder:u}))})]}):(0,w.jsx)(En.Z,et(et({type:y},Rn()(e,["type"])),{},{events:p}))}),(0,w.jsx)(Jn,{children:(0,w.jsx)(Dn.Z,{disabled:i,icon:d?b:v,onClick:function(){var e=d?function(e){return null!=m&&m.fromRange?m.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r):function(e){return null!=m&&m.toRange?m.toRange(e):{from:e,to:e,isRangeValue:!0}}(r);o.onChange(e)}})})]})};const tt=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ae,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ae,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(nt,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var rt={setActive:Cn.Iv,setElapsed:Cn.uI};const ot=(0,c.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),rt)(tt);var it,at,ct,lt,st,ut,dt,ft={ERROR:"#a00"},pt=b.ZP.div.withConfig({displayName:"StyledLogTable"})(it||(it=fe()(["\n display: grid;\n gap: 1px;\n"]))),ht=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(at||(at=fe()(["\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(ft[e.level]||"#ddd",";")})),gt=b.ZP.span.withConfig({displayName:"StyledStatementHeader"})(ct||(ct=fe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),mt=b.ZP.span.withConfig({displayName:"StyledStatement"})(lt||(lt=fe()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),vt=b.ZP.span.withConfig({displayName:"StyledTime"})(st||(st=fe()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bt=b.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(ut||(ut=fe()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),yt=b.ZP.span.withConfig({displayName:"StyledElapsed"})(dt||(dt=fe()(["\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 xt=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ae()(t,2),o=r[0],i=r[1],a=n.sql.length>100,c=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(ht,{children:[(0,w.jsx)(gt,{expandable:a,onClick:function(){a&&i(!o)},children:c}),o&&(0,w.jsx)(mt,{children:n.sql}),(0,w.jsx)(vt,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(bt,{children:(0,w.jsxs)(yt,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var wt;const jt=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)(pt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(xt,{entry:e},e.key)})):wt||(wt=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const kt=(0,c.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(jt);var Zt,Ot,Pt;const St=function(){return(0,w.jsxs)(w.Fragment,{children:[Zt||(Zt=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Ot||(Ot=(0,w.jsx)(ot,{})),Pt||(Pt=(0,w.jsx)(kt,{}))]})};function Ct(e,n){return Ct=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Ct(e,n)}function _t(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ct(e,n)}function Rt(){return Rt=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},Rt.apply(this,arguments)}function Dt(e){return"/"===e.charAt(0)}function Et(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 Nt=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],i=e&&Dt(e),a=n&&Dt(n),c=i||a;if(e&&Dt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];t="."===l||".."===l||""===l}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Et(o,u):".."===d?(Et(o,u),s++):s&&(Et(o,u),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&Dt(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Lt=t(2177);function Tt(e){return"/"===e.charAt(0)?e:"/"+e}function At(e){return"/"===e.charAt(0)?e.substr(1):e}function It(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 Mt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function qt(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 Ft(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 i=n.indexOf("?");return-1!==i&&(t=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),o.state=n):(void 0===(o=Rt({},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=Nt(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Vt(){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 i="function"==typeof e?e(n,t):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}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 zt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Bt(e,n){n(window.confirm(e))}var Wt="popstate",Ht="hashchange";function $t(){try{return window.history.state||{}}catch(e){return{}}}function Ut(e){void 0===e&&(e={}),zt||(0,Lt.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")),i=e,a=i.forceRefresh,c=void 0!==a&&a,l=i.getUserConfirmation,s=void 0===l?Bt:l,u=i.keyLength,d=void 0===u?6:u,f=e.basename?Mt(Tt(e.basename)):"";function p(e){var n=e||{},t=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return f&&(i=It(i,f)),Ft(i,r,t)}function h(){return Math.random().toString(36).substr(2,d)}var g=Vt();function m(e){Rt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(p(e.state))}function b(){x(p($t()))}var y=!1;function x(e){if(y)y=!1,m();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?m({action:"POP",location:e}):function(e){var n=C.location,t=j.indexOf(n.key);-1===t&&(t=0);var r=j.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,Z(o))}(e)}))}}var w=p($t()),j=[w.key];function k(e){return f+qt(e)}function Z(e){t.go(e)}var O=0;function P(e){1===(O+=e)&&1===e?(window.addEventListener(Wt,v),o&&window.addEventListener(Ht,b)):0===O&&(window.removeEventListener(Wt,v),o&&window.removeEventListener(Ht,b))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:k,push:function(e,n){var o="PUSH",i=Ft(e,n,h(),C.location);g.confirmTransitionTo(i,o,s,(function(e){if(e){var n=k(i),a=i.key,l=i.state;if(r)if(t.pushState({key:a,state:l},null,n),c)window.location.href=n;else{var s=j.indexOf(C.location.key),u=j.slice(0,s+1);u.push(i.key),j=u,m({action:o,location:i})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",i=Ft(e,n,h(),C.location);g.confirmTransitionTo(i,o,s,(function(e){if(e){var n=k(i),a=i.key,l=i.state;if(r)if(t.replaceState({key:a,state:l},null,n),c)window.location.replace(n);else{var s=j.indexOf(C.location.key);-1!==s&&(j[s]=i.key),m({action:o,location:i})}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 Gt="hashchange",Yt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+At(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:At,decodePath:Tt},slash:{encodePath:Tt,decodePath:Tt}};function Kt(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function Qt(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function Jt(e){window.location.replace(Kt(window.location.href)+"#"+e)}function Xt(e){void 0===e&&(e={}),zt||(0,Lt.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?Bt:r,i=t.hashType,a=void 0===i?"slash":i,c=e.basename?Mt(Tt(e.basename)):"",l=Yt[a],s=l.encodePath,u=l.decodePath;function d(){var e=u(Qt());return c&&(e=It(e,c)),Ft(e)}var f=Vt();function p(e){Rt(O,e),O.length=n.length,f.notifyListeners(O.location,O.action)}var h=!1,g=null;function m(){var e,n,t=Qt(),r=s(t);if(t!==r)Jt(r);else{var i=d(),a=O.location;if(!h&&(n=i,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===qt(i))return;g=null,function(e){if(h)h=!1,p();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?p({action:n,location:e}):function(e){var n=O.location,t=x.lastIndexOf(qt(n));-1===t&&(t=0);var r=x.lastIndexOf(qt(e));-1===r&&(r=0);var o=t-r;o&&(h=!0,w(o))}(e)}))}}(i)}}var v=Qt(),b=s(v);v!==b&&Jt(b);var y=d(),x=[qt(y)];function w(e){n.go(e)}var j=0;function k(e){1===(j+=e)&&1===e?window.addEventListener(Gt,m):0===j&&window.removeEventListener(Gt,m)}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=Kt(window.location.href)),t+"#"+s(c+qt(e))},push:function(e,n){var t="PUSH",r=Ft(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=qt(r),o=s(c+n);if(Qt()!==o){g=n,function(e){window.location.hash=e}(o);var i=x.lastIndexOf(qt(O.location)),a=x.slice(0,i+1);a.push(n),x=a,p({action:t,location:r})}else p()}}))},replace:function(e,n){var t="REPLACE",r=Ft(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=qt(r),o=s(c+n);Qt()!==o&&(g=n,Jt(o));var i=x.indexOf(qt(O.location));-1!==i&&(x[i]=n),p({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||(k(1),Z=!0),function(){return Z&&(Z=!1,k(-1)),n()}},listen:function(e){var n=f.appendListener(e);return k(1),function(){k(-1),n()}}};return O}t(94662);function er(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}u().Component;u().Component;var nr=function(e,n){return"function"==typeof e?e(n):e},tr=function(e,n){return"string"==typeof e?Ft(e,null,null,n):e},rr=function(e){return e},or=u().forwardRef;void 0===or&&(or=rr);var ir=or((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,i=er(e,["innerRef","navigate","onClick"]),a=i.target,c=Rt({},i,{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 c.ref=rr!==or&&n||t,u().createElement("a",c)}));var ar=or((function(e,n){var t=e.component,r=void 0===t?ir:t,i=e.replace,a=e.to,c=e.innerRef,l=er(e,["component","replace","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Lt.Z)(!1);var t=e.history,o=tr(nr(a,e.location),e.location),s=o?t.createHref(o):"",d=Rt({},l,{href:s,navigate:function(){var n=nr(a,e.location),r=qt(e.location)===qt(tr(n));(i||r?t.replace:t.push)(n)}});return rr!==or?d.ref=n||c:d.innerRef=c,u().createElement(r,d)}))})),cr=function(e){return e},lr=u().forwardRef;void 0===lr&&(lr=cr);var sr;lr((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,i=e.activeClassName,a=void 0===i?"active":i,c=e.activeStyle,l=e.className,s=e.exact,d=e.isActive,f=e.location,p=e.sensitive,h=e.strict,g=e.style,m=e.to,v=e.innerRef,b=er(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,Lt.Z)(!1);var t=f||e.location,i=tr(nr(m,t),t),y=i.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,o.LX)(t.pathname,{path:x,exact:s,sensitive:p,strict:h}):null,j=!!(d?d(w,t):w),k="function"==typeof l?l(j):l,Z="function"==typeof g?g(j):g;j&&(k=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(" ")}(k,a),Z=Rt({},Z,c));var O=Rt({"aria-current":j&&r||null,className:k,style:Z,to:i},b);return cr!==lr?O.ref=n||v:O.innerRef=v,u().createElement(ar,O)}))}));const ur=(0,b.ZP)(ar)(sr||(sr=(0,v.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,G.Z)(),C.Z.color("secondary"),C.Z.color("text"),C.Z.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 dr,fr,pr,hr,gr,mr,vr,br,yr,xr,wr=b.ZP.div.withConfig({displayName:"StyledDevCon"})(dr||(dr=fe()(["\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"),U.Z.space(0)),jr=b.ZP.div.withConfig({displayName:"StyledNavigation"})(fr||(fr=fe()(["\n display: flex;\n"]))),kr=(0,b.ZP)(ur).withConfig({displayName:"StyledRouterLink"})(pr||(pr=fe()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Zr=function(){return(0,w.jsxs)(wr,{children:[hr||(hr=(0,w.jsx)(i.Z.Notifications,{})),gr||(gr=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),mr||(mr=(0,w.jsxs)(jr,{children:[(0,w.jsx)(kr,{to:"/log",children:"Log"}),(0,w.jsx)(kr,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(kr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(kr,{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 vr||(vr=(0,w.jsx)(Xe,{}))}}),(0,w.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return br||(br=(0,w.jsx)(Se,{}))}}),(0,w.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return yr||(yr=(0,w.jsx)(Sn,{}))}}),(0,w.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return xr||(xr=(0,w.jsx)(St,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>xe});var r=t(68957),o=t(91411),i=t(86249),a=t.n(i),c=(t(58900),t(78634)),l=t(84100),s=t(60131),u=t(48230),d=t(64952),f=t(469),p=t(81896),h=t(46940),g=t(32884),m=t.n(g),v=t(40021),b=t.n(v),y=t(11203),x=t.n(y),w=t(72730),j=t.n(w),k=t(1024),Z=t(32678),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),D=t(88098),E=t(19241),N=(t(70646),t(74085)),L=t.n(N),T=t(77654),A=t.n(T),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 z(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.Z)(this,t)}}const B=function(e){return function(n){(0,R.Z)(r,n);var t=z(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"}],i={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,i,(function(e,n){return L()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function W(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.Z)(this,t)}}var H=function(e){(0,R.Z)(t,e);var n=W(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=W(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 i in e.$rules)e.$rules[i].unshift.apply(e.$rules[i],o);e.embedRules(H,"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(B(),"tql-",a,["start"]);var c={"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,c,(function(e,n){return L()(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},Q=function(e,n){return K(e.getCurrentToken())===n},J=function(e){if(Q(e,"model")&&e.stepBackward(),(Q(e,"field")||Q(e,"relation"))&&e.stepBackward(),!Q(e,"chaining"))return null;if(e.stepBackward(),Q(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!Q(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return Q(e,"rparen")?1:n>0&&Q(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&Q(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,G.Z)(re(e))):[]}if(Q(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,J)},oe=function(e){return te(e,ne)},ie=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,i=r.modelScope;if(o){var a=re(e()),c=[].concat((0,G.Z)(i),(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)(c))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ie}}));n(null,t)})).catch((function(e){return n(e)}))}},ce=function(e,n){return n?"".concat(e," (").concat(n,")"):e},le=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:ce(n,t),value:n,score:ie}}));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,i){var a=function(){return new Y(t,r.row,r.column)},c=a(),l=c.getCurrentToken(),s=c.stepBackward()?c.getCurrentToken():null;switch(K(l)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,i,e);break;case"where":case"conjunction":ae(a,i,e),i(null,se());break;case"nice_function":i(null,se());break;case"find":le(i);break;case"type":case"tocco_placeholder":case"comparison":i(null,q.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),i(null,F.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,i,e),s&&"relation"!==K(s)&&le(i);break;case null:e&&ae(a,i,e),i(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.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 pe(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.Z)(this,t)}}var he,ge=function(e){(0,R.Z)(t,e);var n=pe(t);function t(e){var r,o=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=B(o),r.completer=ue(o),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),me=t(85893),ve=Z.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),be={groovy:function(){return new l.Mode},html:function(){return new s.Mode},xml:function(){return new h.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 c.Mode},text:function(){return new p.Mode}},ye=function(e,n){var t=n.mode,o=n.theme,i=n.showGutter,a=n.editorOptions,c=void 0===a?{}:a;(function(e){return j()(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 m()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return m()(be,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(o)),Object.entries(c).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1];e.setOption(o,i)})),e.renderer.setShowGutter(i),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,i=e.onChange,c=e.showGutter,l=void 0===c||c,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,k.useRef)(null),p=(0,k.useRef)(null),h=(0,k.useMemo)((function(){return{mode:n,theme:r,showGutter:l,editorOptions:u,implicitModel:d}}),[n,r,l,u,d]);return(0,k.useEffect)((function(){var e=a().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return i(e.getValue())})),ye(e,h),p.current=e,function(){return e.destroy()}}),[]),(0,k.useEffect)((function(){p.current&&ye(p.current,h)}),[h]),(0,k.useEffect)((function(){p.current&&!b()(o)&&o!==p.current.getValue()&&p.current.getSession().setValue(o)}),[o]),(0,me.jsx)(ve,{ref:f})}},91860:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>C});var r,o,i,a=t(68957),c=(t(44661),t(46444),t(1024)),l=t(12520),s=t.n(l),u=t(74806),d=t(32678),f=t(2091),p=t(5429),h=t(24788),g=t(4347),m=t(98546),v=t(23359),b=function(e){var n=(0,p.default)(e);return isNaN(n)?null:n},y=t(91411),x=t(30759),w=t(51032),j=d.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(r||(r=(0,y.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),k=d.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(o||(o=(0,y.Z)(["\n && {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),w.yP,w.k9,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Z=d.ZP.input.withConfig({displayName:"StyledTimeInput"})(i||(i=(0,y.Z)(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,x.Z)()),O=t(85893);(0,l.registerLocale)("de-CH",h.Z),(0,l.registerLocale)("de",h.Z),(0,l.registerLocale)("en",g.Z),(0,l.registerLocale)("fr",m.Z),(0,l.registerLocale)("it",v.Z),(0,l.setDefaultLocale)("de");var P="react-datepicker-time__input",S=function(e){var n=e.value,t=e.onChange,r=e.onKeyDown;return(0,O.jsx)(Z,{type:"time",className:P,required:!0,value:n,onKeyDown:r,onChange:function(e){t&&t(e.target.value)},onClick:function(e){e.target.focus()}})};const C=(0,d.Zz)((0,u.ZP)((function(e){var n,t=e.immutable,r=e.id,o=e.value,i=e.minDate,l=e.maxDate,u=e.onChange,d=e.intl,p=e.placeholder,h=e.hasTime,g=e.dateFormat,m=d.locale,v=(0,c.useRef)(null),y=(0,c.useRef)(null),x=(0,c.useState)(!1),w=(0,a.Z)(x,2),Z=w[0],C=w[1],_=!!o,R=b(o),D=i?b(i):void 0,E=l?b(l):void 0,N=function(e){var n,t;(C(e),null!==(n=y.current)&&void 0!==n&&n.setPreSelection)&&(null===(t=y.current)||void 0===t||t.setPreSelection(R))},L=function(e){"Tab"!==e.key||e.shiftKey||(e.target.classList.contains("react-datepicker__day")?h?function(e){var n=e.querySelector("input.".concat(P));n&&n.focus()}(v.current):N(!1):function(e){return e.classList.contains(P)}(e.target)&&N(!1)),function(e){return e.classList.contains("react-datepicker-ignore-onclickoutside")}(e.target)&&"Tab"===e.key&&e.shiftKey&&N(!1),"Enter"===e.key&&(N(!1),e.preventDefault(),e.stopPropagation())};return(0,O.jsx)(j,{immutable:t,id:r,tabIndex:"-1",children:(0,O.jsxs)(k,{immutable:t,ref:v,hasTime:h,children:[(0,O.jsx)(s(),{ref:y,selected:R,onChange:function(e){e&&u(e.toISOString())},disabled:t,showTimeInput:h,dateFormat:g,showPopperArrow:!1,placeholderText:p,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",open:Z,onFocus:function(){N(!0)},onClickOutside:function(){N(!1)},locale:m,onKeyDown:L,customTimeInput:(0,O.jsx)(S,{onKeyDown:L}),enableTabLoop:!1,timeInputLabel:"",minDate:D,maxDate:E}),!t&&_&&(0,O.jsx)(f.Z,{icon:"times",tabIndex:-1,"aria-label":(n="client.component.dateAbstract.clearDateLabel",d.formatMessage({id:n})),onMouseDown:function(e){e.preventDefault(),u(null)}})]})})})))},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var r=t(97044),o=t(96098),i=t.n(o),a=(t(46444),t(34206)),c=t(85893);const l=function(e){var n=e.value,t=e.breakWords,o=(0,r._)(n),l=i()(o)?n:o.formatInternational();return(0,c.jsx)(a.ZP.Span,{breakWords:t,children:l})}},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>E,default:()=>N});var r,o=t(46927),i=t(46444),a=t.n(i),c=t(78947),l=t(99245),s=t(68019),u=t(70457),d=t(30963),f=t(32884),p=t.n(f),h=t(91411),g=t(32678).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,h.Z)([""]))),m=t(85893);function v(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c.library.add(s.C65,s.kJo,s._tD,s.A35,s.mTx,s.ptq,s.g4A,s.r8p,s.Pk,s.g9M,s.Tab,u.Tab,s.NBC,s.eFW,s.acZ,s.u2A,s.gMD,s.cwv,s.w49,s.fUD,s.icc,s.ca9,s.Vmj,s.gSj,s.WFE,s.hQn,s.LEp,s.WV2,s.diR,s.f8k,l.xYR,l.neY,l.AYu,l.kBj,l.hVS,l.dc_,l.Av$,s.xiG,s.gJF,s.j1w,s.WKO,s.wn1,s.b7W,s.YHc,s.ZC5,s.UO1,u.Fyj,s.Qj4,s.FL8,s.foy,s.u9C,s.Fuz,s.iV1,s.Kl4,s.nYk,s.sqG,s.RLE,s.$aW,s.Zrf,s.pL1,s.g6h,s.SJY,s.qmU,s.nek,s.Qy6,u.pL1,s.hVM,s.yOf,s.Xgz,s.Mzg,s.r6l,s.IwR,u.Alc,s.dLO,s.ntl,s.Hw7,s.FYs,s.$36,s.Ry6,s.C3l,s.a1i,s.IeV,s.A8,s.hG5,s.FVb,s.AxY,s.mAj,s.hGM,s.UkD,s.BDt,s.QzV,s.py1,s.cf$,s.byT,s.dT$,s.G_j,s.A4,s.ar8);var y=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth;return(0,m.jsx)(g,{children:(0,m.jsx)(d.G,b(b({icon:n.includes(",")?n.replace(/\s+/,"").split(","):n,style:t},p()(t,"color")&&{color:t.color}),{},{fixedWidth:r}))})};y.defaultProps={hasFixedWidth:!0};const x=y,w=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"]},"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-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"]},"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"]},"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"},"list":{"id":"fal, list","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"},"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"}}');var j,k;function Z(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 O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P={logo:function(e){return(0,m.jsx)("svg",O(O({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:j||(j=(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",O(O({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:k||(k=(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"}))}))}},S=function(e){var n=e.icon,t=e.style;return P[n](t)};S.propTypes={icon:a().string.isRequired,style:a().object};const C=S;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 R(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,o.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 D={fa:function(e,n){return(0,m.jsx)(x,R(R({},n),{},{icon:e.id}))},toc:function(e,n){return(0,m.jsx)(C,R(R({},n),{},{icon:e.id}))}},E=function(e){var n=w[e.icon];if(!n)return null;var t=D[n.lib];return t?t(n,e):null};E.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const N=E},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(46927),o=t(70457),i=t(30963),a=(t(46444),t(85893));function c(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 l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const s=function(e){var n=e.size,t=e.style;return(0,a.jsx)(i.G,l(l({},t),{},{style:{fontSize:n},spin:!0,icon:o.IJ7}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,a){if(a!==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 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:i,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"}}]);
1
+ (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Zr});var r,o=t(80467),i=t(21477),a=t(34206),c=t(46458),l=t(48479),s=t(1024),u=t.n(s),d=t(46927),f=(t(46444),t(44066)),p=t(70696),h=t(10535),g=t(78958),m=t(45915),v=t(91411),b=t(32678),y=t(37188);const x=(0,b.ZP)(y.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,v.Z)(["\n && {\n list-style-type: none;\n }\n"])));var w=t(85893);const j=function(e){return(0,w.jsx)(x,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var k,Z,O=t(88162),P=t(32884),S=t.n(P),C=t(88601),_=t(58664),R=(k={},(0,d.Z)(k,g.Z.condition.BASE,"inherit"),(0,d.Z)(k,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,d.Z)(k,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,d.Z)(k,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,d.Z)(k,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,d.Z)(k,g.Z.condition.INFO,C.Z.color("signal.info.text")),k),D=(0,b.ZP)(y.EF).withConfig({displayName:"StyledSignalListItem"})(Z||(Z=(0,v.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)}));D.propTypes={condition:g.Z.conditionPropTypes(R)};const E=D;var N,L,T=(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=T[e.condition];return n?(0,w.jsx)(O.Z,{icon:n,position:g.Z.position.SOLE}):L||(L=(0,w.jsx)("i",{children:"•"}))},I=function(e){return(0,w.jsxs)(E,{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:j,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,m.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,z,B,W,H,$=t(79686),U=t(7281),G=t(30759),Y=t(40953),K="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},J=b.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(F||(F=(0,v.Z)(["\n width: calc(100% - ",");\n"])),U.Z.space(.5)),X=b.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(V||(V=(0,v.Z)(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 1px ","; // 1px to prevent label bottom from being cut\n padding-left: ",";\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n ","\n pointer-events: auto;\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,G.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:1}),C.Z.color("paper"),(function(e){return Y.v[(n=e,t=n.isDisplay,r=n.immutable,o=n.signal,i=n.hasValue,o?"signal":i?"hasValue":t?"shade1":r?"shade0":o?"signal":"shade1")](e);var n,t,r,o,i}),U.Z.space(-2),U.Z.font(0),U.Z.space(-2),(function(e){return e.immutable&&"0"}),U.Z.font(0),(function(e){return Q(e)})),ee=b.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(z||(z=(0,v.Z)(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n ","\n ","\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\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"])),K,(function(e){return Y.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}),U.Z.space(-1),U.Z.space(-1),U.Z.space(-2),U.Z.space(-1),(function(e){return!e.immutable&&(0,_.kk)(e)}),(function(e){return Q(e)}),(function(e){return e.isDisplay&&U.Z.space(-1)}),(function(e){return e.immutable&&U.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&U.Z.space(-1)}),(function(e){return e.isDisplay&&"0"}),$.j,(function(e){return e.isDisplay&&U.Z.space(-1)})),ne=b.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(B||(B=(0,v.Z)(["\n &&& {\n ","\n }\n"])),(0,G.Z)({fontSize:U.Z.font(-1)})),te=b.ZP.div.withConfig({displayName:"StyledStatedValueError"})(W||(W=(0,v.Z)([""]))),re=b.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(H||(H=(0,v.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"])),U.Z.space(-1),U.Z.space(-2),ee,ne,te,U.Z.space(-2),ne,te,U.Z.space(-1),K,y.hc,U.Z.space(-2));function oe(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 ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ae=function(e){var n,t,r=e.children,o=e.description,i=e.dirty,a=e.isDisplay,c=e.error,l=e.hasValue,s=e.id,u=e.label,d=e.mandatory,m=e.mandatoryTitle,v=e.immutable,b=e.touched,y=e.signal,x=!v&&b&&c&&Object.keys(c).length>0,j="".concat(p.Z.adjustedHTMLString(u)).concat(d&&m?", ".concat(m):""),k=y||function(e,n,t,r){return n?g.Z.condition.DANGER:e?g.Z.condition.INFO:t&&!r?g.Z.condition.WARNING:void 0}(i,x,d,l);return(0,w.jsx)(f.Z,{children:function(e){var f=e.getRef;return(0,w.jsxs)(re,{ref:f,children:[(0,w.jsxs)(ee,{hasValue:l,immutable:v,isDisplay:a,signal:k,children:[r,u&&(0,w.jsx)(J,{children:(0,w.jsx)(X,ie(ie({},!a&&!v&&{htmlFor:s}),{},{hasValue:l,dirty:i,title:j,immutable:v,isDisplay:a,signal:k,children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(h.Z.sanitizeHtml(u)).concat(d?" *":"")}})}))})]}),o&&(n||(n=(0,w.jsx)(ne,{children:o}))),x&&(t||(t=(0,w.jsx)(te,{children:(0,w.jsx)(q,{error:c})})))]})}})};var ce,le,se=t(8342),ue=t(65035),de=t(28655),fe=t.n(de),pe=t(51032),he=b.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=fe()(["\n && {\n ","\n }\n"])),pe.k9),ge=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(le||(le=fe()(["\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,i=e.selectedFragments,a=e.ignoreErrors,c=e.running,l=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,p=e.setSelectedModules,h=e.setFragmentSelected,g=e.setVersion,m=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)(ae,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(se.Z,{options:t,value:r,onChange:p,isMulti:!0,immutable:l})}),(0,w.jsx)(ae,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:o,selectedFragments:i,disabled:l,setFragmentSelected:h})}),(0,w.jsx)(ae,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:l})})}),(0,w.jsx)(ae,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){m(e.target.checked)},disabled:l})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute",look:"raised",pending:c,disabled:l})]})};var be={loadModules:l.H6,loadFragments:l.VL,setSelectedModules:l.pi,setFragmentSelected:l.LO,setVersion:l.xO,setIgnoreErrors:l.Pm,executeDbRefactoring:l.KK};const ye=(0,c.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}}),be)(ve);const xe=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,i=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,w.jsx)(ae,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){i(e.target.value)},disabled:r})})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var we={setLanguage:l.m0,executeLanguageUpgrade:l.b7};const je=(0,c.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}}),we)(xe);var ke,Ze,Oe,Pe;const Se=function(){return(0,w.jsxs)(w.Fragment,{children:[ke||(ke=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Ze||(Ze=(0,w.jsx)(ye,{})),Oe||(Oe=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Pe||(Pe=(0,w.jsx)(je,{}))]})};var Ce,_e,Re,De,Ee,Ne,Le,Te=t(63038),Ae=t.n(Te),Ie={ERROR:"#a00"},Me=b.ZP.div.withConfig({displayName:"StyledLogTable"})(Ce||(Ce=fe()(["\n display: grid;\n gap: 1px;\n"]))),qe=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(_e||(_e=fe()(["\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(Ie[e.level]||"#ddd",";")})),Fe=b.ZP.span.withConfig({displayName:"StyledMessage"})(Re||(Re=fe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),Ve=b.ZP.span.withConfig({displayName:"StyledTime"})(De||(De=fe()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),ze=b.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Ee||(Ee=fe()(["\n margin-top: 1em;\n"]))),Be=b.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Ne||(Ne=fe()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),We=b.ZP.div.withConfig({displayName:"StyledStackTrace"})(Le||(Le=fe()(["\n && {\n ","\n }\n"])),(0,G.Z)()),He=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const $e=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:He(e)},n)}))})]})};const Ue=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ae()(t,2),o=r[0],i=r[1];return(0,w.jsxs)(qe,{level:n.level,children:[(0,w.jsx)(Fe,{onClick:function(){n.exception&&i(!o)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(Ve,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,w.jsx)($e,{exception:n.exception})]})};var Ge;const Ye=function(e){var n=e.entries;return(0,w.jsx)(Me,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ue,{entry:e},e.key)})):Ge||(Ge=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Ke=(0,c.connect)((function(e){return{entries:e.log.entries}}),{})(Ye);var Qe,Je;const Xe=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Je||(Je=(0,w.jsx)(Ke,{}))]})};var en,nn,tn=t(49478),rn=b.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(en||(en=fe()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),on=b.ZP.div.withConfig({displayName:"StyledGroupHeading"})(nn||(nn=fe()(["\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 i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}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 ln=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,i=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)(rn,{children:[(0,w.jsxs)(on,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:i,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 sn=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,i=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(ue.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(ue.Z,{look:"raised",onClick:i,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)(ln,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var un={setSelected:tn.Pq,generateSql:tn.$i,generateChangelog:tn._w};const dn=(0,c.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),un)(sn);var fn,pn,hn,gn=b.ZP.div.withConfig({displayName:"StyledProgressBar"})(fn||(fn=fe()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=b.ZP.div.withConfig({displayName:"StyledInnerProgress"})(pn||(pn=fe()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),vn=b.ZP.div.withConfig({displayName:"StyledProgressText"})(hn||(hn=fe()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bn=function(e){return e.result?e.result:e.running?e.total?"".concat(yn(e),"%"):"Preparing...":"Not started"},yn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const xn=function(e){var n=e.state;return(0,w.jsxs)(gn,{children:[(0,w.jsx)(mn,{percentage:yn(n)}),(0,w.jsx)(vn,{children:bn(n)})]})};const wn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ue.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(xn,{state:n})]})};var jn={startValidation:tn.YV};const kn=(0,c.connect)((function(e){return{state:e.modelValidation.state}}),jn)(wn);var Zn,On,Pn;const Sn=function(){return(0,w.jsxs)(w.Fragment,{children:[Zn||(Zn=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),On||(On=(0,w.jsx)(kn,{})),Pn||(Pn=(0,w.jsx)(dn,{}))]})};var Cn=t(22541),_n=t(87852),Rn=t.n(_n),Dn=t(2091),En=t(84137),Nn=t(30381),Ln=t.n(Nn);function Tn(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 An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Tn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var In="YYYY-MM-DD[T]HH:mm:ss.SSS[Z]",Mn="YYYY-MM-DD";const qn={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?Ln()(e).utc().format(In):null,to:e?Ln()(e).utc().add(1,"d").format(In):null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?Ln().utc(e.from,In).local().format(Mn):e&&e.to?Ln().utc(e.to,In).local().format(Mn):null},getToOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}}};var Fn,Vn,zn,Bn,Wn,Hn,$n,Un=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Fn||(Fn=(0,v.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Gn=b.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})(Vn||(Vn=(0,v.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n line-height: unset !important;\n text-align: center;\n }\n"]))),Yn=b.ZP.div.withConfig({displayName:"StyledIconWrapper"})(zn||(zn=(0,v.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),U.Z.font(-2.7)),Kn=b.ZP.div.withConfig({displayName:"StyledRange"})(Bn||(Bn=(0,v.Z)(["\n display: flex;\n"]))),Qn=b.ZP.div.withConfig({displayName:"StyledInput"})(Wn||(Wn=(0,v.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),Jn=b.ZP.div.withConfig({displayName:"StyledExtender"})(Hn||(Hn=(0,v.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function Xn(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 et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const nt=function(e){var n,t,r=e.value,o=e.events,i=e.readOnly,a=e.type,c=e.options,l=e.fromText,u=e.toText,d=(null==r?void 0:r.isRangeValue)||!1,f=(0,s.useRef)(r);f.current=r;var p=(0,s.useMemo)((function(){return et(et({},o),{},{onChange:function(e){o.onChange(e)}})}),[o]),h={onChange:function(e){o.onChange(et(et({},f.current),{},{to:e}))}},g={onChange:function(e){o.onChange(et(et({},f.current),{},{from:e}))}},m=qn[a],v=(null==m||null===(n=m.icons)||void 0===n?void 0:n.range)||"chevron-down",b=(null==m||null===(t=m.icons)||void 0===t?void 0:t.single)||"chevron-left",y=(null==m?void 0:m.type)||a;return(0,w.jsxs)(Kn,{children:[(0,w.jsx)(Un,{children:d?(0,w.jsxs)(Qn,{children:[(0,w.jsx)(Gn,{children:(0,w.jsx)(En.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getFromOptions?m.getFromOptions(e,n):e}(c,r.to),value:(null==r?void 0:r.from)||null,events:g,placeholder:l}))}),$n||($n=(0,w.jsx)(Yn,{children:(0,w.jsx)(O.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Gn,{children:(0,w.jsx)(En.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getToOptions?m.getToOptions(e,n):e}(c,r.from),value:(null==r?void 0:r.to)||null,events:h,placeholder:u}))})]}):(0,w.jsx)(En.Z,et(et({type:y},Rn()(e,["type"])),{},{events:p}))}),(0,w.jsx)(Jn,{children:(0,w.jsx)(Dn.Z,{disabled:i,icon:d?b:v,onClick:function(){var e=d?function(e){return null!=m&&m.fromRange?m.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r):function(e){return null!=m&&m.toRange?m.toRange(e):{from:e,to:e,isRangeValue:!0}}(r);o.onChange(e)}})})]})};const tt=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ae,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ae,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(nt,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var rt={setActive:Cn.Iv,setElapsed:Cn.uI};const ot=(0,c.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),rt)(tt);var it,at,ct,lt,st,ut,dt,ft={ERROR:"#a00"},pt=b.ZP.div.withConfig({displayName:"StyledLogTable"})(it||(it=fe()(["\n display: grid;\n gap: 1px;\n"]))),ht=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(at||(at=fe()(["\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(ft[e.level]||"#ddd",";")})),gt=b.ZP.span.withConfig({displayName:"StyledStatementHeader"})(ct||(ct=fe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),mt=b.ZP.span.withConfig({displayName:"StyledStatement"})(lt||(lt=fe()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),vt=b.ZP.span.withConfig({displayName:"StyledTime"})(st||(st=fe()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bt=b.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(ut||(ut=fe()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),yt=b.ZP.span.withConfig({displayName:"StyledElapsed"})(dt||(dt=fe()(["\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 xt=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ae()(t,2),o=r[0],i=r[1],a=n.sql.length>100,c=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(ht,{children:[(0,w.jsx)(gt,{expandable:a,onClick:function(){a&&i(!o)},children:c}),o&&(0,w.jsx)(mt,{children:n.sql}),(0,w.jsx)(vt,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(bt,{children:(0,w.jsxs)(yt,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var wt;const jt=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)(pt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(xt,{entry:e},e.key)})):wt||(wt=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const kt=(0,c.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(jt);var Zt,Ot,Pt;const St=function(){return(0,w.jsxs)(w.Fragment,{children:[Zt||(Zt=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Ot||(Ot=(0,w.jsx)(ot,{})),Pt||(Pt=(0,w.jsx)(kt,{}))]})};function Ct(e,n){return Ct=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Ct(e,n)}function _t(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ct(e,n)}function Rt(){return Rt=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},Rt.apply(this,arguments)}function Dt(e){return"/"===e.charAt(0)}function Et(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 Nt=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],i=e&&Dt(e),a=n&&Dt(n),c=i||a;if(e&&Dt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];t="."===l||".."===l||""===l}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Et(o,u):".."===d?(Et(o,u),s++):s&&(Et(o,u),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&Dt(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Lt=t(2177);function Tt(e){return"/"===e.charAt(0)?e:"/"+e}function At(e){return"/"===e.charAt(0)?e.substr(1):e}function It(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 Mt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function qt(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 Ft(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 i=n.indexOf("?");return-1!==i&&(t=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),o.state=n):(void 0===(o=Rt({},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=Nt(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Vt(){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 i="function"==typeof e?e(n,t):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}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 zt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Bt(e,n){n(window.confirm(e))}var Wt="popstate",Ht="hashchange";function $t(){try{return window.history.state||{}}catch(e){return{}}}function Ut(e){void 0===e&&(e={}),zt||(0,Lt.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")),i=e,a=i.forceRefresh,c=void 0!==a&&a,l=i.getUserConfirmation,s=void 0===l?Bt:l,u=i.keyLength,d=void 0===u?6:u,f=e.basename?Mt(Tt(e.basename)):"";function p(e){var n=e||{},t=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return f&&(i=It(i,f)),Ft(i,r,t)}function h(){return Math.random().toString(36).substr(2,d)}var g=Vt();function m(e){Rt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(p(e.state))}function b(){x(p($t()))}var y=!1;function x(e){if(y)y=!1,m();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?m({action:"POP",location:e}):function(e){var n=C.location,t=j.indexOf(n.key);-1===t&&(t=0);var r=j.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,Z(o))}(e)}))}}var w=p($t()),j=[w.key];function k(e){return f+qt(e)}function Z(e){t.go(e)}var O=0;function P(e){1===(O+=e)&&1===e?(window.addEventListener(Wt,v),o&&window.addEventListener(Ht,b)):0===O&&(window.removeEventListener(Wt,v),o&&window.removeEventListener(Ht,b))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:k,push:function(e,n){var o="PUSH",i=Ft(e,n,h(),C.location);g.confirmTransitionTo(i,o,s,(function(e){if(e){var n=k(i),a=i.key,l=i.state;if(r)if(t.pushState({key:a,state:l},null,n),c)window.location.href=n;else{var s=j.indexOf(C.location.key),u=j.slice(0,s+1);u.push(i.key),j=u,m({action:o,location:i})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",i=Ft(e,n,h(),C.location);g.confirmTransitionTo(i,o,s,(function(e){if(e){var n=k(i),a=i.key,l=i.state;if(r)if(t.replaceState({key:a,state:l},null,n),c)window.location.replace(n);else{var s=j.indexOf(C.location.key);-1!==s&&(j[s]=i.key),m({action:o,location:i})}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 Gt="hashchange",Yt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+At(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:At,decodePath:Tt},slash:{encodePath:Tt,decodePath:Tt}};function Kt(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function Qt(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function Jt(e){window.location.replace(Kt(window.location.href)+"#"+e)}function Xt(e){void 0===e&&(e={}),zt||(0,Lt.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?Bt:r,i=t.hashType,a=void 0===i?"slash":i,c=e.basename?Mt(Tt(e.basename)):"",l=Yt[a],s=l.encodePath,u=l.decodePath;function d(){var e=u(Qt());return c&&(e=It(e,c)),Ft(e)}var f=Vt();function p(e){Rt(O,e),O.length=n.length,f.notifyListeners(O.location,O.action)}var h=!1,g=null;function m(){var e,n,t=Qt(),r=s(t);if(t!==r)Jt(r);else{var i=d(),a=O.location;if(!h&&(n=i,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===qt(i))return;g=null,function(e){if(h)h=!1,p();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?p({action:n,location:e}):function(e){var n=O.location,t=x.lastIndexOf(qt(n));-1===t&&(t=0);var r=x.lastIndexOf(qt(e));-1===r&&(r=0);var o=t-r;o&&(h=!0,w(o))}(e)}))}}(i)}}var v=Qt(),b=s(v);v!==b&&Jt(b);var y=d(),x=[qt(y)];function w(e){n.go(e)}var j=0;function k(e){1===(j+=e)&&1===e?window.addEventListener(Gt,m):0===j&&window.removeEventListener(Gt,m)}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=Kt(window.location.href)),t+"#"+s(c+qt(e))},push:function(e,n){var t="PUSH",r=Ft(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=qt(r),o=s(c+n);if(Qt()!==o){g=n,function(e){window.location.hash=e}(o);var i=x.lastIndexOf(qt(O.location)),a=x.slice(0,i+1);a.push(n),x=a,p({action:t,location:r})}else p()}}))},replace:function(e,n){var t="REPLACE",r=Ft(e,void 0,void 0,O.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=qt(r),o=s(c+n);Qt()!==o&&(g=n,Jt(o));var i=x.indexOf(qt(O.location));-1!==i&&(x[i]=n),p({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||(k(1),Z=!0),function(){return Z&&(Z=!1,k(-1)),n()}},listen:function(e){var n=f.appendListener(e);return k(1),function(){k(-1),n()}}};return O}t(94662);function er(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}u().Component;u().Component;var nr=function(e,n){return"function"==typeof e?e(n):e},tr=function(e,n){return"string"==typeof e?Ft(e,null,null,n):e},rr=function(e){return e},or=u().forwardRef;void 0===or&&(or=rr);var ir=or((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,i=er(e,["innerRef","navigate","onClick"]),a=i.target,c=Rt({},i,{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 c.ref=rr!==or&&n||t,u().createElement("a",c)}));var ar=or((function(e,n){var t=e.component,r=void 0===t?ir:t,i=e.replace,a=e.to,c=e.innerRef,l=er(e,["component","replace","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Lt.Z)(!1);var t=e.history,o=tr(nr(a,e.location),e.location),s=o?t.createHref(o):"",d=Rt({},l,{href:s,navigate:function(){var n=nr(a,e.location),r=qt(e.location)===qt(tr(n));(i||r?t.replace:t.push)(n)}});return rr!==or?d.ref=n||c:d.innerRef=c,u().createElement(r,d)}))})),cr=function(e){return e},lr=u().forwardRef;void 0===lr&&(lr=cr);var sr;lr((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,i=e.activeClassName,a=void 0===i?"active":i,c=e.activeStyle,l=e.className,s=e.exact,d=e.isActive,f=e.location,p=e.sensitive,h=e.strict,g=e.style,m=e.to,v=e.innerRef,b=er(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,Lt.Z)(!1);var t=f||e.location,i=tr(nr(m,t),t),y=i.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,o.LX)(t.pathname,{path:x,exact:s,sensitive:p,strict:h}):null,j=!!(d?d(w,t):w),k="function"==typeof l?l(j):l,Z="function"==typeof g?g(j):g;j&&(k=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(" ")}(k,a),Z=Rt({},Z,c));var O=Rt({"aria-current":j&&r||null,className:k,style:Z,to:i},b);return cr!==lr?O.ref=n||v:O.innerRef=v,u().createElement(ar,O)}))}));const ur=(0,b.ZP)(ar)(sr||(sr=(0,v.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,G.Z)(),C.Z.color("secondary"),C.Z.color("text"),C.Z.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 dr,fr,pr,hr,gr,mr,vr,br,yr,xr,wr=b.ZP.div.withConfig({displayName:"StyledDevCon"})(dr||(dr=fe()(["\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"),U.Z.space(0)),jr=b.ZP.div.withConfig({displayName:"StyledNavigation"})(fr||(fr=fe()(["\n display: flex;\n"]))),kr=(0,b.ZP)(ur).withConfig({displayName:"StyledRouterLink"})(pr||(pr=fe()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Zr=function(){return(0,w.jsxs)(wr,{children:[hr||(hr=(0,w.jsx)(i.Z.Notifications,{})),gr||(gr=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),mr||(mr=(0,w.jsxs)(jr,{children:[(0,w.jsx)(kr,{to:"/log",children:"Log"}),(0,w.jsx)(kr,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(kr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(kr,{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 vr||(vr=(0,w.jsx)(Xe,{}))}}),(0,w.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return br||(br=(0,w.jsx)(Se,{}))}}),(0,w.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return yr||(yr=(0,w.jsx)(Sn,{}))}}),(0,w.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return xr||(xr=(0,w.jsx)(St,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>xe});var r=t(68957),o=t(91411),i=t(86249),a=t.n(i),c=(t(58900),t(78634)),l=t(84100),s=t(60131),u=t(48230),d=t(64952),f=t(469),p=t(81896),h=t(46940),g=t(32884),m=t.n(g),v=t(40021),b=t.n(v),y=t(11203),x=t.n(y),w=t(72730),j=t.n(w),k=t(1024),Z=t(32678),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),D=t(88098),E=t(19241),N=(t(70646),t(74085)),L=t.n(N),T=t(77654),A=t.n(T),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 z(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.Z)(this,t)}}const B=function(e){return function(n){(0,R.Z)(r,n);var t=z(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"}],i={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,i,(function(e,n){return L()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function W(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.Z)(this,t)}}var H=function(e){(0,R.Z)(t,e);var n=W(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=W(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 i in e.$rules)e.$rules[i].unshift.apply(e.$rules[i],o);e.embedRules(H,"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(B(),"tql-",a,["start"]);var c={"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,c,(function(e,n){return L()(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},Q=function(e,n){return K(e.getCurrentToken())===n},J=function(e){if(Q(e,"model")&&e.stepBackward(),(Q(e,"field")||Q(e,"relation"))&&e.stepBackward(),!Q(e,"chaining"))return null;if(e.stepBackward(),Q(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!Q(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return Q(e,"rparen")?1:n>0&&Q(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&Q(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,G.Z)(re(e))):[]}if(Q(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,J)},oe=function(e){return te(e,ne)},ie=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,i=r.modelScope;if(o){var a=re(e()),c=[].concat((0,G.Z)(i),(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)(c))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ie}}));n(null,t)})).catch((function(e){return n(e)}))}},ce=function(e,n){return n?"".concat(e," (").concat(n,")"):e},le=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:ce(n,t),value:n,score:ie}}));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,i){var a=function(){return new Y(t,r.row,r.column)},c=a(),l=c.getCurrentToken(),s=c.stepBackward()?c.getCurrentToken():null;switch(K(l)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,i,e);break;case"where":case"conjunction":ae(a,i,e),i(null,se());break;case"nice_function":i(null,se());break;case"find":le(i);break;case"type":case"tocco_placeholder":case"comparison":i(null,q.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),i(null,F.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,i,e),s&&"relation"!==K(s)&&le(i);break;case null:e&&ae(a,i,e),i(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.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 pe(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,E.Z)(e);if(n){var o=(0,E.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,D.Z)(this,t)}}var he,ge=function(e){(0,R.Z)(t,e);var n=pe(t);function t(e){var r,o=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=B(o),r.completer=ue(o),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),me=t(85893),ve=Z.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),be={groovy:function(){return new l.Mode},html:function(){return new s.Mode},xml:function(){return new h.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 c.Mode},text:function(){return new p.Mode}},ye=function(e,n){var t=n.mode,o=n.theme,i=n.showGutter,a=n.editorOptions,c=void 0===a?{}:a;(function(e){return j()(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 m()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return m()(be,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(o)),Object.entries(c).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1];e.setOption(o,i)})),e.renderer.setShowGutter(i),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,i=e.onChange,c=e.showGutter,l=void 0===c||c,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,k.useRef)(null),p=(0,k.useRef)(null),h=(0,k.useMemo)((function(){return{mode:n,theme:r,showGutter:l,editorOptions:u,implicitModel:d}}),[n,r,l,u,d]);return(0,k.useEffect)((function(){var e=a().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return i(e.getValue())})),ye(e,h),p.current=e,function(){return e.destroy()}}),[]),(0,k.useEffect)((function(){p.current&&ye(p.current,h)}),[h]),(0,k.useEffect)((function(){p.current&&!b()(o)&&o!==p.current.getValue()&&p.current.getSession().setValue(o)}),[o]),(0,me.jsx)(ve,{ref:f})}},91860:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>C});var r,o,i,a=t(68957),c=(t(44661),t(46444),t(1024)),l=t(12520),s=t.n(l),u=t(74806),d=t(32678),f=t(2091),p=t(5429),h=t(24788),g=t(4347),m=t(98546),v=t(23359),b=function(e){var n=(0,p.default)(e);return isNaN(n)?null:n},y=t(91411),x=t(30759),w=t(51032),j=d.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(r||(r=(0,y.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),k=d.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(o||(o=(0,y.Z)(["\n && {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),w.yP,w.k9,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Z=d.ZP.input.withConfig({displayName:"StyledTimeInput"})(i||(i=(0,y.Z)(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,x.Z)()),O=t(85893);(0,l.registerLocale)("de-CH",h.Z),(0,l.registerLocale)("de",h.Z),(0,l.registerLocale)("en",g.Z),(0,l.registerLocale)("fr",m.Z),(0,l.registerLocale)("it",v.Z),(0,l.setDefaultLocale)("de");var P="react-datepicker-time__input",S=function(e){var n=e.value,t=e.onChange,r=e.onKeyDown;return(0,O.jsx)(Z,{type:"time",className:P,required:!0,value:n,onKeyDown:r,onChange:function(e){t&&t(e.target.value)},onClick:function(e){e.target.focus()}})};const C=(0,d.Zz)((0,u.ZP)((function(e){var n=e.immutable,t=e.id,r=e.value,o=e.minDate,i=e.maxDate,l=e.onChange,u=e.intl,d=e.placeholder,p=e.hasTime,h=e.dateFormat,g=u.locale,m=function(e){return u.formatMessage({id:e})},v=(0,c.useRef)(null),y=(0,c.useRef)(null),x=(0,c.useState)(!1),w=(0,a.Z)(x,2),Z=w[0],C=w[1],_=!!r,R=b(r),D=o?b(o):void 0,E=i?b(i):void 0,N=function(e){var n,t;(C(e),null!==(n=y.current)&&void 0!==n&&n.setPreSelection)&&(null===(t=y.current)||void 0===t||t.setPreSelection(R))},L=function(e){"Tab"!==e.key||e.shiftKey||(e.target.classList.contains("react-datepicker__day")?p?function(e){var n=e.querySelector("input.".concat(P));n&&n.focus()}(v.current):N(!1):function(e){return e.classList.contains(P)}(e.target)&&N(!1)),function(e){return e.classList.contains("react-datepicker-ignore-onclickoutside")}(e.target)&&"Tab"===e.key&&e.shiftKey&&N(!1),"Enter"===e.key&&(N(!1),e.preventDefault(),e.stopPropagation())};return(0,O.jsx)(j,{immutable:n,id:t,tabIndex:"-1",children:(0,O.jsxs)(k,{immutable:n,ref:v,hasTime:p,children:[(0,O.jsx)(s(),{ref:y,selected:R,onChange:function(e){e&&l(e.toISOString())},disabled:n,showTimeInput:p,dateFormat:h,showPopperArrow:!1,placeholderText:d,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",open:Z,onFocus:function(){N(!0)},onClickOutside:function(){N(!1)},locale:g,onKeyDown:L,customTimeInput:(0,O.jsx)(S,{onKeyDown:L}),enableTabLoop:!1,timeInputLabel:"",minDate:D,maxDate:E,todayButton:m("client.component.datePicker.todayLabel")}),!n&&_&&(0,O.jsx)(f.Z,{icon:"times",tabIndex:-1,"aria-label":m("client.component.datePicker.clearDateLabel"),onMouseDown:function(e){e.preventDefault(),l(null)}})]})})})))},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var r=t(97044),o=t(96098),i=t.n(o),a=(t(46444),t(34206)),c=t(85893);const l=function(e){var n=e.value,t=e.breakWords,o=(0,r._)(n),l=i()(o)?n:o.formatInternational();return(0,c.jsx)(a.ZP.Span,{breakWords:t,children:l})}},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>E,default:()=>N});var r,o=t(46927),i=t(46444),a=t.n(i),c=t(78947),l=t(99245),s=t(68019),u=t(70457),d=t(30963),f=t(32884),p=t.n(f),h=t(91411),g=t(32678).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,h.Z)([""]))),m=t(85893);function v(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c.library.add(s.C65,s.kJo,s._tD,s.A35,s.mTx,s.ptq,s.g4A,s.r8p,s.Pk,s.g9M,s.Tab,u.Tab,s.NBC,s.eFW,s.acZ,s.u2A,s.gMD,s.cwv,s.w49,s.fUD,s.icc,s.ca9,s.Vmj,s.gSj,s.WFE,s.hQn,s.LEp,s.WV2,s.diR,s.f8k,l.xYR,l.neY,l.AYu,l.kBj,l.hVS,l.dc_,l.Av$,s.xiG,s.gJF,s.j1w,s.WKO,s.wn1,s.b7W,s.YHc,s.ZC5,s.UO1,u.Fyj,s.Qj4,s.FL8,s.foy,s.u9C,s.Fuz,s.iV1,s.Kl4,s.nYk,s.sqG,s.RLE,s.$aW,s.Zrf,s.pL1,s.g6h,s.SJY,s.qmU,s.nek,s.Qy6,u.pL1,s.hVM,s.yOf,s.Xgz,s.Mzg,s.r6l,s.IwR,u.Alc,s.dLO,s.ntl,s.Hw7,s.FYs,s.$36,s.Ry6,s.C3l,s.a1i,s.IeV,s.A8,s.hG5,s.FVb,s.AxY,s.mAj,s.hGM,s.UkD,s.BDt,s.QzV,s.py1,s.cf$,s.byT,s.dT$,s.G_j,s.A4,s.ar8);var y=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth;return(0,m.jsx)(g,{children:(0,m.jsx)(d.G,b(b({icon:n.includes(",")?n.replace(/\s+/,"").split(","):n,style:t},p()(t,"color")&&{color:t.color}),{},{fixedWidth:r}))})};y.defaultProps={hasFixedWidth:!0};const x=y,w=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"]},"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-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"]},"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"]},"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"},"list":{"id":"fal, list","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"},"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"}}');var j,k;function Z(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 O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P={logo:function(e){return(0,m.jsx)("svg",O(O({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:j||(j=(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",O(O({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:k||(k=(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"}))}))}},S=function(e){var n=e.icon,t=e.style;return P[n](t)};S.propTypes={icon:a().string.isRequired,style:a().object};const C=S;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 R(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,o.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 D={fa:function(e,n){return(0,m.jsx)(x,R(R({},n),{},{icon:e.id}))},toc:function(e,n){return(0,m.jsx)(C,R(R({},n),{},{icon:e.id}))}},E=function(e){var n=w[e.icon];if(!n)return null;var t=D[n.lib];return t?t(n,e):null};E.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const N=E},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(46927),o=t(70457),i=t(30963),a=(t(46444),t(85893));function c(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 l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const s=function(e){var n=e.size,t=e.style;return(0,a.jsx)(i.G,l(l({},t),{},{style:{fontSize:n},spin:!0,icon:o.IJ7}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,a){if(a!==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 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:i,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
@@ -60,4 +60,4 @@ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
60
60
  * LICENSE file in the root directory of this source tree.
61
61
  */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return O(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return x(e)||O(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},32654:(e,t,n)=>{"use strict";n.d(t,{D:()=>be});var r=n(1024),o=n(30314);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return e instanceof i(e).Element||e instanceof Element}function s(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,l=Math.min,f=Math.round;function p(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(s(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=f(n.width)/a||1),i>0&&(o=f(n.height)/i||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 d(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((a(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return p(m(e)).left+d(e).scrollLeft}function v(e){return i(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,a=s(t),c=s(t)&&function(e){var t=e.getBoundingClientRect(),n=f(t.width)/e.offsetWidth||1,r=f(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),l=p(e,c),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==h(t)||y(u))&&(v=(r=t)!==i(r)&&s(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:d(r)),s(t)?((b=p(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=p(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 O(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(c(e)?e.host:null)||m(e)}function x(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:s(e)&&y(e)?e:x(O(e))}function S(e,t){var n;void 0===t&&(t=[]);var r=x(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=i(r),s=o?[a].concat(a.visualViewport||[],y(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(S(O(s)))}function P(e){return["table","td","th"].indexOf(h(e))>=0}function j(e){return s(e)&&"fixed"!==v(e).position?e.offsetParent:null}function k(e){for(var t=i(e),n=j(e);n&&P(n)&&"static"===v(n).position;)n=j(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")&&s(e)&&"fixed"===v(e).position)return null;var n=O(e);for(c(n)&&(n=n.host);s(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 E="top",_="bottom",T="right",C="left",D="auto",R=[E,_,T,C],M="start",A="end",I="viewport",N="popper",Z=R.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+A])}),[]),L=[].concat(R,[D]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+A])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(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 U={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){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 W(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?U:o;return function(e,t,n){void 0===n&&(n=i);var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,f={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;p(),c.options=Object.assign({},i,c.options,o),c.scrollParents={reference:a(e)?S(e):e.contextElement?S(e.contextElement):[],popper:S(t)};var s=function(e){var t=H(e);return F.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,c.options.modifiers)));return c.orderedModifiers=s.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:f,options:r}),a=function(){};u.push(i||a)}})),f.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,n=e.popper;if(B(t,n)){c.rects={reference:b(t,k(n),"fixed"===c.options.strategy),popper:w(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:u,instance:f})||c)}else c.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),l=!0}};if(!B(e,t))return f;function p(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var V={passive:!0};function Y(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function q(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Y(o):null,a=o?z(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case E:t={x:s,y:n.y-r.height};break;case _:t={x:s,y:n.y+n.height};break;case T:t={x:n.x+n.width,y:c};break;case C:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?G(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case M:t[u]=t[u]-(n[l]/2-r[l]/2);break;case A:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets,d=e.isFixed,h=s.x,g=void 0===h?0:h,y=s.y,b=void 0===y?0:y,w="function"==typeof p?p({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var O=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),S=C,P=E,j=window;if(l){var D=k(n),R="clientHeight",M="clientWidth";if(D===i(n)&&"static"!==v(D=m(n)).position&&"absolute"===c&&(R="scrollHeight",M="scrollWidth"),D=D,o===E||(o===C||o===T)&&a===A)P=_,b-=(d&&D===j&&j.visualViewport?j.visualViewport.height:D[R])-r.height,b*=u?1:-1;if(o===C||(o===E||o===_)&&a===A)S=T,g-=(d&&D===j&&j.visualViewport?j.visualViewport.width:D[M])-r.width,g*=u?1:-1}var I,N=Object.assign({position:c},l&&$),Z=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:f(t*r)/r||0,y:f(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=Z.x,b=Z.y,u?Object.assign({},N,((I={})[P]=x?"0":"",I[S]=O?"0":"",I.transform=(j.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",I)):Object.assign({},N,((t={})[P]=x?b+"px":"",t[S]=O?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,i=void 0===o?[0,0]:o,a=L.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),o=[C,E].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[C,T].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var J={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return J[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&&c(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===I?re(function(e){var t=i(e),n=m(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,c=r.offsetTop)),{width:o,height:a,x:s+g(e),y:c}}(e)):a(t)?function(e){var t=p(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=d(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+g(e),c=-r.scrollTop;return"rtl"===v(o||n).direction&&(s+=u(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(m(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=S(O(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&s(e)?k(e):e;return a(n)?t.filter((function(e){return a(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],c=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,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ce(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,s=void 0===i?"clippingParents":i,c=n.rootBoundary,u=void 0===c?I:c,l=n.elementContext,f=void 0===l?N:l,d=n.altBoundary,h=void 0!==d&&d,g=n.padding,v=void 0===g?0:g,y=ae("number"!=typeof v?v:se(v,R)),b=f===N?"reference":N,w=e.rects.popper,O=e.elements[h?b:f],x=ie(a(O)?O:O.contextElement||m(e.elements.popper),s,u),S=p(e.elements.reference),P=q({reference:S,element:w,strategy:"absolute",placement:o}),j=re(Object.assign({},w,P)),k=f===N?j:S,C={top:x.top-k.top+y.top,bottom:k.bottom-x.bottom+y.bottom,left:x.left-k.left+y.left,right:k.right-x.right+y.right},D=e.modifiersData.offset;if(f===N&&D){var M=D[o];Object.keys(C).forEach((function(e){var t=[T,_].indexOf(e)>=0?1:-1,n=[E,_].indexOf(e)>=0?"y":"x";C[e]+=M[n]*t}))}return C}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,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=ce(t,{boundary:c,rootBoundary:f,padding:d,altBoundary:p}),b=Y(t.placement),O=z(t.placement),x=!O,S=G(b),P="x"===S?"y":"x",j=t.modifiersData.popperOffsets,D=t.rects.reference,R=t.rects.popper,A="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,I="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Z={x:0,y:0};if(j){if(i){var L,F="y"===S?E:C,H="y"===S?_:T,U="y"===S?"height":"width",B=j[S],W=B+y[F],V=B-y[H],q=m?-R[U]/2:0,$=O===M?D[U]:R[U],K=O===M?-R[U]:-D[U],X=t.elements.arrow,J=m&&X?w(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[F],te=Q[H],ne=ue(0,D[U],J[U]),re=x?D[U]/2-q-ne-ee-I.mainAxis:$-ne-ee-I.mainAxis,oe=x?-D[U]/2+q+ne+te+I.mainAxis:K+ne+te+I.mainAxis,ie=t.elements.arrow&&k(t.elements.arrow),ae=ie?"y"===S?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(L=null==N?void 0:N[S])?L:0,le=B+oe-se,fe=ue(m?l(W,B+re-se-ae):W,B,m?u(V,le):V);j[S]=fe,Z[S]=fe-B}if(s){var pe,de="x"===S?E:C,he="x"===S?_:T,me=j[P],ge="y"===P?"height":"width",ve=me+y[de],ye=me-y[he],be=-1!==[E,C].indexOf(b),we=null!=(pe=null==N?void 0:N[P])?pe:0,Oe=be?ve:me-D[ge]-R[ge]-we+I.altAxis,xe=be?me+D[ge]+R[ge]-we-I.altAxis:ye,Se=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(Oe,me,xe):ue(m?Oe:ve,me,m?xe:ye);j[P]=Se,Z[P]=Se-me}t.modifiersData[r]=Z}},requiresIfExists:["offset"]};const fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),c=G(s),u=[C,T].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,R))}(o.padding,n),f=w(i),p="y"===c?E:C,d="y"===c?_:T,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=k(i),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[p],O=v-f[u]-l[d],x=v/2-f[u]/2+y,S=ue(b,x,O),P=c;n.modifiersData[r]=((t={})[P]=S,t.centerOffset=S-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 pe(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 de(e){return[E,T,_,C].some((function(t){return e[t]>=0}))}var he=W({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,a=void 0===o||o,s=r.resize,c=void 0===s||s,u=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,V)})),c&&u.addEventListener("resize",n.update,V),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,V)})),c&&u.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=q({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,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:Y(t.placement),variation:z(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,K(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),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];s(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]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});s(r)&&h(r)&&(Object.assign(r.style,i),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,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,g=t.options.placement,v=Y(g),y=c||(v===g||!h?[Q(g)]:function(e){if(Y(e)===D)return[];var t=Q(e);return[te(e),t,te(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Y(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?L:c,l=z(r),f=l?s?Z:Z.filter((function(e){return z(e)===l})):R,p=f.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=ce(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Y(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,O=t.rects.popper,x=new Map,S=!0,P=b[0],j=0;j<b.length;j++){var k=b[j],A=Y(k),I=z(k)===M,N=[E,_].indexOf(A)>=0,F=N?"width":"height",H=ce(t,{placement:k,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),U=N?I?T:C:I?_:E;w[F]>O[F]&&(U=Q(U));var B=Q(U),W=[];if(i&&W.push(H[A]<=0),s&&W.push(H[U]<=0,H[B]<=0),W.every((function(e){return e}))){P=k,S=!1;break}x.set(k,W)}if(S)for(var V=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 P=t,"break"},G=h?3:1;G>0;G--){if("break"===V(G))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,fe,{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,i=t.modifiersData.preventOverflow,a=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),c=pe(a,r),u=pe(s,o,i),l=de(c),f=de(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),me=n(98836),ge=n.n(me),ve=n(87568),ye=[],be=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},s=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=s[0],u=s[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"]}}),[]),f=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[l,{name:"applyStyles",enabled:!1}])};return ge()(i.current,e)?i.current||e:(i.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),p=r.useRef();return(0,ve.LI)((function(){p.current&&p.current.setOptions(f)}),[f]),(0,ve.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||he)(e,t,f);return p.current=r,function(){r.destroy(),p.current=null}}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}}},87568:(e,t,n)=>{"use strict";n.d(t,{$p:()=>o,DL:()=>i,LI:()=>c,k$:()=>a,sq:()=>s});var r=n(1024),o=function(e){return Array.isArray(e)?e[0]:e},i=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)}},a=function(e,t){if("function"==typeof e)return i(e,t);null!=e&&(e.current=t)},s=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},c="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},74436:(e,t,n)=>{"use strict";n.d(t,{A:()=>M,B:()=>A,C:()=>B,D:()=>U,E:()=>H,F:()=>P,G:()=>Ze,H:()=>F,I:()=>E,J:()=>j,K:()=>R,L:()=>x,M:()=>q,_:()=>w,a:()=>v,b:()=>he,c:()=>Ne,d:()=>oe,e:()=>we,f:()=>de,g:()=>xe,h:()=>Se,i:()=>ae,j:()=>me,k:()=>je,l:()=>ve,m:()=>J,n:()=>z,o:()=>$,p:()=>ne,q:()=>Te,r:()=>W,s:()=>L,t:()=>Ce,u:()=>De,v:()=>X,w:()=>Me,x:()=>Ae,y:()=>Ie,z:()=>ie});var r=n(3640),o=n(82765),i=n(91411),a=n(56315),s=n(68957),c=n(73891),u=n(11259),l=n(44822),f=n(32208),p=n(46927),d=n(1024),h=n(30314);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}var O=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],x=function(){};function S(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function P(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(S(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var j=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,c.Z)(e)&&null!==e?[e]:[];var t},k=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,v({},(0,a.Z)(e,O))};function E(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function _(e){return E(e)?window.pageYOffset:e.scrollTop}function T(e,t){E(e)?window.scrollTo(0,t):e.scrollTop=t}function C(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x,o=_(e),i=t-o,a=10,s=0;function c(){var t=C(s+=a,o,i,n);T(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function R(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?T(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&T(e,Math.max(t.offsetTop-o,0))}function M(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function A(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var I=!1,N={get passive(){return I=!0}},Z="undefined"!=typeof window?window:{};Z.addEventListener&&Z.removeEventListener&&(Z.addEventListener("p",x,N),Z.removeEventListener("p",x,!1));var L=I;function F(e){return null!=e}function H(e,t,n){return e?t:n}function U(e){return e}function B(e){return e}var W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=(0,s.Z)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,s.Z)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})};function V(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,d=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=_(c),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,O=g-h,x=w+v,S=l-v-h,P=p-g+v+y,j=v+h-b,k=160;switch(o){case"auto":case"bottom":if(O>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!a)return i&&D(c,P,k),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&D(c,P,k),{placement:"bottom",maxHeight:a?O-y:S-y};if("auto"===o||a){var E=t,C=a?w:x;return C>=r&&(E=Math.min(C-y-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return i&&T(c,P),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(x>=d&&!a)return i&&D(c,j,k),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var R=t;return(!a&&x>=r||a&&w>=r)&&(R=a?w-b:x-b),i&&D(c,j,k),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Y=function(e){return"auto"===e?"bottom":e},z=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},(0,p.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,p.Z)(t,"backgroundColor",a.neutral0),(0,p.Z)(t,"borderRadius",o),(0,p.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,p.Z)(t,"marginBottom",i.menuGutter),(0,p.Z)(t,"marginTop",i.menuGutter),(0,p.Z)(t,"position","absolute"),(0,p.Z)(t,"width","100%"),(0,p.Z)(t,"zIndex",1),t},G=(0,d.createContext)({getPortalPlacement:null}),q=function(e){(0,f.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(t){var u="fixed"===a,l=V({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:c}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Y(t);return v(v({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,l.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(d.Component);q.contextType=G;var $=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},K=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},X=K,J=K,Q=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},s),t)};Q.defaultProps={children:"No options"};var ee=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},s),t)};ee.defaultProps={children:"Loading..."};var te,ne=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},re=function(e){(0,f.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Y(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,i=e.className,a=e.controlElement,s=e.cx,c=e.innerProps,u=e.menuPlacement,l=e.menuPosition,f=e.getStyles,p="fixed"===l;if(!t&&!p||!a)return null;var d=this.state.placement||Y(u),m=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),g=p?0:window.pageYOffset,v={offset:m[d]+g,position:l,rect:m},y=(0,o.tZ)("div",(0,r.Z)({css:f("menuPortal",v),className:s({"menu-portal":!0},i)},c),n);return(0,o.tZ)(G.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,h.createPortal)(y,t):y)}}]),n}(d.Component),oe=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ie=function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ae=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},se=["size"];var ce={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ue=function(e){var t=e.size,n=(0,a.Z)(e,se);return(0,o.tZ)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ce},n))},le=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},fe=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},pe=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},de=pe,he=pe,me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},ge=(0,o.F4)(te||(te=(0,i.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ve=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},ye=function(e){var t=e.delay,n=e.offset;return(0,o.tZ)("span",{css:(0,o.iv)({animation:"".concat(ge," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},be=function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps,s=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),(0,o.tZ)(ye,{delay:0,offset:s}),(0,o.tZ)(ye,{delay:160,offset:!0}),(0,o.tZ)(ye,{delay:320,offset:!s}))};be.defaultProps={size:4};var we=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},Oe=["data"],xe=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Se=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},Pe=["innerRef","isDisabled","isHidden","inputClassName"],je=function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return v({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Ee)},ke={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ee={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":v({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ke)},_e=function(e){return v({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ke)},Te=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},Ce=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},De=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},Re=function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",n,t)};var Me=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},Ae=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},Ie=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Ne={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)},s),t||(0,o.tZ)(le,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,a=e.className,s=e.isDisabled,c=e.isFocused,u=e.innerRef,l=e.innerProps,f=e.menuIsOpen;return(0,o.tZ)("div",(0,r.Z)({ref:u,css:i("control",e),className:n({control:!0,"control--is-disabled":s,"control--is-focused":c,"control--menu-is-open":f},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)},s),t||(0,o.tZ)(fe,null))},DownChevron:fe,CrossIcon:le,Group:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.Heading,c=e.headingProps,u=e.innerProps,l=e.label,f=e.theme,p=e.selectProps;return(0,o.tZ)("div",(0,r.Z)({css:a("group",e),className:i({group:!0},n)},u),(0,o.tZ)(s,(0,r.Z)({},c,{selectProps:p,theme:f,getStyles:a,cx:i}),l),(0,o.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,i=e.className,s=k(e);s.data;var c=(0,a.Z)(s,Oe);return(0,o.tZ)("div",(0,r.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},i)},c))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,s=e.getStyles;return(0,o.tZ)("div",(0,r.Z)({css:s("indicatorsContainer",e),className:i({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps;return(0,o.tZ)("span",(0,r.Z)({},a,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,s=e.value,c=k(e),u=c.innerRef,l=c.isDisabled,f=c.isHidden,p=c.inputClassName,d=(0,a.Z)(c,Pe);return(0,o.tZ)("div",{className:n({"input-container":!0},t),css:i("input",e),"data-value":s||""},(0,o.tZ)("input",(0,r.Z)({className:n({input:!0},p),ref:u,style:_e(f),disabled:l},d)))},LoadingIndicator:be,Menu:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerRef,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("menu",e),className:i({menu:!0},n),ref:s},c),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps,c=e.innerRef,u=e.isMulti;return(0,o.tZ)("div",(0,r.Z)({css:a("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":u},n),ref:c},s),t)},MenuPortal:re,LoadingMessage:ee,NoOptionsMessage:Q,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,a=e.data,s=e.getStyles,c=e.innerProps,u=e.isDisabled,l=e.removeProps,f=e.selectProps,p=r.Container,d=r.Label,h=r.Remove;return(0,o.tZ)(o.ms,null,(function(r){var m=r.css,g=r.cx;return(0,o.tZ)(p,{data:a,innerProps:v({className:g(m(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":u},n))},c),selectProps:f},(0,o.tZ)(d,{data:a,innerProps:{className:g(m(s("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:f},t),(0,o.tZ)(h,{data:a,innerProps:v({className:g(m(s("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},l),selectProps:f}))}))},MultiValueContainer:Re,MultiValueLabel:Re,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({role:"button"},n),t||(0,o.tZ)(le,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.isDisabled,c=e.isFocused,u=e.isSelected,l=e.innerRef,f=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("option",e),className:i({option:!0,"option--is-disabled":s,"option--is-focused":c,"option--is-selected":u},n),ref:l,"aria-disabled":s},f),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("placeholder",e),className:i({placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:a("container",e),className:i({"--is-disabled":c,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,s=e.isDisabled,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":s},n)},c),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,s=e.isMulti,c=e.getStyles,u=e.hasValue;return(0,o.tZ)("div",(0,r.Z)({css:c("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":s,"value-container--has-value":u},n)},a),t)}},Ze=function(e){return v(v({},Ne),e.components)}},44066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1024),o=n.n(r),i=n(66462),a=n.n(i),s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l={outline:"none"},f=function(e){function t(){var n,r;s(this,t);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=r=u(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=o().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?o().cloneElement(e({focused:t,getRef:this.ref}),n):o().createElement("div",c({ref:this.ref,style:l},n),e)},t}(o().Component);f.propTypes={children:a().oneOfType([a().node,a().func]).isRequired,onBlur:a().func,onFocus:a().func},f.defaultProps={onBlur:function(){},onFocus:function(){}};const p=f},46335:(e,t,n)=>{"use strict";var r=n(33890);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function 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:i,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"},99430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1024)),o=s(n(53396)),i=s(n(30314)),a=s(n(83109));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?g(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var y=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],b=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],w=function(e){function t(){var e,n;f(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return v(g(g(n=d(this,(e=h(t)).call.apply(e,[this].concat(i))))),"_targetNode",r.default.createRef()),v(g(g(n)),"_elementNode",r.default.createRef()),v(g(g(n)),"_elementParentNode",null),v(g(g(n)),"_tetherInstance",null),n}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,o=[{key:"componentDidMount",value:function(){this._createContainer(),this.forceUpdate()}},{key:"componentDidUpdate",value:function(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){var t,n,r=(e.className||"").split(" ").filter((function(e){return e.length>0})),o=(this.props.className||"").split(" ").filter((function(e){return e.length>0}));(t=this._elementParentNode.classList).remove.apply(t,l(r)),(n=this._elementParentNode.classList).add.apply(n,l(o))}this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tetherInstance}},{key:"disable",value:function(){this._tetherInstance.disable()}},{key:"enable",value:function(){this._tetherInstance.enable()}},{key:"on",value:function(e,t,n){this._tetherInstance.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tetherInstance.once(e,t,n)}},{key:"off",value:function(e,t){this._tetherInstance.off(e,t)}},{key:"position",value:function(){this._tetherInstance.position()}},{key:"_runRenders",value:function(){var e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}},{key:"_createTetherInstance",value:function(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a.default(e),this._registerEventListeners()}},{key:"_destroyTetherInstance",value:function(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)})),this.on("repositioned",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)}))}},{key:"_destroy",value:function(){this._destroyTetherInstance(),this._removeContainer()}},{key:"_createContainer",value:function(){this._removeContainer();var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||""}},{key:"_addContainerToDOM",value:function(){this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.appendChild(this._elementParentNode)}},{key:"_removeContainer",value:function(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.parentNode.removeChild(this._elementParentNode)}},{key:"_update",value:function(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=(e.renderTarget,e.renderElement,u(e,["children","renderElementTag","renderElementTo","id","className","style","renderTarget","renderElement"])),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}({target:this._targetNode.current,element:this._elementParentNode},r),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),n){var a=this._elementParentNode.style;Object.keys(n).forEach((function(e){a[e]!==n[e]&&(a[e]=n[e])}))}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(o):this._createTetherInstance(o),this._tetherInstance.position()}},{key:"render",value:function(){var e=this._runRenders(),t=e.targetComponent,n=e.elementComponent;return t?r.default.createElement(r.default.Fragment,null,t,n&&this._elementParentNode&&i.default.createPortal(n,this._elementParentNode)):null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&p(n.prototype,o),s&&p(n,s),t}(r.Component);v(w,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(y),attachment:o.default.oneOf(b).isRequired,targetAttachment:o.default.oneOf(b),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,renderTarget:o.default.func,renderElement:o.default.func,children:function(e,t,n){var o=e.children;if(r.Children.count(o)>0)return new Error("".concat(n," no longer uses children to render components. Please use renderTarget and renderElement instead."))}}),v(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var O=w;t.default=O},50855:(e,t,n)=>{"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(99430))&&r.__esModule?r:{default:r}},31446:(e,t,n)=>{"use strict";var r=n(16769);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function 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:i,resetWarningCache:o};return n.PropTypes=n,n}},53396:(e,t,n)=>{e.exports=n(31446)()},16769: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,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,a=n(6663),s=(i=a)&&i.__esModule?i:{default:i},c=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),i=n[0],a=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var u=n.map((function(e){return i[e]})).filter(c);return"string"==typeof u[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,o(u)):u.join(" ")}:{key:e,style:s.default.apply(void 0,[{}].concat(o(u)))}}},e.exports=t.default},6663:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,a=n(e),s=1;s<arguments.length;s++){o=arguments[s],i=r(Object(o));for(var c=0;c<i.length;c++)a[i[c]]=o[i[c]]}return a}},59211:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==n&&r.call(O,i)&&(b=O);var x=y.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function j(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(P.prototype),P.prototype[a]=function(){return this},e.AsyncIterator=P,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new P(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),c(x,s,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},53090:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||a===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,a+1]:0===n||a===n-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||0===a?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,a-1]:0===n||0===a?[null,null]:null===a?[null,n-1]:[null,a-1]},isLast:function(e){return null===o(e)[1]}}}},78858:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},83109:function(e,t){var n,r,o;/*! tether 1.4.7 */r=[],n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}}catch(e){}return n}function i(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var i=o,a=i.overflow,s=i.overflowX,c=i.overflowY;/(auto|scroll|overlay)/.test(a+c+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var a,s=(a=0,function(){return++a}),c={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",s()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===c[t]&&(c[t]=o(e),S((function(){delete c[t]}))),c[t]};function l(){r&&document.body.removeChild(r),r=null}function f(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),i=u();return r.top-=i.top,r.left-=i.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function p(e){return e.offsetParent||document.documentElement}var d=null;function h(){if(d)return d;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return d={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{g(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function O(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&g(e,n)})),t.forEach((function(t){y(e,t)||v(e,t)}))}var x=[],S=function(e){x.push(e)},P=function(){for(var e=void 0;e=x.pop();)e()},j=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,s=i.ctx,c=i.once,u=s;void 0===u&&(u=this),a.apply(u,r),c?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:f,getOffsetParent:p,extend:m,addClass:v,removeClass:g,hasClass:y,updateClasses:O,defer:S,flush:P,uniqueId:s,Evented:j,getScrollBarSize:h,removeUtilElements:l};var k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,n=a,r=!0,s=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var i=(X=n.Utils).getScrollParents,p=(f=X.getBounds,X.getOffsetParent),v=(m=X.extend,X.addClass),g=X.removeClass,h=(O=X.updateClasses,S=X.defer,P=X.flush,X.getScrollBarSize),l=X.removeUtilElements;function T(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var C,D,R,M,A=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),I=[],N=function(){I.forEach((function(e){e.position(!1)})),P()};function Z(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}C=null,D=null,R=null,M=function e(){if(void 0!==D&&D>16)return D=Math.min(D-16,250),void(R=setTimeout(e,250));void 0!==C&&Z()-C<10||(null!=R&&(clearTimeout(R),R=null),C=Z(),N(),D=Z()-C)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var L={center:"center",left:"right",right:"left"},F={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=L[t.left]),"auto"===r&&(r=F[t.top]),{left:n,top:r}},B=function(e){var t=e.left,n=e.top;return void 0!==H[e.left]&&(t=H[e.left]),void 0!==H[e.top]&&(n=H[e.top]),{left:t,top:n}};function W(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function V(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var Y=function(e){var t=e.split(" "),n=k(t,2);return{top:n[0],left:n[1]}},z=Y,G=function(r){function o(e){var r=this;t(this,o),E(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),I.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return _(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,a=o.element,s=o.target,c=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=c,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=z(this.options.targetAttachment),this.attachment=z(this.options.attachment),this.offset=Y(this.options.offset),this.targetOffset=Y(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return f(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=f(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=f(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),I.forEach((function(t,n){t===e&&I.splice(n,1)})),0===I.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var i=[];r.forEach((function(e){i.push(n.getClass("element-attached")+"-"+e),i.push(n.getClass("target-attached")+"-"+e)})),S((function(){void 0!==n._addAttachClasses&&(O(n.element,n._addAttachClasses,i),!1!==n.options.addTargetClasses&&O(n.target,n._addAttachClasses,i),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return f(e.element)})),i=o.width,a=o.height;if(0===i&&0===a&&void 0!==this.lastSize){var s=this.lastSize;i=s.width,a=s.height}else this.lastSize={width:i,height:a};var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=c,l=V(B(this.attachment),{width:i,height:a}),d=V(B(r),u),m=V(this.offset,{width:i,height:a}),g=V(this.targetOffset,u);l=W(l,m),d=W(d,g);for(var v=c.left+d.left-l.left,y=c.top+d.top-l.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:v,top:y,targetAttachment:r,targetPos:c,elementPos:o,offset:l,targetOffset:d,manualOffset:m,manualTargetOffset:g,scrollbarSize:j,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,v=w.left)}var O={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:v-pageXOffset,right:pageXOffset-v-i+innerWidth}},x=this.target.ownerDocument,S=x.defaultView,j=void 0;return S.innerHeight>x.documentElement.clientHeight&&(j=this.cache("scrollbar-size",h),O.viewport.bottom-=j.height),S.innerWidth>x.documentElement.clientWidth&&(j=this.cache("scrollbar-size",h),O.viewport.right-=j.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(O.page.bottom=x.body.scrollHeight-y-a,O.page.right=x.body.scrollWidth-v-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return p(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return f(t)})),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=x.body.scrollWidth-n.left-o.width+i.right,n.bottom=x.body.scrollHeight-n.top-o.height+i.bottom,O.page.top>=n.top+i.top&&O.page.bottom>=n.bottom&&O.page.left>=n.left+i.left&&O.page.right>=n.right){var a=t.scrollTop,s=t.scrollLeft;O.offset={top:O.page.top-n.top+a-i.top,left:O.page.left-n.left+s-i.left}}}(),this.move(O),this.history.unshift(O),this.history.length>3&&this.history.pop(),t&&P(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[r]&&!T(s[r][o],e[r][o])){i=!0;break}}i||(n[r][o]=!0)}var c={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(c.top=0,r=n.top):(c.bottom=0,r=-n.bottom),e.left?(c.left=0,o=n.left):(c.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),c[A]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==A&&(c[A]+=" translateZ(0)")}else e.top?c.top=n.top+"px":c.bottom=n.bottom+"px",e.left?c.left=n.left+"px":c.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(c.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(c.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){c.position="absolute";var r=t.cache("target-offsetparent",(function(){return p(t.target)}));p(t.element)!==r&&S((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(c.position="absolute",u({top:!0,left:!0},e.page)),!l)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},d=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!f(h);){if("static"!==getComputedStyle(h).position){d=!1;break}h=h.parentNode}d||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},v=!1;for(var o in c){var y=c[o];this.element.style[o]!==y&&(v=!0,g[o]=y)}v&&S((function(){m(t.element.style,g),t.trigger("repositioned")}))}}}]),o}(j);G.modules=[],n.position=N;var q=m(G,n);k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=(X=n.Utils).getBounds;var m=X.extend,$=(O=X.updateClasses,S=X.defer,["left","top","right","bottom"]);function K(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=f(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}$.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return f(t.element)})),a=i.height,s=i.width;if(0===s&&0===a&&void 0!==this.lastSize){var c=this.lastSize;s=c.width,a=c.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,p=u.width,d=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&d.push(t),n&&d.push(n)})),d.forEach((function(e){["left","top","right","bottom"].forEach((function(t){d.push(e+"-"+t)}))}));var h=[],g=m({},o),v=m({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,c=e.attachment,u=e.pin;void 0===c&&(c="");var f=void 0,d=void 0;if(c.indexOf(" ")>=0){var m=c.split(" "),y=k(m,2);d=y[0],f=y[1]}else f=d=c;var b=K(t,i);"target"!==d&&"both"!==d||(n<b[1]&&"top"===g.top&&(n+=l,g.top="bottom"),n+a>b[3]&&"bottom"===g.top&&(n-=l,g.top="top")),"together"===d&&("top"===g.top&&("bottom"===v.top&&n<b[1]?(n+=l,g.top="bottom",n+=a,v.top="top"):"top"===v.top&&n+a>b[3]&&n-(a-l)>=b[1]&&(n-=a-l,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+a>b[3]?(n-=l,g.top="top",n-=a,v.top="bottom"):"bottom"===v.top&&n<b[1]&&n+(2*a-l)<=b[3]&&(n+=a-l,g.top="top",v.top="top")),"middle"===g.top&&(n+a>b[3]&&"top"===v.top?(n-=a,v.top="bottom"):n<b[1]&&"bottom"===v.top&&(n+=a,v.top="top"))),"target"!==f&&"both"!==f||(r<b[0]&&"left"===g.left&&(r+=p,g.left="right"),r+s>b[2]&&"right"===g.left&&(r-=p,g.left="left")),"together"===f&&(r<b[0]&&"left"===g.left?"right"===v.left?(r+=p,g.left="right",r+=s,v.left="left"):"left"===v.left&&(r+=p,g.left="right",r-=s,v.left="right"):r+s>b[2]&&"right"===g.left?"left"===v.left?(r-=p,g.left="left",r-=s,v.left="right"):"right"===v.left&&(r-=p,g.left="left",r+=s,v.left="left"):"center"===g.left&&(r+s>b[2]&&"left"===v.left?(r-=s,v.left="right"):r<b[0]&&"right"===v.left&&(r+=s,v.left="left"))),"element"!==d&&"both"!==d||(n<b[1]&&"bottom"===v.top&&(n+=a,v.top="top"),n+a>b[3]&&"top"===v.top&&(n-=a,v.top="bottom")),"element"!==f&&"both"!==f||(r<b[0]&&("right"===v.left?(r+=s,v.left="left"):"center"===v.left&&(r+=s/2,v.left="left")),r+s>b[2]&&("left"===v.left?(r-=s,v.left="right"):"center"===v.left&&(r-=s/2,v.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w,O,x=[],S=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],x.push("top")):S.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,x.push("bottom")):S.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],x.push("left")):S.push("left")),r+s>b[2]&&(u.indexOf("right")>=0?(r=b[2]-s,x.push("right")):S.push("right")),x.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),x.forEach((function(e){h.push(w+"-"+e)}))),S.length&&(O=void 0,O=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(O),S.forEach((function(e){h.push(O+"-"+e)}))),(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(v.left=g.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===o.top&&g.left===o.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,g),t.trigger("update",{attachment:v,targetAttachment:g}))})),S((function(){!1!==t.options.addTargetClasses&&O(t.target,h,d),O(t.element,h,d)})),{top:n,left:r}}});var X,f=(X=n.Utils).getBounds,O=X.updateClasses;return S=X.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return f(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),c=n+i,u=r+a,l=[];n<=s.bottom&&c>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==r&&t!==u||l.push(e)})),r<=s.right&&u>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==n&&t!==c||l.push(e)}));var p=[],d=[],h=["left","top","right","bottom"];return p.push(this.getClass("abutted")),h.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),l.length&&d.push(this.getClass("abutted")),l.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),S((function(){!1!==t.options.addTargetClasses&&O(t.target,d,p),O(t.element,d,p)})),!0}}),k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=k(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),q},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},13615:function(e){
62
62
  /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
63
- e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,u="undefined"!=typeof Reflect&&Reflect,l=u.apply,f=u.construct;l||(l=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),s||(s=function(e){return e}),f||(f=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var p=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),m=x(String.prototype.toLowerCase),g=x(String.prototype.match),v=x(String.prototype.replace),y=x(String.prototype.indexOf),b=x(String.prototype.trim),w=x(RegExp.prototype.test),O=S(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(e,n)}}function P(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=m(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function j(e){var n=c(null),r=void 0;for(r in e)l(t,e,[r])&&(n[r]=e[r]);return n}function k(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=a(["#text"]),A=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=s(/<%[\s\S]*|[\s\S]*%>/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),U=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i),z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!==(void 0===e?"undefined":z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),t=function(e){return K(e)};if(t.version="2.3.6",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,c=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,f=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,x=e.HTMLFormElement,S=e.DOMParser,X=e.trustedTypes,J=c.prototype,Q=k(J,"cloneNode"),ee=k(J,"nextSibling"),te=k(J,"childNodes"),ne=k(J,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=$(X,n),ie=oe?oe.createHTML(""):"",ae=r,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=n.importNode,pe={};try{pe=j(r).documentMode?r.documentMode:{}}catch(e){}var de={};t.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he=L,me=F,ge=H,ve=U,ye=W,be=V,we=B,Oe=null,xe=P({},[].concat(G(E),G(_),G(T),G(D),G(M))),Se=null,Pe=P({},[].concat(G(A),G(I),G(N),G(Z))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ee=null,_e=!0,Te=!0,Ce=!1,De=!1,Re=!1,Me=!1,Ae=!1,Ie=!1,Ne=!1,Ze=!1,Le=!0,Fe=!0,He=!1,Ue={},Be=null,We=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=P({},["audio","video","img","source","image","track"]),ze=null,Ge=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",Xe=Ke,Je=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":z(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?P({},e.ALLOWED_TAGS):xe,Se="ALLOWED_ATTR"in e?P({},e.ALLOWED_ATTR):Pe,ze="ADD_URI_SAFE_ATTR"in e?P(j(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ve="ADD_DATA_URI_TAGS"in e?P(j(Ye),e.ADD_DATA_URI_TAGS):Ye,Be="FORBID_CONTENTS"in e?P({},e.FORBID_CONTENTS):We,ke="FORBID_TAGS"in e?P({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?P({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Ze=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Xe=e.NAMESPACE||Ke,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:m,De&&(Te=!1),Ne&&(Ie=!0),Ue&&(Oe=P({},[].concat(G(M))),Se=[],!0===Ue.html&&(P(Oe,E),P(Se,A)),!0===Ue.svg&&(P(Oe,_),P(Se,I),P(Se,Z)),!0===Ue.svgFilters&&(P(Oe,T),P(Se,I),P(Se,Z)),!0===Ue.mathMl&&(P(Oe,D),P(Se,N),P(Se,Z))),e.ADD_TAGS&&(Oe===xe&&(Oe=j(Oe)),P(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(Se===Pe&&(Se=j(Se)),P(Se,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&P(ze,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===We&&(Be=j(Be)),P(Be,e.FORBID_CONTENTS)),Fe&&(Oe["#text"]=!0),Re&&P(Oe,["html","head","body"]),Oe.table&&(P(Oe,["tbody"]),delete ke.tbody),a&&a(e),rt=e)},st=P({},["mi","mo","mn","ms","mtext"]),ct=P({},["foreignobject","desc","title","annotation-xml"]),ut=P({},_);P(ut,T),P(ut,C);var lt=P({},D);P(lt,R);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===$e)return t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ut[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ke?"math"===n:t.namespaceURI===$e?"math"===n&&ct[r]:Boolean(lt[n]);if(e.namespaceURI===Ke){if(t.namespaceURI===$e&&!ct[r])return!1;if(t.namespaceURI===qe&&!st[r])return!1;var o=P({},["title","style","font","a","script"]);return!lt[n]&&(o[n]||!ut[n])}return!1},pt=function(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Se[e])if(Ie||Ne)try{pt(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Xe===Ke)try{t=(new S).parseFromString(i,Qe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ke?le.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof x&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===s?"undefined":z(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,n,r){de[e]&&p(de[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(yt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return pt(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return pt(e),!0;if(!Oe[r]||ke[r]){if(!ke[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Fe&&!Be[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e))}return pt(e),!0}return e instanceof c&&!ft(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(n=e.textContent,n=v(n,he," "),n=v(n,me," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),yt("afterSanitizeElements",e,null),!1):(pt(e),!0)},wt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Te&&!Ee[t]&&w(ge,t));else if(_e&&w(ve,t));else if(!Se[t]||Ee[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&w(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(ze[t]);else if(w(we,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ve[e])if(Ce&&!w(ye,v(n,be,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},xt=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;yt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=a.length;i--;){var c=n=a[i],u=c.name,l=c.namespaceURI;if(r=b(n.value),o=nt(u),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(dt(u,e),s.keepAttr))if(w(/\/>/i,r))dt(u,e);else{De&&(r=v(r,he," "),r=v(r,me," "));var f=nt(e.nodeName);if(wt(f,o,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),d(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},St=function e(t){var n=void 0,r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),xt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,u=void 0,l=void 0,f=void 0;if((Je=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!vt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||at(i),t.removed=[],"string"==typeof r&&(He=!1),He){if(r.nodeName){var p=nt(r.nodeName);if(!Oe[p]||ke[p])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof s)1===(c=(a=ht("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ie&&!De&&!Re&&-1===r.indexOf("<"))return oe&&Ze?oe.createHTML(r):r;if(!(a=ht(r)))return Ie?null:Ze?ie:""}a&&Ae&&pt(a.firstChild);for(var d=mt(He?r:a);u=d.nextNode();)3===u.nodeType&&u===l||bt(u)||(u.content instanceof o&&St(u.content),xt(u),l=u);if(l=null,He)return r;if(Ie){if(Ne)for(f=ue.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Se.shadowroot&&(f=fe.call(n,f,!0)),f}var h=Re?a.outerHTML:a.innerHTML;return Re&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&w(Y,a.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+h),De&&(h=v(h,he," "),h=v(h,me," ")),oe&&Ze?oe.createHTML(h):h},t.setConfig=function(e){at(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),o=nt(t);return wt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],h(de[e],t))},t.removeHook=function(e){de[e]&&d(de[e])},t.removeHooks=function(e){de[e]&&(de[e]=[])},t.removeAllHooks=function(){de={}},t}return K()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},73312:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},88098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(73891),o=n(73312);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(88911);var o=n(72753),i=n(61917);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js",905:"vendor-quill"}[e]||e)+"."+{44:"054fdf64e5fa0cf5b191",85:"af0ed04919b6632ee1f5",198:"7c2af778b99282c30521",399:"5d78bd2328479312d4dd",611:"158a6465d55c9be1d3c2",701:"c750b10226c905e8cd0f",877:"ea8e91a330344f5ac9c7",905:"10899734c8e4c692ee1f",998:"2bf7a12933a2d8750d00"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-devcon:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==i+n){a=f;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(d);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={179:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var u={};return(()=>{"use strict";c.r(u);var e=c(59713),t=c.n(e),n=c(30670),r=c.n(n),o=c(41143),i=c.n(o);function a(e){return"/"===e.charAt(0)}function s(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&a(e),i=t&&a(t),c=o||i;if(e&&a(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var u=void 0;if(r.length){var l=r[r.length-1];u="."===l||".."===l||""===l}else u=!1;for(var f=0,p=r.length;p>=0;p--){var d=r[p];"."===d?s(r,p):".."===d?(s(r,p),f++):f&&(s(r,p),f--)}if(!c)for(;f--;f)r.unshift("..");!c||""===r[0]||r[0]&&a(r[0])||r.unshift("");var h=r.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var f=function(e){return"/"===e.charAt(0)?e:"/"+e},p=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},d=function(e,t){return p(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,i):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},x=function(e,t){return t(window.confirm(e))},S=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},P=function(){return-1===window.navigator.userAgent.indexOf("Trident")},j=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_="popstate",T="hashchange",C=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(b,"Browser history needs a DOM");var t=window.history,n=S(),o=!P(),a=e.forceRefresh,s=void 0!==a&&a,c=e.getUserConfirmation,u=void 0===c?x:c,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(f(e.basename)):"",R=function(e){var t=e||{},n=t.key,o=t.state,i=window.location,a=i.pathname+i.search+i.hash;return r()(!D||p(a,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+D+'".'),D&&(a=d(a,D)),v(a,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},A=y(),I=function(e){E(ee,e),ee.length=t.length,A.notifyListeners(ee.location,ee.action)},N=function(e){j(e)||F(R(e.state))},Z=function(){F(R(C()))},L=!1,F=function(e){if(L)L=!1,I();else{A.confirmTransitionTo(e,"POP",u,(function(t){t?I({action:"POP",location:e}):H(e)}))}},H=function(e){var t=ee.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,z(o))},U=R(C()),B=[U.key],W=function(e){return D+m(e)},V=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.pushState({key:c,state:u},null,o),s)window.location.href=o;else{var l=B.indexOf(ee.location.key),f=B.slice(0,-1===l?0:l+1);f.push(a.key),B=f,I({action:i,location:a})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},Y=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.replaceState({key:c,state:u},null,o),s)window.location.replace(o);else{var l=B.indexOf(ee.location.key);-1!==l&&(B[l]=a.key),I({action:i,location:a})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},z=function(e){t.go(e)},G=function(){return z(-1)},q=function(){return z(1)},$=0,K=function(e){1===($+=e)?(w(window,_,N),o&&w(window,T,Z)):0===$&&(O(window,_,N),o&&O(window,T,Z))},X=!1,J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},Q=function(e){var t=A.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:U,createHref:W,push:V,replace:Y,go:z,goBack:G,goForward:q,block:J,listen:Q};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var R=c(1024),M=c.n(R),A=c(80467),I="tocco-util/LOG_ERROR",N=c(81770),Z=c(319),L=c.n(Z);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?F(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=t()({},I,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return H(H({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(L()(e.messages)).slice(0,100)})})),B={messages:[]};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0,n=U[t.type];return n?n(e,t):e}var V=c(87757),Y=c.n(V),z=c(34857),G=c(50600),q=c(44759),$=Y().mark(K);function K(e,t,n){return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.RE)(q.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),$)}var X=c(21477),J=Y().mark(Q);function Q(e,t,n){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,z.RE)(X.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,z.gz)(r);case 5:case"end":return n.stop()}}),J)}var ee=c(54159),te=Y().mark(ne);function ne(e,t,n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),e.next=3,(0,z.RE)(ee.Z.executeRequest,"log?level=error&message=".concat(encodeURI(r)),{method:"POST"});case 3:case"end":return e.stop()}}),te)}const re={console:K,notification:Q,remote:ne};var oe=Y().mark(se),ie=Y().mark(ce),ae=Y().mark(ue);function se(e,t){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,z.ib)(I,ce,t);case 3:n.next=7;break;case 5:return n.next=7,(0,z.ib)(I,ue);case 7:case"end":return n.stop()}}),oe)}function ce(e,t){var n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.payload,r=n.title,o=n.description,i=n.error,a.next=4,(0,z.$6)(e.map((function(e){return(0,z.RE)(re[e],r,o,i)})));case 4:case"end":return a.stop()}}),ie)}function ue(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(G.Z.emitAction(e));case 2:case"end":return t.stop()}}),ae)}const le=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:I,payload:{title:e,description:t,error:n,dateTime:r}}},fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&N.Z.injectReducers(e,{errorLogging:W}),e.sagaMiddleware.run(se,t,n)};var pe=c(93386),de=c.n(pe),he=(c(30314),c(2100)),me="cache/INITIALISE",ge="cache/SET_INITIALISED",ve=function(e){return{type:ge,payload:{initialised:e}}},ye=t()({},ge,N.Z.singleTransferReducer("initialised")),be={initialised:!1};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0,n=ye[t.type];return n?n(e,t):e}var Oe=c(79311),xe=c(63094),Se=Y().mark(Pe);function Pe(){var e,t,n,r,o,i,a,s,c;return Y().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,z.RE)(xe.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=Oe.Z.getLongTerm("session","locale"),n=Oe.Z.getLongTerm("session","principal"),u.next=7,(0,z.RE)(he.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,i=r.username,a=r.businessUnitId,s=!t||t!==o,c=n&&(n.currentBusinessUnit.id!==a||n.username!==i),u.abrupt("return",s||c||e);case 12:case"end":return u.stop()}}),Se)}var je=Y().mark(Ee),ke=Y().mark(Te);function Ee(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(me,Te)]);case 2:case"end":return e.stop()}}),je)}var _e=!1;function Te(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_e){e.next=4;break}return e.next=3,(0,z.gz)(ve(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,z.RE)(Pe);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,z.RE)(Oe.Z.clearAll);case 10:return _e=!0,e.next=13,(0,z.gz)(ve(!0));case 13:case"end":return e.stop()}}),ke)}var Ce,De,Re,Me,Ae=c(74806),Ie=c(46458),Ne=c(68957),Ze=(c(46444),c(93235)),Le=c(34206),Fe=c(91411),He=c(32678),Ue=c(69829),Be=c(7281),We=(0,He.F4)(Ce||(Ce=(0,Fe.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Ve=(0,He.iv)(De||(De=(0,Fe.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),We),Ye=He.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Re||(Re=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Be.Z.space(-1),Ve,Ue.Fe,Be.Z.space(-1));const ze=He.ZP.div.withConfig({displayName:"StyledLoadMask"})(Me||(Me=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Ge,qe=c(85893);const $e=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,R.useState)(!1),s=(0,Ne.Z)(a,2),c=s[0],u=s[1],l=(0,R.useState)(!0),f=(0,Ne.Z)(l,2),p=f[0],d=f[1];return(0,R.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){p&&u(e)}(!0)})),function(){d(!1)}}),[]),(0,R.useEffect)((function(){n&&Array.isArray(n)&&u(!n.some((function(e){return!e})))}),[n]),(0,qe.jsx)(ze,{className:i,children:c?r:(0,qe.jsxs)(Ye,{children:[Ge||(Ge=(0,qe.jsx)(Ze.Z,{size:"30px"},"loading-spinner")),o&&(0,qe.jsx)(Le.ZP.Span,{children:o},"loadingText")]})})};const Ke=function(e){var t=e.children,n=e.initialised;return(0,qe.jsx)($e,{required:[n],children:t})};const Xe={addToStore:function(e){N.Z.injectReducers(e,{cache:we}),e.sagaMiddleware.run(Ee)},initialise:function(){return{type:me}},CacheInitLoadMask:(0,Ie.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,Ae.ZP)(Ke)),hasInvalidCache:Pe};var Je=c(21101),Qe=c(5435);const et={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var tt=c(85743),nt="keyDown/SET_CONFIG",rt="keyDown/KEY_DOWN",ot=function(e){return{type:nt,payload:{config:e}}},it=function(e){return{type:rt,payload:{config:e}}},at=t()({},nt,N.Z.singleTransferReducer("config")),st={config:[]};function ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st,t=arguments.length>1?arguments[1]:void 0,n=at[t.type];return n?n(e,t):e}var ut=Y().mark(pt),lt=Y().mark(dt),ft=Y().mark(ht);function pt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.$6)([(0,z.RE)(dt,e),(0,z.ib)(rt,ht)]);case 2:case"end":return t.stop()}}),ut)}function dt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(ot(e));case 2:case"end":return t.stop()}}),lt)}function ht(e){var t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,z.$6)(n.actions.map((function(e){return(0,z.gz)(e)})));case 5:case"end":return r.stop()}}),ft)}var mt,gt=c(28655),vt=c.n(gt),yt=He.ZP.div.withConfig({displayName:"StyledDiv"})(mt||(mt=vt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const bt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,R.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),i=(0,R.useCallback)((function(e){return o(e,!0)}),[o]);return(0,R.useEffect)((function(){return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}}),[i]),(0,qe.jsx)(yt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var wt={keyDownHandler:it};const Ot={keyDown:it,addToStore:function(e,t){N.Z.injectReducers(e,{keyDown:ct}),e.sagaMiddleware.run(pt,t)},KeyDownWatcher:(0,Ie.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),wt)(bt)};var xt,St,Pt,jt=He.ZP.div.withConfig({displayName:"StyledApp"})(xt||(xt=vt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),kt=c(82492),Et=c.n(kt),_t=c(76538),Tt=c(88601),Ct=(0,He.vJ)(St||(St=vt()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),Tt.Z.color("signal.success.text"),Tt.Z.color("signal.info.text"),Tt.Z.color("signal.warning.text"),Tt.Z.color("signal.danger.text"),(function(e){var t=e.theme;return(0,_t._j)(.4,t.colors.paper)})),Dt=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,i=(0,R.useMemo)((function(){return Et()({},t,n)}),[t,n]);return(0,qe.jsxs)(He.f6,{theme:o||i,children:[Pt||(Pt=(0,qe.jsx)(Ct,{})),r]})};Dt.defaultProps={defaultTheme:Qe.Z};const Rt=(0,He.Zz)(Dt);var Mt=c(93379),At=c.n(Mt),It=c(7795),Nt=c.n(It),Zt=c(90569),Lt=c.n(Zt),Ft=c(3565),Ht=c.n(Ft),Ut=c(19216),Bt=c.n(Ut),Wt=c(44589),Vt=c.n(Wt),Yt=c(36420),zt={};zt.styleTagTransform=Vt(),zt.setAttributes=Ht(),zt.insert=Lt().bind(null,"head"),zt.domAPI=Nt(),zt.insertStyleElement=Bt();At()(Yt.Z,zt);Yt.Z&&Yt.Z.locals&&Yt.Z.locals;var Gt=function(e){return"widget"===e?et:Qe.Z};const qt=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,i=(0,R.useCallback)((function(e){e&&c.e(198).then(c.bind(c,78947)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),a=tt.Z.getEmbedType();return(0,qe.jsx)(Rt,{customTheme:o,defaultTheme:Gt(a),children:(0,qe.jsx)(Ie.Provider,{store:t,children:(0,qe.jsx)(Ot.KeyDownWatcher,{children:(0,qe.jsx)($e,{promises:[n],children:(0,qe.jsx)(Je.Pj,{children:(0,qe.jsx)(Xe.CacheInitLoadMask,{children:(0,qe.jsx)(jt,{ref:i,children:r})})})})})})})};var $t="app/INPUT_DISPATCHED",Kt=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Xt=function(e){c.p=e},Jt=function(e,t,n,r){var o=de()([n],r),i=e?e.locale:null;return he.Z.initIntl(t,o,i)},Qt=c(15857),en=(c(28500),c(44422));function tn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var nn=tn();nn.withExtraArgument=tn;const rn=nn;var on=c(24688),an={};const sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an;return e};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ln=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};c(63038);const fn=function(e,t,n,r){var o=r.input,i=void 0===o?{}:o,a=r.actions,s=void 0===a?void 0:a,c=r.publicPath,u=void 0===c?void 0:c,l=r.textResourceModules,f=void 0===l?[]:l;try{var p=i.customTheme;u&&Xt(u),s&&(Kt(s,n),n.dispatch({type:$t}),n.dispatch(Xe.initialise()));var d=Jt(i,n,e,f);return{component:(0,qe.jsx)(qt,{store:n,initIntlPromise:d,content:t,theme:p}),store:n,methods:{setLocale:function(e){return he.Z.changeLocale(n,f,e)}}}}catch(e){try{n.dispatch(le("Error","Error creating react application: ",e))}catch(t){q.Z.logError("Error creating react application: ",e),q.Z.logError("Unable to log error: ",t)}}},pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=ln(n),o=(0,en.ZP)(),i=(0,Qt.md)(rn,o),a=un(un({},e),{},{input:sn,intl:Je._8});e=(0,Qt.UY)(a);var s=(0,Qt.MT)(e,r,i);if(s.allReducers=a,s.sagas=t,s.sagaMiddleware=o,s.hotReloadReducers=N.Z.hotReloadReducers,t&&t.length>0){var c=on.Z.createGenerator(t.map((function(e){return(0,z.rM)(e)})));o.run(on.Z.autoRestartSaga(c,null,le))}return s},dn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var hn,mn=c(48479);function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?gn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yn=function(e,n){return function(r,o){return vn(vn({},r),{},t()({},n||o.payload.path,vn(vn({},r[n||o.payload.path]),{},{running:e})))}},bn=(hn={},t()(hn,mn.b0,N.Z.singleTransferReducer("version","dbRefactoring")),t()(hn,mn.FX,N.Z.singleTransferReducer("modules","dbRefactoring")),t()(hn,mn._2,N.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(hn,mn.ZD,N.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(hn,mn.Pt,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(hn,mn.Hx,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(L()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(hn,mn.X7,yn(!0,"dbRefactoring")),t()(hn,mn.DN,yn(!1)),t()(hn,mn.AF,N.Z.singleTransferReducer("language","languageUpgrade")),t()(hn,mn.Bw,yn(!0,"languageUpgrade")),hn),wn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var On=Y().mark(Cn),xn=Y().mark(Dn),Sn=Y().mark(Rn),Pn=Y().mark(Mn),jn=Y().mark(An),kn=Y().mark(In),En=Y().mark(Nn),_n=function(e){return e.dbRefactoring.dbRefactoring},Tn=function(e){return e.dbRefactoring.languageUpgrade};function Cn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(mn.VQ,Dn),(0,z.Fm)(mn.Tf,Rn),(0,z.Fm)(mn.X7,Mn),(0,z.Fm)(mn.Bw,An)]);case 2:case"end":return e.stop()}}),On)}function Dn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),xn)}function Rn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.Rg(e.body));case 5:case"end":return t.stop()}}),Sn)}function Mn(){var e,t,n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,z.Ys)(_n);case 2:return e=a.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,i={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},a.next=10,(0,z.RE)(In,i,"dbRefactoring");case 10:case"end":return a.stop()}}),Pn)}function An(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Tn);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,z.RE)(In,n,"languageUpgrade");case 7:case"end":return r.stop()}}),jn)}function In(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,z.Cs)(Nn,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),q.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),kn,null,[[1,9]])}function Nn(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,z.gw)(3e3);case 2:return o.next=4,(0,z.RE)(xe.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,z.gz)(mn.zL(t));case 9:return o.next=11,(0,z.gz)(X.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,z.gz)(mn.zL(t));case 16:return o.next=18,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,z.RE)(Nn,e);case 22:case"end":return o.stop()}}),En)}var Zn=Y().mark(Ln);function Ln(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Cn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wn,t=arguments.length>1?arguments[1]:void 0,n=bn[t.type];return n?n(e,t):e};var Hn=c(44586),Un="log/RECEIVE_ENTRY",Bn=function(e){return{type:Un,payload:{data:e}}};function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Wn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yn=t()({},Un,(function(e,t){var n=t.payload;return Vn(Vn({},e),{},{entries:[Vn(Vn({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))})})),zn={entries:[]};var Gn=c(47979),qn=Y().mark(Kn),$n=Y().mark(Xn);function Kn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Xn)]);case 2:case"end":return e.stop()}}),qn)}function Xn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Bn},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),$n)}var Jn=Y().mark(Qn);function Qn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Kn)]);case 2:case"end":return e.stop()}}),Jn)}const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zn,t=arguments.length>1?arguments[1]:void 0,n=Yn[t.type];return n?n(e,t):e};var tr,nr=c(49478);function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ir=(tr={},t()(tr,nr.MW,(function(){return or(or({},ar),{},{state:or(or({},ar.state),{},{running:!0})})})),t()(tr,nr.LU,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{total:n.total})})})),t()(tr,nr.pe,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(tr,nr.HM,(function(e,n){var r=n.payload,o=r.id,i=r.type,a=r.label,s=e.checkEvents[i]||[],c=[].concat(L()(s),[{id:o,type:i,label:a}]),u=or(or({},e.checkEvents),{},t()({},i,c));return or(or({},e),{},{checkEvents:u})})),t()(tr,nr.iK,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!1,result:n.result})})})),t()(tr,nr.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),or(or({},e),{},{selection:n})})),t()(tr,nr.VD,N.Z.singleTransferReducer("sql")),t()(tr,nr.g6,N.Z.singleTransferReducer("changelog")),tr),ar={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var sr=c(84137),cr=c(65035);const ur=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const lr=(0,Ie.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(ur);const fr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n}}),(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var pr={setSql:nr.fq,executeSql:nr.Rj};const dr=(0,Ie.connect)((function(e){return{sql:e.modelValidation.sql}}),pr)(fr);var hr=Y().mark(Sr),mr=Y().mark(Pr),gr=Y().mark(jr),vr=Y().mark(kr),yr=Y().mark(Er),br=Y().mark(_r),wr=Y().mark(Tr),Or=function(e){return e.modelValidation.selection},xr=function(e){return e.modelValidation.sql};function Sr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Pr),(0,z.ib)(nr.MW,jr),(0,z.ib)(nr.EJ,kr),(0,z.ib)(nr.es,Er),(0,z.ib)(nr.dQ,_r),(0,z.ib)(nr.Ge,Tr)]);case 2:case"end":return e.stop()}}),hr)}function Pr(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:nr.QM},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),mr)}function jr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),q.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),gr,null,[[0,5]])}function kr(e){var t;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,z.gz)(nr.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,z.gz)(nr.o1(t.message.params.total));case 10:return n.next=12,(0,z.gz)(nr.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,z.gz)(nr.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),vr)}function Er(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,z.gz)(X.Z.modal("sql","SQL",null,dr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),yr,null,[[4,14]])}function _r(e){var t,n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,z.Ys)(xr);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,z.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),q.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),br,null,[[5,14]])}function Tr(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.EL(n.body.statements[0]));case 10:return r.next=12,(0,z.gz)(X.Z.modal("changelog","Changelog",null,lr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),wr,null,[[4,14]])}var Cr=Y().mark(Dr);function Dr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Sr)]);case 2:case"end":return e.stop()}}),Cr)}const Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1?arguments[1]:void 0,n=ir[t.type];return n?n(e,t):e};var Mr,Ar=c(22541);function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ir(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=(Mr={},t()(Mr,Ar.Z9,(function(e,t){var n=t.payload;return e.active?Nr(Nr({},e),{},{entries:[Nr(Nr({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))}):e})),t()(Mr,Ar.HI,N.Z.singleTransferReducer("active")),t()(Mr,Ar.Zm,N.Z.singleTransferReducer("elapsed")),Mr),Lr={entries:[],active:!1,elapsed:null};var Fr=Y().mark(Ur),Hr=Y().mark(Br);function Ur(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Br)]);case 2:case"end":return e.stop()}}),Fr)}function Br(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:Ar.oS},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Hr)}var Wr=Y().mark(Vr);function Vr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Ur)]);case 2:case"end":return e.stop()}}),Wr)}const Yr={log:er,dbRefactoring:Fn,modelValidation:Rr,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Zr[t.type];return n?n(e,t):e}};var zr,Gr,qr=[Ln,Qn,Dr,Vr];function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Kr="devcon",Xr=M().lazy((function(){return c.e(85).then(c.bind(c,5702))})),Jr=function(){return zr||(zr=(0,qe.jsx)("div",{children:(0,qe.jsx)(R.Suspense,{fallback:"",children:(0,qe.jsx)(Xr,{})})}))},Qr=function(e,n,r,o){var i=pn(Yr,qr,n,Kr);fe(i,!0,["console","remote","notification"]),X.Z.addToStore(i,!0);var a=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$r(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),s=(0,qe.jsx)(A.F0,{history:a,children:Gr||(Gr=(0,qe.jsx)(Jr,{}))});return fn(Kr,s,i,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",Kr]})};dn(Kr,Qr)})(),u})()));
63
+ e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,u="undefined"!=typeof Reflect&&Reflect,l=u.apply,f=u.construct;l||(l=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),s||(s=function(e){return e}),f||(f=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var p=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),m=x(String.prototype.toLowerCase),g=x(String.prototype.match),v=x(String.prototype.replace),y=x(String.prototype.indexOf),b=x(String.prototype.trim),w=x(RegExp.prototype.test),O=S(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(e,n)}}function P(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=m(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function j(e){var n=c(null),r=void 0;for(r in e)l(t,e,[r])&&(n[r]=e[r]);return n}function k(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=a(["#text"]),A=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=s(/<%[\s\S]*|[\s\S]*%>/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),U=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i),z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!==(void 0===e?"undefined":z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),t=function(e){return K(e)};if(t.version="2.3.6",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,c=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,f=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,x=e.HTMLFormElement,S=e.DOMParser,X=e.trustedTypes,J=c.prototype,Q=k(J,"cloneNode"),ee=k(J,"nextSibling"),te=k(J,"childNodes"),ne=k(J,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=$(X,n),ie=oe?oe.createHTML(""):"",ae=r,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=n.importNode,pe={};try{pe=j(r).documentMode?r.documentMode:{}}catch(e){}var de={};t.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he=L,me=F,ge=H,ve=U,ye=W,be=V,we=B,Oe=null,xe=P({},[].concat(G(E),G(_),G(T),G(D),G(M))),Se=null,Pe=P({},[].concat(G(A),G(I),G(N),G(Z))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ee=null,_e=!0,Te=!0,Ce=!1,De=!1,Re=!1,Me=!1,Ae=!1,Ie=!1,Ne=!1,Ze=!1,Le=!0,Fe=!0,He=!1,Ue={},Be=null,We=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=P({},["audio","video","img","source","image","track"]),ze=null,Ge=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",Xe=Ke,Je=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":z(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?P({},e.ALLOWED_TAGS):xe,Se="ALLOWED_ATTR"in e?P({},e.ALLOWED_ATTR):Pe,ze="ADD_URI_SAFE_ATTR"in e?P(j(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ve="ADD_DATA_URI_TAGS"in e?P(j(Ye),e.ADD_DATA_URI_TAGS):Ye,Be="FORBID_CONTENTS"in e?P({},e.FORBID_CONTENTS):We,ke="FORBID_TAGS"in e?P({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?P({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Ze=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Xe=e.NAMESPACE||Ke,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:m,De&&(Te=!1),Ne&&(Ie=!0),Ue&&(Oe=P({},[].concat(G(M))),Se=[],!0===Ue.html&&(P(Oe,E),P(Se,A)),!0===Ue.svg&&(P(Oe,_),P(Se,I),P(Se,Z)),!0===Ue.svgFilters&&(P(Oe,T),P(Se,I),P(Se,Z)),!0===Ue.mathMl&&(P(Oe,D),P(Se,N),P(Se,Z))),e.ADD_TAGS&&(Oe===xe&&(Oe=j(Oe)),P(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(Se===Pe&&(Se=j(Se)),P(Se,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&P(ze,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===We&&(Be=j(Be)),P(Be,e.FORBID_CONTENTS)),Fe&&(Oe["#text"]=!0),Re&&P(Oe,["html","head","body"]),Oe.table&&(P(Oe,["tbody"]),delete ke.tbody),a&&a(e),rt=e)},st=P({},["mi","mo","mn","ms","mtext"]),ct=P({},["foreignobject","desc","title","annotation-xml"]),ut=P({},_);P(ut,T),P(ut,C);var lt=P({},D);P(lt,R);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===$e)return t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ut[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ke?"math"===n:t.namespaceURI===$e?"math"===n&&ct[r]:Boolean(lt[n]);if(e.namespaceURI===Ke){if(t.namespaceURI===$e&&!ct[r])return!1;if(t.namespaceURI===qe&&!st[r])return!1;var o=P({},["title","style","font","a","script"]);return!lt[n]&&(o[n]||!ut[n])}return!1},pt=function(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Se[e])if(Ie||Ne)try{pt(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Xe===Ke)try{t=(new S).parseFromString(i,Qe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ke?le.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof x&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===s?"undefined":z(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,n,r){de[e]&&p(de[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(yt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return pt(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return pt(e),!0;if(!Oe[r]||ke[r]){if(!ke[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Fe&&!Be[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e))}return pt(e),!0}return e instanceof c&&!ft(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(n=e.textContent,n=v(n,he," "),n=v(n,me," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),yt("afterSanitizeElements",e,null),!1):(pt(e),!0)},wt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Te&&!Ee[t]&&w(ge,t));else if(_e&&w(ve,t));else if(!Se[t]||Ee[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&w(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&w(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(ze[t]);else if(w(we,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ve[e])if(Ce&&!w(ye,v(n,be,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},xt=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;yt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=a.length;i--;){var c=n=a[i],u=c.name,l=c.namespaceURI;if(r=b(n.value),o=nt(u),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(dt(u,e),s.keepAttr))if(w(/\/>/i,r))dt(u,e);else{De&&(r=v(r,he," "),r=v(r,me," "));var f=nt(e.nodeName);if(wt(f,o,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),d(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},St=function e(t){var n=void 0,r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),xt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,u=void 0,l=void 0,f=void 0;if((Je=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!vt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||at(i),t.removed=[],"string"==typeof r&&(He=!1),He){if(r.nodeName){var p=nt(r.nodeName);if(!Oe[p]||ke[p])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof s)1===(c=(a=ht("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Ie&&!De&&!Re&&-1===r.indexOf("<"))return oe&&Ze?oe.createHTML(r):r;if(!(a=ht(r)))return Ie?null:Ze?ie:""}a&&Ae&&pt(a.firstChild);for(var d=mt(He?r:a);u=d.nextNode();)3===u.nodeType&&u===l||bt(u)||(u.content instanceof o&&St(u.content),xt(u),l=u);if(l=null,He)return r;if(Ie){if(Ne)for(f=ue.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Se.shadowroot&&(f=fe.call(n,f,!0)),f}var h=Re?a.outerHTML:a.innerHTML;return Re&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&w(Y,a.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+h),De&&(h=v(h,he," "),h=v(h,me," ")),oe&&Ze?oe.createHTML(h):h},t.setConfig=function(e){at(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),o=nt(t);return wt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],h(de[e],t))},t.removeHook=function(e){de[e]&&d(de[e])},t.removeHooks=function(e){de[e]&&(de[e]=[])},t.removeAllHooks=function(){de={}},t}return K()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},73312:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},88098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(73891),o=n(73312);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(88911);var o=n(72753),i=n(61917);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js",905:"vendor-quill"}[e]||e)+"."+{44:"054fdf64e5fa0cf5b191",85:"7e4465635fa4c88fa0fa",198:"7c2af778b99282c30521",399:"5d78bd2328479312d4dd",611:"158a6465d55c9be1d3c2",701:"c750b10226c905e8cd0f",877:"ea8e91a330344f5ac9c7",905:"10899734c8e4c692ee1f",998:"2bf7a12933a2d8750d00"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-devcon:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==i+n){a=f;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(d);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={179:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var u={};return(()=>{"use strict";c.r(u);var e=c(59713),t=c.n(e),n=c(30670),r=c.n(n),o=c(41143),i=c.n(o);function a(e){return"/"===e.charAt(0)}function s(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&a(e),i=t&&a(t),c=o||i;if(e&&a(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var u=void 0;if(r.length){var l=r[r.length-1];u="."===l||".."===l||""===l}else u=!1;for(var f=0,p=r.length;p>=0;p--){var d=r[p];"."===d?s(r,p):".."===d?(s(r,p),f++):f&&(s(r,p),f--)}if(!c)for(;f--;f)r.unshift("..");!c||""===r[0]||r[0]&&a(r[0])||r.unshift("");var h=r.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var f=function(e){return"/"===e.charAt(0)?e:"/"+e},p=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},d=function(e,t){return p(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,i):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},x=function(e,t){return t(window.confirm(e))},S=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},P=function(){return-1===window.navigator.userAgent.indexOf("Trident")},j=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_="popstate",T="hashchange",C=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(b,"Browser history needs a DOM");var t=window.history,n=S(),o=!P(),a=e.forceRefresh,s=void 0!==a&&a,c=e.getUserConfirmation,u=void 0===c?x:c,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(f(e.basename)):"",R=function(e){var t=e||{},n=t.key,o=t.state,i=window.location,a=i.pathname+i.search+i.hash;return r()(!D||p(a,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+D+'".'),D&&(a=d(a,D)),v(a,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},A=y(),I=function(e){E(ee,e),ee.length=t.length,A.notifyListeners(ee.location,ee.action)},N=function(e){j(e)||F(R(e.state))},Z=function(){F(R(C()))},L=!1,F=function(e){if(L)L=!1,I();else{A.confirmTransitionTo(e,"POP",u,(function(t){t?I({action:"POP",location:e}):H(e)}))}},H=function(e){var t=ee.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,z(o))},U=R(C()),B=[U.key],W=function(e){return D+m(e)},V=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.pushState({key:c,state:u},null,o),s)window.location.href=o;else{var l=B.indexOf(ee.location.key),f=B.slice(0,-1===l?0:l+1);f.push(a.key),B=f,I({action:i,location:a})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},Y=function(e,o){r()(!("object"===(void 0===e?"undefined":k(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=v(e,o,M(),ee.location);A.confirmTransitionTo(a,i,u,(function(e){if(e){var o=W(a),c=a.key,u=a.state;if(n)if(t.replaceState({key:c,state:u},null,o),s)window.location.replace(o);else{var l=B.indexOf(ee.location.key);-1!==l&&(B[l]=a.key),I({action:i,location:a})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},z=function(e){t.go(e)},G=function(){return z(-1)},q=function(){return z(1)},$=0,K=function(e){1===($+=e)?(w(window,_,N),o&&w(window,T,Z)):0===$&&(O(window,_,N),o&&O(window,T,Z))},X=!1,J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},Q=function(e){var t=A.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:U,createHref:W,push:V,replace:Y,go:z,goBack:G,goForward:q,block:J,listen:Q};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var R=c(1024),M=c.n(R),A=c(80467),I="tocco-util/LOG_ERROR",N=c(81770),Z=c(319),L=c.n(Z);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?F(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=t()({},I,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return H(H({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(L()(e.messages)).slice(0,100)})})),B={messages:[]};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0,n=U[t.type];return n?n(e,t):e}var V=c(87757),Y=c.n(V),z=c(34857),G=c(50600),q=c(44759),$=Y().mark(K);function K(e,t,n){return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.RE)(q.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),$)}var X=c(21477),J=Y().mark(Q);function Q(e,t,n){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,z.RE)(X.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,z.gz)(r);case 5:case"end":return n.stop()}}),J)}var ee=c(54159),te=Y().mark(ne);function ne(e,t,n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),e.next=3,(0,z.RE)(ee.Z.executeRequest,"log?level=error&message=".concat(encodeURI(r)),{method:"POST"});case 3:case"end":return e.stop()}}),te)}const re={console:K,notification:Q,remote:ne};var oe=Y().mark(se),ie=Y().mark(ce),ae=Y().mark(ue);function se(e,t){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,z.ib)(I,ce,t);case 3:n.next=7;break;case 5:return n.next=7,(0,z.ib)(I,ue);case 7:case"end":return n.stop()}}),oe)}function ce(e,t){var n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.payload,r=n.title,o=n.description,i=n.error,a.next=4,(0,z.$6)(e.map((function(e){return(0,z.RE)(re[e],r,o,i)})));case 4:case"end":return a.stop()}}),ie)}function ue(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(G.Z.emitAction(e));case 2:case"end":return t.stop()}}),ae)}const le=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:I,payload:{title:e,description:t,error:n,dateTime:r}}},fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&N.Z.injectReducers(e,{errorLogging:W}),e.sagaMiddleware.run(se,t,n)};var pe=c(93386),de=c.n(pe),he=(c(30314),c(2100)),me="cache/INITIALISE",ge="cache/SET_INITIALISED",ve=function(e){return{type:ge,payload:{initialised:e}}},ye=t()({},ge,N.Z.singleTransferReducer("initialised")),be={initialised:!1};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0,n=ye[t.type];return n?n(e,t):e}var Oe=c(79311),xe=c(63094),Se=Y().mark(Pe);function Pe(){var e,t,n,r,o,i,a,s,c;return Y().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,z.RE)(xe.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=Oe.Z.getLongTerm("session","locale"),n=Oe.Z.getLongTerm("session","principal"),u.next=7,(0,z.RE)(he.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,i=r.username,a=r.businessUnitId,s=!t||t!==o,c=n&&(n.currentBusinessUnit.id!==a||n.username!==i),u.abrupt("return",s||c||e);case 12:case"end":return u.stop()}}),Se)}var je=Y().mark(Ee),ke=Y().mark(Te);function Ee(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(me,Te)]);case 2:case"end":return e.stop()}}),je)}var _e=!1;function Te(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_e){e.next=4;break}return e.next=3,(0,z.gz)(ve(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,z.RE)(Pe);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,z.RE)(Oe.Z.clearAll);case 10:return _e=!0,e.next=13,(0,z.gz)(ve(!0));case 13:case"end":return e.stop()}}),ke)}var Ce,De,Re,Me,Ae=c(74806),Ie=c(46458),Ne=c(68957),Ze=(c(46444),c(93235)),Le=c(34206),Fe=c(91411),He=c(32678),Ue=c(69829),Be=c(7281),We=(0,He.F4)(Ce||(Ce=(0,Fe.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Ve=(0,He.iv)(De||(De=(0,Fe.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),We),Ye=He.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Re||(Re=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Be.Z.space(-1),Ve,Ue.Fe,Be.Z.space(-1));const ze=He.ZP.div.withConfig({displayName:"StyledLoadMask"})(Me||(Me=(0,Fe.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Ge,qe=c(85893);const $e=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,R.useState)(!1),s=(0,Ne.Z)(a,2),c=s[0],u=s[1],l=(0,R.useState)(!0),f=(0,Ne.Z)(l,2),p=f[0],d=f[1];return(0,R.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){p&&u(e)}(!0)})),function(){d(!1)}}),[]),(0,R.useEffect)((function(){n&&Array.isArray(n)&&u(!n.some((function(e){return!e})))}),[n]),(0,qe.jsx)(ze,{className:i,children:c?r:(0,qe.jsxs)(Ye,{children:[Ge||(Ge=(0,qe.jsx)(Ze.Z,{size:"30px"},"loading-spinner")),o&&(0,qe.jsx)(Le.ZP.Span,{children:o},"loadingText")]})})};const Ke=function(e){var t=e.children,n=e.initialised;return(0,qe.jsx)($e,{required:[n],children:t})};const Xe={addToStore:function(e){N.Z.injectReducers(e,{cache:we}),e.sagaMiddleware.run(Ee)},initialise:function(){return{type:me}},CacheInitLoadMask:(0,Ie.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,Ae.ZP)(Ke)),hasInvalidCache:Pe};var Je=c(21101),Qe=c(5435);const et={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var tt=c(85743),nt="keyDown/SET_CONFIG",rt="keyDown/KEY_DOWN",ot=function(e){return{type:nt,payload:{config:e}}},it=function(e){return{type:rt,payload:{config:e}}},at=t()({},nt,N.Z.singleTransferReducer("config")),st={config:[]};function ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st,t=arguments.length>1?arguments[1]:void 0,n=at[t.type];return n?n(e,t):e}var ut=Y().mark(pt),lt=Y().mark(dt),ft=Y().mark(ht);function pt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.$6)([(0,z.RE)(dt,e),(0,z.ib)(rt,ht)]);case 2:case"end":return t.stop()}}),ut)}function dt(e){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.gz)(ot(e));case 2:case"end":return t.stop()}}),lt)}function ht(e){var t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,z.$6)(n.actions.map((function(e){return(0,z.gz)(e)})));case 5:case"end":return r.stop()}}),ft)}var mt,gt=c(28655),vt=c.n(gt),yt=He.ZP.div.withConfig({displayName:"StyledDiv"})(mt||(mt=vt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const bt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,R.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),i=(0,R.useCallback)((function(e){return o(e,!0)}),[o]);return(0,R.useEffect)((function(){return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}}),[i]),(0,qe.jsx)(yt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var wt={keyDownHandler:it};const Ot={keyDown:it,addToStore:function(e,t){N.Z.injectReducers(e,{keyDown:ct}),e.sagaMiddleware.run(pt,t)},KeyDownWatcher:(0,Ie.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),wt)(bt)};var xt,St,Pt,jt=He.ZP.div.withConfig({displayName:"StyledApp"})(xt||(xt=vt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),kt=c(82492),Et=c.n(kt),_t=c(76538),Tt=c(88601),Ct=(0,He.vJ)(St||(St=vt()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),Tt.Z.color("signal.success.text"),Tt.Z.color("signal.info.text"),Tt.Z.color("signal.warning.text"),Tt.Z.color("signal.danger.text"),(function(e){var t=e.theme;return(0,_t._j)(.4,t.colors.paper)})),Dt=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,i=(0,R.useMemo)((function(){return Et()({},t,n)}),[t,n]);return(0,qe.jsxs)(He.f6,{theme:o||i,children:[Pt||(Pt=(0,qe.jsx)(Ct,{})),r]})};Dt.defaultProps={defaultTheme:Qe.Z};const Rt=(0,He.Zz)(Dt);var Mt=c(93379),At=c.n(Mt),It=c(7795),Nt=c.n(It),Zt=c(90569),Lt=c.n(Zt),Ft=c(3565),Ht=c.n(Ft),Ut=c(19216),Bt=c.n(Ut),Wt=c(44589),Vt=c.n(Wt),Yt=c(36420),zt={};zt.styleTagTransform=Vt(),zt.setAttributes=Ht(),zt.insert=Lt().bind(null,"head"),zt.domAPI=Nt(),zt.insertStyleElement=Bt();At()(Yt.Z,zt);Yt.Z&&Yt.Z.locals&&Yt.Z.locals;var Gt=function(e){return"widget"===e?et:Qe.Z};const qt=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,i=(0,R.useCallback)((function(e){e&&c.e(198).then(c.bind(c,78947)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),a=tt.Z.getEmbedType();return(0,qe.jsx)(Rt,{customTheme:o,defaultTheme:Gt(a),children:(0,qe.jsx)(Ie.Provider,{store:t,children:(0,qe.jsx)(Ot.KeyDownWatcher,{children:(0,qe.jsx)($e,{promises:[n],children:(0,qe.jsx)(Je.Pj,{children:(0,qe.jsx)(Xe.CacheInitLoadMask,{children:(0,qe.jsx)(jt,{ref:i,children:r})})})})})})})};var $t="app/INPUT_DISPATCHED",Kt=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Xt=function(e){c.p=e},Jt=function(e,t,n,r){var o=de()([n],r),i=e?e.locale:null;return he.Z.initIntl(t,o,i)},Qt=c(15857),en=(c(28500),c(44422));function tn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var nn=tn();nn.withExtraArgument=tn;const rn=nn;var on=c(24688),an={};const sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an;return e};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ln=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};c(63038);const fn=function(e,t,n,r){var o=r.input,i=void 0===o?{}:o,a=r.actions,s=void 0===a?void 0:a,c=r.publicPath,u=void 0===c?void 0:c,l=r.textResourceModules,f=void 0===l?[]:l;try{var p=i.customTheme;u&&Xt(u),s&&(Kt(s,n),n.dispatch({type:$t}),n.dispatch(Xe.initialise()));var d=Jt(i,n,e,f);return{component:(0,qe.jsx)(qt,{store:n,initIntlPromise:d,content:t,theme:p}),store:n,methods:{setLocale:function(e){return he.Z.changeLocale(n,f,e)}}}}catch(e){try{n.dispatch(le("Error","Error creating react application: ",e))}catch(t){q.Z.logError("Error creating react application: ",e),q.Z.logError("Unable to log error: ",t)}}},pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=ln(n),o=(0,en.ZP)(),i=(0,Qt.md)(rn,o),a=un(un({},e),{},{input:sn,intl:Je._8});e=(0,Qt.UY)(a);var s=(0,Qt.MT)(e,r,i);if(s.allReducers=a,s.sagas=t,s.sagaMiddleware=o,s.hotReloadReducers=N.Z.hotReloadReducers,t&&t.length>0){var c=on.Z.createGenerator(t.map((function(e){return(0,z.rM)(e)})));o.run(on.Z.autoRestartSaga(c,null,le))}return s},dn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var hn,mn=c(48479);function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?gn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yn=function(e,n){return function(r,o){return vn(vn({},r),{},t()({},n||o.payload.path,vn(vn({},r[n||o.payload.path]),{},{running:e})))}},bn=(hn={},t()(hn,mn.b0,N.Z.singleTransferReducer("version","dbRefactoring")),t()(hn,mn.FX,N.Z.singleTransferReducer("modules","dbRefactoring")),t()(hn,mn._2,N.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(hn,mn.ZD,N.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(hn,mn.Pt,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(hn,mn.Hx,(function(e,t){return vn(vn({},e),{},{dbRefactoring:vn(vn({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(L()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(hn,mn.X7,yn(!0,"dbRefactoring")),t()(hn,mn.DN,yn(!1)),t()(hn,mn.AF,N.Z.singleTransferReducer("language","languageUpgrade")),t()(hn,mn.Bw,yn(!0,"languageUpgrade")),hn),wn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var On=Y().mark(Cn),xn=Y().mark(Dn),Sn=Y().mark(Rn),Pn=Y().mark(Mn),jn=Y().mark(An),kn=Y().mark(In),En=Y().mark(Nn),_n=function(e){return e.dbRefactoring.dbRefactoring},Tn=function(e){return e.dbRefactoring.languageUpgrade};function Cn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.Fm)(mn.VQ,Dn),(0,z.Fm)(mn.Tf,Rn),(0,z.Fm)(mn.X7,Mn),(0,z.Fm)(mn.Bw,An)]);case 2:case"end":return e.stop()}}),On)}function Dn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),xn)}function Rn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,z.gz)(mn.Rg(e.body));case 5:case"end":return t.stop()}}),Sn)}function Mn(){var e,t,n,r,o,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,z.Ys)(_n);case 2:return e=a.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,i={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},a.next=10,(0,z.RE)(In,i,"dbRefactoring");case 10:case"end":return a.stop()}}),Pn)}function An(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Tn);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,z.RE)(In,n,"languageUpgrade");case 7:case"end":return r.stop()}}),jn)}function In(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,z.RE)(xe.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,z.Cs)(Nn,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),q.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),kn,null,[[1,9]])}function Nn(e,t){var n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,z.gw)(3e3);case 2:return o.next=4,(0,z.RE)(xe.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,z.gz)(mn.zL(t));case 9:return o.next=11,(0,z.gz)(X.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,z.gz)(mn.zL(t));case 16:return o.next=18,(0,z.gz)(X.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,z.RE)(Nn,e);case 22:case"end":return o.stop()}}),En)}var Zn=Y().mark(Ln);function Ln(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Cn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wn,t=arguments.length>1?arguments[1]:void 0,n=bn[t.type];return n?n(e,t):e};var Hn=c(44586),Un="log/RECEIVE_ENTRY",Bn=function(e){return{type:Un,payload:{data:e}}};function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Wn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yn=t()({},Un,(function(e,t){var n=t.payload;return Vn(Vn({},e),{},{entries:[Vn(Vn({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))})})),zn={entries:[]};var Gn=c(47979),qn=Y().mark(Kn),$n=Y().mark(Xn);function Kn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Xn)]);case 2:case"end":return e.stop()}}),qn)}function Xn(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Bn},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),$n)}var Jn=Y().mark(Qn);function Qn(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Kn)]);case 2:case"end":return e.stop()}}),Jn)}const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zn,t=arguments.length>1?arguments[1]:void 0,n=Yn[t.type];return n?n(e,t):e};var tr,nr=c(49478);function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ir=(tr={},t()(tr,nr.MW,(function(){return or(or({},ar),{},{state:or(or({},ar.state),{},{running:!0})})})),t()(tr,nr.LU,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{total:n.total})})})),t()(tr,nr.pe,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(tr,nr.HM,(function(e,n){var r=n.payload,o=r.id,i=r.type,a=r.label,s=e.checkEvents[i]||[],c=[].concat(L()(s),[{id:o,type:i,label:a}]),u=or(or({},e.checkEvents),{},t()({},i,c));return or(or({},e),{},{checkEvents:u})})),t()(tr,nr.iK,(function(e,t){var n=t.payload;return or(or({},e),{},{state:or(or({},e.state),{},{running:!1,result:n.result})})})),t()(tr,nr.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),or(or({},e),{},{selection:n})})),t()(tr,nr.VD,N.Z.singleTransferReducer("sql")),t()(tr,nr.g6,N.Z.singleTransferReducer("changelog")),tr),ar={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var sr=c(84137),cr=c(65035);const ur=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const lr=(0,Ie.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(ur);const fr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,qe.jsxs)("div",{children:[(0,qe.jsx)(sr.Z,{type:"text",value:t,events:{onChange:n}}),(0,qe.jsx)(cr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var pr={setSql:nr.fq,executeSql:nr.Rj};const dr=(0,Ie.connect)((function(e){return{sql:e.modelValidation.sql}}),pr)(fr);var hr=Y().mark(Sr),mr=Y().mark(Pr),gr=Y().mark(jr),vr=Y().mark(kr),yr=Y().mark(Er),br=Y().mark(_r),wr=Y().mark(Tr),Or=function(e){return e.modelValidation.selection},xr=function(e){return e.modelValidation.sql};function Sr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Pr),(0,z.ib)(nr.MW,jr),(0,z.ib)(nr.EJ,kr),(0,z.ib)(nr.es,Er),(0,z.ib)(nr.dQ,_r),(0,z.ib)(nr.Ge,Tr)]);case 2:case"end":return e.stop()}}),hr)}function Pr(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:nr.QM},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),mr)}function jr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),q.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),gr,null,[[0,5]])}function kr(e){var t;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,z.gz)(nr.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,z.gz)(nr.o1(t.message.params.total));case 10:return n.next=12,(0,z.gz)(nr.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,z.gz)(nr.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),vr)}function Er(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,z.gz)(X.Z.modal("sql","SQL",null,dr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),yr,null,[[4,14]])}function _r(e){var t,n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,z.Ys)(xr);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,z.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),q.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),br,null,[[5,14]])}function Tr(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,z.Ys)(Or);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,z.RE)(xe.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,z.gz)(nr.EL(n.body.statements[0]));case 10:return r.next=12,(0,z.gz)(X.Z.modal("changelog","Changelog",null,lr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),q.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,z.gz)(X.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),wr,null,[[4,14]])}var Cr=Y().mark(Dr);function Dr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Sr)]);case 2:case"end":return e.stop()}}),Cr)}const Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1?arguments[1]:void 0,n=ir[t.type];return n?n(e,t):e};var Mr,Ar=c(22541);function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ir(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=(Mr={},t()(Mr,Ar.Z9,(function(e,t){var n=t.payload;return e.active?Nr(Nr({},e),{},{entries:[Nr(Nr({},n.data),{},{key:(0,Hn.Z)()})].concat(L()(e.entries))}):e})),t()(Mr,Ar.HI,N.Z.singleTransferReducer("active")),t()(Mr,Ar.Zm,N.Z.singleTransferReducer("elapsed")),Mr),Lr={entries:[],active:!1,elapsed:null};var Fr=Y().mark(Ur),Hr=Y().mark(Br);function Ur(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.RE)(Br)]);case 2:case"end":return e.stop()}}),Fr)}function Br(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:Ar.oS},t.next=3,(0,z.RE)(Gn.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Hr)}var Wr=Y().mark(Vr);function Vr(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.$6)([(0,z.rM)(Ur)]);case 2:case"end":return e.stop()}}),Wr)}const Yr={log:er,dbRefactoring:Fn,modelValidation:Rr,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Zr[t.type];return n?n(e,t):e}};var zr,Gr,qr=[Ln,Qn,Dr,Vr];function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Kr="devcon",Xr=M().lazy((function(){return c.e(85).then(c.bind(c,5702))})),Jr=function(){return zr||(zr=(0,qe.jsx)("div",{children:(0,qe.jsx)(R.Suspense,{fallback:"",children:(0,qe.jsx)(Xr,{})})}))},Qr=function(e,n,r,o){var i=pn(Yr,qr,n,Kr);fe(i,!0,["console","remote","notification"]),X.Z.addToStore(i,!0);var a=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$r(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),s=(0,qe.jsx)(A.F0,{history:a,children:Gr||(Gr=(0,qe.jsx)(Jr,{}))});return fn(Kr,s,i,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",Kr]})};dn(Kr,Qr)})(),u})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-devcon",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {