@entryscape/rdforms 10.11.1 → 10.11.2
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/dist/rdforms.bmd.js +1 -1
- package/dist/rdforms.bootstrap.js +1 -1
- package/dist/rdforms.react.js +1 -1
- package/package.json +1 -1
- package/src/view/bmd/Selectize.js +1 -1
- package/src/view/bootstrap/Select2.js +1 -0
- package/src/view/bootstrap/Select2QueryAdapter.js +1 -1
- package/src/view/react/choiceEditors/ChoiceLookupAndInlineSearch.js +1 -1
package/dist/rdforms.react.js
CHANGED
|
@@ -164,4 +164,4 @@ var r=n(8764),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t
|
|
|
164
164
|
animation-iteration-count: infinite;
|
|
165
165
|
animation-delay: 200ms;
|
|
166
166
|
}
|
|
167
|
-
`),Z.rippleVisible,$,550,({theme:e})=>e.transitions.easing.easeInOut,Z.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Z.child,Z.childLeaving,H,550,({theme:e})=>e.transitions.easing.easeInOut,Z.childPulsate,Y,({theme:e})=>e.transitions.easing.easeInOut),K=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=(0,l.Z)(r,F),[d,f]=e.useState([]),p=e.useRef(0),h=e.useRef(null);e.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const g=e.useRef(!1),y=e.useRef(0),v=e.useRef(null),b=e.useRef(null);e.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const w=e.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;f(e=>[...e,(0,I.jsx)(q,{classes:{ripple:(0,c.Z)(i.ripple,Z.ripple),rippleVisible:(0,c.Z)(i.rippleVisible,Z.rippleVisible),ripplePulsate:(0,c.Z)(i.ripplePulsate,Z.ripplePulsate),child:(0,c.Z)(i.child,Z.child),childLeaving:(0,c.Z)(i.childLeaving,Z.childLeaving),childPulsate:(0,c.Z)(i.childPulsate,Z.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},p.current)]),p.current+=1,h.current=a},[i]),x=e.useCallback((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{w({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},80)):w({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[o,w]),S=e.useCallback(()=>{x({},{pulsate:!0})},[x]),_=e.useCallback((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void(y.current=setTimeout(()=>{_(e,t)}));v.current=null,f(e=>e.length>0?e.slice(1):e),h.current=t},[]);return e.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:_}),[S,x,_]),(0,I.jsx)(G,(0,u.Z)({className:(0,c.Z)(Z.root,i.root,a),ref:b},s,{children:(0,I.jsx)(P,{component:null,exit:!0,children:d})}))}));var X=o(4867);function Q(e){return(0,X.ZP)("MuiButtonBase",e)}const J=(0,L.Z)("MuiButtonBase",["root","disabled","focusVisible"]),ee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],te=(0,h.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&."+J.disabled]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ne=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:b=!1,focusRipple:w=!1,LinkComponent:x="a",onBlur:S,onClick:_,onContextMenu:k,onDragLeave:E,onFocus:C,onFocusVisible:P,onKeyDown:T,onKeyUp:O,onMouseDown:R,onMouseLeave:A,onMouseUp:M,onTouchEnd:D,onTouchMove:j,onTouchStart:N,tabIndex:L=0,TouchRippleProps:Z,touchRippleRef:F,type:B}=r,V=(0,l.Z)(r,ee),z=e.useRef(null),W=e.useRef(null),U=(0,g.Z)(W,F),{isFocusVisibleRef:$,onFocus:H,onBlur:Y,ref:G}=(0,v.Z)(),[q,X]=e.useState(!1);p&&q&&X(!1),e.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),z.current.focus()}}),[]);const[J,ne]=e.useState(!1);e.useEffect(()=>{ne(!0)},[]);const re=J&&!h&&!p;function oe(e,t,n=b){return(0,y.Z)(r=>{t&&t(r);return!n&&W.current&&W.current[e](r),!0})}e.useEffect(()=>{q&&w&&!h&&J&&W.current.pulsate()},[h,w,q,J]);const ie=oe("start",R),ae=oe("stop",k),se=oe("stop",E),le=oe("stop",M),ue=oe("stop",e=>{q&&e.preventDefault(),A&&A(e)}),ce=oe("start",N),de=oe("stop",D),fe=oe("stop",j),pe=oe("stop",e=>{Y(e),!1===$.current&&X(!1),S&&S(e)},!1),he=(0,y.Z)(e=>{z.current||(z.current=e.currentTarget),H(e),!0===$.current&&(X(!0),P&&P(e)),C&&C(e)}),me=()=>{const e=z.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ge=e.useRef(!1),ye=(0,y.Z)(e=>{w&&!ge.current&&q&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,()=>{W.current.start(e)})),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!p&&(e.preventDefault(),_&&_(e))}),ve=(0,y.Z)(e=>{w&&" "===e.key&&W.current&&q&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,()=>{W.current.pulsate(e)})),O&&O(e),_&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&_(e)});let be=d;"button"===be&&(V.href||V.to)&&(be=x);const we={};"button"===be?(we.type=void 0===B?"button":B,we.disabled=p):(V.href||V.to||(we.role="button"),p&&(we["aria-disabled"]=p));const xe=(0,g.Z)(n,G,z);const Se=(0,u.Z)({},r,{centerRipple:i,component:d,disabled:p,disableRipple:h,disableTouchRipple:b,focusRipple:w,tabIndex:L,focusVisible:q}),_e=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,f.Z)(i,Q,o);return n&&r&&(a.root+=" "+r),a})(Se);return(0,I.jsxs)(te,(0,u.Z)({as:be,className:(0,c.Z)(_e.root,s),ownerState:Se,onBlur:pe,onClick:_,onContextMenu:ae,onFocus:he,onKeyDown:ye,onKeyUp:ve,onMouseDown:ie,onMouseLeave:ue,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:fe,onTouchStart:ce,ref:xe,tabIndex:p?-1:L,type:B},we,V,{children:[a,re?(0,I.jsx)(K,(0,u.Z)({ref:U,center:i},Z)):null]}))}));var re=o(8216);function oe(e){return(0,X.ZP)("MuiButton",e)}const ie=(0,L.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ae=e.createContext({});const se=e.createContext(void 0),le=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ue=e=>(0,u.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ce=(0,h.ZP)(ne,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,re.Z)(n.color)}`],t["size"+(0,re.Z)(n.size)],t[`${n.variant}Size${(0,re.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,u.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,u.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:"1px solid "+(e.vars||e).palette[t.color].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),["&."+ie.focusVisible]:(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),["&."+ie.disabled]:(0,u.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.action.disabledBackground},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:"1px solid "+(0,p.Fq)(e.palette[t.color].main,.5)},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&."+ie.focusVisible]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&."+ie.disabled]:{boxShadow:"none"}}),de=(0,h.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize"+(0,re.Z)(n.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ue(e))),fe=(0,h.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize"+(0,re.Z)(n.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ue(e))),pe=e.forwardRef((function(t,n){const r=e.useContext(ae),o=e.useContext(se),i=(0,d.Z)(r,t),a=(0,m.Z)({props:i,name:"MuiButton"}),{children:s,color:p="primary",component:h="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:x,fullWidth:S=!1,size:_="medium",startIcon:k,type:E,variant:C="text"}=a,P=(0,l.Z)(a,le),T=(0,u.Z)({},a,{color:p,component:h,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:S,size:_,type:E,variant:C}),O=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,re.Z)(t)}`,"size"+(0,re.Z)(o),`${i}Size${(0,re.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize"+(0,re.Z)(o)],endIcon:["endIcon","iconSize"+(0,re.Z)(o)]},l=(0,f.Z)(s,oe,a);return(0,u.Z)({},a,l)})(T),R=k&&(0,I.jsx)(de,{className:O.startIcon,ownerState:T,children:k}),A=w&&(0,I.jsx)(fe,{className:O.endIcon,ownerState:T,children:w}),M=o||"";return(0,I.jsxs)(ce,(0,u.Z)({ownerState:T,className:(0,c.Z)(r.className,O.root,g,M),component:h,disabled:y,focusRipple:!b,focusVisibleClassName:(0,c.Z)(O.focusVisible,x),ref:n,type:E},P,{classes:O,children:[R,s,A]}))}));o(8077),o(9358),o(6801),o(3843),o(9373),o(9903),o(9288),o(8832);function he(e){return(he="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)}"__rdfjson_namespaces"in globalThis||(globalThis.__rdfjson_namespaces={ical:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns#",dcterms:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",owl:"http://www.w3.org/2002/07/owl#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",foaf:"http://xmlns.com/foaf/0.1/",wot:"http://xmlns.com/wot/0.1/",dc:"http://purl.org/dc/elements/1.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",gn:"http://www.geonames.org/ontology#",locn:"http://www.w3.org/ns/locn#",schema:"http://schema.org/",ex:"http://example.com/",gsp:"http://www.opengis.net/ont/geosparql#",odrs:"http://schema.theodi.org/odrs#"});var me=globalThis.__rdfjson_namespaces,ge=0,ye=function(e,t,n){return me[e]||(me[e]=t),{abbrev:e,ns:t,localname:n,full:t+n,pretty:"".concat(e,":").concat(n)}},ve=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));if(t)return ye(t,me[t],e.substring(me[t].length));var n=e.lastIndexOf("/"),r=e.lastIndexOf("#");return r>n&&(n=r),ye("ns".concat(ge+=1),e.substring(0,n+1),e.substring(n+1))};const be=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));return t?ye(t,me[t],e.substring(me[t].length)).pretty:e},we=function(e){return ve(e).pretty},xe=function(e){var t=e.split(":");return 2===t.length&&me.hasOwnProperty(t[0])?me[t[0]]+t[1]:e},Se=function(e,t){"string"==typeof e?me[e]=t:"object"===he(e)&&Object.keys(e).forEach((function(t){me[t]=e[t]}))};o(8373),o(6793),o(7629),o(7509),o(8052),o(3964),o(6466);function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke=function(e){return void 0!==e&&(null===e||"object"===_e(e)||Array.isArray(e)||"function"==typeof e)},Ee=function(e){return"string"==typeof e||e instanceof String},Ce=function(e,t,n){0===e[t][n].length&&(delete e[t][n],0===Object.keys(e[t]).length&&delete e[t])},Pe=function(e){if(!ke(e[0]))throw new Error("Graph is not a object.");if(!Ee(e[1]))throw new Error("Subject is not a string.");if(!Ee(e[2]))throw new Error("Predicate is not a string.");if(!ke(e[3]))throw new Error("Object is not a object.");if(void 0===e[3].type)throw new Error("Object has no type attribute, must be one of 'uri', 'literal', or 'bnode'");if(void 0===e[3].value)throw new Error("Object has no value attribute corresponding to the lexical value of the object.")},Te=function(e,t){return e===t||null==e&&e===t||(Ee(e)?Ee(t)?e===t:e===t.value:Ee(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},Oe=function(e){var t={type:e.type,value:e.value};return null!=e.ng&&(t.ng=e.ng),null!=e.lang&&(t.lang=e.lang),null!=e.datatype&&(t.datatype=e.datatype),t},Re=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const Ae={isObject:ke,isString:Ee,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&Te(e.o,t.o)},add:function(e,t,n,r,o){if(Pe([e,t,n,r]),void 0===e[t])return e[t]={},e[t][n]=[r],r;if(void 0===e[t][n])return e[t][n]=[r],r;var i,a=e[t][n];if(!o)for(i=a.length-1;i>=0;i--)if(Te(r,a[i]))return a[i];return a.push(r),r},remove:function(e,t,n,r){if(Pe([e,t,n,r]),void 0!==e[t]&&void 0!==e[t][n]){var o,i=e[t][n];for(o=i.length-1;o>=0;o--)if(Te(r,i[o])){var a=i[o];return i.splice(o,1),Ce(e,t,n),a}}},contains:function(e,t,n,r){if(Pe([e,t,n,r]),void 0!==e[t]&&void 0!==e[t][n]){var o,i=e[t][n];for(o=i.length-1;o>=0;o--)if(Te(r,i[o]))return i[o]}},cleanup:Ce,checkForWrongArgs:Pe,objectEquals:Te,findDirectOrRDFValue:function(e,t,n){var r=e.find(t,n);if(r.length>0)return"bnode"!==r[0].getType()?r[0].getValue():e.findFirstValue(r[0].getValue(),"http://www.w3.org/1999/02/22-rdf-syntax-ns#value")},clone:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return Object.keys(e).forEach((function(r){var o=e[r];n[r]={},Object.keys(o).forEach((function(e){var i=o[e];if(1===i.length)n[r][e]=[Oe(i[0])];else if(t){var a=[],s=new Set;n[r][e]=a,o[e].forEach((function(e){var t=Oe(e),n=Re(t);s.has(n)||(s.add(n),a.push(t))}))}else{var l=[];n[r][e]=l,o[e].forEach((function(e){l.push(Oe(e))}))}}))})),n}};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(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,je(r.key),r)}}function je(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:String(t)}var Ie=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graph=t,this._s=n,this._p=r,this._o=o,this._o._statement=this,this._asserted=i}var t,n,r;return t=e,(n=[{key:"getGraph",value:function(){return this._graph}},{key:"setAsserted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e!==this._asserted&&(e?this._graph.add(this,void 0,void 0,this._silentValue,t):this._graph.remove(this,this._silentValue),this._asserted=e)}},{key:"isAsserted",value:function(){return this._asserted}},{key:"getSubject",value:function(){return this._s}},{key:"isSubjectBlank",value:function(){return!0!==this._sIsBlank&&!1!==this._sIsBlank&&(this._sIsBlank=0===this._s.indexOf("_:")),this._sIsBlank}},{key:"isObjectBlank",value:function(){return"bnode"===this.getType()}},{key:"setSubject",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._s=t,this._graph.add(this),delete this._sIsBlank):this._s=t}},{key:"getPredicate",value:function(){return this._p}},{key:"setPredicate",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._p=t,this._graph.add(this)):this._p=t}},{key:"getNamedGraph",value:function(){return this._o.ng}},{key:"setNamedGraph",value:function(e){this._o.ng=e}},{key:"getObject",value:function(){return this._o}},{key:"getCleanObject",value:function(){var e=this._o,t={value:e.value,type:e.type};return this._o.ng&&(t.ng=e.ng),e.lang&&(t.lang=e.lang),this._o.datatype&&(t.datatype=e.datatype),t}},{key:"getType",value:function(){return this._o.type}},{key:"setType",value:function(e){throw new Error("Changing the type of an object is not supported, create a new statement instead.")}},{key:"getValue",value:function(){return this._o.value}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._silentValue=!0===t,e!==this._o.value&&(this._o.value=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getLanguage",value:function(){return this._o.lang}},{key:"setLanguage",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type)throw new Error("Cannot set the language for a resource, has to be a literal");this._o.lang!==e&&(this._o.lang=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getDatatype",value:function(){return this._o.datatype}},{key:"setDatatype",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type||null!=this._o.lang)throw new Error("Cannot set the datatype for a resource, has to be a literal");this._o.datatype!==e&&(this._o.datatype=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}}])&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ne=(o(5137),o(2568));const Le=function(e,t){var n=[],r=new Set((t||[]).map((function(e){return xe(e)}))),o=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var n=e.getDatatype();return n&&"http://www.w3.org/2001/XMLSchema#string"!==n&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==n&&(t+="^^".concat(n)),t},s=function(e,t){var n=i[e]||{rels:[]};i[e]=n,n.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!r.has(i)){var l="bnode"===e.getType(),u=e.isSubjectBlank();if(u||l)return o.push(e),u&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),u?i:t+i));n.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Ne(e.rels.join(""))})),o.forEach((function(e){var t=[];t.push(e.isSubjectBlank()?i[e.getSubject()].hash:e.getSubject()),t.push(e.getPredicate()),t.push("bnode"===e.getType()?i[e.getValue()].hash:a(e)),n.push(t.join(""))})),n.sort(),Ne(n.join(""))};class Ze{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}Ze.prototype.termType="BlankNode";const Fe=Ze;class Be{equals(e){return!!e&&e.termType===this.termType}}Be.prototype.termType="DefaultGraph",Be.prototype.value="";const Ve=Be;const ze=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const n=e.fromTerm(t.subject),r=e.fromTerm(t.predicate),o=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(n,r,o,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class We{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}We.prototype.termType="Literal";const Ue=We;class $e{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}$e.prototype.termType="NamedNode";const He=$e;class Ye{constructor(e,t,n,r){this.subject=e,this.predicate=t,this.object=n,this.graph=r}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}Ye.prototype.termType="Quad",Ye.prototype.value="";const Ge=Ye;class qe{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}qe.prototype.termType="Variable";const Ke=qe,Xe=new He("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Qe=new He("http://www.w3.org/2001/XMLSchema#string");class Je{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new Ve}}namedNode(e){return new He(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new Fe(e)}literal(e,t){return"string"==typeof t?new Ue(e,t,Xe):new Ue(e,"",t||Qe)}variable(e){return new Ke(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,r=this.defaultGraph()){return new Ge(e,t,n,r)}fromTerm(e){return ze(this,e)}fromQuad(e){return ze(this,e)}}Je.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const et=new Je;var tt=function(e){return 0===e.indexOf("_:")?e.substring(2):e},nt=function(e){return e.find().map((function(e){var t=e.getSubject(),n=e.getPredicate(),r=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return et.literal(e.value,e.lang);if(e.datatype){var t=et.namedNode(e.datatype);return et.literal(e.value,t)}return et.literal(e.value);case"uri":return et.namedNode(e.value);case"blank":return et.blankNode(tt(e.value))}}(e.getObject()),o=e.getNamedGraph()?et.namedNode(e.getNamedGraph()):void 0;return et.quad(e.isSubjectBlank()?et.blankNode(tt(t)):et.namedNode(t),et.namedNode(n),r,o)}))},rt=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ot=function(e,t){var n=t||new Graph,r=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:rt(e.value),type:"bnode"};case"Literal":return e.language?{value:e.value,type:"literal",lang:e.language}:e.datatype?{value:e.value,type:"literal",datatype:e.datatype.value}:{value:e.value,type:"literal"}}}(e.object||e._object);return"DefaultGraph"!==e.graph.termType&&(t.ng=e.graph.value),t};e.forEach((function(e){n.add("BlankNode"===e.subject.termType?rt(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?rt(e.predicate.value):e.predicate.value,r(e))}))};function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(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,lt(r.key),r)}}function lt(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==it(t)?t:String(t)}var ut=function(e){return 0===e.length?e:[e[0]]},ct=function e(t,n,r){return{object:function(o){for(var i=0;i<n.length;i++){var a=void 0;if(r)a=n[i].getSubject();else{var s=n[i].getType();if("uri"===s||"bnode"===s)continue;a=n[i].getValue()}var l=t.find(a,o);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(o){var i,a=[];if(!0===r)for(i=0;i<n.length;i++)a=a.concat(t.find(n[i].getSubject(),o));else for(i=0;i<n.length;i++){var s=n[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(n[i].getValue(),o)))}return e(t,a)},constr:function(o,i){var a=i;Ae.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<n.length;l++){var u=r?n[l].getSubject():n[l].getValue();t.find(u,o,a).length>0&&s.push(n[l])}return e(t,s,r)},each:function(o,i){if(!0===r)for(var a=0;a<n.length;a++){var s="_:"===n[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||o(e(t,n[a],r))}else for(var l=0;l<n.length;l++)o(e(t,n[l],r))},statements:function(){return n},nodes:function(e){var t=[];if(!0===r)for(var o=0;o<n.length;o++){var i="_:"===n[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:n[o].getSubject()})}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getObject());return t},values:function(e){var t=[];if(!0===r)for(var o=0;o<n.length;o++){var i="_:"===n[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(n[o].getSubject())}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getValue());return t},firstValue:function(e){if(!0===r)for(var t=0;t<n.length;t++){var o="_:"===n[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===o)return n[t].getSubject()}else for(var i=0;i<n.length;i++)if(null==e||e===n[i].getType())return n[i].getValue()}}},dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;at(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==n&&this.validate(),this._changed=!1}var t,n,r;return t=e,(n=[{key:"addQuads",value:function(e){return ot(e,this),this}},{key:"toQuads",value:function(){return nt(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var n=e._graph[t];return Object.keys(n).find((function(e){return n[e].find((function(e){return null==e._statement||e._statement.isAsserted()}))}))}))}},{key:"onChange",value:function(){}},{key:"setChanged",value:function(e){this._changed=!(!0!==e&&null!=e),this._changed&&this.onChange()}},{key:"isChanged",value:function(){return this._changed}},{key:"addAll",value:function(e,t){for(var n,r={},o=e.find(),i=0;i<o.length;i++){var a=o[i],s=a.getSubject(),l=a.getPredicate(),u=a.getCleanObject();t&&(u.ng=t),0===s.indexOf("_:")&&(n=r[s]||this._newBNode(),r[s]=n,s=n),0===l.indexOf("_:")&&(n=r[l]||this._newBNode(),r[l]=n,l=n),"bnode"===u.type&&(n=r[u.value]||this._newBNode(),r[u.value]=n,u.value=n),this.add(s,l,u)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(e instanceof Ie){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),u=Ae.add(this._graph,s,i,l,o);return!0!==r&&this.setChanged(),this._get(s,i,u,!0)}return this.create(e,t,n,!0,r,o)}},{key:"addL",value:function(e,t,n,r){var o={type:"literal",value:n};return"string"==typeof r&&(o.lang=r),this.create(e,t,o,!0)}},{key:"addD",value:function(e,t,n,r){var o={type:"literal",value:n};return"string"==typeof r&&(o.datatype=xe(r)),this.create(e,t,o,!0)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=n;if(a=null==a?this._newBNode():xe(a),s=null==s?this._newBNode():xe(s),null==l?l={type:"bnode",value:this._newBNode()}:Ae.isString(l)?l={type:"uri",value:xe(l)}:"object"!==it(l)||Array.isArray(l)?l={type:"uri",value:"".concat(l)}:("uri"===(l={type:l.type,value:l.value,lang:l.lang,datatype:l.datatype,ng:l.ng}).type&&null!=l.value&&(l.value=xe(l.value)),l.datatype&&(l.datatype=xe(l.datatype))),!1!==r){var u=Ae.add(this._graph,a,s,l,i);return!0!==o&&this.setChanged(),this._getOrCreate(a,s,u,!0)}return new Ie(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.find(e,t,n),i=0;i<o.length;i++)this.remove(o[i],r)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getSubject(),r=e.getPredicate(),o=e.getObject();this._trackBNodes(n,r,o),null!=Ae.remove(this._graph,n,r,o)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,n){var r=e,o=t,i=n;if("string"==typeof r&&(r=xe(r)),"string"==typeof o&&(o=xe(o)),"object"===it(i)&&null!==i&&"uri"===i.type?i.value=xe(i.value):"string"==typeof i&&(i={type:"uri",value:xe(i)}),null==i)return null==o?null==r?this._find():this._findS(r):null==r?this._findP(o):this._findSP(r,o);if(null==o)return null==r?this._findO(i):this._findSO(r,i);if(null==r)return this._findPO(o,i);var a=this._get(r,o,Ae.contains(this._graph,r,o,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var n=this.find(e,t);if(n.length>0)return n[0].getValue()}},{key:"projection",value:function(e,t,n){var r=this,o={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?r.findPath(e,a):r.find(e,a);if(s.length>0)switch("*"===i[0]?o[i.substr(1)]=s.map((function(e){return e.getValue()})):o[i]=s[0].getValue(),n||"none"){case"statement":o["*".concat(i)]=s;break;case"objects":o["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":o["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),o}},{key:"subjects",value:function(e,t){return ct(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return ct(this,ut(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return ct(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return ct(this,ut(this.find(e,t,null)))}},{key:"findPath",value:function(e,t){return t.slice(1).reduce((function(e,t){return e.objects(t)}),this.objects(e,t[0])).statements()}},{key:"addList",value:function(e){return this._addList(e,"add")}},{key:"addListL",value:function(e,t){return this._addList(e,"addL",t)}},{key:"addListD",value:function(e,t){return this._addList(e,"addD",t)}},{key:"_addList",value:function(e,t,n){var r,o=this;if(Array.isArray(e)&&0!==e.length){var i=r=this._newBNode(),a=e.length-1;e.forEach((function(e,r){o[t](i,"rdf:first",e,n),r!==a?i=o.add(i,"rdf:rest").getValue():o.add(i,"rdf:rest","rdf:nil")}))}else r=xe("rdf:nil");return r}},{key:"removeList",value:function(e){var t=!1,n="object"===it(e)?e.value:e;try{var r=xe("rdf:nil");for(t=n===r;n!==r&&null!=n;){var o=this.findFirstValue(n,"rdf:rest");this.findAndRemove(n),t=null!=(n=o)}}catch(e){return console.warn("Invalid list for object: ".concat(n)),!1}return t}},{key:"getList",value:function(e){var t="object"===it(e)?e.value:xe(e),n=[];try{for(var r=xe("rdf:nil");t!==r&&null!=t;)n.push(this.find(t,"rdf:first")[0].getObject()),t=this.findFirstValue(t,"rdf:rest")}catch(e){console.warn("Invalid list for object: ".concat(t))}return n}},{key:"findFirstListAsValues",value:function(e,t){return this.getList(this.findFirstValue(e,t)).map((function(e){return e.value}))}},{key:"findAndRemoveLists",value:function(e,t){var n=this,r=!1;return this.find(e,t).forEach((function(e){n.removeList(e.getValue())&&(n.remove(e),r=!0)})),r}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,Ae.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");n[t]=n[e],delete n[e]}return this.forEach((function(n,r,o){"uri"===o.type&&o.value===e&&(o.value=t),n===t&&o._statement&&(o._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,n){var r=this._graph;if(r.hasOwnProperty(e)){if(r.hasOwnProperty(t)){if(!n)throw new Error("Cannot replace subject with target URI since it already exists.");var o=r[t],i=r[e];Object.keys(i).forEach((function(e){if(o.hasOwnProperty(e)){var t=o[e],n=i[e].filter((function(e){return!t.find((function(t){return Ae.objectEquals(t,e)}))}));o[e]=t.concat(n)}else o[e]=i[e]})),delete r[e]}else r[t]=r[e],delete r[e];this.forEach((function(n,r,o){"bnode"===o.type&&o.value===e&&(o.value=t,o.type="uri"),n===t&&o._statement&&(o._statement._s=t)}))}return delete this._bnodes[e],this}},{key:"clone",value:function(){return new e(this.exportRDFJSON(!1))}},{key:"findProperties",value:function(e){return Object.keys(this._graph[e]||{})}},{key:"validate",value:function(){if(this.report=this._validate(),!this.report.valid)throw this.report;return this.report}},{key:"registerBNode",value:function(e){this._bnodes[e]=!0}},{key:"forEach",value:function(e){var t=this._graph;Object.keys(t).forEach((function(n){var r=t[n];Object.keys(r).forEach((function(t){r[t].forEach((function(r){e(n,t,r)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"equals",value:function(e,t){return Le(this,t)===Le(e,t)}},{key:"size",value:function(){var e=0;return Object.values(this._graph).forEach((function(t){Object.values(t).forEach((function(t){e+=t.length}))})),e}},{key:"_get",value:function(e,t,n,r){if(null!=n)return this._getOrCreate(e,t,n,r)}},{key:"_getOrCreate",value:function(e,t,n,r){return null==n._statement&&(n._statement=new Ie(this,e,t,n,r)),n._statement}},{key:"_graphObject",value:function(e){return null==e._statement||e._statement._graph===this?e:{type:e.type,value:e.value,lang:e.lang,datatype:e.datatype}}},{key:"_findSP",value:function(e,t){var n=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(r){return n._get(e,t,r,!0)}))}},{key:"_findS",value:function(e){var t=this,n=this._graph[e],r=Object.keys(n||{}).map((function(n){return t._findSP(e,n)}));return Array.prototype.concat.apply([],r)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(n,r,o){t.push(e._get(n,r,o,!0))})),t}},{key:"_findP",value:function(e){var t=this,n=[];return this.forEach((function(r,o,i){e===o&&n.push(t._get(r,o,i,!0))})),n}},{key:"_findO",value:function(e){var t=this,n=[];return this.forEach((function(r,o,i){Ae.objectEquals(e,i)&&n.push(t._get(r,o,i,!0))})),n}},{key:"_findSO",value:function(e,t){var n=this,r=[];return this.forEach((function(o,i,a){e===o&&Ae.objectEquals(t,a)&&r.push(n._get(o,i,a,!0))})),r}},{key:"_findPO",value:function(e,t){var n=this,r=[];return this.forEach((function(o,i,a){e===i&&Ae.objectEquals(t,a)&&r.push(n._get(o,i,a,!0))})),r}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(n){var r=e[n];Ae.isObject(r)?Object.keys(r).forEach((function(e){var o=r[e];Array.isArray(o)?o.forEach((function(r,o){Ae.isObject(r)?null!=r.type?Ae.isString(r.value)?t.nr+=1:(t.errors.push({s:n,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:o+1,message:"Element ".concat(o+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:n,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:n,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,n;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(n="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[n])return this._bnodes[n]=!0,n;throw new Error("Failed creating a new blank node, increadible unprobable...")}},{key:"_indexBNodes",value:function(){var e=this;if(!this._bnodesIndexed){var t=this._graph;Object.keys(t).forEach((function(n){0===n.indexOf("_:")&&(e._bnodes[n]=!0);var r=t[n];Object.keys(r).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),r[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,n){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===n.type&&(this._bnodes[n.value]=!0)}}])&&st(t.prototype,n),r&&st(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(7267);o(268),o(50),o(6646),o(5787);function ft(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(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,ht(r.key),r)}}function ht(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:String(t)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t,n){return xt(t),function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bt()?Reflect.construct(t,n||[],xt(e).constructor):t.apply(e,n))}function yt(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return vt(e,arguments,xt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),wt(n,e)}(e)}function vt(e,t,n){if(bt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&wt(o,n.prototype),o}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function wt(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xt(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function St(e){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(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,Ct(r.key),r)}}function Et(e,t,n){return t&&kt(e.prototype,t),n&&kt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==St(t)?t:String(t)}var Pt={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#"},Tt={rdftype:"".concat(Pt.rdf,"type"),rdfssco:"".concat(Pt.rdfs,"subClassOf"),rdfsdomain:"".concat(Pt.rdfs,"domain"),rdfsrange:"".concat(Pt.rdfs,"range"),rdfsspo:"".concat(Pt.rdfs,"subPropertyOf"),rdfsClass:"".concat(Pt.rdfs,"Class"),owlClass:"".concat(Pt.owl,"Class"),owlObjectProperty:"".concat(Pt.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Pt.owl,"DatatypeProperty"),rdfProperty:"".concat(Pt.rdf,"Property")},Ot=function(e,t,n){for(var r={},o=!1,i=e.find(t,n),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(r[s.getLanguage()||""]=s.getValue()||"",o=!0)}if(o)return null==r.en&&null!=r[""]&&(r.en=r[""],delete r[""]),r},Rt=function(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r];n[o]||(t.push(o),n[o]=!0)}return t},At=function(){function e(t,n){_t(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=n}return Et(e,[{key:"getURI",value:function(){return this._uri}},{key:"getLabel",value:function(){var e=this.getLabels();if(null!=e.en)return e.en;var t=Object.objects(e);return t.length>0?t[0]:""}},{key:"getLabels",value:function(){return null==this._labels&&(this._labels=Ot(this._graph,this._uri,"".concat(Pt.rdfs,"label")),null==this._labels&&(this._labels={en:this._uri.substr(this._uri.lastIndexOf("/")+1)})),this._labels}},{key:"getComment",value:function(){var e=this.getComments();return null!=e?null!=e.en?e.en:Object.objects(e)[0]:""}},{key:"getComments",value:function(){return null==this._comments&&(this._comments=Ot(this._graph,this._uri,"".concat(Pt.rdfs,"comment"))),this._comments}},{key:"addParent",value:function(e){this._parents.push(e),e._children.push(this)}},{key:"getDirectParents",value:function(){return this._parents}},{key:"getParents",value:function(){if(this._parentLock)return[];if(this._parentLock=!0,null==this._allParents){this._allParents=[];for(var e=0;e<this._parents.length;e++)this._allParents=this._allParents.concat(this._parents[e].getParents()),this._allParents.push(this._parents[e])}return delete this._parentLock,this._allParents}},{key:"getChildren",value:function(){if(this._childLock)return[];if(this._childLock=!0,null==this._allChildren){this._allChildren=[];for(var e=0;e<this._children.length;e++)this._allChildren=this._allChildren.concat(this._children[e].getChildren()),this._allChildren.push(this._children[e])}return delete this._childLock,this._allChildren}},{key:"setRange",value:function(e){null==this._range&&(this._range=[]),this._range.push(e)}},{key:"setDomain",value:function(e){null==this._domain&&(this._domain=[]),this._domain.push(e),e.setDomainOf(this)}},{key:"getRange",value:function(){if(null==this._allRange){this._allRange=this._range||[];for(var e=0;e<this._parents.length;e++)this._allRange=this._allRange.concat(this._parents[e].getRange());this._allRange=Rt(this._allRange)}return this._allRange}},{key:"getDomain",value:function(){if(null==this._allDomain){this._allDomain=this._domain||[];for(var e=0;e<this._parents.length;e++)this._allDomain=this._allDomain.concat(this._parents[e].getDomain());this._allDomain=Rt(this._allDomain)}return this._allDomain}},{key:"setDomainOf",value:function(e){null==this._domainOf&&(this._domainOf=[]),this._domainOf.push(e)}},{key:"getDomainOf",value:function(){return this._domainOf}},{key:"getAllDomainOf",value:function(){if(this._domainOfLock)return[];if(this._domainOfLock=!0,null==this._allDomainOf){var e=this._domainOf||[];this._allDomainOf=this._domainOf||[];for(var t=0;t<e.length;t++)this._allDomainOf=this._allDomainOf.concat(e[t].getChildren());for(var n=0;n<this._parents.length;n++)this._allDomainOf=this._allDomainOf.concat(this._parents[n].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Mt=function(e,t,n,r){for(var o=0;o<n.length;o++){var i=n[o],a=i.getSubject(),s=e[a];if(s||(s=new At(a,i.getGraph()),e[a]=s,t.push(s)),r){var l=i.getValue(),u=e[l];u||(u=new At(l,i.getGraph()),e[l]=u,t.push(u)),s.addParent(u)}}},Dt=function(){function e(){_t(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return Et(e,[{key:"addGraph",value:function(e){Mt(this._cidx,this._carr,e.find(null,Tt.rdftype,Tt.rdfsClass)),Mt(this._cidx,this._carr,e.find(null,Tt.rdftype,Tt.owlClass)),Mt(this._cidx,this._carr,e.find(null,Tt.rdfssco,null),!0),Mt(this._pidx,this._parr,e.find(null,Tt.rdftype,Tt.rdfProperty)),Mt(this._pidx,this._parr,e.find(null,Tt.rdfsspo,null),!0),Mt(this._pidx,this._parr,e.find(null,Tt.rdftype,Tt.owlDatatypeProperty)),Mt(this._pidx,this._parr,e.find(null,Tt.rdftype,Tt.owlObjectProperty)),function(e,t,n){for(var r,o,i,a=e.find(null,Tt.rdfsdomain,null),s=0;s<a.length;s++)r=t[(i=a[s]).getSubject()],o=n[i.getValue()],null!=r&&null!=o&&r.setDomain(o);a=e.find(null,Tt.rdfsrange,null);for(var l=0;l<a.length;l++)r=t[(i=a[l]).getSubject()],o=i.getValue(),null!=r&&null!=o&&r.setRange(o)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],n=!1;t||(t=new At(e,new dt),this._cidx[e]=t,this._carr.push(t),n=!0);for(var r=0;r<this._carr.length;r++){var o=this._carr[r];(n&&o!==t||-1===o.getParents().indexOf(t)&&o!==t)&&o.addParent(t)}}},{key:"getClasses",value:function(){return this._carr}},{key:"getProperties",value:function(){return this._parr}},{key:"isClass",value:function(e){return null!=this._cidx[e]}},{key:"isProperty",value:function(e){return null!=this._pidx[e]}},{key:"getClass",value:function(e){return this._cidx[e]}},{key:"getProperty",value:function(e){return this._pidx[e]}}],[{key:"getInstances",value:function(e){for(var t=[],n=[e].concat(e.getChildren()),r=0;r<n.length;r++)for(var o=n[r],i=o.getGraph.find(null,Tt.rdftype,o.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();Dt.prototype.ns=Pt,Dt.prototype.terms=Tt,Dt.global=new Dt;function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(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,Nt(r.key),r)}}function Nt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jt(t)?t:String(t)}var Lt=function(e){this.filterObj={},this.registry=e};Lt.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Lt.prototype[e]=function(t){var n={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var r=t[e];Array.isArray(r)?n[xe(e)]=r.map((function(e){return xe(e)})):n[xe(e)]=xe(r)})),this.filterObj[e]=n;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=xe(t);break;default:this.filterObj[e]=t||!0}return this}}));var Zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.components=[],this.priorities={CHECK:1,ITEMTYPE:2,CHOICES:4,NODETYPE:8,DATATYPE:16,RDFTYPE:32,CONSTRAINT:64,PREDICATE:128,STYLE:256,ITEM:512}}var t,n,r;return t=e,(n=[{key:"calculatePriority",value:function(e,t){var n=0;if(t.itemtype&&(n+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(n+=this.priorities.CHOICES,t.choices){case"static":if(!e.hasStaticChoices())return-1;break;case"dynamic":if(!e.hasChoices()||e.hasStaticChoices())return-1;break;case"none":if(e.hasChoices())return-1;break;case"any":default:if(!e.hasChoices())return-1}if(t.nodetype&&(n+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){n+=this.priorities.DATATYPE;var r=e.getDatatype(),o=!0;if(r&&(o=Array.isArray(r)?!r.includes(t.datatype):r!==t.datatype),o)return-1}return t.rdftype&&(n+=this.priorities.RDFTYPE,!function(e,t){var n=e.getConstraints();return null!=n&&n[rdfType]===t}(e,t.rdftype))||t.constraint&&(n+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var n=e.getConstraints(),r=!0;return null!=n&&(Object.keys(n).find((function(e){var o=t[e];return""!==o&&"*"!==o&&o!==n[e]&&(r=!1,!0)})),r)}(e,t.constraint))||t.predicate&&(n+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(n+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(n+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:n:-1}},{key:"getPriority",value:function(e,t){for(var n=0;n<this.components.length;n++)if(this.components[n].component===t){var r=this.calculatePriority(e,this.components[n].filter);if(r>=0)return r}return 0}},{key:"getComponentBefore",value:function(e,t){var n=this.getPriority(e,t);return this.getComponent(e,n)}},{key:"getComponent",value:function(e,t){for(var n,r,o,i=-1,a=0;a<this.components.length;a++)o=this.components[a],(r=this.calculatePriority(e,o.filter))>i&&(void 0===t||r<t)&&(n=o,i=r);if(n)return n.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Lt(this).itemtype(e)}},{key:"choices",value:function(e){return new Lt(this).choices(e)}},{key:"nodetype",value:function(e){return new Lt(this).nodetype(e)}},{key:"datatype",value:function(e){return new Lt(this).datatype(e)}},{key:"rdftype",value:function(e){return new Lt(this).rdftype(e)}},{key:"constraint",value:function(e){return new Lt(this).constraint(e)}},{key:"predicate",value:function(e){return new Lt(this).predicate(e)}},{key:"style",value:function(e){return new Lt(this).style(e)}},{key:"item",value:function(e){return new Lt(this).item(e)}},{key:"check",value:function(e){return new Lt(this).check(e)}}])&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ft=function(){this.__data__=[],this.size=0};const Bt=function(e,t){return e===t||e!=e&&t!=t};const Vt=function(e,t){for(var n=e.length;n--;)if(Bt(e[n][0],t))return n;return-1};var zt=Array.prototype.splice;const Wt=function(e){var t=this.__data__,n=Vt(t,e);return!(n<0)&&(n==t.length-1?t.pop():zt.call(t,n,1),--this.size,!0)};const Ut=function(e){var t=this.__data__,n=Vt(t,e);return n<0?void 0:t[n][1]};const $t=function(e){return Vt(this.__data__,e)>-1};const Ht=function(e,t){var n=this.__data__,r=Vt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Yt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yt.prototype.clear=Ft,Yt.prototype.delete=Wt,Yt.prototype.get=Ut,Yt.prototype.has=$t,Yt.prototype.set=Ht;const Gt=Yt;const qt=function(){this.__data__=new Gt,this.size=0};const Kt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Xt=function(e){return this.__data__.get(e)};const Qt=function(e){return this.__data__.has(e)};const Jt="object"==typeof global&&global&&global.Object===Object&&global;var en="object"==typeof self&&self&&self.Object===Object&&self;const tn=Jt||en||Function("return this")();const nn=tn.Symbol;var rn=Object.prototype,on=rn.hasOwnProperty,an=rn.toString,sn=nn?nn.toStringTag:void 0;const ln=function(e){var t=on.call(e,sn),n=e[sn];try{e[sn]=void 0;var r=!0}catch(e){}var o=an.call(e);return r&&(t?e[sn]=n:delete e[sn]),o};var un=Object.prototype.toString;const cn=function(e){return un.call(e)};var dn=nn?nn.toStringTag:void 0;const fn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dn&&dn in Object(e)?ln(e):cn(e)};const pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const hn=function(e){if(!pn(e))return!1;var t=fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const mn=tn["__core-js_shared__"];var gn,yn=(gn=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||""))?"Symbol(src)_1."+gn:"";const vn=function(e){return!!yn&&yn in e};var bn=Function.prototype.toString;const wn=function(e){if(null!=e){try{return bn.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var xn=/^\[object .+?Constructor\]$/,Sn=Function.prototype,_n=Object.prototype,kn=Sn.toString,En=_n.hasOwnProperty,Cn=RegExp("^"+kn.call(En).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Pn=function(e){return!(!pn(e)||vn(e))&&(hn(e)?Cn:xn).test(wn(e))};const Tn=function(e,t){return null==e?void 0:e[t]};const On=function(e,t){var n=Tn(e,t);return Pn(n)?n:void 0};const Rn=On(tn,"Map");const An=On(Object,"create");const Mn=function(){this.__data__=An?An(null):{},this.size=0};const Dn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var jn=Object.prototype.hasOwnProperty;const In=function(e){var t=this.__data__;if(An){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return jn.call(t,e)?t[e]:void 0};var Nn=Object.prototype.hasOwnProperty;const Ln=function(e){var t=this.__data__;return An?void 0!==t[e]:Nn.call(t,e)};const Zn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&void 0===t?"__lodash_hash_undefined__":t,this};function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fn.prototype.clear=Mn,Fn.prototype.delete=Dn,Fn.prototype.get=In,Fn.prototype.has=Ln,Fn.prototype.set=Zn;const Bn=Fn;const Vn=function(){this.size=0,this.__data__={hash:new Bn,map:new(Rn||Gt),string:new Bn}};const zn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Wn=function(e,t){var n=e.__data__;return zn(t)?n["string"==typeof t?"string":"hash"]:n.map};const Un=function(e){var t=Wn(this,e).delete(e);return this.size-=t?1:0,t};const $n=function(e){return Wn(this,e).get(e)};const Hn=function(e){return Wn(this,e).has(e)};const Yn=function(e,t){var n=Wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gn.prototype.clear=Vn,Gn.prototype.delete=Un,Gn.prototype.get=$n,Gn.prototype.has=Hn,Gn.prototype.set=Yn;const qn=Gn;const Kn=function(e,t){var n=this.__data__;if(n instanceof Gt){var r=n.__data__;if(!Rn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};function Xn(e){var t=this.__data__=new Gt(e);this.size=t.size}Xn.prototype.clear=qt,Xn.prototype.delete=Kt,Xn.prototype.get=Xt,Xn.prototype.has=Qt,Xn.prototype.set=Kn;const Qn=Xn;const Jn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const er=function(){try{var e=On(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const tr=function(e,t,n){"__proto__"==t&&er?er(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var nr=Object.prototype.hasOwnProperty;const rr=function(e,t,n){var r=e[t];nr.call(e,t)&&Bt(r,n)&&(void 0!==n||t in e)||tr(e,t,n)};const or=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?tr(n,s,l):rr(n,s,l)}return n};const ir=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const ar=function(e){return null!=e&&"object"==typeof e};const sr=function(e){return ar(e)&&"[object Arguments]"==fn(e)};var lr=Object.prototype,ur=lr.hasOwnProperty,cr=lr.propertyIsEnumerable;const dr=sr(function(){return arguments}())?sr:function(e){return ar(e)&&ur.call(e,"callee")&&!cr.call(e,"callee")};const fr=Array.isArray;const pr=function(){return!1};var hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,mr=hr&&"object"==typeof module&&module&&!module.nodeType&&module,gr=mr&&mr.exports===hr?tn.Buffer:void 0;const yr=(gr?gr.isBuffer:void 0)||pr;var vr=/^(?:0|[1-9]\d*)$/;const br=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&vr.test(e))&&e>-1&&e%1==0&&e<t};const wr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var xr={};xr["[object Float32Array]"]=xr["[object Float64Array]"]=xr["[object Int8Array]"]=xr["[object Int16Array]"]=xr["[object Int32Array]"]=xr["[object Uint8Array]"]=xr["[object Uint8ClampedArray]"]=xr["[object Uint16Array]"]=xr["[object Uint32Array]"]=!0,xr["[object Arguments]"]=xr["[object Array]"]=xr["[object ArrayBuffer]"]=xr["[object Boolean]"]=xr["[object DataView]"]=xr["[object Date]"]=xr["[object Error]"]=xr["[object Function]"]=xr["[object Map]"]=xr["[object Number]"]=xr["[object Object]"]=xr["[object RegExp]"]=xr["[object Set]"]=xr["[object String]"]=xr["[object WeakMap]"]=!1;const Sr=function(e){return ar(e)&&wr(e.length)&&!!xr[fn(e)]};const _r=function(e){return function(t){return e(t)}};var kr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Er=kr&&"object"==typeof module&&module&&!module.nodeType&&module,Cr=Er&&Er.exports===kr&&Jt.process;const Pr=function(){try{var e=Er&&Er.require&&Er.require("util").types;return e||Cr&&Cr.binding&&Cr.binding("util")}catch(e){}}();var Tr=Pr&&Pr.isTypedArray;const Or=Tr?_r(Tr):Sr;var Rr=Object.prototype.hasOwnProperty;const Ar=function(e,t){var n=fr(e),r=!n&&dr(e),o=!n&&!r&&yr(e),i=!n&&!r&&!o&&Or(e),a=n||r||o||i,s=a?ir(e.length,String):[],l=s.length;for(var u in e)!t&&!Rr.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||br(u,l))||s.push(u);return s};var Mr=Object.prototype;const Dr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Mr)};const jr=function(e,t){return function(n){return e(t(n))}};const Ir=jr(Object.keys,Object);var Nr=Object.prototype.hasOwnProperty;const Lr=function(e){if(!Dr(e))return Ir(e);var t=[];for(var n in Object(e))Nr.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Zr=function(e){return null!=e&&wr(e.length)&&!hn(e)};const Fr=function(e){return Zr(e)?Ar(e):Lr(e)};const Br=function(e,t){return e&&or(t,Fr(t),e)};const Vr=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var zr=Object.prototype.hasOwnProperty;const Wr=function(e){if(!pn(e))return Vr(e);var t=Dr(e),n=[];for(var r in e)("constructor"!=r||!t&&zr.call(e,r))&&n.push(r);return n};const Ur=function(e){return Zr(e)?Ar(e,!0):Wr(e)};const $r=function(e,t){return e&&or(t,Ur(t),e)};var Hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yr=Hr&&"object"==typeof module&&module&&!module.nodeType&&module,Gr=Yr&&Yr.exports===Hr?tn.Buffer:void 0,qr=Gr?Gr.allocUnsafe:void 0;const Kr=function(e,t){if(t)return e.slice();var n=e.length,r=qr?qr(n):new e.constructor(n);return e.copy(r),r};const Xr=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};const Qr=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};const Jr=function(){return[]};var eo=Object.prototype.propertyIsEnumerable,to=Object.getOwnPropertySymbols;const no=to?function(e){return null==e?[]:(e=Object(e),Qr(to(e),(function(t){return eo.call(e,t)})))}:Jr;const ro=function(e,t){return or(e,no(e),t)};const oo=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const io=jr(Object.getPrototypeOf,Object);const ao=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oo(t,no(e)),e=io(e);return t}:Jr;const so=function(e,t){return or(e,ao(e),t)};const lo=function(e,t,n){var r=t(e);return fr(e)?r:oo(r,n(e))};const uo=function(e){return lo(e,Fr,no)};const co=function(e){return lo(e,Ur,ao)};const fo=On(tn,"DataView");const po=On(tn,"Promise");const ho=On(tn,"Set");const mo=On(tn,"WeakMap");var go=wn(fo),yo=wn(Rn),vo=wn(po),bo=wn(ho),wo=wn(mo),xo=fn;(fo&&"[object DataView]"!=xo(new fo(new ArrayBuffer(1)))||Rn&&"[object Map]"!=xo(new Rn)||po&&"[object Promise]"!=xo(po.resolve())||ho&&"[object Set]"!=xo(new ho)||mo&&"[object WeakMap]"!=xo(new mo))&&(xo=function(e){var t=fn(e),n="[object Object]"==t?e.constructor:void 0,r=n?wn(n):"";if(r)switch(r){case go:return"[object DataView]";case yo:return"[object Map]";case vo:return"[object Promise]";case bo:return"[object Set]";case wo:return"[object WeakMap]"}return t});const So=xo;var _o=Object.prototype.hasOwnProperty;const ko=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&_o.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Eo=tn.Uint8Array;const Co=function(e){var t=new e.constructor(e.byteLength);return new Eo(t).set(new Eo(e)),t};const Po=function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var To=/\w*$/;const Oo=function(e){var t=new e.constructor(e.source,To.exec(e));return t.lastIndex=e.lastIndex,t};var Ro=nn?nn.prototype:void 0,Ao=Ro?Ro.valueOf:void 0;const Mo=function(e){return Ao?Object(Ao.call(e)):{}};const Do=function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const jo=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Co(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Po(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Do(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Oo(e);case"[object Set]":return new r;case"[object Symbol]":return Mo(e)}};var Io=Object.create;const No=function(){function e(){}return function(t){if(!pn(t))return{};if(Io)return Io(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Lo=function(e){return"function"!=typeof e.constructor||Dr(e)?{}:No(io(e))};const Zo=function(e){return ar(e)&&"[object Map]"==So(e)};var Fo=Pr&&Pr.isMap;const Bo=Fo?_r(Fo):Zo;const Vo=function(e){return ar(e)&&"[object Set]"==So(e)};var zo=Pr&&Pr.isSet;const Wo=zo?_r(zo):Vo;var Uo={};Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object DataView]"]=Uo["[object Boolean]"]=Uo["[object Date]"]=Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object Symbol]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object WeakMap]"]=!1;const $o=function e(t,n,r,o,i,a){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!pn(t))return t;var d=fr(t);if(d){if(s=ko(t),!l)return Xr(t,s)}else{var f=So(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(yr(t))return Kr(t,l);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=u||p?{}:Lo(t),!l)return u?so(t,$r(s,t)):ro(t,Br(s,t))}else{if(!Uo[f])return i?t:{};s=jo(t,f,l)}}a||(a=new Qn);var h=a.get(t);if(h)return h;a.set(t,s),Wo(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Bo(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var m=d?void 0:(c?u?co:uo:u?Ur:Fr)(t);return Jn(m||t,(function(o,i){m&&(o=t[i=o]),rr(s,i,e(o,n,r,i,t,a))})),s};const Ho=function(e){return $o(e,5)};o(2003),o(2462);var Yo=o(381),Go=o.n(Yo),qo=function(e){var t=Go().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(t))return{value:e[t],precision:"exact",lang:t};if(t.indexOf("_")>-1&&e.hasOwnProperty(t.substr(0,2)))return{value:e[t.substr(0,2)],precision:"coarsen",lang:t.substr(0,2)};if(e.hasOwnProperty("en"))return{value:e.en,precision:"default",lang:"en"};if(e.hasOwnProperty(""))return{value:e[""],precision:"nolang",lang:""};var n=Object.keys(e);return n.length>0?{value:e[n[0]],precision:"any",lang:n[0]}:{precision:"none"}},Ko=function(e,t,n){var r=e.find(t,n);if(r.length>0){for(var o={},i=0;i<r.length;i++)o[r[i].getLanguage()||""]=r[i].getValue();return o}};const Xo={getLocalizedValue:qo,getLocalizedMap:function(e,t,n){var r,o=t,i=n;e.getItem?(r=e.getGraph(),o=e.getValue(),i=e.getItem().getURIValueLabelProperties()):r=e,null!=i&&0!==i.length||(i=Jo.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],u=0;u<s.length;u++){var c=Ko(r,o,s[u]);c&&l.push(qo(c).value)}if(l.length>0)return{"":l.join(" ")}}else{var d=Ko(r,o,s);if(d)return d}}},cloneArrayWithLabels:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=qo(o.label),a={value:o.value,label:i.value||o.value||""};!0===o.top&&(a.top=!0),null!=o.children&&(a.children=Ho(o.children)),!1===o.selectable?a.selectable=!1:a.selectable=!0,n.push(a)}return!0!==t&&n.sort((function(e,t){return e.label>t.label?1:-1})),n},extractGist:function(e,t){var n=t;if(n){-1===n.indexOf("$1")&&(n+="$1");var r="".concat(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),o=new RegExp(r).exec(e);if(null!=o)return o[1]}return e},findFirstValue:function(e,t,n,r){var o=e.findFirstValueBinding(e.match(t,n,r),!1);if(o)return o.getChoice?qo(o.getChoice().label).value:o.getGist()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}};var Qo=function(e,t,n,r){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var o=Xo.getLocalizedMap(r,t,e.getURIValueLabelProperties());if(!o){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");o=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:o}}return{value:t,label:t}};const Jo={hasDnDSupport:function(e){return!1},addDnD:function(e,t,n){return{}},attachExternalLinkBehaviour:function(){return!1},attachLinkBehaviour:function(e,t){return!1},openChoiceSelector:function(e,t){alert('This alert is a placeholder for a search dialog that should be provided as part of the integration of RDForms into a wider system.\nSimply override the methods "getChoices" and "openChoiceSelector" in the system module.'),t({value:"http://example.com/choice1",label:{en:"First choice",sv:"Första valet"}})},getChoice:function(e,t,n,r){return Qo(e,t,0,r)},getFallbackChoice:Qo,labelProperties:["http://www.w3.org/2000/01/rdf-schema#label","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2004/02/skos/core#prefLabel","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/name"],createURI:function(e,t){for(var n=t.getChildrenRootUri(),r=n.lastIndexOf("#"),o=-1===r?"".concat(n,"#"):n.substring(0,r+1),i=t.getGraph()._graph;;){var a=o+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},ei=JSON.parse('{"edit_add":"Add","edit_remove":"Remove","edit_clear":"Clear","edit_browse":"Browse and select","edit_browse_create":"Browse and select or create","edit_expand":"Expand","edit_upgrade":"Provide additional information for this web address","info_label":"Label","info_property":"Property","info_description":"Description","info_missing":"No information","address_label":"Address","validation_min_required_one":"at least one value is required","validation_min_required_more":"a minimum of $1 values is required","validation_min_recommended_one":"at least one value is recommended","validation_min_recommended_more":"a minimum of $1 values is recommended","validation_max_one":"at most one value is allowed","validation_max_more":"a maximum of $1 values are allowed","validation_at_most_one_child":"A maximum of one value is allowed","validation_at_least_one_child":"A minimum of one value is required","validation_exactly_one_child":"Exactly one value is required","validation_deprecated":"This field is deprecated","validation_nodetype":"Wrong nodetype","validation_value":"Wrong value","validation_datatype":"Wrong datatype","validation_constraints":"Missing constraints","validation_pattern":"Value does not follow pattern","validation_language":"A language code is required","date_date":"Date","date_time":"Time","date_year":"Year","date_date_and_time":"Date and time","date_year_and_month":"Year and month","date_month_and_day":"Month and day","date_openDatePicker":"Open date picker dialog","date_openTimePicker":"Open time picker dialog","date_openYearPicker":"Open year picker dialog","date_nextMonth":"Next month","date_previousMonth":"Previous month","duration_years":"Years","duration_months":"Months","duration_days":"Days","duration_hours":"Hours","duration_minutes":"Minutes","mandatoryLabel":"Mandatory","recommendedLabel":"Recommended","optionalLabel":"Optional","today":"Today","mandatoryMark":"*","recommendedMark":"(Recommended)","optionalMark":"(Optional)","deprecatedField":"This field has been deprecated, please remove it.","missingValueField":"This field is required, please provide a value.","dependencyField":"This field depends on another field, please review the field it depends on or remove this value.","wrongValueField":"This is an invalid value, please change or remove it.","wrongDatatypeField":"The value has an invalid datatype, please change or remove it.","openLinkExternally":"Open link externally","showMore":"Show more","showLess":"Show less"}');function ti(e){return(ti="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)}var ni,ri,oi,ii,ai,si="body",li=[{value:"",label:{en:""}},{value:"bg",label:{en:"Bulgarian",bg:"български"}},{value:"es",label:{en:"Spanish",es:"Español"}},{value:"cs",label:{en:"Czech",cs:"čeština"}},{value:"da",label:{en:"Danish",da:"Dansk"}},{value:"no",label:{en:"Norwegian",no:"Norsk",nb:"Norsk",nn:"Norsk nynorsk"}},{value:"nb",label:{en:"Norwegian (bokmål)",nb:"Norsk bokmål",no:"Norsk bokmål",nn:"Norsk bokmål"}},{value:"nn",label:{en:"Norwegian (nynorsk)",nb:"Norsk nynorsk",no:"Norsk nynorsk",nn:"Norsk nynorsk"}},{value:"de",label:{en:"German",de:"Deutsch"}},{value:"et",label:{en:"Estonian",et:"Eesti keel"}},{value:"el",label:{en:"Greek",el:"ελληνικά"}},{value:"en",label:{en:"English"}},{value:"fr",label:{en:"French",fr:"Français"}},{value:"ga",label:{en:"Irish",ga:"Gaeilge"}},{value:"hr",label:{en:"Croatian",hr:"Hrvatski"}},{value:"it",label:{en:"Italian",it:"Italiano"}},{value:"lv",label:{en:"Latvian",lv:"Latviešu valoda"}},{value:"lt",label:{en:"Lithuanian",lt:"Lietuvių kalba"}},{value:"hu",label:{en:"Hungarian",hu:"Magyar"}},{value:"mt",label:{en:"Maltese",mt:"Malti"}},{value:"nl",label:{en:"Dutch",nl:"Nederlands"}},{value:"pl",label:{en:"Polish",pl:"Polski"}},{value:"pt",label:{en:"Portuguese",pt:"Português"}},{value:"ro",label:{en:"Romanian",ro:"Română"}},{value:"sk",label:{en:"Slovak",sk:"Slovenčina"}},{value:"sl",label:{en:"Slovenian",sl:"Slovenščina"}},{value:"fi",label:{en:"Finnish",fi:"Suomi"}},{value:"sv",label:{en:"Swedish",sv:"Svenska"}}],ui={domQuery:function(){},domCreate:function(){},domCreateAfter:function(){},domClassToggle:function(){},domSetAttr:function(){},domText:function(){},createDomNode:function(e){return e instanceof Node?e:"string"==typeof e?document.getElementById(e):document.createElement("div")},destroyDomNode:function(){},presenterRegistry:new Zt,editorRegistry:new Zt,chooserRegistry:new Zt,renderPresenter:function(e,t,n){var r=ui.presenterRegistry.getComponent(t.getItem());r&&(ui.prePresenterRenderer(e,t,n),r(e,t,n),ui.postPresenterRenderer(e,t,n))},renderEditor:function(e,t,n){var r=ui.editorRegistry.getComponent(t.getItem());r&&(ui.preEditorRenderer(e,t,n),r(e,t,n),ui.postEditorRenderer(e,t,n))},renderValidationMessage:function(e,t,n){},renderSelect:function(){},getChoice:function(e,t){var n=ui.chooserRegistry.getComponent(e);if(null==n)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return n.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=ui.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,n){var r=ui.chooserRegistry.getComponent(e.getItem());if(null!=r&&r&&r.getChoice)r.show(e,t,n);else{var o=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(o))}},getExtLinkClass:function(){return""},setMessages:function(e){ni=e},getMessages:function(){return ni||ei},getLanguageList:function(){return ri||li},getPrimaryLanguageList:function(){if(!ii){for(var e,t=ui.getLanguageList(),n=oi||[],r=[],o=0;o<t.length;o++){var i=t[o].value,a=n.indexOf(i);""===i&&(e=t[o]),-1!==a&&(r[a]=t[o])}ii=[];for(var s=0;s<r.length;s++)"object"===ti(r[s])&&ii.push(r[s]);ii.length>0&&e&&ii.splice(0,0,e)}return ii},getNonPrimaryLanguageList:function(){if(!ai){var e=ui.getPrimaryLanguageList().length>0,t=ui.getLanguageList(),n=oi||[];ai=[];for(var r=0;r<t.length;r++){var o=t[r].value;-1===n.indexOf(o)&&(e&&""===o||ai.push(t[r]))}}return ai},setPrimaryLanguageCodes:function(e){ai=null,ii=null,oi=e},setLanguageList:function(e){ri=e},filterTranslations:function(e,t,n){for(var r={},o=0;o<e.length;o++){var i=e[o].getLanguage();""===i||null==i?r.noLanguage=!0:i===t?r.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?r.close=!0:0===i.indexOf(n)&&(r.defaultLanguage=!0)}return r.best?e.filter((function(e){return e.getLanguage()===t})):r.close?e.filter((function(e){var n=e.getLanguage();return n&&(-1!==n.indexOf(t)||-1!==t.indexOf(n))})):r.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(n)})):e},setPopoverContainer:function(e){si=e},getPopoverContainer:function(){return si},preEditorViewRenderer:function(e,t){},prePresenterViewRenderer:function(e,t){},preEditorRenderer:function(){},postEditorRenderer:function(){},prePresenterRenderer:function(){},postPresenterRenderer:function(){},renderEditorLabel:function(){},renderEditorLabelScopeEnd:function(){},renderPresenterLabel:function(){},attachItemInfo:function(){},addCreateChildButton:function(){},addGroupButtons:function(){},addExpandButton:function(){},addRemoveButton:function(){},addPresenterTable:function(){},fillPresenterTable:function(){},addEditorTable:function(){},fillEditorTable:function(){},addTruncateControl:function(){}};Jo.getChoice=ui.getChoice;var ci=function(e,t,n){new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,binding:t,topLevel:!1,compact:n.view.compact,showLanguage:n.view.showLanguage,showDescription:n.view.showDescription,defaultLanguage:n.view.defaultLanguage,filterTranslations:n.view.filterTranslations,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e)};ui.presenterRegistry.itemtype("group").register(ci),ui.presenterRegistry.itemtype("propertygroup").register(ci);var di=function(e,t,n){var r=new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,languages:n.view.languages,binding:t,topLevel:!1,compact:n.view.compact,showDescription:n.view.showDescription,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e);n.view._subEditors.push(r)};ui.editorRegistry.itemtype("group").register(di),ui.editorRegistry.itemtype("propertygroup").register(di);const fi=ui;function pi(e){return"string"==typeof e}function hi(e,t,n){return void 0===e||pi(e)?t:(0,u.Z)({},t,{ownerState:(0,u.Z)({},t.ownerState,n)})}var mi=o(6682),gi=o(8794),yi=o(606);function vi(){const e=(0,mi.Z)(gi.Z);return e[yi.Z]||e}var bi=o(3935);const wi=!1;var xi=function(e){return e.scrollTop},Si=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}w(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this);n&&xi(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[bi.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||wi?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:bi.findDOMNode(this);t&&!wi?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if("unmounted"===t)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,l.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(x.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function _i(){}Si.contextType=x,Si.propTypes={},Si.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Si.UNMOUNTED="unmounted",Si.EXITED="exited",Si.ENTERING="entering",Si.ENTERED="entered",Si.EXITING="exiting";const ki=Si,Ei=e=>e.scrollTop;function Ci(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Pi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ti(e){return`scale(${e}, ${e**2})`}const Oi={entering:{opacity:1,transform:Ti(1)},entered:{opacity:1,transform:"none"}},Ri="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ai=e.forwardRef((function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:y,timeout:v="auto",TransitionComponent:b=ki}=t,w=(0,l.Z)(t,Pi),x=e.useRef(),S=e.useRef(),_=vi(),k=e.useRef(null),E=(0,g.Z)(k,i.ref,n),C=e=>t=>{if(e){const n=k.current;void 0===t?e(n):e(n,t)}},P=C(f),T=C((e,t)=>{Ei(e);const{duration:n,delay:r,easing:o}=Ci({style:y,timeout:v,easing:a},{mode:"enter"});let i;"auto"===v?(i=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=i):i=n,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:r}),_.transitions.create("transform",{duration:Ri?i:.666*i,delay:r,easing:o})].join(","),c&&c(e,t)}),O=C(d),R=C(m),A=C(e=>{const{duration:t,delay:n,easing:r}=Ci({style:y,timeout:v,easing:a},{mode:"exit"});let o;"auto"===v?(o=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:Ri?o:.666*o,delay:Ri?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ti(.75),p&&p(e)}),M=C(h);return e.useEffect(()=>()=>{clearTimeout(x.current)},[]),(0,I.jsx)(b,(0,u.Z)({appear:o,in:s,nodeRef:k,onEnter:T,onEntered:O,onEntering:P,onExit:A,onExited:M,onExiting:R,addEndListener:e=>{"auto"===v&&(x.current=setTimeout(e,S.current||0)),r&&r(k.current,e)},timeout:"auto"===v?null:v},w,{children:(t,n)=>e.cloneElement(i,(0,u.Z)({style:(0,u.Z)({opacity:0,transform:Ti(.75),visibility:"exited"!==t||s?void 0:"hidden"},Oi[t],y,i.props.style),ref:E},n))}))}));Ai.muiSupportAuto=!0;const Mi=Ai;var Di=o(3703),ji=o(3546),Ii=o(2690);function Ni(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Li(e){return e instanceof Ni(e).Element||e instanceof Element}function Zi(e){return e instanceof Ni(e).HTMLElement||e instanceof HTMLElement}function Fi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ni(e).ShadowRoot||e instanceof ShadowRoot)}var Bi=Math.max,Vi=Math.min,zi=Math.round;function Wi(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ui(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function $i(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Zi(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=(Li(e)?Ni(e):window).visualViewport,s=!Ui()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Hi(e){var t=Ni(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yi(e){return e?(e.nodeName||"").toLowerCase():null}function Gi(e){return((Li(e)?e.ownerDocument:e.document)||window.document).documentElement}function qi(e){return $i(Gi(e)).left+Hi(e).scrollLeft}function Ki(e){return Ni(e).getComputedStyle(e)}function Xi(e){var t=Ki(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Qi(e,t,n){void 0===n&&(n=!1);var r,o,i=Zi(t),a=Zi(t)&&function(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Gi(t),l=$i(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==Yi(t)||Xi(s))&&(u=(r=t)!==Ni(r)&&Zi(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Hi(r)),Zi(t)?((c=$i(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=qi(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function Ji(e){var t=$i(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 ea(e){return"html"===Yi(e)?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||Gi(e)}function ta(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(Yi(t))>=0?t.ownerDocument.body:Zi(t)&&Xi(t)?t:e(ea(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ni(r),a=o?[i].concat(i.visualViewport||[],Xi(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ta(ea(a)))}function na(e){return["table","td","th"].indexOf(Yi(e))>=0}function ra(e){return Zi(e)&&"fixed"!==Ki(e).position?e.offsetParent:null}function oa(e){for(var t=Ni(e),n=ra(e);n&&na(n)&&"static"===Ki(n).position;)n=ra(n);return n&&("html"===Yi(n)||"body"===Yi(n)&&"static"===Ki(n).position)?t:n||function(e){var t=/firefox/i.test(Wi());if(/Trident/i.test(Wi())&&Zi(e)&&"fixed"===Ki(e).position)return null;var n=ea(e);for(Fi(n)&&(n=n.host);Zi(n)&&["html","body"].indexOf(Yi(n))<0;){var r=Ki(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 ia="top",aa="bottom",sa="right",la="left",ua=[ia,aa,sa,la],ca=ua.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),da=[].concat(ua,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),fa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pa(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var ha={placement:"bottom",modifiers:[],strategy:"absolute"};function ma(){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 ga(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ha:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ha,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Li(e)?ta(e):e.contextElement?ta(e.contextElement):[],popper:ta(t)};var a,u,f=function(e){var t=pa(e);return fa.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.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}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:r});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(ma(t,n)){s.rects={reference:Qi(t,oa(n),"fixed"===s.options.strategy),popper:Ji(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!ma(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var ya={passive:!0};function va(e){return e.split("-")[0]}function ba(e){return e.split("-")[1]}function wa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xa(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?va(o):null,a=o?ba(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ia:t={x:s,y:n.y-r.height};break;case aa:t={x:s,y:n.y+n.height};break;case sa:t={x:n.x+n.width,y:l};break;case la:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?wa(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Sa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _a(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=la,w=ia,x=window;if(u){var S=oa(n),_="clientHeight",k="clientWidth";if(S===Ni(n)&&"static"!==Ki(S=Gi(n)).position&&"absolute"===s&&(_="scrollHeight",k="scrollWidth"),S=S,o===ia||(o===la||o===sa)&&"end"===i)w=aa,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[_])-r.height,m*=l?1:-1;if(o===la||(o===ia||o===aa)&&"end"===i)b=sa,p-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-r.width,p*=l?1:-1}var E,C=Object.assign({position:s},u&&Sa),P=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}({x:p,y:m},Ni(n)):{x:p,y:m};return p=P.x,m=P.y,l?Object.assign({},C,((E={})[w]=v?"0":"",E[b]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var ka={left:"right",right:"left",bottom:"top",top:"bottom"};function Ea(e){return e.replace(/left|right|bottom|top/g,(function(e){return ka[e]}))}var Ca={start:"end",end:"start"};function Pa(e){return e.replace(/start|end/g,(function(e){return Ca[e]}))}function Ta(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Oa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ra(e,t,n){return"viewport"===t?Oa(function(e,t){var n=Ni(e),r=Gi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Ui();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+qi(e),y:l}}(e,n)):Li(t)?function(e,t){var n=$i(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Oa(function(e){var t,n=Gi(e),r=Hi(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Bi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Bi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+qi(e),l=-r.scrollTop;return"rtl"===Ki(o||n).direction&&(s+=Bi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Gi(e)))}function Aa(e,t,n,r){var o="clippingParents"===t?function(e){var t=ta(ea(e)),n=["absolute","fixed"].indexOf(Ki(e).position)>=0&&Zi(e)?oa(e):e;return Li(n)?t.filter((function(e){return Li(e)&&Ta(e,n)&&"body"!==Yi(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Ra(e,n,r);return t.top=Bi(o.top,t.top),t.right=Vi(o.right,t.right),t.bottom=Vi(o.bottom,t.bottom),t.left=Bi(o.left,t.left),t}),Ra(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ma(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Da(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ja(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?"viewport":u,d=n.elementContext,f=void 0===d?"popper":d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=Ma("number"!=typeof g?g:Da(g,ua)),v="popper"===f?"reference":"popper",b=e.rects.popper,w=e.elements[h?v:f],x=Aa(Li(w)?w:w.contextElement||Gi(e.elements.popper),l,c,a),S=$i(e.elements.reference),_=xa({reference:S,element:b,strategy:"absolute",placement:o}),k=Oa(Object.assign({},b,_)),E="popper"===f?k:S,C={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},P=e.modifiersData.offset;if("popper"===f&&P){var T=P[o];Object.keys(C).forEach((function(e){var t=[sa,aa].indexOf(e)>=0?1:-1,n=[ia,aa].indexOf(e)>=0?"y":"x";C[e]+=T[n]*t}))}return C}function Ia(e,t,n){return Bi(e,Vi(t,n))}function Na(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 La(e){return[ia,sa,aa,la].some((function(t){return e[t]>=0}))}var Za=ga({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Ni(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,ya)})),s&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ya)})),s&&l.removeEventListener("resize",n.update,ya)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xa({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,l=void 0===s||s,u={placement:va(t.placement),variation:ba(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,_a(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),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];Zi(o)&&Yi(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}),{});Zi(r)&&Yi(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{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=da.reduce((function(e,n){return e[n]=function(e,t,n){var r=va(e),o=[la,ia].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,[la,sa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{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,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,y=va(g),v=l||(y===g||!h?[Ea(g)]:function(e){if("auto"===va(e))return[];var t=Ea(e);return[Pa(e),t,Pa(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat("auto"===va(n)?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,l=n.allowedAutoPlacements,u=void 0===l?da:l,c=ba(r),d=c?s?ca:ca.filter((function(e){return ba(e)===c})):ua,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=ja(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[va(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,_=!0,k=b[0],E=0;E<b.length;E++){var C=b[E],P=va(C),T="start"===ba(C),O=[ia,aa].indexOf(P)>=0,R=O?"width":"height",A=ja(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=O?T?sa:la:T?aa:ia;w[R]>x[R]&&(M=Ea(M));var D=Ea(M),j=[];if(i&&j.push(A[P]<=0),s&&j.push(A[M]<=0,A[D]<=0),j.every((function(e){return e}))){k=C,_=!1;break}S.set(C,j)}if(_)for(var I=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=h?3:1;N>0;N--){if("break"===I(N))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{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,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=ja(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=va(t.placement),v=ba(t.placement),b=!v,w=wa(y),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(i){var O,R="y"===w?ia:la,A="y"===w?aa:sa,M="y"===w?"height":"width",D=S[w],j=D+g[R],I=D-g[A],N=p?-k[M]/2:0,L="start"===v?_[M]:k[M],Z="start"===v?-k[M]:-_[M],F=t.elements.arrow,B=p&&F?Ji(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[R],W=V[A],U=Ia(0,_[M],B[M]),$=b?_[M]/2-N-U-z-C.mainAxis:L-U-z-C.mainAxis,H=b?-_[M]/2+N+U+W+C.mainAxis:Z+U+W+C.mainAxis,Y=t.elements.arrow&&oa(t.elements.arrow),G=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(O=null==P?void 0:P[w])?O:0,K=D+H-q,X=Ia(p?Vi(j,D+$-q-G):j,D,p?Bi(I,K):I);S[w]=X,T[w]=X-D}if(s){var Q,J="x"===w?ia:la,ee="x"===w?aa:sa,te=S[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[ia,la].indexOf(y),ae=null!=(Q=null==P?void 0:P[x])?Q:0,se=ie?re:te-_[ne]-k[ne]-ae+C.altAxis,le=ie?te+_[ne]+k[ne]-ae-C.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Ia(e,t,n);return r>n?n:r}(se,te,le):Ia(p?se:re,te,p?le:oe);S[x]=ue,T[x]=ue-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]},{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=va(n.placement),l=wa(s),u=[la,sa].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return Ma("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Da(e,ua))}(o.padding,n),d=Ji(i),f="y"===l?ia:la,p="y"===l?aa:sa,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=oa(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=c[f],w=y-d[u]-c[p],x=y/2-d[u]/2+v,S=Ia(b,x,w),_=l;n.modifiersData[r]=((t={})[_]=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)))&&Ta(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{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=ja(t,{elementContext:"reference"}),s=ja(t,{altBoundary:!0}),l=Na(a,r),u=Na(s,o,i),c=La(l),d=La(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),Fa=o(7960);const Ba=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=e.useState(null),l=(0,Di.Z)(e.isValidElement(r)?r.ref:null,n);if((0,ji.Z)(()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,i]),(0,ji.Z)(()=>{if(a&&!i)return(0,Fa.Z)(n,a),()=>{(0,Fa.Z)(n,null)}},[n,a,i]),i){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return(0,I.jsx)(e.Fragment,{children:r})}return(0,I.jsx)(e.Fragment,{children:a?bi.createPortal(r,a):a})}));function Va(e,t){const n=X._v[t];return n?"base--"+n:function(e,t){return`base-${e}-${t}`}(e,t)}function za(e){return Va("Popper",e)}!function(e,t){const n={};t.forEach(t=>{n[t]=Va(e,t)})}("Popper",["root"]);function Wa(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Ua(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const $a=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ha(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,l.Z)(e,$a),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:d,internalRef:f}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,c.Z)(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,u.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=(0,u.Z)({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Wa((0,u.Z)({},o,r)),s=Ua(r),l=Ua(o),d=t(a),f=(0,c.Z)(null==d?void 0:d.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),p=(0,u.Z)({},null==d?void 0:d.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),h=(0,u.Z)({},d,n,l,s);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:d.ref}}((0,u.Z)({},a,{externalSlotProps:s})),p=(0,Di.Z)(f,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return hi(n,(0,u.Z)({},d,{ref:p}),o)}const Ya={disableDefaultClasses:!1},Ga=e.createContext(Ya);const qa=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ka=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Xa(e){return"function"==typeof e?e():e}function Qa(e){return void 0!==e.nodeType}const Ja=()=>(0,f.Z)({root:["root"]},function(t){const{disableDefaultClasses:n}=e.useContext(Ga);return e=>n?"":t(e)}(za)),es={},ts=e.forwardRef((function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:c,open:d,placement:f,popperOptions:p,popperRef:h,slotProps:m={},slots:g={},TransitionProps:y}=t,v=(0,l.Z)(t,qa),b=e.useRef(null),w=(0,Di.Z)(b,n),x=e.useRef(null),S=(0,Di.Z)(x,h),_=e.useRef(S);(0,ji.Z)(()=>{_.current=S},[S]),e.useImperativeHandle(h,()=>x.current,[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,a),[E,C]=e.useState(k),[P,T]=e.useState(Xa(o));e.useEffect(()=>{x.current&&x.current.forceUpdate()}),e.useEffect(()=>{o&&T(Xa(o))},[o]),(0,ji.Z)(()=>{if(!P||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Za(P,b.current,(0,u.Z)({placement:k},p,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}},[P,s,c,d,p,k]);const O={placement:E};null!==y&&(O.TransitionProps=y);const R=Ja(),A=null!=(r=g.root)?r:"div",M=Ha({elementType:A,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:R.root});return(0,I.jsx)(A,(0,u.Z)({},M,{children:"function"==typeof i?i(O):i}))})),ns=e.forwardRef((function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:h=es,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:b={}}=t,w=(0,l.Z)(t,Ka),[x,S]=e.useState(!0);if(!c&&!f&&(!y||x))return null;let _;if(i)_=i;else if(r){const e=Xa(r);_=e&&Qa(e)?(0,Ii.Z)(e).body:(0,Ii.Z)(null).body}const k=f||!c||y&&!x?void 0:"none",E=y?{in:f,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,I.jsx)(Ba,{disablePortal:s,container:_,children:(0,I.jsx)(ts,(0,u.Z)({anchorEl:r,direction:a,disablePortal:s,modifiers:d,ref:n,open:y?!x:f,placement:p,popperOptions:h,popperRef:m,slotProps:v,slots:b},w,{style:(0,u.Z)({position:"fixed",top:0,left:0,display:k},g),TransitionProps:E,children:o}))})}));var rs=o(4168);const os=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],is=(0,h.ZP)(ns,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),as=e.forwardRef((function(e,t){var n;const r=(0,rs.Z)(),o=(0,m.Z)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:c,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w,slots:x,slotProps:S}=o,_=(0,l.Z)(o,os),k=null!=(n=null==x?void 0:x.root)?n:null==s?void 0:s.Root,E=(0,u.Z)({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w},_);return(0,I.jsx)(is,(0,u.Z)({as:a,direction:null==r?void 0:r.direction,slots:{root:k},slotProps:null!=S?S:c},E,{ref:t}))}));var ss=o(7909),ls=o(9299);function us(e){return(0,X.ZP)("MuiTooltip",e)}const cs=(0,L.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ds=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const fs=(0,h.ZP)(as,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{['&[data-popper-placement*="bottom"] .'+cs.arrow]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'+cs.arrow]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'+cs.arrow]:(0,u.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'+cs.arrow]:(0,u.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ps=(0,h.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement"+(0,re.Z)(n.placement.split("-")[0])]]}})(({theme:e,ownerState:t})=>{return(0,u.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${cs.popper}[data-popper-placement*="left"] &`]:(0,u.Z)({transformOrigin:"right center"},t.isRtl?(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${cs.popper}[data-popper-placement*="right"] &`]:(0,u.Z)({transformOrigin:"left center"},t.isRtl?(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${cs.popper}[data-popper-placement*="top"] &`]:(0,u.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${cs.popper}[data-popper-placement*="bottom"] &`]:(0,u.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),hs=(0,h.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ms=!1,gs=null,ys={x:0,y:0};function vs(e,t){return n=>{t&&t(n),e(n)}}const bs=e.forwardRef((function(t,n){var r,o,i,a,s,d,p,h,b,w,x,S,_,k,E,C,P,T,O;const R=(0,m.Z)({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:M,components:D={},componentsProps:j={},describeChild:N=!1,disableFocusListener:L=!1,disableHoverListener:Z=!1,disableInteractive:F=!1,disableTouchListener:B=!1,enterDelay:V=100,enterNextDelay:z=0,enterTouchDelay:W=700,followCursor:U=!1,id:$,leaveDelay:H=0,leaveTouchDelay:Y=1500,onClose:G,onOpen:q,open:K,placement:X="bottom",PopperComponent:Q,PopperProps:J={},slotProps:ee={},slots:te={},title:ne,TransitionComponent:oe=Mi,TransitionProps:ie}=R,ae=(0,l.Z)(R,ds),se=e.isValidElement(M)?M:(0,I.jsx)("span",{children:M}),le=vi(),ue="rtl"===le.direction,[ce,de]=e.useState(),[fe,pe]=e.useState(null),he=e.useRef(!1),me=F||U,ge=e.useRef(),ye=e.useRef(),ve=e.useRef(),be=e.useRef(),[we,xe]=(0,ls.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"});let Se=we;const _e=(0,ss.Z)($),ke=e.useRef(),Ee=e.useCallback(()=>{void 0!==ke.current&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),clearTimeout(be.current)},[]);e.useEffect(()=>()=>{clearTimeout(ge.current),clearTimeout(ye.current),clearTimeout(ve.current),Ee()},[Ee]);const Ce=e=>{clearTimeout(gs),ms=!0,xe(!0),q&&!Se&&q(e)},Pe=(0,y.Z)(e=>{clearTimeout(gs),gs=setTimeout(()=>{ms=!1},800+H),xe(!1),G&&Se&&G(e),clearTimeout(ge.current),ge.current=setTimeout(()=>{he.current=!1},le.transitions.duration.shortest)}),Te=e=>{he.current&&"touchstart"!==e.type||(ce&&ce.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(ve.current),V||ms&&z?ye.current=setTimeout(()=>{Ce(e)},ms?z:V):Ce(e))},Oe=e=>{clearTimeout(ye.current),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},H)},{isFocusVisibleRef:Re,onBlur:Ae,onFocus:Me,ref:De}=(0,v.Z)(),[,je]=e.useState(!1),Ie=e=>{Ae(e),!1===Re.current&&(je(!1),Oe(e))},Ne=e=>{ce||de(e.currentTarget),Me(e),!0===Re.current&&(je(!0),Te(e))},Le=e=>{he.current=!0;const t=se.props;t.onTouchStart&&t.onTouchStart(e)},Ze=Te,Fe=Oe,Be=e=>{Le(e),clearTimeout(ve.current),clearTimeout(ge.current),Ee(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ke.current,Te(e)},W)},Ve=e=>{se.props.onTouchEnd&&se.props.onTouchEnd(e),Ee(),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},Y)};e.useEffect(()=>{if(Se)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Pe(e)}},[Pe,Se]);const ze=(0,g.Z)(se.ref,De,de,n);ne||0===ne||(Se=!1);const We=e.useRef(),Ue={},$e="string"==typeof ne;N?(Ue.title=Se||!$e||Z?null:ne,Ue["aria-describedby"]=Se?_e:null):(Ue["aria-label"]=$e?ne:null,Ue["aria-labelledby"]=Se&&!$e?_e:null);const He=(0,u.Z)({},Ue,ae,se.props,{className:(0,c.Z)(ae.className,se.props.className),onTouchStart:Le,ref:ze},U?{onMouseMove:e=>{const t=se.props;t.onMouseMove&&t.onMouseMove(e),ys={x:e.clientX,y:e.clientY},We.current&&We.current.update()}}:{});const Ye={};B||(He.onTouchStart=Be,He.onTouchEnd=Ve),Z||(He.onMouseOver=vs(Ze,He.onMouseOver),He.onMouseLeave=vs(Fe,He.onMouseLeave),me||(Ye.onMouseOver=Ze,Ye.onMouseLeave=Fe)),L||(He.onFocus=vs(Ne,He.onFocus),He.onBlur=vs(Ie,He.onBlur),me||(Ye.onFocus=Ne,Ye.onBlur=Ie));const Ge=e.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(fe),options:{element:fe,padding:4}}];return null!=(e=J.popperOptions)&&e.modifiers&&(t=t.concat(J.popperOptions.modifiers)),(0,u.Z)({},J.popperOptions,{modifiers:t})},[fe,J]),qe=(0,u.Z)({},R,{isRtl:ue,arrow:A,disableInteractive:me,placement:X,PopperComponentProp:Q,touch:he.current}),Ke=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement"+(0,re.Z)(i.split("-")[0])],arrow:["arrow"]};return(0,f.Z)(a,us,t)})(qe),Xe=null!=(r=null!=(o=te.popper)?o:D.Popper)?r:fs,Qe=null!=(i=null!=(a=null!=(s=te.transition)?s:D.Transition)?a:oe)?i:Mi,Je=null!=(d=null!=(p=te.tooltip)?p:D.Tooltip)?d:ps,et=null!=(h=null!=(b=te.arrow)?b:D.Arrow)?h:hs,tt=hi(Xe,(0,u.Z)({},J,null!=(w=ee.popper)?w:j.popper,{className:(0,c.Z)(Ke.popper,null==J?void 0:J.className,null==(x=null!=(S=ee.popper)?S:j.popper)?void 0:x.className)}),qe),nt=hi(Qe,(0,u.Z)({},ie,null!=(_=ee.transition)?_:j.transition),qe),rt=hi(Je,(0,u.Z)({},null!=(k=ee.tooltip)?k:j.tooltip,{className:(0,c.Z)(Ke.tooltip,null==(E=null!=(C=ee.tooltip)?C:j.tooltip)?void 0:E.className)}),qe),ot=hi(et,(0,u.Z)({},null!=(P=ee.arrow)?P:j.arrow,{className:(0,c.Z)(Ke.arrow,null==(T=null!=(O=ee.arrow)?O:j.arrow)?void 0:T.className)}),qe);return(0,I.jsxs)(e.Fragment,{children:[e.cloneElement(se,He),(0,I.jsx)(Xe,(0,u.Z)({as:null!=Q?Q:as,placement:X,anchorEl:U?{getBoundingClientRect:()=>({top:ys.y,left:ys.x,right:ys.x,bottom:ys.y,width:0,height:0})}:ce,popperRef:We,open:!!ce&&Se,id:_e,transition:!0},Ye,tt,{popperOptions:Ge,children:({TransitionProps:e})=>(0,I.jsx)(Qe,(0,u.Z)({timeout:le.transitions.duration.shorter},e,nt,{children:(0,I.jsxs)(Je,(0,u.Z)({},rt,{children:[ne,A?(0,I.jsx)(et,(0,u.Z)({},ot,{ref:pe})):null]}))}))}))]})}));var ws=o(9948);function xs(e){return e.substring(2).toLowerCase()}function Ss(t){const{children:n,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const d=(0,Di.Z)(n.ref,l),f=(0,ws.Z)(e=>{const t=c.current;c.current=!1;const n=(0,Ii.Z)(l.current);if(!u.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),o||!r&&t||i(e)}),p=e=>t=>{c.current=!0;const r=n.props[e];r&&r(t)},h={ref:d};return!1!==a&&(h[a]=p(a)),e.useEffect(()=>{if(!1!==a){const e=xs(a),t=(0,Ii.Z)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",n)}}},[f,a]),!1!==o&&(h[o]=p(o)),e.useEffect(()=>{if(!1!==o){const e=xs(o),t=(0,Ii.Z)(l.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}},[f,o]),(0,I.jsx)(e.Fragment,{children:e.cloneElement(n,h)})}o(2349),o(1919);var _s=o(745);function ks(e){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Es(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,Cs(r.key),r)}}function Cs(e){var t=function(e,t){if("object"!=ks(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ks(t)?t:String(t)}var Ps=0,Ts=function(){function e(t){var n=t.item,r=t.statement,o=t.graph,i=t.matchingCode;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=n,this._statement=r,this._graph=o,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Ps),this._matchingCode=i||"correct",Ps+=1}var t,n,r;return t=e,(n=[{key:"getGraph",value:function(){return this._graph||(this._statement?this._graph=this._statement.getGraph():this._parent&&(this._graph=this._parent.getGraph())),this._graph}},{key:"isReadOnly",value:function(){if(!("_readOnly"in this)){var e=this.getParent();e&&e._readOnly?this._readyOnly=!0:this._readOnly=!(!this._statement||!this._statement.getNamedGraph())}return this._readOnly}},{key:"remove",value:function(){}},{key:"setSubject",value:function(e){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(e,t){}},{key:"getGist",value:function(){return Xo.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var n=e,r=this.getItem().getValueTemplate();r&&n.length>0&&(-1===r.indexOf("$1")&&(r+="$1"),n=r.replace("$1",n)),this.setValue(n,t)}},{key:"getCardinalityTracker",value:function(){return this._cardinalityTracker}},{key:"setCardinalityTracker",value:function(e){this._cardinalityTracker=e}},{key:"getItem",value:function(){return this._item}},{key:"getStatement",value:function(){return this._statement}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(e){this._parent=e}},{key:"isValid",value:function(){}},{key:"getMatchingCode",value:function(){return this._matchingCode}},{key:"setMatchingCode",value:function(e){this._matchingCode=e}},{key:"setAncestorValid",value:function(e){this._ancestorValid=e,this.updateAssertions()}},{key:"updateAssertions",value:function(){}},{key:"getHash",value:function(){return this._hash}},{key:"addListener",value:function(e){this._listeners||(this._listeners=[]),this._listeners.push(e)}},{key:"removeListener",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"bindingChange",value:function(e){if(this._listeners)for(var t=0;t<this._listeners.length;t++)this._listeners[t](e);this._parent&&this._parent.bindingChange(e),this._cardinalityTracker&&this._cardinalityTracker.touch()}},{key:"_isValidObjectValue",value:function(e){var t=e;if("string"!=typeof t&&null!==t)throw new Error("In a binding every object value need to be a string!");var n=this._item.getPattern();return n?null!=(t=Xo.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(n,"$")).test(t):null!=t&&""!==t}},{key:"_isValidPredicateValue",value:function(e){if("string"!=typeof e&&null!==e)throw new Error("In a binding every predicate need to be a string!");return null!=e&&""!==e}}])&&Es(t.prototype,n),r&&Es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Os={UNKNOWN:"unknown",OK:"correct",TOO_FEW_VALUES:"few",TOO_FEW_VALUES_MIN:"min",TOO_FEW_VALUES_PREF:"pref",TOO_MANY_VALUES:"many",AT_MOST_ONE_CHILD:"atmostonechild",AT_LEAST_ONE_CHILD:"atleastonechild",EXACTLY_ONE_CHILD:"exactlyonechild",WRONG_VALUE:"value",WRONG_PATTERN:"pattern",WRONG_NODETYPE:"nodetype",WRONG_DATATYPE:"datatype",MISSING_LANGUAGE:"language",MISSING_CONSTRAINTS:"constraints"};function Rs(e){return(Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(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,Ms(r.key),r)}}function Ms(e){var t=function(e,t){if("object"!=Rs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rs(t)?t:String(t)}var Ds=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listener=[],this._limits=t.getCardinality()||{},this._counter=0,this._depsOk=!0,this._listeners=[],this._code=0}var t,n,r;return t=e,(n=[{key:"addListener",value:function(e){return this._listeners.push(e),e}},{key:"removeListener",value:function(e){this._listeners.splice(this._listeners.indexOf(e),1)}},{key:"cardinalityChanged",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"getCardinality",value:function(){return this._counter}},{key:"isMax",value:function(){return null!=this._limits.max&&this._counter>=this._limits.max}},{key:"isMin",value:function(){return null!=this._limits.min&&this._counter<=this._limits.min}},{key:"isFine",value:function(){return this._fine}},{key:"isDepsOk",value:function(){return this._depsOk}},{key:"getCode",value:function(){return this._code}},{key:"setCode",value:function(e){this._code!==e&&(this._code=e,this.cardinalityChanged())}},{key:"setDepsOk",value:function(e){this._depsOk!==e&&(this._code=Os.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=Os.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=Os.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=Os.UNKNOWN,this.cardinalityChanged()}},{key:"_checkCounter",value:function(){null!=this._limits.max&&this._counter===this._limits.max?this._fine=!0:null!=this._limits.max&&this._counter>this._limits.max?this._fine=!1:null!=this._limits.min&&this._counter===this._limits.min?this._fine=!0:null!=this._limits.min&&this._counter<this._limits.min&&(this._fine=!1),this.cardinalityChanged()}}])&&As(t.prototype,n),r&&As(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function js(e){return(js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(e){return function(e){if(Array.isArray(e))return Ns(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ns(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ls(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,Zs(r.key),r)}}function Zs(e){var t=function(e,t){if("object"!=js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==js(t)?t:String(t)}function Fs(e,t,n){return t=zs(t),function(e,t){if(t&&("object"===js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],zs(e).constructor):t.apply(e,n))}function Bs(){return(Bs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Vs(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Vs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zs(e)););return e}function zs(e){return(zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ws(e,t){return(Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Us=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Fs(this,t,[e]);var r=e.constraints,o=void 0===r?[]:r,i=e.childrenRootUri,a=void 0===i?null:i;return n._constraints=o,n._childBindings=n._item.getChildren().map((function(){return[]})),n._rootUri=a,n._validPredicate=!0,n._validObject=!0,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate()),n._validObject=n._isValidObjectValue(n._statement.getValue(),n._statement.getType())),n._cachedChildBindings=null,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ws(e,t)}(t,e),n=t,(r=[{key:"getValue",value:function(){return this._statement&&this._statement.isObjectBlank()?"":this._statement&&this._statement.getValue()}},{key:"oneChildValidityChanged",value:function(e){return e!==this._oneValidChild&&!(!e&&(delete this._oneValidChild,this.isValid()))&&(this._oneValidChild=e,this._notifyValidityChange(e&&this._validPredicate&&this._validObject),this._validPredicate&&this._validObject)}},{key:"setSubject",value:function(e){this._statement?this._statement.setSubject(e):this.getChildBindings().forEach((function(t){return t.setSubject(e)}))}},{key:"getChildrenRootUri",value:function(){return this._statement?this._statement.getValue():null!=this._rootUri?this._rootUri:null!=this._parent?this._parent.getChildrenRootUri():void 0}},{key:"addChildBinding",value:function(e){this.addChildBindings([e])}},{key:"addChildBindings",value:function(e){var t=this;if(this._cachedChildBindings=null,Array.isArray(e)&&0!==e.length)for(var n=e[0].getItem(),r=this._item.getChildren(),o=function(){if(n===r[i]){var o=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new Ds(n);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(o),o.increment()}),t),1}},i=r.length;i>=0&&!o();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e.getItem()===t[n]){this._childBindings[n].splice(this._childBindings[n].indexOf(e),1),delete e._parent,e.getCardinalityTracker().decrement();break}this.oneChildValidityChanged(),this.bindingChange(e)}},{key:"getChildBindingsFor",value:function(e){for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e===t[n])return this._childBindings[n]}},{key:"getItemGroupedChildBindings",value:function(){return this._childBindings}},{key:"getChildBindings",value:function(){var e;return null==this._cachedChildBindings&&(this._childBindings&&this._childBindings.length>0?this._cachedChildBindings=(e=[]).concat.apply(e,Is(this._childBindings)):this._cachedChildBindings=[]),this._cachedChildBindings}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!0)):(this._validPredicate=!1,!1!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!1)),this.updateAssertions()}},{key:"setValue",value:function(e){if("URI"!==this.getItem().getNodetype()||!this._statement)throw new Error("Cannot change the value of a group unless its nodetype is URI and also that it corresponds to a statement");var t=this._validObject;this._isValidObjectValue(e,"uri")?(this._validObject=!0,this._statement._o.type="uri",this._statement.setValue(e),this._constraints.forEach((function(t){return t.setSubject(e)})),this.getChildBindings().forEach((function(t){return t.setSubject(e)})),!t&&this._validPredicate&&this._notifyValidityChange(!0)):(this._validObject=!1,t&&this._validPredicate&&this._notifyValidityChange(!1))}},{key:"getPredicate",value:function(){return this._statement?this._statement.getPredicate():void 0}},{key:"remove",value:function(){this._oneValidChild=!1,this.setAncestorValid(!1),null!=this._parent&&this._parent.removeChildBinding(this),Bs(zs(t.prototype),"remove",this).call(this,arguments)}},{key:"_isValid",value:function(){return"URI"===this.getItem().getNodetype()?this._validObject&&this._validPredicate:this._oneValidChild&&this._validPredicate&&this._validObject}},{key:"isValid",value:function(){return null==this._oneValidChild&&(this._oneValidChild=this._forceOneValidChildCheck()),this._isValid()}},{key:"setAncestorValid",value:function(e){var t=this;this._ancestorValid=e,this.updateAssertions(),this._childBindings.forEach((function(n){return n.forEach((function(n){return n.setAncestorValid(e&&t._isValid())}),t)}),this)}},{key:"updateAssertions",value:function(){null==this._oneValidChild&&this.isValid();var e=this._ancestorValid&&this._isValid();null!=this._statement&&this._statement.setAsserted(e),this._constraints.forEach((function(t){return t.setAsserted(e)})),this.getChildBindings().forEach((function(e){return e.updateAssertions()}))}},{key:"_forceOneValidChildCheck",value:function(){return this._childBindings.some((function(e){return e.some((function(e){return e.isValid()}))}))}},{key:"_notifyValidityChange",value:function(e){this._parent&&this._parent.oneChildValidityChanged(e)||(this.updateAssertions(),this._childBindings.forEach((function(t){return t.forEach((function(t){return t.setAncestorValid(e)}))})))}},{key:"_isValidObjectValue",value:function(e,n){return("URI"!==this.getItem().getNodetype()||"uri"===n)&&Bs(zs(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&Ls(n.prototype,r),o&&Ls(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ts);function $s(e){return($s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hs(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,Ys(r.key),r)}}function Ys(e){var t=function(e,t){if("object"!=$s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$s(t)?t:String(t)}var Gs=0,qs=function(e,t,n){null==n||""===n||Array.isArray(n)&&0===n.length?delete e[t]:e[t]=n},Ks=function(){function e(t){var n=t.source,r=void 0===n?{}:n,o=t.bundle,i=t.itemStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=i,this._source=r,this._bundle=o,Gs+=1,this._internalId=Gs,this._styles=["heading","invisible","invisibleGroup","stars","commentOn","multiline","horizontalRadioButtons","verticalRadioButtons","horizontalCheckBoxes","verticalCheckBoxes","nonEditable","expandable","compact","nonCompact","dropDown","table","firstcolumnfixedtable","tree","externalLink","internalLink","noLink","image","label","tooltip","strictmatch","relaxedDatatypeMatch","viewAllTranslations","filterTranslations","email","atLeastOneChild","atMostOneChild","exactlyOneChild","noLabelInPresent","autoInitDate","autoUpdateDate","autoUUID","autoValue","showURI","showLink","showValue","showDescriptionInPresent","showDescriptionInEdit","textAsChoice","preserveOrderOfChoices","linkWithLabel","deprecated","inline","truncate","noTruncate","card","cardInPresent","cardInEdit"],this._getLocalizedValue=Xo.getLocalizedValue}var t,n,r;return t=e,(n=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){qs(this.getSource(!0),"id",e),delete s["@id"]}},{key:"getType",value:function(e){var t=this.getSource(e);return t.type||t["@type"]}},{key:"setType",value:function(e){qs(this.getSource(!0),"type",e),delete s["@type"],this.refreshExtends()}},{key:"getExtends",value:function(){return this.getSource(!0).extends||""}},{key:"refreshExtends",value:function(){this.isExtention&&this.setExtends(this.getExtends())}},{key:"setExtends",value:function(e){var t=this.getSource(!0),n=this._itemStore.getItem(e);this._source=null==n?t:this._itemStore.createExtendedSource(n.getSource(),t),""===e||null==e?delete t.extends:t.extends=e}},{key:"isExtention",value:function(){return null!=this.getExtends()}},{key:"_getText",value:function(e,t,n){var r=this.getSource(n);return t?Xo.getLocalizedValue(r[e]):Xo.getLocalizedValue(r[e]).value}},{key:"_setText",value:function(e,t,n){var r=this.getSource(!0);r[e]=this._setLangHash(r[e],t,n),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){qs(this.getSource(!0),e,t),this.refreshExtends()}},{key:"getLabel",value:function(e,t){return this._getText("label",e,t)}},{key:"setLabel",value:function(e,t){this._setText("label",e,t)}},{key:"getLabelMap",value:function(e){return this.getSource(e).label}},{key:"setLabelMap",value:function(e){this._setTextMap("label",e)}},{key:"getEditLabel",value:function(e,t){return this._getText("editlabel",e,t)}},{key:"setEditLabel",value:function(e,t){this._setText("editlabel",e,t)}},{key:"getEditLabelMap",value:function(e){return this.getSource(e).editlabel}},{key:"setEditLabelMap",value:function(e){this._setTextMap("editlabel",e)}},{key:"getDescription",value:function(e,t){return this._getText("description",e,t)}},{key:"setDescription",value:function(e,t){this._setText("description",e,t)}},{key:"getDescriptionMap",value:function(e){return this.getSource(e).description}},{key:"setDescriptionMap",value:function(e){this._setTextMap("description",e)}},{key:"getEditDescription",value:function(e,t){return this._getText("editdescription",e,t)}},{key:"setEditDescription",value:function(e,t){this._setText("editdescription",e,t)}},{key:"getEditDescriptionMap",value:function(e){return this.getSource(e).editdescription}},{key:"setEditDescriptionMap",value:function(e){this._setTextMap("editdescription",e)}},{key:"getHelp",value:function(e,t){return this._getText("help",e,t)}},{key:"setHelp",value:function(e,t){this._setText("help",e,t)}},{key:"getHelpMap",value:function(e){return this.getSource(e).help}},{key:"setHelpMap",value:function(e){this._setTextMap("help",e)}},{key:"getPlaceholder",value:function(e,t){return this._getText("placeholder",e,t)}},{key:"setPlaceholder",value:function(e,t){this._setText("placeholder",e,t)}},{key:"getPlaceholderMap",value:function(e){return this.getSource(e).placeholder}},{key:"setPlaceholderMap",value:function(e){this._setTextMap("placeholder",e)}},{key:"getPurpose",value:function(e,t){return this._getText("purpose",e,t)}},{key:"setPurpose",value:function(e,t){this._setText("purpose",e,t)}},{key:"getPurposeMap",value:function(e){return this.getSource(e).purpose}},{key:"setPurposeMap",value:function(e){this._setTextMap("purpose",e)}},{key:"getSpecification",value:function(e,t){return this._getText("specification",e,t)}},{key:"setSpecification",value:function(e,t){this._setText("specification",e,t)}},{key:"getSpecificationMap",value:function(e){return this.getSource(e).specification}},{key:"setSpecificationMap",value:function(e){this._setTextMap("specification",e)}},{key:"getText",value:function(e,t,n){var r=this.getSource(n).text||{};return t?Xo.getLocalizedValue(r[e]):Xo.getLocalizedValue(r[e]).value}},{key:"setText",value:function(e,t,n){var r=this.getSource(!0),o=r.text=r.text||{};o[e]=this._setLangHash(o[e],t,n),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var n=this.getSource(!0),r=n.text=n.text||{};qs(r,e,t),this.refreshExtends()}},{key:"getProperty",value:function(e){var t=null,n=this.getSource(e);return n&&null!=(t=n.property)&&""!==t&&(t=xe(t)),t}},{key:"setProperty",value:function(e){qs(this.getSource(!0),"property",e),this.refreshExtends()}},{key:"getURIValueLabelProperties",value:function(e){var t=this.getSource(e).uriValueLabelProperties;return null!=t?t.map((function(e){return xe(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){qs(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var n={};return Object.keys(t).forEach((function(e){var r=t[e];Array.isArray(r)?n[xe(e)]=r.map((function(e){return xe(e)})):n[xe(e)]=xe(r)})),n}return t}},{key:"setConstraints",value:function(e){qs(this.getSource(!0),"constraints",e),this.refreshExtends()}},{key:"getDeps",value:function(e){var t=this.getSource(e).deps;return null!=t?t.map((function(e){return"*"!==e&&".."!==e?xe(e):e})):t}},{key:"setDeps",value:function(e){qs(this.getSource(!0),"deps",e),this.refreshExtends()}},{key:"getDatatype",value:function(e){var t=this.getSource(e).datatype;return null!=t&&""!==t?Array.isArray(t)?t.map((function(e){return xe(e)})):xe(t):t}},{key:"setDatatype",value:function(e){qs(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){qs(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){qs(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){qs(this.getSource(!0),"member",e),this.refreshExtends()}},{key:"getNodetype",value:function(e){var t=this.getSource(e);return t.nodetype||t.nodeType}},{key:"setNodetype",value:function(e){qs(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){qs(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){qs(this.getSource(!0),"valueTemplate",e),this.refreshExtends()}},{key:"getCardinality",value:function(e){if(!this.getProperty()&&"text"===this.getType())return{min:1,max:1};var t=this.getSource(e);return t&&"cardinality"in t?t.cardinality:this.getProperty()?{}:{max:1}}},{key:"setCardinality",value:function(e){qs(this.getSource(!0),"cardinality",e),this.refreshExtends()}},{key:"isEnabled",value:function(e){var t=this.getSource(e);return null==t.enabled||t.enabled}},{key:"setEnabled",value:function(e){var t=this.getSource(!0);e?delete t.enabled:t.enabled=e,this.refreshExtends()}},{key:"getClasses",value:function(e){var t=this.getSource(e);return t&&"cls"in t?t.cls:[]}},{key:"setClasses",value:function(e){qs(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var n=this.getSource(t);return!!this.hasStyle(e,t)||null!=n.cls&&n.cls.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getAvailableStyles",value:function(){return this._styles}},{key:"getStyles",value:function(e){return this.getSource(e).styles||[]}},{key:"setStyles",value:function(e){qs(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var n=this.getSource(t);return!(!n||!("styles"in n))&&n.styles.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getSource",value:function(e){if(!0===e)return this._source._extendedSource||this._source;if(!1===e){var t=this._itemStore.getItem(this.getExtends());return null==t?this._source:t.getSource()}return this._source}},{key:"getBundle",value:function(){return this._bundle}},{key:"toStringShort",value:function(){return"'".concat(this.getLabel(),"'").concat(this.getId()?" (ID: '".concat(this.getId(),"')"):"")}},{key:"toString",value:function(){var e=[];return this.getId()&&e.push("ID: '".concat(this.getId(),"'")),e.push("TYPE: '".concat(this.getType(),"'")),this.getProperty()&&e.push("PROPERTY: '".concat(this.getProperty(),"'")),this.getExtends()&&e.push("EXTENDS: '".concat(this.getExtends(),"'")),"'".concat(this.getLabel(),"' (").concat(e.join(", "),")")}},{key:"_setLangHash",value:function(e,t,n){var r=e||{};if("string"==typeof t)"string"==typeof n?r[n]=t:r[""]=t;else if("object"===$s(t)&&null!==t)return t;return r}}])&&Hs(t.prototype,n),r&&Hs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xs(e){return(Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(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,Js(r.key),r)}}function Js(e){var t=function(e,t){if("object"!=Xs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xs(t)?t:String(t)}function el(e,t,n){return t=rl(t),function(e,t){if(t&&("object"===Xs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],rl(e).constructor):t.apply(e,n))}function tl(){return(tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=nl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function nl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rl(e)););return e}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ol(e,t){return(ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var il=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=el(this,t,[e]))._children=e.children,null!=n._source.content&&(n._source.items=n._source.content,delete n._source.content),n._forceChildrenClones=!1,n._parent=null,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ol(e,t)}(t,e),n=t,(r=[{key:"getChildren",value:function(e){var t,n=e&&this.isExtention(),r=n?this._ochildren:this._children;return null==r&&(r=this._itemStore.getChildren(this,n),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=r).forEach((function(e){e.__label=(e.getLabel()||"").toLowerCase()})),t.sort((function(e,t){return null!=e._source.priority?null!=t._source.priority?e._source.priority>t._source.priority?-1:e._source.priority<t._source.priority?1:0:e._source.priority>0?-1:1:null!=t._source.priority?t._source.priority>0?1:-1:e.__label>t.__label?1:e.__label<t.__label?-1:0}))),this["_".concat(n?"o":"","children")]=r),r}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){tl(rl(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return tl(rl(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&Qs(n.prototype,r),o&&Qs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ks);function al(e){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(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,ul(r.key),r)}}function ul(e){var t=function(e,t){if("object"!=al(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=al(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==al(t)?t:String(t)}function cl(e,t,n){return t=pl(t),function(e,t){if(t&&("object"===al(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],pl(e).constructor):t.apply(e,n))}function dl(){return(dl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=fl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function fl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pl(e)););return e}function pl(e){return(pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hl(e,t){return(hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ml=function(e){function t(){return sl(this,t),cl(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hl(e,t)}(t,e),n=t,(r=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var n=function(){return{min:1,max:1,pref:1}},r=dl(pl(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=r.map((function(e){var t=Object.create(e);return t.getCardinality=n,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&ll(n.prototype,r),o&&ll(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(il);function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vl(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,bl(r.key),r)}}function bl(e){var t=function(e,t){if("object"!=gl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gl(t)?t:String(t)}function wl(e,t,n){return t=xl(t),function(e,t){if(t&&("object"===gl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],xl(e).constructor):t.apply(e,n))}function xl(e){return(xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sl(e,t){return(Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _l=function(e){function t(){return yl(this,t),wl(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sl(e,t)}(t,e),n=t,(r=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&vl(n.prototype,r),o&&vl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ks);function kl(e){return(kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function El(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,Cl(r.key),r)}}function Cl(e){var t=function(e,t){if("object"!=kl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kl(t)?t:String(t)}function Pl(e,t,n){return t=Rl(t),function(e,t){if(t&&("object"===kl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Rl(e).constructor):t.apply(e,n))}function Tl(){return(Tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ol(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ol(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rl(e)););return e}function Rl(e){return(Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Al(e,t){return(Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ml=function(e){null!=e&&e.forEach((function(e){e.value=xe(e.value)}))},Dl=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Pl(this,t,[e]))._ontologyStore=e.ontologyStore,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Al(e,t)}(t,e),n=t,(r=[{key:"getChoices",value:function(e){return this.getStaticChoices(e)||this.getDynamicChoices(e)||[]}},{key:"hasChoices",value:function(e){var t=this.getSource(e);return null!=t.ontologyUrl||null!=t.choices}},{key:"hasStaticChoices",value:function(e){return null!=this.getSource(e).choices}},{key:"getStaticChoices",value:function(e){var t=this.getSource(e);if(t.choices){var n=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(n&&Ml(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(n&&Ml(t.choices),this._staticIsSorted=!0)}return t.choices}},{key:"setStaticChoices",value:function(e){var t=this.getSource(!0);t.choices!==e&&(null!=e&&(this._origStaticIsSorted=!0),t.choices=e,this.refreshExtends())}},{key:"setExtends",value:function(e){Tl(Rl(t.prototype),"setExtends",this).call(this,e),delete this._staticIsSorted,delete this._origStaticIsSorted}},{key:"getDynamicChoices",value:function(e){var t=this;if(null==this._dynamicChoices){if(null==e)return this._dynamicChoices=this._ontologyStore.getChoices(this),this._dynamicChoices;this._ontologyStore.getChoices(this,(function(n){t._dynamicChoices=n,null==t._dynamicChoices&&(console.log("Failed lookup of choices for ".concat(t.getLabel())),console.log("OntologyUrl is: ".concat(t._source.ontologyUrl))),e(t._dynamicChoices)}))}else{if(null==e)return this._dynamicChoices;e(this._dynamicChoices)}}},{key:"getOntologyUrl",value:function(e){var t=this.getSource(e).ontologyUrl;return null!=t&&""!==t?xe(t):t}},{key:"setOntologyUrl",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.ontologyUrl:t.ontologyUrl=e,this.refreshExtends()}},{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties||["http://www.w3.org/2000/01/rdf-schema#label"]}},{key:"getParentProperty",value:function(e){var t=this.getSource(e).parentProperty;return null!=t&&""!==t?xe(t):t}},{key:"setParentProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.parentProperty:t.parentProperty=e,this.refreshExtends()}},{key:"getHierarchyProperty",value:function(e){var t=this.getSource(e).hierarchyProperty;return null!=t&&""!==t?xe(t):t}},{key:"setHierarchyProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.hierarchyProperty:t.hierarchyProperty=e,this.refreshExtends()}},{key:"isParentPropertyInverted",value:function(e){return!0===this.getSource(e).isParentPropertyInverted}},{key:"setParentPropertyInverted",value:function(e){var t=this.getSource(!0);!0===e?t.isParentPropertyInverted=!0:delete t.isParentPropertyInverted,this.refreshExtends()}},{key:"isHierarchyPropertyInverted",value:function(e){return!0===this.getSource(e).isHierarchyPropertyInverted}},{key:"setHierarchyPropertyInverted",value:function(e){var t=this.getSource(!0);e?t.isHierarchyPropertyInverted=!0:delete t.isHierarchyPropertyInverted,this.refreshExtends()}}])&&El(n.prototype,r),o&&El(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ks);o(8436);function jl(e){return(jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Il(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,Nl(r.key),r)}}function Nl(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jl(t)?t:String(t)}function Ll(e,t,n){return t=Bl(t),function(e,t){if(t&&("object"===jl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Bl(e).constructor):t.apply(e,n))}function Zl(){return(Zl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Fl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Fl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bl(e)););return e}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vl(e,t){return(Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zl=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ll(this,t,[e]))._validObject=!0,n._validPredicate=!0,n._excludeFromTreeValidityCheck=!1,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate(),!0),n._validObject=n._isValidObjectValue(n._statement.getValue())),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}(t,e),n=t,(r=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var n="string"==typeof e?e.trim():e,r=this._validObject;this._isValidObjectValue(n)?(this._statement.setValue(n,t),this._validObject=!0,!0===r||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==n&&null!==n||this._statement.setValue("",t),this._validObject=!1,!1!==r&&!0===this._validPredicate&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"setSubject",value:function(e){this._statement.setSubject(e)}},{key:"getPredicate",value:function(){return this._statement.getPredicate()}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!0)):(this._validPredicate=!1,!1!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"getLanguage",value:function(){return this._statement.getLanguage()}},{key:"setLanguage",value:function(e,t){this._statement.setLanguage(e,t),t||this.bindingChange(this)}},{key:"getDatatype",value:function(){return this._statement.getDatatype()}},{key:"setDatatype",value:function(e){this._statement.setDatatype(xe(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Zl(Bl(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){var e=this._ancestorValid&&this._validObject&&this._validPredicate;this._statement.setAsserted(e,!0),this.bindingChange(this)}},{key:"isValid",value:function(){return this._validObject&&this._validPredicate&&!this._excludeFromTreeValidityCheck}}])&&Il(n.prototype,r),o&&Il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ts);function Wl(e){return(Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(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,$l(r.key),r)}}function $l(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wl(t)?t:String(t)}function Hl(e,t,n){return t=ql(t),function(e,t){if(t&&("object"===Wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ql(e).constructor):t.apply(e,n))}function Yl(){return(Yl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Gl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ql(e)););return e}function ql(e){return(ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kl(e,t){return(Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xl="http://www.w3.org/2000/01/rdf-schema#label",Ql="http://www.w3.org/2000/01/rdf-schema#seeAlso",Jl=function(e){function t(e){var n,r=e.choice,o=e.item,i=e.statement,a=e.matchingCode;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Hl(this,t,[{choice:r,item:o,statement:i,matchingCode:a}]))._choice=r,n._validPredicate=null!=o.getProperty(),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kl(e,t)}(t,e),n=t,o=[{key:"seeAlso",get:function(){return Ql}}],(r=[{key:"setChoice",value:function(e,t){this._choice=e,null==e?this.setValue(null,null,t):this.getValue()!==e.value&&this.setValue(e.value,e,t),e&&e.mismatch?this.setMatchingCode(Os.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==Os.WRONG_VALUE||this.setMatchingCode(Os.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,n,r){var o=this.getValue();Yl(ql(t.prototype),"setValue",this).call(this,e,n,r);var i=this._statement.getGraph();if(i.findAndRemove(o,Xl,void 0,r),i.findAndRemove(o,Ql,void 0,r),null!=e&&null!=n&&(n.seeAlso&&n.inlineSeeAlso&&i.create(e,Ql,n.seeAlso,!0,r),!0===n.inlineLabel)){var a=n.label||{};Object.keys(a).forEach((function(t){return i.create(e,Xl,{value:a[t],lang:t,type:"literal"},!0,r)}))}}}])&&Ul(n.prototype,r),o&&Ul(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(zl);function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tu(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,nu(r.key),r)}}function nu(e){var t=function(e,t){if("object"!=eu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eu(t)?t:String(t)}function ru(e,t,n){return t=ou(t),function(e,t){if(t&&("object"===eu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ou(e).constructor):t.apply(e,n))}function ou(e){return(ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iu(e,t){return(iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var au=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ru(this,t,[e]))._objectBinding=e.objectBinding,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iu(e,t)}(t,e),n=t,(r=[{key:"remove",value:function(){}},{key:"setValue",value:function(e){this._objectBinding.setPredicate(e)}},{key:"getValue",value:function(){return this._objectBinding.getPredicate()}},{key:"isValid",value:function(){return!1}},{key:"updateAssertions",value:function(){}}])&&tu(n.prototype,r),o&&tu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Jl);function su(e){return(su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lu(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,uu(r.key),r)}}function uu(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==su(t)?t:String(t)}function cu(e,t,n){return t=du(t),function(e,t){if(t&&("object"===su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],du(e).constructor):t.apply(e,n))}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e,t){return(fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var pu=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=cu(this,t,[e]);var r=e.statement,o=e.constraints;n._statement=void 0,n._validPredicate=!0,n._constraints=[];var i,a=n._item.getChildren(),s=a[1];i=s instanceof il?new Us({item:s,statement:r,constraints:o}):s instanceof Dl?new Jl({item:s,statement:r}):new zl({item:s,statement:r});var l=new au({item:a[0],objectBinding:i});return n.addChildBinding(l),n.addChildBinding(i),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fu(e,t)}(t,e),n=t,(r=[{key:"getPredicateBinding",value:function(){return this._childBindings[0][0]}},{key:"getObjectBinding",value:function(){return this._childBindings[1][0]}},{key:"getGraph",value:function(){return this.getObjectBinding().getGraph()}}])&&lu(n.prototype,r),o&&lu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Us);function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gu(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,yu(r.key),r)}}function yu(e){var t=function(e,t){if("object"!=hu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hu(t)?t:String(t)}function vu(e,t,n){return t=xu(t),function(e,t){if(t&&("object"===hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],xu(e).constructor):t.apply(e,n))}function bu(){return(bu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=wu(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function wu(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xu(e)););return e}function xu(e){return(xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Su(e,t){return(Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _u,ku,Eu,Cu,Pu,Tu=function(e){function t(){return mu(this,t),vu(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Su(e,t)}(t,e),n=t,(r=[{key:"getValue",value:function(){return this._parent.getValue()}},{key:"setValue",value:function(e){return this._parent.setValue(e)}},{key:"getGist",value:function(){return this._parent.getGist()}},{key:"setGist",value:function(e,t){return this._parent.setGist(e,t)}},{key:"setSubject",value:function(e){}},{key:"getPredicate",value:function(){return this._parent.getPredicate()}},{key:"remove",value:function(){this._parent.removeChildBinding(this),bu(xu(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&gu(n.prototype,r),o&&gu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(zl);function Ou(e){return(Ou="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)}var Ru,Au,Mu,Du,ju,Iu,Nu=!1,Lu=function(e,t,n){var r=new Us({item:n,childrenRootUri:t,graph:e});return _u(r),ku(r),r},Zu=function(e,t,n){var r=new Us({item:n,childrenRootUri:t,graph:e});return _u(r),Nu=!0,_u(r),Nu=!1,ku(r),r},Fu=function(e,t,n,r){var o=e.findProperties(t),i=[],a={};if(null!=r){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof il&&t.getChildren().forEach(e)}(e),i.push(e))};r.forEach((function(e){var t=n.getItem(e);null!=t?t instanceof il&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=n.getItemByProperty(e))?s(t):console.warn("Warning, when autodetecting a template: Required item '".concat(e,"' is neither an id for a loaded item or a property for a loaded item, ignoring."))}))}return o.forEach((function(e){if(!a[e]){var t=n.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),n.createTemplateFromChildren(i)},Bu=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Vu=function(e,t){var n,r,o=t.getChildren()[1],i=e.getGraph();o instanceof il?(n=i.create(e.getChildrenRootUri(),"",null,!1),r=Pu(i,n.getSubject(),o)):n=o instanceof Dl?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new pu({item:t,statement:n,constraints:r});return e.addChildBinding(a),o instanceof il&&o.getChildren().forEach((function(e){zu(a.getObjectBinding(),e)})),a},zu=function(e,t,n){return t instanceof _l?function(e,t){if(!t.getProperty()){var n=new Tu({item:t,statement:null,matchingCode:Os.OK});return e.addChildBinding(n),n}var r=e.getGraph(),o=t.getNodetype(),i={value:"",type:"literal"};"URI"===o?i.type="uri":"DATATYPE_LITERAL"===o&&(i.datatype=Bu(t));var a=t.getValue();if(null!=a&&0===e.getChildBindingsFor(t).length){i.value=a;var s=t.getLanguage();null!=s&&(i.lang=s)}var l=r.create(e.getChildrenRootUri(),t.getProperty(),i,!1),u=new zl({item:t,statement:l});return e.addChildBinding(u),u}(e,t):t instanceof ml?Vu(e,t):t instanceof il?function(e,t,n){var r,o;if(void 0!==t.getProperty()){var i=e.getGraph();r=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),o=Pu(i,r.getValue(),t)}var a=new Us({item:t,statement:r,constraints:o});e.addChildBinding(a);var s=t._source["@id"];if(s){if(n[s])return a;n[s]=!0}return a}(e,t,n||{}):t instanceof Dl?function(e,t){var n=e.getGraph(),r=t.getNodetype(),o={type:"literal",value:""};"DATATYPE_LITERAL"===r?o.datatype=Bu(t):"RESOURCE"!==r&&"URI"!==r||(o.type="uri");var i=n.create(e.getChildrenRootUri(),t.getProperty(),o,!1),a=new Jl({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(ju(t,s,n),!0),a}(e,t):void 0};_u=function(e){Nu&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&_u(e)})),e.getItem().getChildren().forEach((function(t){Nu?void 0!==t.getProperty()&&Ru(e,t):Ru(e,t)}))};Ru=function(e,t){t instanceof Dl?function(e,t){if(null!=t.getProperty()){var n=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Eu(e)){var r=Au(t,e),o=Mu(t,e),i=Du(t,e);if(r&&o&&i||Nu){var a=ju(t,e.getValue(),e.getGraph());if(void 0!==a){Cu(e);var s=r?Os.OK:Os.WRONG_NODETYPE;o?i?a.mismatch&&(s=Os.WRONG_VALUE):s=Os.WRONG_PATTERN:s=Os.WRONG_DATATYPE,n.push(new Jl({item:t,statement:e,choice:a,matchingCode:s}))}}}})),n.length>0&&e.addChildBindings(n)}}(e,t):t instanceof ml?function(e,t){var n,r,o,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),u=[];l.find(e.getChildrenRootUri()).forEach((function(e){Eu(e)&&Au(s,e)&&Du(s,e)&&void 0!==(o=ju(a,e.getPredicate(),e.getGraph()))&&(r=null,s instanceof il?void 0!==(n=Iu(l,e.getValue(),s))&&(Cu(e),r=new pu({item:t,statement:e,constraints:n}),_u(r.getObjectBinding())):s instanceof Dl?void 0!==(i=ju(s,e.getValue(),e.getGraph()))&&(Cu(e),(r=new pu({item:t,statement:e})).getObjectBinding().setChoice(i)):(Cu(e),r=new pu({item:t,statement:e})),null!==r&&(r.getPredicateBinding().setChoice(o),u.push(r)))})),u.length>0&&e.addChildBindings(u)}(e,t):t instanceof il?function(e,t){var n,r,o,i,a=e.getGraph();void 0!==t.getProperty()?(n=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(r=[],n.forEach((function(e){if(Eu(e)){var n=Du(t,e),s=Au(t,e);if((n&&s||Nu)&&(void 0!==(o=Iu(a,e.getValue(),t))||Nu)){var l=s?Os.OK:Os.WRONG_NODETYPE;n?void 0===o&&(l=Os.MISSING_CONSTRAINTS):l=Os.WRONG_PATTERN,Cu(e),i=new Us({item:t,statement:e,constraints:o,matchingCode:l}),r.push(i),l===Os.OK&&_u(i)}}})),e.addChildBindings(r)):(i=new Us({item:t}),e.addChildBindings([i]),_u(i))}(e,t):t instanceof _l&&function(e,t){var n=[];null==t.getProperty()?n.push(new Tu({item:t,statement:null,matchingCode:Os.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Eu(e)&&Du(t,e)){var r=Au(t,e),o=Mu(t,e);if(r&&(o||t.hasStyle("relaxedDatatypeMatch"))||Nu){Cu(e);var i=r?Os.OK:Os.WRONG_NODETYPE;o||(i=Os.WRONG_DATATYPE),n.push(new zl({item:t,statement:e,matchingCode:i}))}}})),n.length>0&&e.addChildBindings(n)}(e,t)},Au=function(e,t){var n=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===n;case"RESOURCE":return"uri"===n||"bnode"===n;case"URI":return"uri"===n;case"BLANK":return"bnode"===n}return!1},Mu=function(e,t){var n="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==n||(Array.isArray(n)?-1!==n.indexOf(t.getDatatype()):t.getDatatype()===n)},Du=function(e,t){var n=e.getPattern(),r=Xo.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==n)try{return new RegExp("^".concat(n,"$")).test(r)}catch(e){return!0}return!0},Iu=function(e,t,n){var r,o=n.getConstraints(),i=[],a=function(n,o){if(1!==(r=e.find(t,n,{type:"uri",value:o})).length)return!1;i.push(r[0])};if("object"===Ou(o)&&null!==o){for(var s,l=Object.keys(o),u=function(){var e=l[c],t=o[e];if(t instanceof Array){var n=!0;if(t.forEach((function(t){!1!==a(e,t)&&(n=!1)})),n)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},c=0;c<l.length;c++)if(s=u())return s.v;return i}return[]},Pu=function(e,t,n){var r=[],o=n.getConstraints();return"object"===Ou(o)&&null!==o&&Object.keys(o).forEach((function(n){var i=o[n];Array.isArray(i)?r.push(e.create(t,n,{type:"uri",value:i[0]},!1)):r.push(e.create(t,n,{type:"uri",value:i},!1))})),r},ju=function(e,t,n){var r,o;if(e.hasChoices()){for(o=e.getChoices(),r=0;r<o.length;r++)if(o[r].value===t)return o[r];if(!e.hasStyle("strictmatch")||Nu)return{value:t,label:{"":t},mismatch:!0}}else{var i=Xo.getLocalizedMap(n,t,e.getLabelProperties());null==i&&Nu&&(i={"":t,mismatch:!0});var a=n.findFirstValue(t,Jl.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=Jo.getChoice)return Jo.getChoice(e,t,a,n)}},Cu=function(e){e._dibbs=!0},Eu=function(e){return!0!==e._dibbs},ku=function(e){var t,n,r,o=e.getItemGroupedChildBindings()||[];for(t=0;t<o.length;t++)for(r=o[t],n=0;n<r.length;n++){var i=r[n];i._statement&&delete i._statement._dibbs,(i instanceof Us||i instanceof pu)&&ku(i)}};var Wu=function e(t,n){for(var r="/"===n[0]?n.slice(1):n,o=t.getItemGroupedChildBindings(),i=r[0],a=0;a<o.length;a++)for(var s=o[a],l=void 0,u=0;u<s.length;u++){var c=s[u],d=c.getItem();if(d instanceof Dl&&void 0===d.getProperty()&&i===d.getId()&&2===r.length&&r[1]===c.getValue())return c;if(c.isValid()){if("propertygroup"===d.getType())d=(c=c.getObjectBinding()).getItem();else if(void 0===d.getProperty()&&(l=e(c,r)))return l;if("*"===i||i===c.getPredicate())if("group"===d.getType()){if(l=e(c,r.slice(1)))return l}else if(1===r.length||"*"===r[1]||r[1]===c.getValue())return c}}},Uu=function(e,t){var n=t[0],r=e;if("/"===n){for(;r.getParent();)r=r.getParent();return r}if(".."===n){for(var o=0;o<t.length;o++){if(".."!==t[o]||!r.getParent())return r;r=r.getParent()}return r}return e},$u=function(e,t){var n=e.getId(),r={},o={};e.getChoices().forEach((function(e){r[e.value]=0,o[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===n||"/"===t[0]&&t[1]===n)){var o="/"===t[0]?t[2]:t[1],i=r[o];void 0!==i&&(r[o]=i+1)}}));var i,a=0;return Object.keys(r).forEach((function(e){(!i||r[e]>a)&&(i=e,a=r[e])})),o[i]};const Hu={detectLevel:function(e){if(e.mandatory>0){if(0===e.recommended&&0===e.optional)return"mandatory";if(0===e.optional)return"mixed_mandatory_recommended";if(0===e.recommended)return"mixed_mandatory_optional"}else{if(e.recommended>0)return 0===e.optional?"recommended":"mixed_recommended_optional";if(0===e.recommended&&e.recommended>0&&0===e.optional)return"optional"}return"mixed_all"},levelProfile:function(e){var t=function e(t,n,r){var o=n.getCardinality();return r&&"group"===n.getType()||(null!=o?o.min>0?t.mandatory+=1:o.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===n.getType()&&n.getChildren().forEach((function(n){return e(t,n)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,n){if(t instanceof zl)return t;for(var r=t.getItemGroupedChildBindings(),o=Go().locale(),i=0;i<r.length;i++){var a=r[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof _l))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},u=0;u<a.length;u++){var c=a[u].getLanguage();null==c?l.emptyLanguageValue=a[u]:c===o?l.perfectLocaleLanguageValue=a[u]:c.substring(0,1)===o.substring(0,1)?l.localeLanguageValue=a[u]:-1!==c.indexOf("en")?l.defaultLanguageValue=a[u]:l.anyLanguageValue=a[u]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(n){var d=zu(t,s,{});return d instanceof zl?(d.setLanguage(o),d):e(d,!0)}}},create:zu,constructTemplate:Fu,findPopularChoice:$u,match:Lu,fuzzyMatch:Zu,matchPathBelowBinding:Wu,findBindingRelativeToParentBinding:Uu,CODES:Os};var Yu=function(e,t){var n=t;return null==n?n={errors:[],warnings:[],deprecated:[]}:(n.errors=n.errors||[],n.warnings=n.warnings||[],n.deprecated=n.deprecated||[]),Xu(e,n,!0)},Gu=function(e){for(var t=0,n=0;n<e.length;n++)e[n].isValid()&&(t+=1);return t},qu=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},Ku=function(e,t){if(t.hasStyle("deprecated"))return!0;var n=t.getDeps();if(n){var r=Uu(e,n);if(!Wu(r,n))return!0}return!1},Xu=function e(t,n,r){if(t.getMatchingCode()===Os.OK){var o=t.getItem();if(!0===r||t.isValid()||null==o.getProperty()||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var i=o.getChildren();if(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild")||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Gu(s);l>1&&(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild"))?a=Os.AT_MOST_ONE_CHILD:1!==l&&o.hasStyle("exactlyOneChild")?a=Os.EXACTLY_ONE_CHILD:0===l&&o.hasStyle("atLeastOneChild")&&(a=Os.AT_LEAST_ONE_CHILD),a&&(qu([t],a),i.length>0&&n.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,r){var o=i[r];if(!Ku(t,o)&&null!=o.getProperty()){var a=Gu(e),s=o.getCardinality();null!=s.min&&s.min>a?(n.errors.push({parentBinding:t,item:o,code:Os.TOO_FEW_VALUES_MIN}),qu(e,Os.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&n.warnings.push({parentBinding:t,item:o,code:Os.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(n.errors.push({parentBinding:t,item:o,code:Os.TOO_MANY_VALUES}),qu(e,Os.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(r){var o=r.getItem();r.getMatchingCode()!==Os.OK&&n.errors.push({parentBinding:r,item:o,code:r.getMatchingCode()}),o.hasStyle("deprecated")&&n.deprecated.push(r),Ku(t,o)||"group"===o.getType()&&e(r,n)}))}return n}},Qu=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},Ju=function(e,t,n){for(var r=e;;){var o=r.getChildrenRootUri?r.getChildrenRootUri():r.getParent().getChildrenRootUri();if(o===t)return!0;if(n[o])return!1;r=r.getParent()}},ec=function(e,t){var n=e,r=[];for(null!=t.getProperty()&&n.getItem()!==t&&r.push(we(t.getProperty()));null!=n.getItem().getProperty()&&r.push(we(n.getItem().getProperty())),null!=n.getParent();)n=n.getParent();return r.reverse(),r.join(" > ")},tc=function(e){var t=e.errors,n=e.warnings,r=e.deprecated;e.errors=t.map((function(e){return{path:ec(e.parentBinding,e.item),code:e.code}})),e.warnings=n.map((function(e){return{path:ec(e.parentBinding,e.item),code:e.code}})),e.deprecated=r.map((function(e){return function(e){return"".concat(ec(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},nc=function(e,t,n,r){var o=Zu(t,e,n),i=Yu(o);return function(e,t,n){var r=e.errors,o=e.warnings,i=e.deprecated;e.errors=r.filter((function(e){return Ju(e.parentBinding,t,n)})),e.warnings=o.filter((function(e){return Ju(e.parentBinding,t,n)})),e.deprecated=i.filter((function(e){return Ju(e,t,n)}))}(i,e,r||{}),tc(i),i};const rc={graphReport:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a={},s={errors:0,warnings:0,deprecated:0,resources:[]};Object.keys(t).forEach((function(t){var n=Qu(e,t);i[t]=n,n.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(o){n=t[o],i[o].forEach((function(t){(r=nc(t,e,n,a)).uri=t,r.type=o,r.template=n.getId(),s.resources.push(r),s.errors+=r.errors.length,s.warnings+=r.warnings.length,s.deprecated+=r.deprecated.length}))}));var l=[];return o.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Yu};function oc(e){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ic(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,ac(r.key),r)}}function ac(e){var t=function(e,t){if("object"!=oc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oc(t)?t:String(t)}var sc=0;function lc(e){return(lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cc(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,dc(r.key),r)}}function dc(e){var t=function(e,t){if("object"!=lc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lc(t)?t:String(t)}function fc(e,t,n){return t=mc(t),function(e,t){if(t&&("object"===lc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],mc(e).constructor):t.apply(e,n))}function pc(){return(pc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=hc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function hc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mc(e)););return e}function mc(e){return(mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gc(e,t){return(gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yc=function(e,t,n){if(0===n.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var r=t.getChildren();return 0===r.length||!!n[0].getItemGroupedChildBindings().find((function(t,n){return yc(e,r[n],t)}))}return!0},vc=function(e){function t(){return uc(this,t),fc(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gc(e,t)}(t,e),n=t,(r=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",pc(mc(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return yc(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),n="group"===t.getType();return!(!t.getProperty()&&n&&0===t.getChildren().length)&&n&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?fi.filterTranslations(t,Go().locale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,n){n.hasStyle("noLabelInPresent")?fi.domClassToggle(e,"rdformsInvisibleGroup",!0):fi.renderPresenterLabel(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return fi.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return fi.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){fi.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){fi.renderPresenter(e,t,this.context)}},{key:"truncateAt",value:function(e,t){return"group"!==e.getType()&&t&&t.length>this.truncateLimit&&(this.truncate||e.hasStyle("truncate"))&&!e.hasStyle("noTruncate")?this.truncateLimit:-1}}])&&cc(n.prototype,r),o&&cc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=sc,sc+=1,this.parentView=t.parentView,this.srcNodeRef=n,this.binding=t.binding||null,this.template=t.template||null,this.graph=t.graph||null,this.resource=t.resource||"",this.topLevel=!1!==t.topLevel,this.compact=!1!==t.compact,this.showDescription=!0===t.showDescription,this.styleCls=t.styleCls||"",this.truncateLimit=void 0!==t.truncateLimit?t.truncateLimit:10,this.truncate=void 0!==t.truncate&&t.truncate,Array.isArray(t.filterPredicates)?this.filterPredicates=t.filterPredicates.reduce((function(e,t){return e[t]=!0,e}),{}):"object"===oc(t.filterPredicates)?this.filterPredicates=t.filterPredicates:"string"==typeof t.filterPredicates?this.filterPredicates=t.filterPredicates.split(",").reduce((function(e,t){return e[t]=!0,e}),{}):this.filterPredicates=null,this.restrictToItem=t.restrictToItem,this.fuzzy=!0===t.fuzzy,this.markOrigin=!1!==t.markOrigin,this._handleParams(t),this._labelIndex={},this.domNode=fi.createDomNode(n,this),fi.domClassToggle(this.domNode,"rdforms",!0),fi.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,n,r;return t=e,(n=[{key:"getParentView",value:function(){return this.parentView}},{key:"getNamedGraphId",value:function(e){if(this.markOrigin){this.namedGraphs||(this.namedGraphs={},this.namedGraphCounter=65);var t=this.namedGraphs[e];return void 0===t&&(t=String.fromCharCode(this.namedGraphCounter),this.namedGraphs[e]=t,this.namedGraphCounter+=1),t}}},{key:"getNamedGraphFromId",value:function(e){var t=this;return this.namedGraphs?Object.keys(this.namedGraphs).find((function(n){return t.namedGraphs[n]===e})):void 0}},{key:"destroy",value:function(){fi.destroyDomNode(this.domNode,this)}},{key:"getBinding",value:function(){return this.binding}},{key:"_handleParams",value:function(e){if(e.binding)this.binding=e.binding;else{if(this.template=e.template||this.template,this.graph=e.graph||this.graph,this.resource=e.resource||this.resource,null==this.graph||null==this.resource||null==this.template)return;this.fuzzy?(this.binding=Zu(this.graph,this.resource,this.template),Yu(this.binding)):this.binding=Lu(this.graph,this.resource,this.template)}}},{key:"showNow",value:function(){return!0}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(){}},{key:"addTable",value:function(){}},{key:"fillTable",value:function(){}},{key:"addLabel",value:function(){}},{key:"addComponent",value:function(){}},{key:"showAsTable",value:function(e){return"group"===e.getType()&&(e.hasStyle("table")||e.hasClass("rdformsTable"))}},{key:"show",value:function(e){this._handleParams(e),this.render()}},{key:"render",value:function(){if(fi.domText(this.domNode,""),null!=this.binding){var e=fi.getMessages();if(this.messages=e,null!=this.binding){var t,n,r,o,i,a=this.binding.getItem().getChildren(),s=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?fi.domClassToggle(this.domNode,"compact",!1):fi.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),t=0;t<s.length;t++)if(o=s[t],i=a[t],(!this.restrictToItem||this.restrictToItem===i)&&this.showNow(i,o)){if(o=this.prepareBindings(i,o),this.showAsTable(i))this.context={view:this},r=this.createRowNode(r,o[0],i),o.length>0&&(n=this.addTable(r,o[0],i),this.fillTable(n,o));else if(o.length>0)if(this.isMultiValued(i))this.context={view:this},r=this.addRow(r,o[0],!0);else{for(var l=this.truncateAt(i,o),u=0;u<o.length;u++)this.context={view:this},r=this.addRow(r,o[u],0===u||o[u]instanceof Us,u,l);if(-1!==l){var c=fi.domQuery(".rdformsFields",r);c&&fi.addTruncateControl(c,this.context)}}else this.context={view:this},r=this.createRowNode(r,null,i);o.length>0&&o[0].getCardinalityTracker().checkCardinality()}}}}},{key:"addRow",value:function(e,t,n,r,o){var i,a,s=n,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof Us),!0===s){a=this.createRowNode(e,t,l);var u=fi.domCreate("div",a);fi.domClassToggle(u,"rdformsFields",!0),-1!==o&&fi.domClassToggle(u,"rdformsTruncated",!0),l.hasStyle("inline")&&fi.domClassToggle(u,"rdformsInline",!0),i=fi.domCreate("div",u),this.createEndOfRowNode(a,t,l)}else{var c=fi.domQuery(".rdformsFields",e);if(null!=c)i=fi.domCreate("div",c),fi.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==o&&r>=o&&fi.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var d=fi.domCreate("div",e);fi.domClassToggle(d,"rdformsFields",!0),l.hasStyle("inline")&&fi.domClassToggle(d,"rdformsInline",!0),i=fi.domCreate("div",d),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(fi.domClassToggle(i,"rdformsOrigin",!0),fi.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(fi.domClassToggle(i,"rdformsOrigin",!0),fi.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?fi.domClassToggle(i,"rdformsGroup",!0):fi.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&fi.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,n){var r;r=null==e?fi.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):fi.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),n.getClasses().forEach((function(e){fi.domClassToggle(r,e,!0)})),fi.domClassToggle(r,"rdformsRow",!0),fi.domClassToggle(r,"rdformsTopLevel",this.topLevel),fi.domClassToggle(r,"rdformsInvisibleGroup",n.hasStyle("invisibleGroup")),fi.domClassToggle(r,"rdformsHeading",n.hasStyle("heading")),fi.domClassToggle(r,"notCompact","group"===n.getType()||n.hasStyle("nonCompact")),fi.domClassToggle(r,"rdformsCompactItem",n.hasStyle("compact")),this.addLabel(r,t,n),t&&this.filterBinding(t)&&fi.domClassToggle(r,"hiddenProperty",!0);var o=void 0!==this._subEditors;return(n.hasStyle("card")||n.hasStyle("cardInEdit")&&o||n.hasStyle("cardInPresent")&&!o)&&fi.domClassToggle(r,"rdformsCard",!0),r}},{key:"createEndOfRowNode",value:function(e,t,n){}},{key:"_getFilterPredicates",value:function(){return this.parentView?this.parentView._getFilterPredicates():this.filterPredicates}},{key:"filterBinding",value:function(e){return this.filterItem(e.getItem())}},{key:"filterItem",value:function(e){var t=this,n=this._getFilterPredicates();return!!n&&function e(n,r){var o=n.getId();if(o&&Object.keys(r).includes(o))return!0;var i=n.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=be(i);return a?!0===r[i]||!0===r[l]||!0===r["*".concat(i)]||!0===r["".concat(l)]:!0===r["*".concat(i)]||!0===r["*".concat(l)]}if("group"===n.getType()){var u=n.getChildren()||[],c=!1;return u.forEach((function(t){e(t,r)||(c=!0)})),!c}return!1}(e,n)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,n=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=n._labelIndex[e.getHash()])})),void 0!==t?t:this.parentView?this.parentView.getLabelIndex(e.getParent()):""}},{key:"createLabelIndex",value:function(e){var t="".concat(e.getHash(),"_").concat(this._viewId,"_label");return this._labelIndex[e.getHash()]=t,t}},{key:"getRowIndex",value:function(e){return"".concat(e.getHash(),"_").concat(this._viewId,"_row")}},{key:"isMultiValued",value:function(e){return!1}},{key:"truncateAt",value:function(e,t){return-1}}])&&ic(t.prototype,n),r&&ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function bc(e){return(bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(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,Sc(r.key),r)}}function Sc(e){var t=function(e,t){if("object"!=bc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bc(t)?t:String(t)}function _c(e,t,n){return t=Cc(t),function(e,t){if(t&&("object"===bc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Cc(e).constructor):t.apply(e,n))}function kc(){return(kc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ec(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ec(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cc(e)););return e}function Cc(e){return(Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pc(e,t){return(Pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Tc=function(e,t,n,r){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===n.length)return!1;var o=t.getProperty();if(n.length>0){if(o)return!e.filterItem(t);if("group"!==t.getType())return!0;var i=t.getChildren();if(0===i.length)return!0;if(t.hasStyle("atLeastOneChild")||t.hasStyle("exactlyOneChild"))return!0;if(n[0].getItemGroupedChildBindings().find((function(t,n){return Tc(e,i[n],t,r)})))return!0;if(!o)return!1}var a=t.getCardinality();switch(r){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},Oc=function(e){function t(){return wc(this,t),_c(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pc(e,t)}(t,e),n=t,(r=[{key:"_handleParams",value:function(e){this._subEditors=this._subEditors||[],this.includeLevel=e.includeLevel||"recommended",this.hideAddress=!1!==e.hideAddress,e.styleCls=e.styleCls||"rdformsEditor",e.filterTranslations=void 0!==e.filterTranslations&&e.filterTranslations,kc(Cc(t.prototype),"_handleParams",this).call(this,e)}},{key:"getSubEditorForBinding",value:function(e){return this._subEditors.find((function(t){return t.getBinding()===e}))}},{key:"report",value:function(e){var t=this,n=e||Yu(this.binding);Object.keys(this._binding2node).forEach((function(e){fi.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var r=function(){var e=n.errors[o];if(e.parentBinding===t.binding)if(e.code===Os.TOO_FEW_VALUES_MIN){var r=e.item,i=r.getCardinality().min;t.binding.getChildBindingsFor(r).find((function(e){return i-=1,e.isValid()||fi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===Os.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==Os.OK&&fi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},o=0;o<n.errors.length;o++)r();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(n)}},{key:"getIncludeLevel",value:function(){return this.includeLevel}},{key:"setIncludeLevel",value:function(e){this.includeLevel!==e&&(this.includeLevel=e,null!=this.graph&&null!=this.resource&&null!=this.template&&(this.binding=Lu(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],kc(Cc(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Tc(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,r=t,o=e.getCardinality();if(n=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?1:"group"===e.getType()?(e.getProperty(),1):1,e.hasStyle("nonEditable")&&!e.hasStyle("autoInitDate")&&!e.hasStyle("autoUpdateDate")&&!e.hasStyle("autoUUID")&&!e.hasStyle("autoValue")&&!e.getValue())return r;if(n>r.length)for(r=r.concat([]);n>r.length;)r.push(zu(this.binding,e));return r}},{key:"addLabel",value:function(e,t,n){fi.renderEditorLabel(e,t,n,this.context)}},{key:"createEndOfRowNode",value:function(e,t,n){fi.renderEditorLabelScopeEnd(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):fi.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){fi.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){fi.preEditorViewRenderer(this.domNode,this.binding,{view:this,inEditor:!0,topLevel:this.topLevel,hideAddress:this.hideAddress})}},{key:"addComponent",value:function(e,t){this.context.inEditor=!0,t.getItem().hasStyle("nonEditable")?fi.renderPresenter(e,t,this.context):fi.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,n,r){if(null!=n||!r.hasStyle("nonEditable")){var o=kc(Cc(t.prototype),"createRowNode",this).call(this,e,n,r);if("choice"===r.getType()&&void 0===r.getProperty()){var i=$u(r,n.getParent());i&&n.setChoice(i)}var a=r.getDeps();if(a){var s=function(e){e?(fi.domClassToggle(o,"missingDepsWithValue",!1),fi.domClassToggle(o,"missingDeps",!1)):n.isValid()?fi.domClassToggle(o,"missingDepsWithValue",!0):fi.domClassToggle(o,"missingDeps",!0),n.getCardinalityTracker().setDepsOk(e)},l=Uu(n.getParent(),a);Wu(l,a)||s(!1),l.addListener((function e(){n.getParent()?s(Wu(l,a)):l.removeListener(e)}))}return this.filterBinding(n)&&fi.domClassToggle(o,"hiddenProperty",!0),r.hasStyle("deprecated")&&fi.domClassToggle(o,"rdformsDeprecated",!0),o}}},{key:"isMultiValued",value:function(e){return fi.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&xc(n.prototype,r),o&&xc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(vc);function Rc(e){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mc(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,Dc(r.key),r)}}function Dc(e){var t=function(e,t){if("object"!=Rc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rc(t)?t:String(t)}function jc(e,t,n){return t=Lc(t),function(e,t){if(t&&("object"===Rc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Lc(e).constructor):t.apply(e,n))}function Ic(){return(Ic="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Nc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Nc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Lc(e)););return e}function Lc(e){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zc(e,t){return(Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fc=function(e,t,n){return 1===n?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",n)},Bc=function(e){function t(){return Ac(this,t),jc(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zc(e,t)}(t,e),n=t,(r=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,Ic(Lc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Yu(this.binding)}},{key:"showNow",value:function(e,t){if(e.hasStyle("invisible"))return!1;if(t.length>0)return!0;if(e.hasStyle("deprecated"))return!1;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;var n=this.binding.getMatchingCode();if(n===Os.MISSING_CONSTRAINTS||n===Os.WRONG_NODETYPE)return!1;var r=e.getCardinality();switch(this.includeLevel){case"mandatory":return r&&r.min>=1;case"recommended":default:return r&&(r.min>=1||r.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,r=t,o=e.getCardinality(),i=null!=o.min?o.min:0,a=null!=o.pref?o.pref:0;n=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?0:"group"===e.getType()&&null==e.getProperty()?1:0;var s=this.binding.getMatchingCode(),l=!(this.binding.getItem().hasStyle("atleastOneChild")||this.binding.getItem().hasStyle("atMostOneChild")||this.binding.getItem().hasStyle("disjoint")||this.binding.getItem().hasStyle("exactlyOneChild"))||s===Os.TOO_FEW_VALUES_MIN||s===Os.TOO_FEW_VALUES_PREF,u=s===Os.MISSING_CONSTRAINTS||s===Os.WRONG_NODETYPE;if(n>r.length&&l&&!u)for(r=r.concat([]);n>r.length;){var c=zu(this.binding,e);r.length<i?c.setMatchingCode(Os.TOO_FEW_VALUES_MIN):r.length<a&&c.setMatchingCode(Os.TOO_FEW_VALUES_PREF),r.push(c)}return r}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var n,r,o=t.getItem(),i=o.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===o.getType()?null===(n=t.getCardinalityTracker())||void 0===n?void 0:n.getCode():void 0,u=l&&l!==Os.OK&&l!==Os.UNKNOWN?l:t.getMatchingCode(),c=u===Os.TOO_FEW_VALUES_PREF;if(u!==Os.TOO_FEW_VALUES_PREF&&u!==Os.OK)return fi.domClassToggle(e,"error",!0),u===Os.TOO_FEW_VALUES_MIN?r=Fc(this.messages,"validation_min_required",a):u===Os.TOO_MANY_VALUES?r=Fc(this.messages,"validation_max",i.max||1):u===Os.AT_MOST_ONE_CHILD?r=this.messages.validation_at_most_one_child:u===Os.AT_LEAST_ONE_CHILD?r=this.messages.validation_at_least_one_child:u===Os.EXACTLY_ONE_CHILD?r=this.messages.validation_exactly_one_child:u===Os.WRONG_NODETYPE?r=this.messages.validation_nodetype:u===Os.WRONG_VALUE?r=this.messages.validation_value:u===Os.WRONG_DATATYPE?r=this.messages.validation_datatype:u===Os.MISSING_CONSTRAINTS?r=this.messages.validation_constraints:u===Os.WRONG_PATTERN?r=this.messages.validation_pattern:u===Os.MISSING_LANGUAGE&&(r=this.messages.validation_language),fi.renderValidationMessage(e,"error",r),!0;if(c){fi.domClassToggle(e,"warning",!0);var d=Fc(this.messages,"validation_min_recommended",s);return fi.renderValidationMessage(e,"warning",d),!0}return!!o.hasStyle("deprecated")&&(fi.domClassToggle(e,"deprecated",!0),fi.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,n){Ic(Lc(t.prototype),"addComponent",this).call(this,e,n),this.addValidationMarker(e,n)}}])&&Mc(n.prototype,r),o&&Mc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(vc);function Vc(e){return(Vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(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,$c(r.key),r)}}function Uc(e,t,n){return t&&Wc(e.prototype,t),n&&Wc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $c(e){var t=function(e,t){if("object"!=Vc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vc(t)?t:String(t)}function Hc(e,t,n){return t=qc(t),function(e,t){if(t&&("object"===Vc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],qc(e).constructor):t.apply(e,n))}function Yc(){return(Yc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Gc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qc(e)););return e}function qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xc(e,t)}function Xc(e,t){return(Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Qc=function(t){var n=function(t){function n(){return zc(this,n),Hc(this,n,arguments)}return Kc(n,t),Uc(n,[{key:"render",value:function(){if(this.domNode.clear(),Yc(qc(n.prototype),"render",this).call(this),!this.initiatedAlready&&this.domNode.parent instanceof Node){var t=this.domNode.component;(0,_s.s)(this.domNode.parent).render(e.createElement(t,null))}this.initiatedAlready=!0}}]),n}(t);return n.Component=function(e){function t(e){var r;return zc(this,t),(r=Hc(this,t,[e])).fix=new n(e),r}return Kc(t,e),Uc(t,[{key:"render",value:function(){return this.fix.domNode.component}}]),t}(e.Component),n},Jc=Qc(Oc),ed=Qc(vc),td=Qc(Bc);function nd(e){return(nd="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)}var rd=["className"];function od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return id(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return id(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function id(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ad(e,t,n){var r;return r=function(e,t){if("object"!=nd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==nd(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(){return(sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ld(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ud=(0,h.ZP)((0,e.forwardRef)((function(t,n){var r=t.className,o=ld(t,rd);return e.createElement(bs,sd({},o,{classes:{popper:r}}))})))((function(e){var t=e.theme;return ad(ad({},"& .".concat(cs.tooltip),{backgroundColor:t.palette.background.default,fontSize:12,color:"black",boxShadow:t.shadows[10],pointerEvents:"auto"}),"& .".concat(cs.tooltipPlacementBottom),{margin:"2px 0 24px 0",marginTop:"0px !important"})})),cd=function(t){var n=od((0,e.useState)(!1),2),r=n[0],o=n[1],i=function(){o(!1)},a=function(){o(!0)},s="",l=t.item.getProperty();l&&(s=e.createElement("div",{className:"rdformsProperty"},e.createElement("a",{target:"_blank",href:l},l)));var u=t.context.view instanceof Jc?t.item.getEditDescription()||t.item.getDescription():t.item.getDescription()||(l?"":t.context.view.messages.info_missing||"");return e.createElement(Ss,{onClickAway:i},e.createElement(ud,{title:e.createElement(e.Fragment,null,e.createElement("p",{className:"rdformsLinebreaks rdformsDescription"},u),s),placement:"bottom-start",disableHoverListener:!0,disableTouchListener:!0,onClose:i,onOpen:a,open:r},e.createElement("span",{onClick:a},t.children)))};fi.renderPresenterLabel=function(t,n,r,o){var i=o.view instanceof Jc&&r.getEditLabel()||r.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a,s=o.view;if(r.hasStyle("showDescriptionInPresent")||s.showDescription){var l=r.hasStyle("compact")||s.compact&&!r.hasStyle("nonCompact")&&(s.topLevel&&"group"!==r.getType()||s.parentView&&s.parentView.topLevel&&s.binding.getItem().hasStyle("heading")),u=s instanceof Jc&&r.getEditDescription()||r.getDescription();!l&&u&&(a=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},u))}var c=n?o.view.createLabelIndex(n):void 0;i=r.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",id:c,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},i)):e.createElement("span",{tabIndex:"0",id:c,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},i)),t.appendChild(e.createElement(e.Fragment,{key:"".concat(n?n.getHash():r._internalId,"_label")},e.createElement(cd,{context:o,item:r},i),a))},fi.renderEditorLabel=function(t,n,r,o){if(r.hasStyle("nonEditable")||r.hasStyle("heading"))fi.renderPresenterLabel(t,n,r,o,!0);else{var i=r.getEditLabel()||r.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"",i=r.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",className:"rdformsLabel"},i):e.createElement("span",{tabIndex:"0",className:"rdformsLabel"},i),i=e.createElement(cd,{item:r,context:o},i);var a,s,l=r.getCardinality(),u=o.view.messages;r.getProperty()&&(a=l.min>0?e.createElement("span",{className:"rdformsMark rdformsMandatoryMark"},u.mandatoryMark):l.pref>0?e.createElement("span",{className:"rdformsMark rdformsRecommendedMark"},u.recommendedMark):e.createElement("span",{className:"rdformsMark rdformsOptionalMark"},u.optionalMark)),null==n?s=fi.addExpandButton(t,null,r,o):"group"!==r.getType()||o.view.showAsTable(r)||r.getProperty()&&(s=fi.addRemoveButton(t,n,o));var c,d=o.view;if(r.hasStyle("showDescriptionInEdit")||d.showDescription){var f=r.hasStyle("compact")||d.compact&&!r.hasStyle("nonCompact")&&(d.topLevel&&"group"!==r.getType()||d.parentView&&d.parentView.topLevel&&d.binding.getItem().hasStyle("heading")),p=d instanceof Jc&&r.getEditDescription()||r.getDescription();!f&&p&&(c=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},p))}var h=o.view.createLabelIndex(n);t.appendChild(e.createElement(e.Fragment,{key:"".concat(n.getHash(),"_label")},e.createElement("div",{id:h,className:"rdformsLabelRow"},i,a,s&&e.createElement(s,null)),c))}};var dd=function(t){var n,r=t.rowNode,o=t.binding,i=(t.item,t.context),a=od((0,e.useState)(o.getCardinalityTracker().getCode()),2),s=a[0],l=a[1];if((0,e.useEffect)((function(){var e=o.getCardinalityTracker(),t=function(){var t=e.getCode();fi.domClassToggle(r,"rdformsError",t!==Os.UNKNOWN),l(t)};t();var n=e.addListener(t);return function(){return e.removeListener(n)}}),[]),s===Os.UNKNOWN)return"";switch(s){case Os.TOO_MANY_VALUES:case Os.AT_MOST_ONE_CHILD:n=i.view.messages.validation_at_most_one_child;break;case Os.AT_LEAST_ONE_CHILD:n=i.view.messages.validation_at_least_one_child;break;case Os.EXACTLY_ONE_CHILD:n=i.view.messages.validation_exactly_one_child;break;case Os.TOO_FEW_VALUES_MIN:default:n=i.view.messages.missingValueField}return e.createElement("div",{className:"rdformsWarning"},n)};fi.renderEditorLabelScopeEnd=function(t,n,r,o){if(!r.hasStyle("nonEditable")&&!r.hasStyle("heading")){if(!o.view.isMultiValued(r)){var i,a=r.getCardinality();null==n?i=fi.addExpandButton(t,null,r,o):!n.getPredicate()||o.view.showAsTable(r)||1===a.max||null!=a.max&&a.max===a.min||(i=fi.addCreateChildButton(t,null,n,o)),i&&t.appendChild(e.createElement(i,{key:"".concat(n.getHash(),"_labelEnd")}))}if(r.hasStyle("deprecated")){var s=n.getCardinalityTracker(),l=s.addListener((function(){0===s.getCardinality()&&(s.removeListener(l),t.destroy())}));t.appendChild(e.createElement("div",{key:"deprecatedWarning",className:"rdformsWarning"},o.view.messages.deprecatedField))}r.getDeps()&&t.appendChild(e.createElement("div",{key:"dependencyWarning",className:"rdformsWarning rdformsDependency"},o.view.messages.dependencyField)),t.appendChild(e.createElement(dd,{key:"errMessage",rowNode:t,binding:n,item:r,context:o}))}};var fd=function(e){var t,n=function(e){return e&&e.length>1?parseInt(e[0],10):0},r=n(e.match(/([0-9])*Y/)),o=n(e.match(/([0-9])*D/)),i=n(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=n(e.match(/([0-9])*M/));else{var s=e.split("T");t=n(s[0].match(/([0-9])*M/)),a=n(s[1].match(/([0-9])*M/))}return{years:r,months:t,days:o,hours:i,minutes:a}},pd=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),n=new Date("".concat(t).concat(e));return n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n}return new Date(e)}catch(e){return null}},hd=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"DateTime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";case"http://www.w3.org/2001/XMLSchema#time":return"Time";case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"YearMonth";case"http://www.w3.org/2001/XMLSchema#gMonthDay":return"MonthDay";default:return}},md=function(e){var t=e.getDatatype();return Array.isArray(t)?hd(t[0]):hd(t)},gd=function(e,t){if(e)switch(t){case"DateTime":return e.toISOString();case"Date":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,10);case"YearMonth":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,7);case"MonthDay":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(5,5);case"Time":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(11);case"Year":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,4);default:return""}return""},yd=function(e){var t={},n=e.getDatatype();return(Array.isArray(n)?n:[n]).forEach((function(e){var n=hd(e);n&&(t[n]=!0)})),t},vd=function(e){var t=e.getValue();if(null!=t&&""!==t){var n=e.getItem(),r=pd(t);if(r){var o=function(e){return e.indexOf("T")>0?"DateTime":e.indexOf(":")>0?"Time":/^\d\d\d\d-\d\d$/.test(e)?"YearMonth":/^\d\d-\d\d$/.test(e)?"MonthDay":e.length>4?"Date":"Year"}(t),i=hd(e.getDatatype()),a=md(n),s=yd(n);return function(e,t){switch(e){case"DateTime":return Go()(t).format("lll");case"Date":return Go()(t).format("LL");case"Time":return Go()(t).format("LT");case"Year":return Go()(t).format("YYYY");case"YearMonth":return Go()(t).format("MMMM YYYY");case"MonthDay":return Go()(t).format("D MMMM");default:return""}}(s[i]?i:s[o]?o:a,r)}}},bd=function(e,t){var n,r=null===(n=e.getStatement()||e.getParent().getStatement())||void 0===n?void 0:n.getNamedGraph();if(r){for(var o=t.view;o.getParentView();)o=o.getParentView();return o.getNamedGraphId(r)}};function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xd=fi.presenterRegistry;xd.itemtype("text").datatype("xsd:duration").register((function(t,n,r){var o=fd(n.getValue());t.appendChild(e.createElement("div",{key:n.getHash()},["years","months","days","hours","minutes"].map((function(t){return 0!==o[t]&&e.createElement(e.Fragment,{key:t},e.createElement("span",{className:"durationLabel"},r.view.messages["duration_".concat(t)],":"),e.createElement("span",{className:"durationValue"},o[t]))}))))})),xd.itemtype("text").nodetype("URI").register((function(t,n){var r=Xo.getLocalizedMap(n),o=n.getValue(),i=n.getItem().hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,n)||{}:Jo.attachLinkBehaviour(t,n)||{},a=i.component||null;delete i.component;var s=n.getItem().hasStyle("showValue")?o:r?Xo.getLocalizedValue(r).value||o:n.getGist();t.appendChild(e.createElement("a",wd({},i,{key:n.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(t,n,r){var o=n.getValue(),i=n.getItem().hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,n)||{}:Jo.attachLinkBehaviour(t,n)||{},a=i.component||null;delete i.component;var s,l=n.getItem().getChildren().find((function(e){return e.hasStyle("label")})),u=l?fi.filterTranslations(n.getChildBindingsFor(l),Go().locale(),r.view.defaultLanguage):[],c=n.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),d=c?fi.filterTranslations(n.getChildBindingsFor(c),Go().locale(),r.view.defaultLanguage):[],f=d.length>0?d[0].getValue():o;if(u.length>0)s=u[0].getValue();else{var p=Xo.getLocalizedMap(n);s=n.getItem().hasStyle("showValue")?o:p?Xo.getLocalizedValue(p).value||o:n.getGist()}t.appendChild(e.createElement("a",wd({},i,{key:n.getHash(),title:f,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("text").nodetype("URI").style("externalLink").register((function(t,n){var r=Xo.getLocalizedMap(n),o=n.getValue(),i=Jo.attachExternalLinkBehaviour(t,n)||{};i.target=i.target||"_blank";var a=i.component||null;delete i.component;var s=n.getItem().hasStyle("showValue")?o:r?Xo.getLocalizedValue(r).value||o:n.getGist();t.appendChild(e.createElement("a",wd({},i,{key:n.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("text").nodetype("URI").style("image").register((function(t,n){t.appendChild(e.createElement("img",{key:n.getHash(),className:"rdformsImage",src:n.getGixt()}))})),xd.itemtype("text").register((function(t,n,r){var o=n.getItem(),i=n.getLanguage();o.hasStyle("inline")||(o.hasStyle("multiline")?fi.domClassToggle(t,"rdformsMultiline",!0):fi.domClassToggle(t,"rdformsSingleline",!0),r.view.showLanguage&&i&&t.appendChild(e.createElement("span",{className:"rdformsLanguage",key:"lang_".concat(n.getHash())},i)));var a=n.getParent();if(o.hasStyle("label")&&!0!==r.view.topLevel&&null!=a&&a.getItem().getChildren()[0]===o&&null!=a.getStatement()&&"uri"===a.getStatement().getType()){var s=Jo.attachLinkBehaviour(t,n,a),l=s.component||null;delete s.component,i&&(s.lang=i);var u=Xo.getLocalizedMap(n),c=a.getGist();t.appendChild(e.createElement("a",wd({},s,{key:n.getHash(),className:"rdformsUrl",href:a.getStatement().getValue()}),e.createElement("span",null,u&&Xo.getLocalizedValue(u).value||c),l))}else{var d=o.hasStyle("showValue")?n.getValue():n.getGist();i?t.appendChild(e.createElement("span",{lang:i,key:n.getHash()},d)):t.appendChild(e.createElement("span",{key:n.getHash()},d))}}));var Sd=o(2996),_d=o(9766),kd=o(6535),Ed=o(4161),Cd=o(3649);const Pd=["onChange","maxRows","minRows","style","value"];function Td(e){return parseInt(e,10)||0}const Od={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Ad=e.forwardRef((function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,c=(0,l.Z)(t,Pd),{current:d}=e.useRef(null!=s),f=e.useRef(null),p=(0,Di.Z)(n,f),h=e.useRef(null),m=e.useRef(0),[g,y]=e.useState({outerHeightStyle:0}),v=e.useCallback(()=>{const e=f.current,n=(0,Ed.Z)(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const r=h.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,s=Td(n.paddingBottom)+Td(n.paddingTop),l=Td(n.borderBottomWidth)+Td(n.borderTopWidth),u=r.scrollHeight;r.value="x";const c=r.scrollHeight;let d=u;i&&(d=Math.max(Number(i)*c,d)),o&&(d=Math.min(Number(o)*c,d)),d=Math.max(d,c);return{outerHeightStyle:d+("border-box"===a?s+l:0),overflow:Math.abs(d-u)<=1}},[o,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return m.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},w=e.useCallback(()=>{const e=v();Rd(e)||y(t=>b(t,e))},[v]);(0,ji.Z)(()=>{const e=()=>{m.current=0,(()=>{const e=v();Rd(e)||bi.flushSync(()=>{y(t=>b(t,e))})})()};let t;const n=(0,Cd.Z)(e),r=f.current,o=(0,Ed.Z)(r);let i;return o.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),i&&i.disconnect()}},[v]),(0,ji.Z)(()=>{w()}),e.useEffect(()=>{m.current=0},[s]);return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("textarea",(0,u.Z)({value:s,onChange:e=>{m.current=0,d||w(),r&&r(e)},ref:p,rows:i,style:(0,u.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},c)),(0,I.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,u.Z)({},Od,a,{paddingTop:0,paddingBottom:0})})]})}));function Md({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Dd=e.createContext(void 0);function jd(){return e.useContext(Dd)}var Id=o(8974);function Nd(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,I.jsx)(M,{styles:r})}const Ld=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,mi.Z)(n),o="function"==typeof e?e(t&&r[t]||r):e;return(0,I.jsx)(Nd,{styles:o})};const Zd=function(e){return(0,I.jsx)(Ld,(0,u.Z)({},e,{defaultTheme:gi.Z,themeId:yi.Z}))};function Fd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bd(e,t=!1){return e&&(Fd(e.value)&&""!==e.value||t&&Fd(e.defaultValue)&&""!==e.defaultValue)}function Vd(e){return(0,X.ZP)("MuiInputBase",e)}const zd=(0,L.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Wd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ud=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color"+(0,re.Z)(n.color)],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$d=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Hd=(0,h.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ud})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&."+zd.disabled]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,u.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Yd=(0,h.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,u.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,u.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&."+zd.disabled]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Gd=(0,I.jsx)(Zd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qd=e.forwardRef((function(t,n){var r;const o=(0,m.Z)({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:d,components:p={},componentsProps:h={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,fullWidth:x=!1,id:S,inputComponent:_="input",inputProps:k={},inputRef:E,maxRows:C,minRows:P,multiline:T=!1,name:O,onBlur:R,onChange:A,onClick:M,onFocus:D,onKeyDown:j,onKeyUp:N,placeholder:L,readOnly:Z,renderSuffix:F,rows:B,slotProps:V={},slots:z={},startAdornment:W,type:U="text",value:$}=o,H=(0,l.Z)(o,Wd),Y=null!=k.value?k.value:$,{current:G}=e.useRef(null!=Y),q=e.useRef(),K=e.useCallback(e=>{0},[]),X=(0,g.Z)(q,E,k.ref,K),[Q,J]=e.useState(!1),ee=jd();const te=Md({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:Q,e.useEffect(()=>{!ee&&v&&Q&&(J(!1),R&&R())},[ee,v,Q,R]);const ne=ee&&ee.onFilled,oe=ee&&ee.onEmpty,ie=e.useCallback(e=>{Bd(e)?ne&&ne():oe&&oe()},[ne,oe]);(0,Id.Z)(()=>{G&&ie({value:Y})},[Y,ie,G]);e.useEffect(()=>{ie(q.current)},[]);let ae=_,se=k;T&&"input"===ae&&(se=B?(0,u.Z)({type:void 0,minRows:B,maxRows:B},se):(0,u.Z)({type:void 0,maxRows:C,minRows:P},se),ae=Ad);e.useEffect(()=>{ee&&ee.setAdornedStart(Boolean(W))},[ee,W]);const le=(0,u.Z)({},o,{color:te.color||"primary",disabled:te.disabled,endAdornment:w,error:te.error,focused:te.focused,formControl:ee,fullWidth:x,hiddenLabel:te.hiddenLabel,multiline:T,size:te.size,startAdornment:W,type:U}),ue=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root","color"+(0,re.Z)(n),r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&"size"+(0,re.Z)(p),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,f.Z)(g,Vd,t)})(le),ce=z.root||p.Root||Hd,de=V.root||h.root||{},fe=z.input||p.Input||Yd;return se=(0,u.Z)({},se,null!=(r=V.input)?r:h.input),(0,I.jsxs)(e.Fragment,{children:[!b&&Gd,(0,I.jsxs)(ce,(0,u.Z)({},de,!pi(ce)&&{ownerState:(0,u.Z)({},le,de.ownerState)},{ref:n,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),M&&M(e)}},H,{className:(0,c.Z)(ue.root,de.className,d,Z&&"MuiInputBase-readOnly"),children:[W,(0,I.jsx)(Dd.Provider,{value:null,children:(0,I.jsx)(fe,(0,u.Z)({ownerState:le,"aria-invalid":te.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:y,disabled:te.disabled,id:S,onAnimationStart:e=>{ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:O,placeholder:L,readOnly:Z,required:te.required,rows:B,value:Y,onKeyDown:j,onKeyUp:N,type:U},se,!pi(fe)&&{as:ae,ownerState:(0,u.Z)({},le,se.ownerState)},{ref:X,className:(0,c.Z)(ue.input,se.className,Z&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),k.onBlur&&k.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||q.current;if(null==t)throw new Error((0,kd.Z)(1));ie({value:t.value})}k.onChange&&k.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{te.disabled?e.stopPropagation():(D&&D(e),k.onFocus&&k.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):J(!0))}}))}),w,F?F((0,u.Z)({},te,{startAdornment:W})):null]}))]})}));function Kd(e){return(0,X.ZP)("MuiInput",e)}const Xd=(0,u.Z)({},zd,(0,L.Z)("MuiInput",["root","underline","input"])),Qd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jd=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ud(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,u.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(e.vars||e).palette[t.color].main,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+Xd.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+n,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xd.disabled}, .${Xd.error}):before`]:{borderBottom:"2px solid "+(e.vars||e).palette.text.primary,"@media (hover: none)":{borderBottom:"1px solid "+n}},[`&.${Xd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ef=(0,h.ZP)(Yd,{name:"MuiInput",slot:"Input",overridesResolver:$d})({}),tf=e.forwardRef((function(e,t){var n,r,o,i;const a=(0,m.Z)({props:e,name:"MuiInput"}),{disableUnderline:s,components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:v={},type:b="text"}=a,w=(0,l.Z)(a,Qd),x=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,f.Z)(r,Kd,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:{disableUnderline:s}}},_=(null!=y?y:d)?(0,_d.Z)(null!=y?y:d,S):S,k=null!=(n=null!=(r=v.root)?r:c.Root)?n:Jd,E=null!=(o=null!=(i=v.input)?i:c.Input)?o:ef;return(0,I.jsx)(qd,(0,u.Z)({slots:{root:k,input:E},slotProps:_,fullWidth:p,inputComponent:h,multiline:g,ref:t,type:b},w,{classes:x}))}));tf.muiName="Input";const nf=tf;function rf(e){return(0,X.ZP)("MuiFilledInput",e)}const of=(0,u.Z)({},zd,(0,L.Z)("MuiFilledInput",["root","underline","input"])),af=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sf=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ud(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,u.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},["&."+of.focused]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},["&."+of.disabled]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${of.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+of.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+(e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${of.disabled}, .${of.error}):before`]:{borderBottom:"1px solid "+(e.vars||e).palette.text.primary},[`&.${of.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,u.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),lf=(0,h.ZP)(Yd,{name:"MuiFilledInput",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),uf=e.forwardRef((function(e,t){var n,r,o,i;const a=(0,m.Z)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:y={},type:v="text"}=a,b=(0,l.Z)(a,af),w=(0,u.Z)({},a,{fullWidth:d,inputComponent:p,multiline:h,type:v}),x=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,f.Z)(r,rf,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:w},input:{ownerState:w}},_=(null!=g?g:c)?(0,_d.Z)(S,null!=g?g:c):S,k=null!=(n=null!=(r=y.root)?r:s.Root)?n:sf,E=null!=(o=null!=(i=y.input)?i:s.Input)?o:lf;return(0,I.jsx)(qd,(0,u.Z)({slots:{root:k,input:E},componentsProps:_,fullWidth:d,inputComponent:p,multiline:h,ref:t,type:v},b,{classes:x}))}));uf.muiName="Input";const cf=uf;var df;const ff=["children","classes","className","label","notched"],pf=(0,h.ZP)("fieldset",{shouldForwardProp:h.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),hf=(0,h.ZP)("legend",{shouldForwardProp:h.FO})(({ownerState:e,theme:t})=>(0,u.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,u.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mf(e){return(0,X.ZP)("MuiOutlinedInput",e)}const gf=(0,u.Z)({},zd,(0,L.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),yf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vf=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ud})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,u.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,["&:hover ."+gf.notchedOutline]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{["&:hover ."+gf.notchedOutline]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${gf.focused} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gf.error} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gf.disabled} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,u.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),bf=(0,h.ZP)((function(e){const{className:t,label:n,notched:r}=e,o=(0,l.Z)(e,ff),i=null!=n&&""!==n,a=(0,u.Z)({},e,{notched:r,withLabel:i});return(0,I.jsx)(pf,(0,u.Z)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,I.jsx)(hf,{ownerState:a,children:i?(0,I.jsx)("span",{children:n}):df||(df=(0,I.jsx)("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),wf=(0,h.ZP)(Yd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),xf=e.forwardRef((function(t,n){var r,o,i,a,s;const c=(0,m.Z)({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:g,multiline:y=!1,notched:v,slots:b={},type:w="text"}=c,x=(0,l.Z)(c,yf),S=(e=>{const{classes:t}=e,n=(0,f.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mf,t);return(0,u.Z)({},t,n)})(c),_=jd(),k=Md({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=(0,u.Z)({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:_,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:y,size:k.size,type:w}),C=null!=(r=null!=(o=b.root)?o:d.Root)?r:vf,P=null!=(i=null!=(a=b.input)?a:d.Input)?i:wf;return(0,I.jsx)(qd,(0,u.Z)({slots:{root:C,input:P},renderSuffix:t=>(0,I.jsx)(bf,{ownerState:E,className:S.notchedOutline,label:null!=g&&""!==g&&k.required?s||(s=(0,I.jsxs)(e.Fragment,{children:[g," ","*"]})):g,notched:void 0!==v?v:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:p,inputComponent:h,multiline:y,ref:n,type:w},x,{classes:(0,u.Z)({},S,{notchedOutline:null})}))}));xf.muiName="Input";const Sf=xf;function _f(e){return(0,X.ZP)("MuiFormLabel",e)}const kf=(0,L.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ef=["children","className","color","component","disabled","error","filled","focused","required"],Cf=(0,h.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&."+kf.focused]:{color:(e.vars||e).palette[t.color].main},["&."+kf.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+kf.error]:{color:(e.vars||e).palette.error.main}})),Pf=(0,h.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+kf.error]:{color:(e.vars||e).palette.error.main}})),Tf=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=(0,l.Z)(n,Ef),s=Md({props:n,muiFormControl:jd(),states:["color","required","focused","disabled","error","filled"]}),d=(0,u.Z)({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root","color"+(0,re.Z)(n),o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,f.Z)(l,_f,t)})(d);return(0,I.jsxs)(Cf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:[r,s.required&&(0,I.jsxs)(Pf,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}));function Of(e){return(0,X.ZP)("MuiInputLabel",e)}(0,L.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Rf=["disableAnimation","margin","shrink","variant","className"],Af=(0,h.ZP)(Tf,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& ."+kf.asterisk]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,u.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Mf=e.forwardRef((function(e,t){const n=(0,m.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:i}=n,a=(0,l.Z)(n,Rf),s=jd();let d=o;void 0===d&&s&&(d=s.filled||s.focused||s.adornedStart);const p=Md({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),h=(0,u.Z)({},n,{disableAnimation:r,formControl:s,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"normal"!==r&&"size"+(0,re.Z)(r),a],asterisk:[s&&"asterisk"]},c=(0,f.Z)(l,Of,t);return(0,u.Z)({},t,c)})(h);return(0,I.jsx)(Af,(0,u.Z)({"data-shrink":d,ownerState:h,ref:t,className:(0,c.Z)(g.root,i)},a,{classes:g}))}));var Df=o(8502);function jf(e){return(0,X.ZP)("MuiFormControl",e)}(0,L.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const If=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nf=(0,h.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,t["margin"+(0,re.Z)(e.margin)],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,u.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Lf=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:d=!1,error:p=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:v="none",required:b=!1,size:w="medium",variant:x="outlined"}=r,S=(0,l.Z)(r,If),_=(0,u.Z)({},r,{color:a,component:s,disabled:d,error:p,fullWidth:g,hiddenLabel:y,margin:v,required:b,size:w,variant:x}),k=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&"margin"+(0,re.Z)(n),r&&"fullWidth"]};return(0,f.Z)(o,jf,t)})(_),[E,C]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{if(!(0,Df.Z)(e,["Input","Select"]))return;const n=(0,Df.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}),t}),[P,T]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{(0,Df.Z)(e,["Input","Select"])&&(Bd(e.props,!0)||Bd(e.props.inputProps,!0))&&(t=!0)}),t}),[O,R]=e.useState(!1);d&&O&&R(!1);const A=void 0===h||d?O:h;const M=e.useMemo(()=>({adornedStart:E,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:A,fullWidth:g,hiddenLabel:y,size:w,onBlur:()=>{R(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{R(!0)},registerEffect:void 0,required:b,variant:x}),[E,a,d,p,P,A,g,y,void 0,b,w,x]);return(0,I.jsx)(Dd.Provider,{value:M,children:(0,I.jsx)(Nf,(0,u.Z)({as:s,ownerState:_,className:(0,c.Z)(k.root,i),ref:n},S,{children:o}))})}));function Zf(e){return(0,X.ZP)("MuiFormHelperText",e)}const Ff=(0,L.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Bf;const Vf=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zf=(0,h.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size"+(0,re.Z)(n.size)],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&."+Ff.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+Ff.error]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Wf=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p"}=n,a=(0,l.Z)(n,Vf),s=Md({props:n,muiFormControl:jd(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,u.Z)({},n,{component:i,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&"size"+(0,re.Z)(r),n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,f.Z)(u,Zf,t)})(d);return(0,I.jsx)(zf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:" "===r?Bf||(Bf=(0,I.jsx)("span",{className:"notranslate",children:""})):r}))}));o(6607);var Uf=o(8038);const $f=e.createContext({});function Hf(e){return(0,X.ZP)("MuiList",e)}(0,L.Z)("MuiList",["root","padding","dense","subheader"]);const Yf=["children","className","component","dense","disablePadding","subheader"],Gf=(0,h.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>(0,u.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),qf=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:d=!1,subheader:p}=r,h=(0,l.Z)(r,Yf),g=e.useMemo(()=>({dense:s}),[s]),y=(0,u.Z)({},r,{component:a,dense:s,disablePadding:d}),v=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,f.Z)(i,Hf,t)})(y);return(0,I.jsx)($f.Provider,{value:g,children:(0,I.jsxs)(Gf,(0,u.Z)({as:a,className:(0,c.Z)(v.root,i),ref:n,ownerState:y},h,{children:[p,o]}))})}));function Kf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Xf=Kf,Qf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ep(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function tp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function np(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&tp(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const rp=e.forwardRef((function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=t,h=(0,l.Z)(t,Qf),m=e.useRef(null),y=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Id.Z)(()=>{o&&m.current.focus()},[o]),e.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{const n=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&n){const n=Xf((0,Uf.Z)(e))+"px";m.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,m.current.style.width=`calc(100% + ${n})`}return m.current}}),[]);const v=(0,g.Z)(m,n);let b=-1;e.Children.forEach(a,(t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===p&&t.props.selected||-1===b)&&(b=n),b===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))):b===n&&(b+=1,b>=a.length&&(b=-1))});const w=e.Children.map(a,(t,n)=>{if(n===b){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===p&&(n.tabIndex=0),e.cloneElement(t,n)}return t});return(0,I.jsx)(qf,(0,u.Z)({role:"menu",ref:v,className:s,onKeyDown:e=>{const t=m.current,n=e.key,r=(0,Uf.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),np(t,r,d,c,Jf);else if("ArrowUp"===n)e.preventDefault(),np(t,r,d,c,ep);else if("Home"===n)e.preventDefault(),np(t,null,d,c,Jf);else if("End"===n)e.preventDefault(),np(t,null,d,c,ep);else if(1===n.length){const o=y.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&tp(r,o);o.previousKeyMatched&&(s||np(t,r,!1,c,Jf,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},h,{children:w}))}));var op=o(7144),ip=o(5340),ap=o(9064);function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lp(e){return parseInt((0,Ed.Z)(e).getComputedStyle(e).paddingRight,10)||0}function up(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&sp(e,o)})}function cp(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function dp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ii.Z)(e);return t.body===e?(0,Ed.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Kf((0,Ii.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=lp(r)+e+"px";const t=(0,Ii.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=lp(t)+e+"px"})}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Ii.Z)(r).body;else{const t=r.parentElement,n=(0,Ed.Z)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const fp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&sp(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);up(t,e.mount,e.modalRef,r,!0);const o=cp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=cp(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=dp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=cp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sp(e.modalRef,t),up(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function pp(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=fp,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:p}=t,h=e.useRef({}),m=e.useRef(null),g=e.useRef(null),y=(0,Di.Z)(g,p),[v,b]=e.useState(!f),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const S=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),_=()=>{i.mount(S(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},k=(0,ws.Z)(()=>{const e=function(e){return"function"==typeof e?e():e}(n)||(0,Ii.Z)(m.current).body;i.add(S(),e),g.current&&_()}),E=e.useCallback(()=>i.isTopModal(S()),[i]),C=(0,ws.Z)(e=>{m.current=e,e&&(f&&E()?_():g.current&&sp(g.current,x))}),P=e.useCallback(()=>{i.remove(S(),x)},[x,i]);e.useEffect(()=>()=>{P()},[P]),e.useEffect(()=>{f?k():w&&a||P()},[f,P,w,a,k]);const T=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(e={})=>{const n=Wa(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,u.Z)({},n,e);return(0,u.Z)({role:"presentation"},r,{onKeyDown:T(r),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,u.Z)({"aria-hidden":!0},t,{onClick:O(t),open:f})},getTransitionProps:()=>({onEnter:(0,ap.Z)(()=>{b(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:(0,ap.Z)(()=>{b(!0),l&&l(),a&&P()},null==c?void 0:c.props.onExited)}),rootRef:y,portalRef:C,isTopModal:E,exited:v,hasTransition:w}}const hp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mp(e){const t=[],n=[];return Array.from(e.querySelectorAll(hp)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'+t);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function gp(){return!0}function yp(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=mp,isEnabled:s=gp,open:l}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=(0,Di.Z)(n.ref,m),y=e.useRef(null);e.useEffect(()=>{l&&m.current&&(h.current=!r)},[r,l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Ii.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Ii.Z)(m.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,i;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=y.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[r,o,i,s,l,a]);const v=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,I.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const vp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bp={entering:{opacity:1},entered:{opacity:1}},wp=e.forwardRef((function(t,n){const r=vi(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:d,onEnter:f,onEntered:p,onEntering:h,onExit:m,onExited:y,onExiting:v,style:b,timeout:w=o,TransitionComponent:x=ki}=t,S=(0,l.Z)(t,vp),_=e.useRef(null),k=(0,g.Z)(_,s.ref,n),E=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},C=E(h),P=E((e,t)=>{Ei(e);const n=Ci({style:b,timeout:w,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),f&&f(e,t)}),T=E(p),O=E(v),R=E(e=>{const t=Ci({style:b,timeout:w,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),m&&m(e)}),A=E(y);return(0,I.jsx)(x,(0,u.Z)({appear:a,in:d,nodeRef:_,onEnter:P,onEntered:T,onEntering:C,onExit:R,onExited:A,onExiting:O,addEndListener:e=>{i&&i(_.current,e)},timeout:w},S,{children:(t,n)=>e.cloneElement(s,(0,u.Z)({style:(0,u.Z)({opacity:0,visibility:"exited"!==t||d?void 0:"hidden"},bp[t],b,s.props.style),ref:k},n))}))}));function xp(e){return(0,X.ZP)("MuiBackdrop",e)}(0,L.Z)("MuiBackdrop",["root","invisible"]);const Sp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_p=(0,h.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>(0,u.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),kp=e.forwardRef((function(e,t){var n,r,o;const i=(0,m.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:d="div",components:p={},componentsProps:h={},invisible:g=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:w=wp,transitionDuration:x}=i,S=(0,l.Z)(i,Sp),_=(0,u.Z)({},i,{component:d,invisible:g}),k=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,f.Z)(r,xp,t)})(_),E=null!=(n=v.root)?n:h.root;return(0,I.jsx)(w,(0,u.Z)({in:y,timeout:x},S,{children:(0,I.jsx)(_p,(0,u.Z)({"aria-hidden":!0},E,{as:null!=(r=null!=(o=b.root)?o:p.Root)?r:d,className:(0,c.Z)(k.root,s,null==E?void 0:E.className),ownerState:(0,u.Z)({},_,null==E?void 0:E.ownerState),classes:k,ref:t,children:a}))}))}));function Ep(e){return(0,X.ZP)("MuiModal",e)}(0,L.Z)("MuiModal",["root","hidden","backdrop"]);const Cp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Pp=(0,h.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,u.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Tp=(0,h.ZP)(kp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Op=e.forwardRef((function(t,n){var r,o,i,a,s,d;const p=(0,m.Z)({name:"MuiModal",props:t}),{BackdropComponent:h=Tp,BackdropProps:g,className:y,closeAfterTransition:v=!1,children:b,container:w,component:x,components:S={},componentsProps:_={},disableAutoFocus:k=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:P=!1,disableRestoreFocus:T=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:D,slotProps:j,slots:N}=p,L=(0,l.Z)(p,Cp),Z=(0,u.Z)({},p,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:P,disableRestoreFocus:T,disableScrollLock:O,hideBackdrop:R,keepMounted:A}),{getRootProps:F,getBackdropProps:B,getTransitionProps:V,portalRef:z,isTopModal:W,exited:U,hasTransition:$}=pp((0,u.Z)({},Z,{rootRef:n})),H=(0,u.Z)({},Z,{exited:U}),Y=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,f.Z)(o,Ep,r)})(H),G={};if(void 0===b.props.tabIndex&&(G.tabIndex="-1"),$){const{onEnter:e,onExited:t}=V();G.onEnter=e,G.onExited=t}const q=null!=(r=null!=(o=null==N?void 0:N.root)?o:S.Root)?r:Pp,K=null!=(i=null!=(a=null==N?void 0:N.backdrop)?a:S.Backdrop)?i:h,X=null!=(s=null==j?void 0:j.root)?s:_.root,Q=null!=(d=null==j?void 0:j.backdrop)?d:_.backdrop,J=Ha({elementType:q,externalSlotProps:X,externalForwardedProps:L,getSlotProps:F,additionalProps:{ref:n,as:x},ownerState:H,className:(0,c.Z)(y,null==X?void 0:X.className,null==Y?void 0:Y.root,!H.open&&H.exited&&(null==Y?void 0:Y.hidden))}),ee=Ha({elementType:K,externalSlotProps:Q,additionalProps:g,getSlotProps:e=>B((0,u.Z)({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,c.Z)(null==Q?void 0:Q.className,null==g?void 0:g.className,null==Y?void 0:Y.backdrop),ownerState:H});return A||D||$&&!U?(0,I.jsx)(Ba,{ref:z,container:w,disablePortal:P,children:(0,I.jsxs)(q,(0,u.Z)({},J,{children:[!R&&h?(0,I.jsx)(K,(0,u.Z)({},ee)):null,(0,I.jsx)(yp,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:T,isEnabled:W,open:D,children:e.cloneElement(b,G)})]}))}):null})),Rp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ap(e){return(0,X.ZP)("MuiPaper",e)}(0,L.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Mp=["className","component","elevation","square","variant"],Dp=(0,h.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation"+n.elevation]]}})(({theme:e,ownerState:t})=>{var n;return(0,u.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.divider},"elevation"===t.variant&&(0,u.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,p.Fq)("#fff",Rp(t.elevation))}, ${(0,p.Fq)("#fff",Rp(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),jp=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,d=(0,l.Z)(n,Mp),p=(0,u.Z)({},n,{component:o,elevation:i,square:a,variant:s}),h=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation"+n]};return(0,f.Z)(i,Ap,o)})(p);return(0,I.jsx)(Dp,(0,u.Z)({as:o,ownerState:p,className:(0,c.Z)(h.root,r),ref:t},d))}));function Ip(e){return(0,X.ZP)("MuiPopover",e)}(0,L.Z)("MuiPopover",["root","paper"]);const Np=["onEntering"],Lp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zp=["slotProps"];function Fp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Bp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Vp(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?e+"px":e).join(" ")}function zp(e){return"function"==typeof e?e():e}const Wp=(0,h.ZP)(Op,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Up=(0,h.ZP)(jp,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$p=e.forwardRef((function(t,n){var r,o,i;const a=(0,m.Z)({props:t,name:"MuiPopover"}),{action:s,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:y="anchorEl",children:v,className:b,container:w,elevation:x=8,marginThreshold:S=16,open:_,PaperProps:k={},slots:E,slotProps:C,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:T=Mi,transitionDuration:O="auto",TransitionProps:{onEntering:R}={},disableScrollLock:A=!1}=a,M=(0,l.Z)(a.TransitionProps,Np),D=(0,l.Z)(a,Lp),j=null!=(r=null==C?void 0:C.paper)?r:k,N=e.useRef(),L=(0,g.Z)(N,j.ref),Z=(0,u.Z)({},a,{anchorOrigin:p,anchorReference:y,elevation:x,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:P,TransitionComponent:T,transitionDuration:O,TransitionProps:M}),F=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Ip,t)})(Z),B=e.useCallback(()=>{if("anchorPosition"===y)return h;const e=zp(d),t=(e&&1===e.nodeType?e:(0,Uf.Z)(N.current).body).getBoundingClientRect();return{top:t.top+Fp(t,p.vertical),left:t.left+Bp(t,p.horizontal)}},[d,p.horizontal,p.vertical,h,y]),V=e.useCallback(e=>({vertical:Fp(e,P.vertical),horizontal:Bp(e,P.horizontal)}),[P.horizontal,P.vertical]),z=e.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=V(t);if("none"===y)return{top:null,left:null,transformOrigin:Vp(n)};const r=B();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,l=(0,ip.Z)(zp(d)),u=l.innerHeight-S,c=l.innerWidth-S;if(null!==S&&o<S){const e=o-S;o-=e,n.vertical+=e}else if(null!==S&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==S&&i<S){const e=i-S;i-=e,n.horizontal+=e}else if(s>c){const e=s-c;i-=e,n.horizontal+=e}return{top:Math.round(o)+"px",left:Math.round(i)+"px",transformOrigin:Vp(n)}},[d,y,B,V,S]),[W,U]=e.useState(_),$=e.useCallback(()=>{const e=N.current;if(!e)return;const t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)},[z]);e.useEffect(()=>(A&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[d,A,$]);e.useEffect(()=>{_&&$()}),e.useImperativeHandle(s,()=>_?{updatePosition:()=>{$()}}:null,[_,$]),e.useEffect(()=>{if(!_)return;const e=(0,op.Z)(()=>{$()}),t=(0,ip.Z)(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[d,_,$]);let H=O;"auto"!==O||T.muiSupportAuto||(H=void 0);const Y=w||(d?(0,Uf.Z)(zp(d)).body:void 0),G=null!=(o=null==E?void 0:E.root)?o:Wp,q=null!=(i=null==E?void 0:E.paper)?i:Up,K=Ha({elementType:q,externalSlotProps:(0,u.Z)({},j,{style:W?j.style:(0,u.Z)({},j.style,{opacity:0})}),additionalProps:{elevation:x,ref:L},ownerState:Z,className:(0,c.Z)(F.paper,null==j?void 0:j.className)}),X=Ha({elementType:G,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Y,open:_},ownerState:Z,className:(0,c.Z)(F.root,b)}),{slotProps:Q}=X,J=(0,l.Z)(X,Zp);return(0,I.jsx)(G,(0,u.Z)({},J,!pi(G)&&{slotProps:Q,disableScrollLock:A},{children:(0,I.jsx)(T,(0,u.Z)({appear:!0,in:_,onEntering:(e,t)=>{R&&R(e,t),$()},onExited:()=>{U(!1)},timeout:H},M,{children:(0,I.jsx)(q,(0,u.Z)({},K,{children:v}))}))}))}));function Hp(e){return(0,X.ZP)("MuiMenu",e)}(0,L.Z)("MuiMenu",["root","paper","list"]);const Yp=["onEntering"],Gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qp={vertical:"top",horizontal:"right"},Kp={vertical:"top",horizontal:"left"},Xp=(0,h.ZP)($p,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qp=(0,h.ZP)(Up,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jp=(0,h.ZP)(rp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eh=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:d,disableAutoFocusItem:p=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:v={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:x}={},variant:S="selectedMenu",slots:_={},slotProps:k={}}=i,E=(0,l.Z)(i.TransitionProps,Yp),C=(0,l.Z)(i,Gp),P=vi(),T="rtl"===P.direction,O=(0,u.Z)({},i,{autoFocus:a,disableAutoFocusItem:p,MenuListProps:h,onEntering:x,PaperProps:v,transitionDuration:w,TransitionProps:E,variant:S}),R=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"],list:["list"]},Hp,t)})(O),A=a&&!p&&y,M=e.useRef(null);let D=-1;e.Children.map(s,(t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===S&&t.props.selected||-1===D)&&(D=n))});const j=null!=(r=_.paper)?r:Qp,N=null!=(o=k.paper)?o:v,L=Ha({elementType:_.root,externalSlotProps:k.root,ownerState:O,className:[R.root,d]}),Z=Ha({elementType:j,externalSlotProps:N,ownerState:O,className:R.paper});return(0,I.jsx)(Xp,(0,u.Z)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?qp:Kp,slots:{paper:j,root:_.root},slotProps:{root:L,paper:Z},open:y,ref:n,transitionDuration:w,TransitionProps:(0,u.Z)({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,P),x&&x(e,t)}},E),ownerState:O},C,{classes:b,children:(0,I.jsx)(Jp,(0,u.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===D||p),autoFocusItem:A,variant:S},h,{className:(0,c.Z)(R.list,h.className),children:s}))}))}));function th(e){return(0,X.ZP)("MuiNativeSelect",e)}const nh=(0,L.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rh=["className","disabled","error","IconComponent","inputRef","variant"],oh=({ownerState:e,theme:t})=>(0,u.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,u.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&."+nh.disabled]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ih=(0,h.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:h.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&."+nh.multiple]:t.multiple}]}})(oh),ah=({ownerState:e,theme:t})=>(0,u.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&."+nh.disabled]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),sh=(0,h.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon"+(0,re.Z)(n.variant)],n.open&&t.iconOpen]}})(ah),lh=e.forwardRef((function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:d="standard"}=t,p=(0,l.Z)(t,rh),h=(0,u.Z)({},t,{disabled:o,variant:d,error:i}),m=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,re.Z)(n),i&&"iconOpen",r&&"disabled"]};return(0,f.Z)(s,th,t)})(h);return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(ih,(0,u.Z)({ownerState:h,className:(0,c.Z)(m.select,r),disabled:o,ref:s||n},p)),t.multiple?null:(0,I.jsx)(sh,{as:a,ownerState:h,className:m.icon})]})}));function uh(e){return(0,X.ZP)("MuiSelect",e)}const ch=(0,L.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dh;const fh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ph=(0,h.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&."+ch.select]:t.select},{["&."+ch.select]:t[n.variant]},{["&."+ch.error]:t.error},{["&."+ch.multiple]:t.multiple}]}})(oh,{["&."+ch.select]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hh=(0,h.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon"+(0,re.Z)(n.variant)],n.open&&t.iconOpen]}})(ah),mh=(0,h.ZP)("input",{shouldForwardProp:e=>(0,h.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yh(e){return null==e||"string"==typeof e&&!e.trim()}const vh=e.forwardRef((function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:d,className:p,defaultOpen:h,defaultValue:m,disabled:y,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:x,labelId:S,MenuProps:_={},multiple:k,name:E,onBlur:C,onChange:P,onClose:T,onFocus:O,onOpen:R,open:A,readOnly:M,renderValue:D,SelectDisplayProps:j={},tabIndex:N,value:L,variant:Z="standard"}=t,F=(0,l.Z)(t,fh),[B,V]=(0,ls.Z)({controlled:L,default:m,name:"Select"}),[z,W]=(0,ls.Z)({controlled:A,default:h,name:"Select"}),U=e.useRef(null),$=e.useRef(null),[H,Y]=e.useState(null),{current:G}=e.useRef(null!=A),[q,K]=e.useState(),X=(0,g.Z)(n,x),Q=e.useCallback(e=>{$.current=e,e&&Y(e)},[]),J=null==H?void 0:H.parentNode;e.useImperativeHandle(X,()=>({focus:()=>{$.current.focus()},node:U.current,value:B}),[B]),e.useEffect(()=>{h&&z&&H&&!G&&(K(s?null:J.clientWidth),$.current.focus())},[H,s]),e.useEffect(()=>{a&&$.current.focus()},[a]),e.useEffect(()=>{if(!S)return;const e=(0,Uf.Z)($.current).getElementById(S);if(e){const t=()=>{getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[S]);const ee=(e,t)=>{e?R&&R(t):T&&T(t),G||(K(s?null:J.clientWidth),W(e))},te=e.Children.toArray(d),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(k){n=Array.isArray(B)?B.slice():[];const t=B.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==n&&(V(n),P)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:E}}),P(o,e)}k||ee(!1,t)}},oe=null!==H&&z;let ie,ae;delete F["aria-invalid"];const se=[];let le=!1,ue=!1;(Bd({value:B})||v)&&(D?ie=D(B):le=!0);const ce=te.map(t=>{if(!e.isValidElement(t))return null;let n;if(k){if(!Array.isArray(B))throw new Error((0,kd.Z)(2));n=B.some(e=>gh(e,t.props.value)),n&&le&&se.push(t.props.children)}else n=gh(B,t.props.value),n&&le&&(ae=t.props.children);return n&&(ue=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:ne(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})});le&&(ie=k?0===se.length?null:se.reduce((e,t,n)=>(e.push(t),n<se.length-1&&e.push(", "),e),[]):ae);let de,fe=q;!s&&G&&H&&(fe=J.clientWidth),de=void 0!==N?N:y?null:0;const pe=j.id||(E?"mui-component-select-"+E:void 0),he=(0,u.Z)({},t,{variant:Z,value:B,open:oe,error:b}),me=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,re.Z)(n),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,f.Z)(s,uh,t)})(he),ge=(0,u.Z)({},_.PaperProps,null==(r=_.slotProps)?void 0:r.paper),ye=(0,Sd.Z)();return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(ph,(0,u.Z)({ref:Q,tabIndex:de,role:"combobox","aria-controls":ye,"aria-disabled":y?"true":void 0,"aria-expanded":oe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[S,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:y||M?null:e=>{0===e.button&&(e.preventDefault(),$.current.focus(),ee(!0,e))},onBlur:e=>{!oe&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:E}}),C(e))},onFocus:O},j,{ownerState:he,className:(0,c.Z)(j.className,me.select,p),id:pe,children:yh(ie)?dh||(dh=(0,I.jsx)("span",{className:"notranslate",children:""})):ie})),(0,I.jsx)(mh,(0,u.Z)({"aria-invalid":b,value:Array.isArray(B)?B.join(","):B,name:E,ref:U,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(V(t.props.value),P&&P(e,t))},tabIndex:-1,disabled:y,className:me.nativeInput,autoFocus:a,ownerState:he},F)),(0,I.jsx)(hh,{as:w,className:me.icon,ownerState:he}),(0,I.jsx)(eh,(0,u.Z)({id:"menu-"+(E||""),anchorEl:J,open:oe,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,u.Z)({"aria-labelledby":S,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:ye},_.MenuListProps),slotProps:(0,u.Z)({},_.slotProps,{paper:(0,u.Z)({},ge,{style:(0,u.Z)({minWidth:fe},null!=ge?ge.style:null)})}),children:ce}))]})}));var bh=o(2066);const wh=(0,bh.Z)((0,I.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),xh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sh=["root"],_h={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,h.FO)(e)&&"variant"!==e,slot:"Root"},kh=(0,h.ZP)(nf,_h)(""),Eh=(0,h.ZP)(Sf,_h)(""),Ch=(0,h.ZP)(cf,_h)(""),Ph=e.forwardRef((function(t,n){const r=(0,m.Z)({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:p=wh,id:h,input:y,inputProps:v,label:b,labelId:w,MenuProps:x,multiple:S=!1,native:_=!1,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:T,variant:O="outlined"}=r,R=(0,l.Z)(r,xh),A=_?lh:vh,M=Md({props:r,muiFormControl:jd(),states:["variant","error"]}),D=M.variant||O,j=(0,u.Z)({},r,{variant:D,classes:a}),N=(e=>{const{classes:t}=e;return t})(j),L=(0,l.Z)(N,Sh),Z=y||{standard:(0,I.jsx)(kh,{ownerState:j}),outlined:(0,I.jsx)(Eh,{label:b,ownerState:j}),filled:(0,I.jsx)(Ch,{ownerState:j})}[D],F=(0,g.Z)(n,Z.ref);return(0,I.jsx)(e.Fragment,{children:e.cloneElement(Z,(0,u.Z)({inputComponent:A,inputProps:(0,u.Z)({children:i,error:M.error,IconComponent:p,variant:D,type:void 0,multiple:S},_?{id:h}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:x,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:(0,u.Z)({id:h},T)},v,{classes:v?(0,_d.Z)(L,v.classes):L},y?y.props.inputProps:{})},S&&_&&"outlined"===D?{notched:!0}:{},{ref:F,className:(0,c.Z)(Z.props.className,s,N.root)},!y&&{variant:D},R))})}));Ph.muiName="Select";const Th=Ph;function Oh(e){return(0,X.ZP)("MuiTextField",e)}(0,L.Z)("MuiTextField",["root"]);const Rh=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ah={standard:nf,filled:cf,outlined:Sf},Mh=(0,h.ZP)(Lf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dh=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:w,inputProps:x,InputProps:S,inputRef:_,label:k,maxRows:E,minRows:C,multiline:P=!1,name:T,onBlur:O,onChange:R,onFocus:A,placeholder:M,required:D=!1,rows:j,select:N=!1,SelectProps:L,type:Z,value:F,variant:B="outlined"}=n,V=(0,l.Z)(n,Rh),z=(0,u.Z)({},n,{autoFocus:o,color:s,disabled:p,error:h,fullWidth:y,multiline:P,required:D,select:N,variant:B}),W=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Oh,t)})(z);const U={};"outlined"===B&&(w&&void 0!==w.shrink&&(U.notched=w.shrink),U.label=k),N&&(L&&L.native||(U.id=void 0),U["aria-describedby"]=void 0);const $=(0,Sd.Z)(b),H=v&&$?$+"-helper-text":void 0,Y=k&&$?$+"-label":void 0,G=Ah[B],q=(0,I.jsx)(G,(0,u.Z)({"aria-describedby":H,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:y,multiline:P,name:T,rows:j,maxRows:E,minRows:C,type:Z,value:F,id:$,inputRef:_,onBlur:O,onChange:R,onFocus:A,placeholder:M,inputProps:x},U,S));return(0,I.jsxs)(Mh,(0,u.Z)({className:(0,c.Z)(W.root,a),disabled:p,error:h,fullWidth:y,ref:t,required:D,color:s,variant:B,ownerState:z},V,{children:[null!=k&&""!==k&&(0,I.jsx)(Mf,(0,u.Z)({htmlFor:$,id:Y},w,{children:k})),N?(0,I.jsx)(Th,(0,u.Z)({"aria-describedby":H,id:$,labelId:Y,value:F,input:q},L,{children:i})):q,v&&(0,I.jsx)(Wf,(0,u.Z)({id:H},g,{children:v}))]}))}));var jh=o(4048);function Ih(e){return(0,X.ZP)("MuiIconButton",e)}const Nh=(0,L.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Lh=["edge","children","className","color","disabled","disableFocusRipple","size"],Zh=(0,h.ZP)(ne,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color"+(0,re.Z)(n.color)],n.edge&&t["edge"+(0,re.Z)(n.edge)],t["size"+(0,re.Z)(n.size)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,u.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,u.Z)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,u.Z)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{["&."+Nh.disabled]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fh=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:d=!1,size:p="medium"}=n,h=(0,l.Z)(n,Lh),g=(0,u.Z)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:d,size:p}),y=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&"color"+(0,re.Z)(r),o&&"edge"+(0,re.Z)(o),"size"+(0,re.Z)(i)]};return(0,f.Z)(a,Ih,t)})(g);return(0,I.jsx)(Zh,(0,u.Z)({className:(0,c.Z)(y.root,i),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:g},h,{children:o}))}));const Bh=(0,L.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Vh=(0,L.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const zh=(0,L.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Wh(e){return(0,X.ZP)("MuiMenuItem",e)}const Uh=(0,L.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$h=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hh=(0,h.ZP)(ne,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:"1px solid "+(e.vars||e).palette.divider,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+Uh.selected]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+Uh.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&."+Uh.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["&."+Uh.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + ."+Bh.root]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + ."+Bh.inset]:{marginLeft:52},["& ."+zh.root]:{marginTop:0,marginBottom:0},["& ."+zh.inset]:{paddingLeft:36},["& ."+Vh.root]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,u.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vh.root} svg`]:{fontSize:"1.25rem"}}))),Yh=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:d=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:y,className:v}=r,b=(0,l.Z)(r,$h),w=e.useContext($f),x=e.useMemo(()=>({dense:a||w.dense||!1,disableGutters:d}),[w.dense,a,d]),S=e.useRef(null);(0,Id.Z)(()=>{o&&S.current&&S.current.focus()},[o]);const _=(0,u.Z)({},r,{dense:x.dense,divider:s,disableGutters:d}),k=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},l=(0,f.Z)(s,Wh,a);return(0,u.Z)({},a,l)})(r),E=(0,g.Z)(S,n);let C;return r.disabled||(C=void 0!==y?y:-1),(0,I.jsx)($f.Provider,{value:x,children:(0,I.jsx)(Hh,(0,u.Z)({ref:E,role:h,tabIndex:C,component:i,focusVisibleClassName:(0,c.Z)(k.focusVisible,p),className:(0,c.Z)(k.root,v)},b,{ownerState:_,classes:k}))})}));function Gh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kh=function(e,t){return{value:e.value,label:Xo.getLocalizedValue(t&&e.editlabel||e.label).value,description:e.description||e.editdescription?Xo.getLocalizedValue(t&&e.editdescription||e.description).value:void 0,seeAlso:e.seeAlso,mismatch:e.mismatch,original:e}},Xh=function(e){return Kh(e,!0)},Qh=function(t,n){return(0,e.useMemo)((function(){var e=t.getItem(),r=e.getChoices().map(n?Xh:Kh);e.hasStyle("preserveOrderOfChoices")||r.sort((function(e,t){return e.label<t.label?-1:1}));var o=t.getChoice();return null!=o&&o.mismatch&&r.unshift({value:o.value,label:o.value,mismatch:!0,original:o}),r}),[])},Jh=function(t,n){var r=n?Xh:Kh,o=Gh((0,e.useState)((function(){var e=t.getChoice()||null;return e?r(e):null})),2),i=o[0],a=o[1];return(0,e.useEffect)((function(){i&&i.original.load&&i.original.load((function(){a(r(i.original))}),(function(){a(r(i.original))}))}),[]),[i,a]},em=0,tm=function(t,n){return(0,e.useMemo)((function(){return bd(t,n)}))};function nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var om=function(t){var n=nm((0,e.useState)(t.binding.getLanguage()||""),2),r=n[0],o=n[1],i=(0,e.useMemo)((function(){var e=Xo.cloneArrayWithLabels(fi.getPrimaryLanguageList()),t=Xo.cloneArrayWithLabels(fi.getNonPrimaryLanguageList());return 0===e.length?t:e.concat([null],t)}));(0,e.useEffect)((function(){if(!t.binding.isValid()){var e=Go().locale();"string"==typeof e&&""!==e&&(o(e),t.binding.setLanguage(e,!0))}}),[]);(0,e.useEffect)((function(){t.context.clearLanguage=function(){o("")}}),[]);var a=tm(t.binding,t.context);return e.createElement(Lf,{className:"rdformsLangControl",variant:fi.materialVariant},e.createElement(Th,{inputProps:{"aria-labelledby":t.labelledby},value:r,disabled:!!a,onChange:function(e){t.binding.setLanguage(e.target.value),o(e.target.value)}},i.map((function(t){return null===t?e.createElement(Yh,{key:"_none",value:"_none",disabled:!0},"─────"):e.createElement(Yh,{key:t.value,value:t.value},t.label||" ")}))))},im=fi.editorRegistry;im.itemtype("text").register((function(t,n,r){var o=n.getItem(),i=o.getNodetype(),a=o.hasStyle("multiline"),s=o.hasStyle("externalLink"),l="LANGUAGE_LITERAL"===i||"PLAIN_LITERAL"===i,u=o.getPattern(),c=u?new RegExp(u):null,d=function(){var t=nm((0,e.useState)(n.getGist()),2),i=t[0],u=t[1],d=n.getValue();(0,e.useEffect)((function(){r.clear=function(){u(""),r.clearLanguage&&r.clearLanguage()}}),[]);var f=null===i||""===i||!c||c.test(i),p=r.view.getLabelIndex(n),h={value:i,"aria-labelledby":p,onChange:function(e){var t=e.target.value;!c||c.test(t)?n.setGist(t):n.setGist(""),u(t)}},m=r.view.messages,g=tm(n,r);return e.createElement(e.Fragment,null,e.createElement(Dh,{className:s||l?"rdformsTwoThirds":"",multiline:a,placeholder:o.getPlaceholder(),error:!f,disabled:!!g,helperText:f?"":o.getHelp()||"",variant:fi.materialVariant,inputProps:h}),s&&(null!=d||""===d)&&e.createElement(Fh,{"aria-label":m.openLinkExternally,disabled:!f,target:"_blank",href:d,title:d},e.createElement(jh.Z,null)),l?e.createElement(om,{binding:n,context:r,labelledby:p}):"")};t.appendChild(e.createElement(d,{key:n.getHash()}))}));var am=function(t){return function(n,r,o){var i=t?new RegExp(t):null,a=r.getItem(),s=function(){var t=nm((0,e.useState)(r.getGist()),2),n=t[0],s=t[1];(0,e.useEffect)((function(){o.clear=function(){return s("")}}),[]);var l=!n||!i||i.test(n),u={value:n,"aria-labelledby":o.view.getLabelIndex(r),onChange:function(e){var t=e.target.value;!i||i.test(t)?r.setGist(t):r.setGist(""),s(t)}};return e.createElement(Dh,{error:!l,placeholder:a.getPlaceholder(),helperText:l?"":a.getHelp()||"",variant:fi.materialVariant,inputProps:u})};n.appendChild(e.createElement(s,{key:r.getHash()}))}};function sm(){return(sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return um(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return um(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function um(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}im.itemtype("text").datatype("xsd:integer").register(am("^-?\\d+$")),im.itemtype("text").datatype("xsd:decimal").register(am("^-?(\\d+(\\.\\d+)?)$"));var cm=fi.presenterRegistry,dm=function(e){return function(t,n,r){var o,i=n.getChoice(),a=r.view instanceof Jc;i&&(a&&i.editdescription?o=Xo.getLocalizedValue(i.editdescription).value:i.description&&(o=Xo.getLocalizedValue(i.description).value),e(t,n,i,o,a))}};cm.itemtype("choice").style("image").register(dm((function(t,n,r,o){t.appendChild(e.createElement("img",{key:n.getHash(),className:"rdformsImage",title:o||r.value,src:r.value}))}))),cm.itemtype("choice").style("stars").register(dm((function(t,n,r){isNaN(parseInt(r.value,10))||t.appendChild(e.createElement("span",{key:n.getHash(),className:"rdformsStar"}))})));var fm=function(e,t){return Xo.getLocalizedValue(t&&e.editlabel||e.label)};cm.itemtype("choice").register(dm((function(t,n,r,o,i){var a=n.getItem(),s=o||r.seeAlso||r.value;if(a.hasStaticChoices()&&!a.hasStyle("externalLink")||a.hasStyle("noLink"))t.appendChild(e.createElement((function(){var t=lm((0,e.useState)(fm(r,i)),2),o=t[0],a=t[1];(0,e.useEffect)((function(){null!=r.load&&r.load((function(){a(fm(r,i))}))}),[]);var l=o.lang?{lang:o.lang}:{};return e.createElement("div",sm({key:n.getHash()},l,{title:s}),o.value)})));else{var l,u=(l=a.hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,n)||{}:Jo.attachLinkBehaviour(t,n)||{}).component||null;delete l.component,t.appendChild(e.createElement((function(){var t=lm((0,e.useState)(fm(r,i)),2),n=t[0],o=t[1];return(0,e.useEffect)((function(){null!=r.load&&r.load((function(){o(fm(r,i))}))}),[]),n.lang&&(l.lang=n.lang),e.createElement("a",sm({},l,{title:s,href:r.seeAlso||r.value}),e.createElement("span",null,n.value),u)}),{key:n.getHash()}))}})));o(7872);function pm(e){return(0,X.ZP)("PrivateSwitchBase",e)}(0,L.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hm=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mm=(0,h.ZP)(ne)(({ownerState:e})=>(0,u.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),gm=(0,h.ZP)("input",{shouldForwardProp:h.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ym=e.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:y,name:v,onBlur:b,onChange:w,onFocus:x,readOnly:S,required:_=!1,tabIndex:k,type:E,value:C}=e,P=(0,l.Z)(e,hm),[T,O]=(0,ls.Z)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=jd();let A=s;R&&void 0===A&&(A=R.disabled);const M="checkbox"===E||"radio"===E,D=(0,u.Z)({},e,{checked:T,disabled:A,disableFocusRipple:d,edge:p}),j=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&"edge"+(0,re.Z)(o)],input:["input"]};return(0,f.Z)(i,pm,t)})(D);return(0,I.jsxs)(mm,(0,u.Z)({component:"span",className:(0,c.Z)(j.root,i),centerRipple:!0,focusRipple:!d,disabled:A,tabIndex:null,role:void 0,onFocus:e=>{x&&x(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{b&&b(e),R&&R.onBlur&&R.onBlur(e)},ownerState:D,ref:t},P,{children:[(0,I.jsx)(gm,(0,u.Z)({autoFocus:n,checked:r,defaultChecked:a,className:j.input,disabled:A,id:M?m:void 0,name:v,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;O(t),w&&w(e,t)},readOnly:S,ref:y,required:_,ownerState:D,tabIndex:k,type:E},"checkbox"===E&&void 0===C?{}:{value:C},g)),T?o:h]}))})),vm=(0,bh.Z)((0,I.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),bm=(0,bh.Z)((0,I.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),wm=(0,h.ZP)("span",{shouldForwardProp:h.FO})({position:"relative",display:"flex"}),xm=(0,h.ZP)(vm)({transform:"scale(1)"}),Sm=(0,h.ZP)(bm)(({theme:e,ownerState:t})=>(0,u.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));const _m=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=(0,u.Z)({},e,{checked:t});return(0,I.jsxs)(wm,{className:n.root,ownerState:o,children:[(0,I.jsx)(xm,{fontSize:r,className:n.background,ownerState:o}),(0,I.jsx)(Sm,{fontSize:r,className:n.dot,ownerState:o})]})};var km=o(7450);const Em=e.createContext(void 0);function Cm(e){return(0,X.ZP)("MuiRadio",e)}const Pm=(0,L.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Tm=["checked","checkedIcon","color","icon","name","onChange","size","className"],Om=(0,h.ZP)(ym,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t["size"+(0,re.Z)(n.size)],t["color"+(0,re.Z)(n.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{["&."+Pm.checked]:{color:(e.vars||e).palette[t.color].main}},{["&."+Pm.disabled]:{color:(e.vars||e).palette.action.disabled}}));const Rm=(0,I.jsx)(_m,{checked:!0}),Am=(0,I.jsx)(_m,{}),Mm=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=Rm,color:d="primary",icon:p=Am,name:h,onChange:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Tm),w=(0,u.Z)({},i,{color:d,size:y}),x=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root","color"+(0,re.Z)(n),"medium"!==r&&"size"+(0,re.Z)(r)]};return(0,u.Z)({},t,(0,f.Z)(o,Cm,t))})(w),S=e.useContext(Em);let _=a;const k=(0,km.Z)(g,S&&S.onChange);let E=h;var C,P;return S&&(void 0===_&&(C=S.value,_="object"==typeof(P=i.value)&&null!==P?C===P:String(C)===String(P)),void 0===E&&(E=S.name)),(0,I.jsx)(Om,(0,u.Z)({type:"radio",icon:e.cloneElement(p,{fontSize:null!=(r=Am.props.fontSize)?r:y}),checkedIcon:e.cloneElement(s,{fontSize:null!=(o=Rm.props.fontSize)?o:y}),ownerState:w,classes:x,name:E,checked:_,onChange:k,ref:n,className:(0,c.Z)(x.root,v)},b))}));function Dm(e){return(0,X.ZP)("MuiFormGroup",e)}(0,L.Z)("MuiFormGroup",["root","row","error"]);const jm=["className","row"],Im=(0,h.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Nm=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormGroup"}),{className:r,row:o=!1}=n,i=(0,l.Z)(n,jm),a=Md({props:n,muiFormControl:jd(),states:["error"]}),s=(0,u.Z)({},n,{row:o,error:a.error}),d=(e=>{const{classes:t,row:n,error:r}=e,o={root:["root",n&&"row",r&&"error"]};return(0,f.Z)(o,Dm,t)})(s);return(0,I.jsx)(Im,(0,u.Z)({className:(0,c.Z)(d.root,r),ownerState:s,ref:t},i))})),Lm=["actions","children","defaultValue","name","onChange","value"],Zm=e.forwardRef((function(t,n){const{actions:r,children:o,defaultValue:i,name:a,onChange:s,value:c}=t,d=(0,l.Z)(t,Lm),f=e.useRef(null),[p,h]=(0,ls.Z)({controlled:c,default:i,name:"RadioGroup"});e.useImperativeHandle(r,()=>({focus:()=>{let e=f.current.querySelector("input:not(:disabled):checked");e||(e=f.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);const m=(0,g.Z)(n,f),y=(0,ss.Z)(a),v=e.useMemo(()=>({name:y,onChange(e){h(e.target.value),s&&s(e,e.target.value)},value:p}),[y,s,h,p]);return(0,I.jsx)(Em.Provider,{value:v,children:(0,I.jsx)(Nm,(0,u.Z)({role:"radiogroup",ref:m},d,{children:o}))})}));const Fm=(0,o(2360).ZP)();var Bm=o(9628),Vm=o(8010);const zm=["sx"];function Wm(e){const{sx:t}=e,n=(0,l.Z)(e,zm),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Vm.Z;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,_d.P)(n)?(0,u.Z)({},r,n):r}:(0,u.Z)({},r,t),(0,u.Z)({},o,{sx:i})}var Um=o(6268),$m=o(5408),Hm=o(2605);const Ym=["component","direction","spacing","divider","children","className","useFlexGap"],Gm=(0,Um.Z)(),qm=Fm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Km(e){return(0,Bm.Z)({props:e,name:"MuiStack",defaultTheme:Gm})}function Xm(t,n){const r=e.Children.toArray(t).filter(Boolean);return r.reduce((t,o,i)=>(t.push(o),i<r.length-1&&t.push(e.cloneElement(n,{key:"separator-"+i})),t),[])}const Qm=({ownerState:e,theme:t})=>{let n=(0,u.Z)({display:"flex",flexDirection:"column"},(0,$m.k9)({theme:t},(0,$m.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=(0,Hm.hB)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=(0,$m.P$)({values:e.direction,base:o}),a=(0,$m.P$)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});const s=(t,n)=>{return e.useFlexGap?{gap:(0,Hm.NA)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin"+(o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])]:(0,Hm.NA)(r,t)}};var o};n=(0,_d.Z)(n,(0,$m.k9)({theme:t},a,s))}return n=(0,$m.dt)(t.breakpoints,n),n};const Jm=function(t={}){const{createStyledComponent:n=qm,useThemeProps:r=Km,componentName:o="MuiStack"}=t,i=n(Qm);return e.forwardRef((function(e,t){const n=Wm(r(e)),{component:a="div",direction:s="column",spacing:d=0,divider:p,children:h,className:m,useFlexGap:g=!1}=n,y=(0,l.Z)(n,Ym),v={direction:s,spacing:d,useFlexGap:g},b=(0,f.Z)({root:["root"]},e=>(0,X.ZP)(o,e),{});return(0,I.jsx)(i,(0,u.Z)({as:a,ownerState:v,ref:t,className:(0,c.Z)(b.root,m)},y,{children:p?Xm(h,p):h}))}))}({createStyledComponent:(0,h.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,m.Z)({props:e,name:"MuiStack"})});function eg(e){return(0,X.ZP)("MuiTypography",e)}(0,L.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ng=(0,h.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align"+(0,re.Z)(n.align)],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),rg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},og={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ig=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTypography"}),r=(e=>og[e]||e)(n.color),o=Wm((0,u.Z)({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=rg}=o,v=(0,l.Z)(o,tg),b=(0,u.Z)({},o,{align:i,color:r,className:a,component:s,gutterBottom:d,noWrap:p,paragraph:h,variant:g,variantMapping:y}),w=s||(h?"p":y[g]||rg[g])||"span",x=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align"+(0,re.Z)(t),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,f.Z)(s,eg,a)})(b);return(0,I.jsx)(ng,(0,u.Z)({as:w,ref:t,ownerState:b,className:(0,c.Z)(x.root,a)},v))}));function ag(e){return(0,X.ZP)("MuiFormControlLabel",e)}const sg=(0,L.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lg=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ug=(0,h.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& ."+sg.label]:t.label},t.root,t["labelPlacement"+(0,re.Z)(n.labelPlacement)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&."+sg.disabled]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& ."+sg.label]:{["&."+sg.disabled]:{color:(e.vars||e).palette.text.disabled}}})),cg=(0,h.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+sg.error]:{color:(e.vars||e).palette.error.main}})),dg=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:d,disabled:p,disableTypography:h,label:g,labelPlacement:y="end",required:v,slotProps:b={}}=i,w=(0,l.Z)(i,lg),x=jd(),S=null!=(r=null!=p?p:d.props.disabled)?r:null==x?void 0:x.disabled,_=null!=v?v:d.props.required,k={disabled:S,required:_};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===d.props[e]&&void 0!==i[e]&&(k[e]=i[e])});const E=Md({props:i,muiFormControl:x,states:["error"]}),C=(0,u.Z)({},i,{disabled:S,labelPlacement:y,required:_,error:E.error}),P=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled","labelPlacement"+(0,re.Z)(r),o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,f.Z)(a,ag,t)})(C),T=null!=(o=b.typography)?o:s.typography;let O=g;return null==O||O.type===ig||h||(O=(0,I.jsx)(ig,(0,u.Z)({component:"span"},T,{className:(0,c.Z)(P.label,null==T?void 0:T.className),children:O}))),(0,I.jsxs)(ug,(0,u.Z)({className:(0,c.Z)(P.root,a),ownerState:C,ref:n},w,{children:[e.cloneElement(d,k),_?(0,I.jsxs)(Jm,{display:"block",children:[O,(0,I.jsxs)(cg,{ownerState:C,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):O]}))}));function fg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hg(){return(hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var mg=function(t){return e.createElement(dg,hg({disabled:t.disabled,label:t.choice.label,value:t.choice.value,control:e.createElement(Mm,null)},t.choice.mismatch?{className:"mismatch"}:{},{title:t.choice.description||t.choice.seeAlso||t.choice.value}))};function gg(t){var n,r=t.binding,o=r.getItem(),i=(0,e.useMemo)((function(){return"_rdforms_".concat(em+=1)}),[]),a=Qh(r,!0),s=fg((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),l=s[0],u=s[1],c=fg((0,e.useState)((function(){var e=r.getChoice();return e?e.value:""})),2),d=c[0],f=c[1],p=o.hasStyle("verticalRadioButtons")?{}:{row:!0};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]);(0,e.useEffect)((function(){t.context.clear=function(){f(""),u(!1)}}),[]);var h=tm(r,t.context);return e.createElement(e.Fragment,null,e.createElement(Lf,{component:"fieldset"},e.createElement(Zm,hg({},p,{key:"radio","aria-label":o.getEditLabel()||o.getLabel(),name:i,value:d,onChange:function(e){var t=e.target.value,n=a.find((function(e){return e.value===t}));n?(r.setChoice(n.original),u(!0===n.original.mismatch)):(r.setChoice(null),u(!1)),f(t)}}),a.map((function(t){return e.createElement(mg,{key:t.value,disabled:!!h,choice:t})})))),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}const yg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),bg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function wg(e){return(0,X.ZP)("MuiCheckbox",e)}const xg=(0,L.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Sg=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],_g=(0,h.ZP)(ym,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size"+(0,re.Z)(n.size)],"default"!==n.color&&t["color"+(0,re.Z)(n.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${xg.checked}, &.${xg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},["&."+xg.disabled]:{color:(e.vars||e).palette.action.disabled}})),kg=(0,I.jsx)(vg,{}),Eg=(0,I.jsx)(yg,{}),Cg=(0,I.jsx)(bg,{}),Pg=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiCheckbox"}),{checkedIcon:a=kg,color:s="primary",icon:d=Eg,indeterminate:p=!1,indeterminateIcon:h=Cg,inputProps:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Sg),w=p?h:d,x=p?h:a,S=(0,u.Z)({},i,{color:s,indeterminate:p,size:y}),_=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate","color"+(0,re.Z)(r),"size"+(0,re.Z)(o)]},a=(0,f.Z)(i,wg,t);return(0,u.Z)({},t,a)})(S);return(0,I.jsx)(_g,(0,u.Z)({type:"checkbox",inputProps:(0,u.Z)({"data-indeterminate":p},g),icon:e.cloneElement(w,{fontSize:null!=(r=w.props.fontSize)?r:y}),checkedIcon:e.cloneElement(x,{fontSize:null!=(o=x.props.fontSize)?o:y}),ownerState:S,ref:n,className:(0,c.Z)(_.root,v)},b,{classes:_}))}));function Tg(){return(Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ag=function(t){var n=t.choice,r=t.binding,o=t.onChoiceChange,i=Og(e.useState(n.value===r.getValue()),2),a=i[0],s=i[1];return e.createElement(dg,Tg({disabled:t.disabled,label:n.label,control:e.createElement(Pg,{checked:a,onChange:function(e){r.setChoice(e.target.checked?n.original:null),s(e.target.checked),o()}})},n.mismatch?{className:"mismatch"}:{},{title:n.description||n.seeAlso||n.value}))};function Mg(t){var n,r=Og(e.useState(0),2),o=r[0],i=r[1],a=t.binding,s=a.getItem(),l=Qh(a,!0),u=(0,e.useMemo)((function(){var e=a.getParent(),n={};e.getChildBindingsFor(s).forEach((function(e){return n[e.getValue()]=e}));var r=l.map((function(r){var o=n[r.value];return o?(delete n[r.value],[r,o,bd(o,t.context)]):[r,zu(e,s),void 0]}));return Object.values(n).forEach((function(e){var t=e.getChoice();t&&r.push([t,e])})),r})),c=Og((0,e.useState)(!0===(null===(n=a.getChoice())||void 0===n?void 0:n.mismatch)),2),d=c[0],f=c[1],p=s.hasStyle("verticalCheckboxes")?{}:{row:!0},h=function(){var e=void 0!==u.find((function(e){return e[1].getChoice()&&e[1].getChoice().mismatch}));e!==d&&f(e)};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",d)}),[d]),t.context.clear=function(){u.forEach((function(e){return e[1].setChoice(null)})),f(!1),i(o+1)};var m=tm(a,t.context);return e.createElement(e.Fragment,null,e.createElement(Nm,p,u.map((function(t){return e.createElement(Ag,{key:"".concat(o,"-").concat(t[1].getHash()),choice:t[0],binding:t[1],disabled:!!t[2]||!!m,onChoiceChange:h})}))),d&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}var Dg=o(9032);const jg=t=>{const n=e.useRef({});return e.useEffect(()=>{n.current=t}),n.current};function Ig(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Ng(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Lg=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=Ig(u));const c=u?e.filter(e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Ig(r)),"start"===o?0===r.indexOf(u):r.indexOf(u)>-1}):e;return"number"==typeof r?c.slice(0,r):c}}(),Zg=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Fg(t){const{unstable_isActiveElementInListbox:n=Zg,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!t.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:f=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:v=Lg,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:_=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:k,handleHomeEndKeys:E=!t.freeSolo,id:C,includeInputInList:P=!1,inputValue:T,isOptionEqualToValue:O=((e,t)=>e===t),multiple:R=!1,onChange:A,onClose:M,onHighlightChange:D,onInputChange:j,onOpen:I,open:N,openOnFocus:L=!1,options:Z,readOnly:F=!1,selectOnFocus:B=!t.freeSolo,value:V}=t,z=(0,Sd.Z)(C);let W=_;W=e=>{const t=_(e);return"string"!=typeof t?String(t):t};const U=e.useRef(!1),$=e.useRef(!0),H=e.useRef(null),Y=e.useRef(null),[G,q]=e.useState(null),[K,X]=e.useState(-1),Q=i?0:-1,J=e.useRef(Q),[ee,te]=(0,Dg.Z)({controlled:V,default:f,name:d}),[ne,re]=(0,Dg.Z)({controlled:T,default:"",name:d,state:"inputValue"}),[oe,ie]=e.useState(!1),ae=e.useCallback((e,t)=>{if(!(R?ee.length<t.length:null!==t)&&!l)return;let n;if(R)n="";else if(null==t)n="";else{const e=W(t);n="string"==typeof e?e:""}ne!==n&&(re(n),j&&j(e,n,"reset"))},[W,ne,R,j,re,l,ee]),[se,le]=(0,Dg.Z)({controlled:N,default:!1,name:d,state:"open"}),[ue,ce]=e.useState(!0),de=!R&&null!=ee&&ne===W(ee),fe=se&&!F,pe=fe?v(Z.filter(e=>!b||!(R?ee:[ee]).some(t=>null!==t&&O(e,t))),{inputValue:de&&ue?"":ne,getOptionLabel:W}):[],he=jg({filteredOptions:pe,value:ee,inputValue:ne});e.useEffect(()=>{const e=ee!==he.value;oe&&!e||w&&!e||ae(null,ee)},[ee,ae,oe,he.value,w]);const me=se&&pe.length>0&&!F;const ge=(0,ws.Z)(e=>{-1===e?H.current.focus():G.querySelector(`[data-tag-index="${e}"]`).focus()});e.useEffect(()=>{R&&K>ee.length-1&&(X(-1),ge(-1))},[ee,R,K,ge]);const ye=(0,ws.Z)(({event:e,index:t,reason:n="auto"})=>{if(J.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),D&&D(e,-1===t?null:pe[t],n),!Y.current)return;const o=Y.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(r+"-focused"),o.classList.remove(r+"-focusVisible"));let i=Y.current;if("listbox"!==Y.current.getAttribute("role")&&(i=Y.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=Y.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(r+"-focused"),"keyboard"===n&&a.classList.add(r+"-focusVisible"),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(k?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(k?1.3:0))}}),ve=(0,ws.Z)(({event:e,diff:t,direction:n="next",reason:r="auto"})=>{if(!fe)return;const i=function(e,t){if(!Y.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=Y.current.querySelector(`[data-option-index="${n}"]`),o=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&P?-1:y&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&P?-1:y||Math.abs(t)>1?e:0:n})(),n);if(ye({index:i,reason:r,event:e}),o&&"reset"!==t)if(-1===i)H.current.value=ne;else{const e=W(pe[i]);H.current.value=e;0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&H.current.setSelectionRange(ne.length,e.length)}}),be=e.useCallback(()=>{if(!fe)return;if((()=>{if(-1!==J.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===ne&&(R?ee.length===he.value.length&&he.value.every((e,t)=>W(ee[t])===W(e)):(e=he.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=he.filteredOptions[J.current];if(e){if(pe.some(t=>W(t)===W(e)))return!0}}var e,t;return!1})())return;const e=R?ee[0]:ee;if(0!==pe.length&&null!=e){if(Y.current)if(null==e)J.current>=pe.length-1?ye({index:pe.length-1}):ye({index:J.current});else{const t=pe[J.current];if(R&&t&&-1!==Ng(ee,e=>O(t,e)))return;const n=Ng(pe,t=>O(t,e));-1===n?ve({diff:"reset"}):ye({index:n})}}else ve({diff:"reset"})},[pe.length,!R&&ee,b,ve,ye,fe,ne,R]),we=(0,ws.Z)(e=>{(0,Fa.Z)(Y,e),e&&be()});e.useEffect(()=>{be()},[be]);const xe=e=>{se||(le(!0),ce(!0),I&&I(e))},Se=(e,t)=>{se&&(le(!1),M&&M(e,t))},_e=(e,t,n,r)=>{if(R){if(ee.length===t.length&&ee.every((e,n)=>e===t[n]))return}else if(ee===t)return;A&&A(e,t,n,r),te(t)},ke=e.useRef(!1),Ee=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(R){i=Array.isArray(ee)?ee.slice():[];const e=Ng(i,e=>O(t,e));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ae(e,i),_e(e,i,o,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||Se(e,o),(!0===s||"touch"===s&&ke.current||"mouse"===s&&!ke.current)&&H.current.blur()};const Ce=(e,t)=>{if(!R)return;""===ne&&Se(e,"toggleInput");let n=K;-1===K?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=G.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),ge(n)},Pe=e=>{U.current=!0,re(""),j&&j(e,"","clear"),_e(e,R?[]:null,"clear")},Te=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":fe&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==J.current&&fe){const e=pe[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ee(t,e,"selectOption"),o&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else w&&""!==ne&&!1===de&&(R&&t.preventDefault(),Ee(t,ne,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Se(t,"escape")):c&&(""!==ne||R&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(R&&!F&&""===ne&&ee.length>0){const e=-1===K?ee.length-1:K,n=ee.slice();n.splice(e,1),_e(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(R&&!F&&""===ne&&ee.length>0&&-1!==K){const e=K,n=ee.slice();n.splice(e,1),_e(t,n,"removeOption",{option:ee[e]})}}},Oe=e=>{ie(!0),L&&!U.current&&xe(e)},Re=e=>{n(Y)?H.current.focus():(ie(!1),$.current=!0,U.current=!1,a&&-1!==J.current&&fe?Ee(e,pe[J.current],"blur"):a&&w&&""!==ne?Ee(e,ne,"blur","freeSolo"):l&&ae(e,ee),Se(e,"blur"))},Ae=e=>{const t=e.target.value;ne!==t&&(re(t),ce(!1),j&&j(e,t,"input")),""===t?p||R||_e(e,null,"clear"):xe(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ye({event:e,index:t,reason:"mouse"})},De=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),ke.current=!1},Ie=e=>t=>{const n=ee.slice();n.splice(e,1),_e(t,n,"removeOption",{option:ee[e]})},Ne=e=>{se?Se(e,"toggleInput"):xe(e)},Le=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==z&&e.preventDefault()},Ze=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&$.current&&H.current.selectionEnd-H.current.selectionStart==0&&H.current.select(),$.current=!1)},Fe=e=>{m||""!==ne&&se||Ne(e)};let Be=w&&ne.length>0;Be=Be||(R?ee.length>0:null!==ee);let Ve=pe;if(k){new Map;Ve=pe.reduce((e,t,n)=>{const r=k(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])}return m&&oe&&Re(),{getRootProps:(e={})=>(0,u.Z)({"aria-owns":me?z+"-listbox":null},e,{onKeyDown:Te(e),onMouseDown:Le,onClick:Ze}),getInputLabelProps:()=>({id:z+"-label",htmlFor:z}),getInputProps:()=>({id:z,value:ne,onBlur:Re,onFocus:Oe,onChange:Ae,onMouseDown:Fe,"aria-activedescendant":fe?"":null,"aria-autocomplete":o?"both":"list","aria-controls":me?z+"-listbox":void 0,"aria-expanded":me,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>(0,u.Z)({key:e,"data-tag-index":e,tabIndex:-1},!F&&{onDelete:Ie(e)}),getListboxProps:()=>({role:"listbox",id:z+"-listbox","aria-labelledby":z+"-label",ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(R?ee:[ee]).some(e=>null!=e&&O(t,e)),o=!!x&&x(t);return{key:null!=(n=null==S?void 0:S(t))?n:W(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseMove:Me,onClick:je,onTouchStart:De,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:z,inputValue:ne,value:ee,dirty:Be,expanded:fe&&G,popupOpen:fe,focused:oe||-1!==K,anchorEl:G,setAnchorEl:q,focusedTag:K,groupedOptions:Ve}}function Bg(e){return(0,X.ZP)("MuiListSubheader",e)}(0,L.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Vg=["className","color","component","disableGutters","disableSticky","inset"],zg=(0,h.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color"+(0,re.Z)(n.color)],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,u.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Wg=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:d=!1}=n,p=(0,l.Z)(n,Vg),h=(0,u.Z)({},n,{color:o,component:i,disableGutters:a,disableSticky:s,inset:d}),g=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root","default"!==n&&"color"+(0,re.Z)(n),!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,f.Z)(a,Bg,t)})(h);return(0,I.jsx)(zg,(0,u.Z)({as:i,className:(0,c.Z)(g.root,r),ref:t,ownerState:h},p))}));Wg.muiSkipListHighlight=!0;const Ug=Wg,$g=(0,bh.Z)((0,I.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Hg(e){return(0,X.ZP)("MuiChip",e)}const Yg=(0,L.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Gg=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qg=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{["& ."+Yg.avatar]:t.avatar},{["& ."+Yg.avatar]:t["avatar"+(0,re.Z)(s)]},{["& ."+Yg.avatar]:t["avatarColor"+(0,re.Z)(r)]},{["& ."+Yg.icon]:t.icon},{["& ."+Yg.icon]:t["icon"+(0,re.Z)(s)]},{["& ."+Yg.icon]:t["iconColor"+(0,re.Z)(o)]},{["& ."+Yg.deleteIcon]:t.deleteIcon},{["& ."+Yg.deleteIcon]:t["deleteIcon"+(0,re.Z)(s)]},{["& ."+Yg.deleteIcon]:t["deleteIconColor"+(0,re.Z)(r)]},{["& ."+Yg.deleteIcon]:t[`deleteIcon${(0,re.Z)(l)}Color${(0,re.Z)(r)}`]},t.root,t["size"+(0,re.Z)(s)],t["color"+(0,re.Z)(r)],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${(0,re.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t["deletableColor"+(0,re.Z)(r)],t[l],t[`${l}${(0,re.Z)(r)}`]]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,u.Z)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&."+Yg.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["& ."+Yg.avatar]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},["& ."+Yg.avatarColorPrimary]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},["& ."+Yg.avatarColorSecondary]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},["& ."+Yg.avatarSmall]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},["& ."+Yg.icon]:(0,u.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,u.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),["& ."+Yg.deleteIcon]:(0,u.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,p.Fq)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,p.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{["&."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>(0,u.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{["&:hover, &."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>(0,u.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?"1px solid "+e.vars.palette.Chip.defaultBorder:"1px solid "+("light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]),[`&.${Yg.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},["&."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["& ."+Yg.avatar]:{marginLeft:4},["& ."+Yg.avatarSmall]:{marginLeft:2},["& ."+Yg.icon]:{marginLeft:4},["& ."+Yg.iconSmall]:{marginLeft:2},["& ."+Yg.deleteIcon]:{marginRight:5},["& ."+Yg.deleteIconSmall]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:"1px solid "+(e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7)),[`&.${Yg.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},["& ."+Yg.deleteIcon]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Kg=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t["label"+(0,re.Z)(r)]]}})(({ownerState:e})=>(0,u.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function Xg(e){return"Backspace"===e.key||"Delete"===e.key}const Qg=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:d,deleteIcon:p,disabled:h=!1,icon:y,label:v,onClick:b,onDelete:w,onKeyDown:x,onKeyUp:S,size:_="medium",variant:k="filled",tabIndex:E,skipFocusWhenDisabled:C=!1}=r,P=(0,l.Z)(r,Gg),T=e.useRef(null),O=(0,g.Z)(T,n),R=e=>{e.stopPropagation(),w&&w(e)},A=!(!1===a||!b)||a,M=A||w?ne:d||"div",D=(0,u.Z)({},r,{component:M,disabled:h,size:_,color:s,iconColor:e.isValidElement(y)&&y.props.color||s,onDelete:!!w,clickable:A,variant:k}),j=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled","size"+(0,re.Z)(r),"color"+(0,re.Z)(o),s&&"clickable",s&&"clickableColor"+(0,re.Z)(o),a&&"deletable",a&&"deletableColor"+(0,re.Z)(o),`${l}${(0,re.Z)(o)}`],label:["label","label"+(0,re.Z)(r)],avatar:["avatar","avatar"+(0,re.Z)(r),"avatarColor"+(0,re.Z)(o)],icon:["icon","icon"+(0,re.Z)(r),"iconColor"+(0,re.Z)(i)],deleteIcon:["deleteIcon","deleteIcon"+(0,re.Z)(r),"deleteIconColor"+(0,re.Z)(o),`deleteIcon${(0,re.Z)(l)}Color${(0,re.Z)(o)}`]};return(0,f.Z)(u,Hg,t)})(D),N=M===ne?(0,u.Z)({component:d||"div",focusVisibleClassName:j.focusVisible},w&&{disableRipple:!0}):{};let L=null;w&&(L=p&&e.isValidElement(p)?e.cloneElement(p,{className:(0,c.Z)(p.props.className,j.deleteIcon),onClick:R}):(0,I.jsx)($g,{className:(0,c.Z)(j.deleteIcon),onClick:R}));let Z=null;o&&e.isValidElement(o)&&(Z=e.cloneElement(o,{className:(0,c.Z)(j.avatar,o.props.className)}));let F=null;return y&&e.isValidElement(y)&&(F=e.cloneElement(y,{className:(0,c.Z)(j.icon,y.props.className)})),(0,I.jsxs)(qg,(0,u.Z)({as:M,className:(0,c.Z)(j.root,i),disabled:!(!A||!h)||void 0,onClick:b,onKeyDown:e=>{e.currentTarget===e.target&&Xg(e)&&e.preventDefault(),x&&x(e)},onKeyUp:e=>{e.currentTarget===e.target&&(w&&Xg(e)?w(e):"Escape"===e.key&&T.current&&T.current.blur()),S&&S(e)},ref:O,tabIndex:C&&h?-1:E,ownerState:D},N,P,{children:[Z||F,(0,I.jsx)(Kg,{className:(0,c.Z)(j.label),ownerState:D,children:v}),L]}))})),Jg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function ey(e){return(0,X.ZP)("MuiAutocomplete",e)}const ty=(0,L.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ny,ry;const oy=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iy=["ref"],ay=["key"],sy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{["& ."+ty.tag]:t.tag},{["& ."+ty.tag]:t["tagSize"+(0,re.Z)(s)]},{["& ."+ty.inputRoot]:t.inputRoot},{["& ."+ty.input]:t.input},{["& ."+ty.input]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>(0,u.Z)({[`&.${ty.focused} .${ty.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover ."+ty.clearIndicator]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{["& ."+ty.tag]:(0,u.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& ."+ty.inputRoot]:{flexWrap:"wrap",[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:30},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:56},["& ."+ty.input]:{width:0,minWidth:30}},["& ."+Xd.root]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Xd.root}.${zd.sizeSmall}`]:{["& ."+Xd.input]:{padding:"2px 4px 3px 0"}},["& ."+gf.root]:{padding:9,[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:39},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:65},["& ."+ty.input]:{padding:"7.5px 4px 7.5px 5px"},["& ."+ty.endAdornment]:{right:9}},[`& .${gf.root}.${zd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& ."+ty.input]:{padding:"2.5px 4px 2.5px 8px"}},["& ."+of.root]:{paddingTop:19,paddingLeft:8,[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:39},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:65},["& ."+of.input]:{padding:"7px 4px"},["& ."+ty.endAdornment]:{right:9}},[`& .${of.root}.${zd.sizeSmall}`]:{paddingBottom:1,["& ."+of.input]:{padding:"2.5px 4px"}},["& ."+zd.hiddenLabel]:{paddingTop:8},[`& .${of.root}.${zd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,["& ."+ty.input]:{paddingTop:16,paddingBottom:17}},[`& .${of.root}.${zd.hiddenLabel}.${zd.sizeSmall}`]:{["& ."+ty.input]:{paddingTop:8,paddingBottom:9}},["& ."+ty.input]:(0,u.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),ly=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uy=(0,h.ZP)(Fh,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),cy=(0,h.ZP)(Fh,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>(0,u.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),dy=(0,h.ZP)(as,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& ."+ty.option]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),fy=(0,h.ZP)(jp,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,u.Z)({},e.typography.body1,{overflow:"auto"})),py=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),hy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),my=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& ."+ty.option]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},["&."+ty.focused]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["&."+ty.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+ty.focused]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},["&."+ty.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gy=(0,h.ZP)(Ug,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yy=(0,h.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& ."+ty.option]:{paddingLeft:24}}),vy=e.forwardRef((function(t,n){var r,o,i,a;const s=(0,m.Z)({props:t,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:p=!1,autoSelect:h=!1,blurOnSelect:y=!1,ChipProps:v,className:b,clearIcon:w=ny||(ny=(0,I.jsx)(Jg,{fontSize:"small"})),clearOnBlur:x=!s.freeSolo,clearOnEscape:S=!1,clearText:_="Clear",closeText:k="Close",componentsProps:E={},defaultValue:C=(s.multiple?[]:null),disableClearable:P=!1,disableCloseOnSelect:T=!1,disabled:O=!1,disabledItemsFocusable:R=!1,disableListWrap:A=!1,disablePortal:M=!1,filterSelectedOptions:D=!1,forcePopupIcon:j="auto",freeSolo:N=!1,fullWidth:L=!1,getLimitTagsText:Z=(e=>"+"+e),getOptionLabel:F,groupBy:B,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:U="ul",ListboxProps:$,loading:H=!1,loadingText:Y="Loading…",multiple:G=!1,noOptionsText:q="No options",openOnFocus:K=!1,openText:X="Open",PaperComponent:Q=jp,PopperComponent:J=as,popupIcon:ee=ry||(ry=(0,I.jsx)(wh,{})),readOnly:te=!1,renderGroup:ne,renderInput:oe,renderOption:ie,renderTags:ae,selectOnFocus:se=!s.freeSolo,size:le="medium",slotProps:ue={}}=s,ce=(0,l.Z)(s,oy),{getRootProps:de,getInputProps:fe,getInputLabelProps:pe,getPopupIndicatorProps:he,getClearProps:me,getTagProps:ge,getListboxProps:ye,getOptionProps:ve,value:be,dirty:we,expanded:xe,id:Se,popupOpen:_e,focused:ke,focusedTag:Ee,anchorEl:Ce,setAnchorEl:Pe,inputValue:Te,groupedOptions:Oe}=Fg((0,u.Z)({},s,{componentName:"Autocomplete"})),Re=!P&&!O&&we&&!te,Ae=(!N||!0===j)&&!1!==j,{onMouseDown:Me}=fe(),{ref:De}=null!=$?$:{},je=ye(),{ref:Ie}=je,Ne=(0,l.Z)(je,iy),Le=(0,g.Z)(Ie,De),Ze=F||(e=>{var t;return null!=(t=e.label)?t:e}),Fe=(0,u.Z)({},s,{disablePortal:M,expanded:xe,focused:ke,fullWidth:L,getOptionLabel:Ze,hasClearIcon:Re,hasPopupIcon:Ae,inputFocused:-1===Ee,popupOpen:_e,size:le}),Be=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize"+(0,re.Z)(c)],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,f.Z)(d,ey,t)})(Fe);let Ve;if(G&&be.length>0){const e=e=>(0,u.Z)({className:Be.tag,disabled:O},ge(e));Ve=ae?ae(be,e,Fe):be.map((t,n)=>(0,I.jsx)(Qg,(0,u.Z)({label:Ze(t),size:le},e({index:n}),v)))}if(W>-1&&Array.isArray(Ve)){const e=Ve.length-W;!ke&&e>0&&(Ve=Ve.splice(0,W),Ve.push((0,I.jsx)("span",{className:Be.tag,children:Z(e)},Ve.length)))}const ze=ne||(e=>(0,I.jsxs)("li",{children:[(0,I.jsx)(gy,{className:Be.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,I.jsx)(yy,{className:Be.groupUl,ownerState:Fe,children:e.children})]},e.key)),We=ie||((e,t)=>{const{key:n}=e,r=(0,l.Z)(e,ay);return(0,I.jsx)("li",(0,u.Z)({},r,{children:Ze(t)}),n)}),Ue=(e,t)=>{const n=ve({option:e,index:t});return We((0,u.Z)({},n,{className:Be.option}),e,{selected:n["aria-selected"],index:t,inputValue:Te},Fe)},$e=null!=(r=ue.clearIndicator)?r:E.clearIndicator,He=null!=(o=ue.paper)?o:E.paper,Ye=null!=(i=ue.popper)?i:E.popper,Ge=null!=(a=ue.popupIndicator)?a:E.popupIndicator;return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(sy,(0,u.Z)({ref:n,className:(0,c.Z)(Be.root,b),ownerState:Fe},de(ce),{children:oe({id:Se,disabled:O,fullWidth:!0,size:"small"===le?"small":void 0,InputLabelProps:pe(),InputProps:(0,u.Z)({ref:Pe,className:Be.inputRoot,startAdornment:Ve,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Re||Ae)&&{endAdornment:(0,I.jsxs)(ly,{className:Be.endAdornment,ownerState:Fe,children:[Re?(0,I.jsx)(uy,(0,u.Z)({},me(),{"aria-label":_,title:_,ownerState:Fe},$e,{className:(0,c.Z)(Be.clearIndicator,null==$e?void 0:$e.className),children:w})):null,Ae?(0,I.jsx)(cy,(0,u.Z)({},he(),{disabled:O,"aria-label":_e?k:X,title:_e?k:X,ownerState:Fe},Ge,{className:(0,c.Z)(Be.popupIndicator,null==Ge?void 0:Ge.className),children:ee})):null]})}),inputProps:(0,u.Z)({className:Be.input,disabled:O,readOnly:te},fe())})})),Ce?(0,I.jsx)(dy,(0,u.Z)({as:J,disablePortal:M,style:{width:Ce?Ce.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Ce,open:_e},Ye,{className:(0,c.Z)(Be.popper,null==Ye?void 0:Ye.className),children:(0,I.jsxs)(fy,(0,u.Z)({ownerState:Fe,as:Q},He,{className:(0,c.Z)(Be.paper,null==He?void 0:He.className),children:[H&&0===Oe.length?(0,I.jsx)(py,{className:Be.loading,ownerState:Fe,children:Y}):null,0!==Oe.length||N||H?null:(0,I.jsx)(hy,{className:Be.noOptions,ownerState:Fe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),Oe.length>0?(0,I.jsx)(my,(0,u.Z)({as:U,className:Be.listbox,ownerState:Fe},Ne,$,{ref:Le,children:Oe.map((e,t)=>B?ze({key:e.key,group:e.group,children:e.options.map((t,n)=>Ue(t,e.index+n))}):Ue(e,t))})):null]}))})):null]})}));function by(){return(by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function wy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xy(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}const Sy=function(t){var n,r=t.binding,o=Qh(r,!0),i=wy(function(t,n){return(0,e.useState)((function(){var e=t.getChoice()||null;return null===e?null:n.find((function(t){return t.original===e}))}))}(r,o),2),a=i[0],s=i[1],l=wy((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),u=l[0],c=l[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",u)}),[u]),(0,e.useEffect)((function(){t.context.clear=function(){s(null),c(!1)}}),[]);var d=t.context.view.getLabelIndex(r),f=tm(r,t.context);return e.createElement(e.Fragment,null,e.createElement(vy,{className:"rdformsSearch",disableClearable:!0,value:a,options:o,onChange:function(e,t){r.setChoice(t.original),s(t),c(!0===t.original.mismatch)},disabled:!!f,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label},getOptionDisabled:function(e){return!0===e.mismatch},filterSelectedOptions:!0,renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=d,e.createElement(Dh,by({placeholder:r.getItem().getPlaceholder()},t,a&&a.mismatch?{error:!0}:{},{variant:fi.materialVariant}))},disablePortal:!0}),u&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var _y=o(2761),ky=o(3502);function Ey(t){return e.createElement(ky.Z,t,e.createElement("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),e.createElement("path",{fill:"currentColor",d:"M 24,6 H 21 V 9 H 19 V 6 H 16 V 4 h 3 V 1 h 2 v 3 h 3 z"}))}const Cy=function(t){var n=(0,e.useMemo)((function(){return t.context.chooser&&t.context.chooser.supportsInlineCreate&&t.context.chooser.supportsInlineCreate(t.binding)})),r=n?t.context.view.messages.edit_browse_create:t.context.view.messages.edit_browse;return t.context.chooser.show?e.createElement(Fh,{disabled:t.disabled,"aria-label":r,title:r,onClick:t.onClick},n?e.createElement(Ey,null):e.createElement(_y.Z,null)):""};function Py(){return(Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ty(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oy(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}const Ry=function(t){var n,r=t.binding,o=Ty(Jh(r,!0),2),i=o[0],a=o[1],s=Ty((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),l=s[0],u=s[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]),(0,e.useEffect)((function(){t.context.clear=function(){a(null),u(!1)}}),[]);var c="",d="";i&&(c=i.description?Xo.getLocalizedValue(i.description).value:i.seeAlso||i.value,d=i.label?Xo.getLocalizedValue(i.label).value:i.value);var f=t.context.view.getLabelIndex(t.binding),p=tm(r,t.context);return e.createElement(e.Fragment,null,e.createElement(Dh,Py({inputProps:{"aria-labelledby":f},className:"rdformsSearch",disabled:!0},p||i&&i.mismatch?{mismatch:!0}:{},{title:c,value:d,placeholder:r.getItem().getPlaceholder(),error:l,variant:fi.materialVariant})),e.createElement(Cy,Py({},t,{disabled:!!p,onClick:function(){fi.openChoiceSelector(t.binding,(function(e){t.binding.setChoice(e),a(e),u(!0===e.mismatch)}),t.field)}})),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};o(3255);var Ay,My=o(6024);function Dy(){return(Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function jy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(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}const Ny=function(t){var n,r=t.binding,o=jy((0,e.useState)([]),2),i=o[0],a=o[1],s=jy(Jh(r,!0),2),l=s[0],u=s[1],c=jy((0,e.useState)(""),2),d=c[0],f=c[1],p=jy((0,e.useState)(!1),2),h=p[0],m=p[1],g=jy((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),y=g[0],v=g[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",y)}),[y]),(0,e.useEffect)((function(){t.context.clear=function(){u(null),v(!1)}}),[]);(0,e.useEffect)((function(){var e=!0;return h&&(Ay&&clearTimeout(Ay),Ay=setTimeout((function(){Ay=void 0,t.context.chooser.search(r.getItem(),d.trimStart()).then((function(t){e&&a(t.map(Xh))}))}),200)),function(){e=!1}}),[d,h]);var b=t.context.view.getLabelIndex(r),w=tm(r,t.context),x=l&&l.original.upgradeComponent;return e.createElement(e.Fragment,null,e.createElement(vy,{className:"rdformsSearch",disableClearable:!0,fullWidth:!1,value:l,options:i,filterOptions:function(e){return e},open:h,onOpen:function(){return m(!0)},onClose:function(){return m(!1)},onInputChange:function(e,t){return f(t)},onChange:function(e,t){null===t?(r.setChoice(null),u(null),v(!1)):(r.setChoice(t.original),u(t),v(!0===t.original.mismatch))},disabled:!!w,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label||e.value},getOptionDisabled:function(e){return!0===e.mismatch},renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=b,e.createElement(Dh,Dy({"aria-labelledby":b},t,l&&l.mismatch?{error:!0}:{},{placeholder:r.getItem().getPlaceholder(),onKeyDown:function(e){var t=e.key,n=e.keyCode;("Enter"===t||13===n)&&!h&&m(!0)},variant:fi.materialVariant}))},disablePortal:!0}),e.createElement(Cy,Dy({},t,{onClick:function(){fi.openChoiceSelector(t.binding,(function(e){r.setChoice(e),u(Xh(e)),v(!0===e.mismatch)}),t.field)},disabled:!!w})),l&&l.original.upgrade&&e.createElement(e.Fragment,null,e.createElement(Fh,{"aria-label":t.context.view.messages.edit_upgrade,title:t.context.view.messages.edit_upgrade,disabled:!!w,onClick:function(){l.original.upgrade(t.binding,(function(e){u(Xh(e)),v(!0===e.mismatch)}),t.field)}},e.createElement(My.Z,null)),x),y&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var Ly=fi.editorRegistry;Ly.itemtype("choice").choices().check((function(e){var t=e.getChoices();return!(e.getHierarchyProperty()||e.hasStyle("tree"))&&1===e.getCardinality().max&&!e.hasStyle("dropDown")&&(null!=t&&t.length<5||e.hasStyle("verticalRadioButtons")||e.hasStyle("horizontalRadioButtons"))})).register((function(t,n,r){t.appendChild(e.createElement(gg,{key:n.getHash(),binding:n,context:r,field:t}))}));var Zy=function(t,n,r){t.appendChild(e.createElement(Mg,{key:n.getHash(),binding:n,context:r,field:t}))};Ly.itemtype("choice").choices().style("verticalCheckBoxes").register(Zy),Ly.itemtype("choice").choices().style("horizontalCheckBoxes").register(Zy),Ly.itemtype("choice").choices().register((function(t,n,r){t.appendChild(e.createElement(Sy,{key:n.getHash(),binding:n,context:r,field:t}))})),Ly.itemtype("choice").choices("none").register((function(t,n,r){r.chooser=fi.chooserRegistry.getComponent(n.getItem()),"function"==typeof r.chooser.search?t.appendChild(e.createElement(Ny,{key:n.getHash(),binding:n,context:r,field:t})):t.appendChild(e.createElement(Ry,{key:n.getHash(),binding:n,context:r,field:t}))}));var Fy=o(336),By=o(4510),Vy=o(6540);function zy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wy(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}fi.addExpandButton=function(e,t,n,r){console.log("Expand button not yet supported")};var Uy=function(e,t){var n=e.getItem(),r=!n.hasStyle("deprecated");if(t.view.isMultiValued(n)&&r)return!0;var o=e.getCardinalityTracker(),i=t.view.showNow(e.getItem(),[]);return r&&(o.isMin()||1===o.getCardinality()&&i&&o.isDepsOk())};fi.addRemoveButton=function(t,n,r){return function(){var o=n.getItem(),i=n.getCardinalityTracker(),a=zy((0,e.useState)((function(){return Uy(n,r)})),2),s=a[0],l=a[1];(0,e.useEffect)((function(){var e=i.addListener((function(){l(Uy(n,r))}));return function(){return i.removeListener(e)}}),[]);var u=(0,e.useMemo)((function(){return function(){if(Uy(n,r)||!i.isDepsOk()&&1===i.getCardinality()){r.clear&&r.clear();var e=n.getItem().getNodetype(),a=n.getItem().getType();if("group"===a){if(n.remove(),r.view.showNow(o,[])){var s=r.view.prepareBindings(o,[]);s.length>0&&r.view.addRow(t,s[0])}t.destroy()}else"choice"===a?n.setChoice(null):n.setValue(""),"LANGUAGE_LITERAL"!==e&&"PLAIN_LITERAL"!==e||n.setLanguage("")}else r.view.isMultiValued(o)?(n.getParent().getChildBindingsFor(o).slice(0).forEach((function(e){e.remove()})),t.parent.destroy()):(n.remove(),t.destroy())}})),c=tm(n,r),d=s?r.view.messages.edit_clear:r.view.messages.edit_remove;return e.createElement(Fh,{size:"small","aria-label":d,disabled:!!c,title:d,onClick:u},s?e.createElement(By.Z,{fontSize:"small"}):e.createElement(Fy.Z,{fontSize:"small"}))}},fi.addCreateChildButton=function(t,n,r,o){return function(){var n=r.getItem(),i=r.getCardinalityTracker(),a=zy((0,e.useState)(i.isMax()||!i.isDepsOk()||n.hasStyle("deprecated")),2),s=a[0],l=a[1];(0,e.useEffect)((function(){o.rememberParent=r.getParent();var e=i.addListener((function(){l(i.isMax()||!i.isDepsOk())}));return function(){return i.removeListener(e)}}),[]);var u=n.getEditLabel()||n.getLabel();u=null!=u&&""!==u?u.charAt(0).toUpperCase()+u.slice(1):"";var c=o.view.messages.edit_add;return e.createElement(pe,{className:"rdformsAddChild",onClick:function(){if(!i.isMax()){var e=zu(o.rememberParent,n);o.view.addRow(t,e)}},"aria-label":c,title:c,disabled:s,variant:"text",color:"primary",startIcon:e.createElement(Vy.Z,null)},u)}};var $y=o(539);function Hy(t,n,r,o,i){const[a,s]=e.useState(()=>i&&r?r(t).matches:o?o(t).matches:n);return(0,Id.Z)(()=>{let e=!0;if(!r)return;const n=r(t),o=()=>{e&&s(n.matches)};return o(),n.addListener(o),()=>{e=!1,n.removeListener(o)}},[t,r]),a}const Yy=t.useSyncExternalStore;function Gy(t,n,r,o,i){const a=e.useCallback(()=>n,[n]),s=e.useMemo(()=>{if(i&&r)return()=>r(t).matches;if(null!==o){const{matches:e}=o(t);return()=>e}return a},[a,t,o,i,r]),[l,u]=e.useMemo(()=>{if(null===r)return[a,()=>()=>{}];const e=r(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]},[a,r,t]);return Yy(u,l,s)}function qy(e,t={}){const n=(0,rs.Z)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,$y.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==Yy?Gy:Hy)(l,o,i,a,s)}const Ky={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:t+" view is open, go to text input view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":"Selected time is "+n.format(t,"fullTime")}`,hoursClockNumberText:e=>e+" hours",minutesClockNumberText:e=>e+" minutes",secondsClockNumberText:e=>e+" seconds",openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose date, selected date is "+t.format(t.date(e),"fullDate"):"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose time, selected time is "+t.format(t.date(e),"fullTime"):"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Xy=Ky;Qy=Ky,(0,u.Z)({},Qy);var Qy;const Jy=e.createContext(null);function ev(t){const n=(0,m.Z)({props:t,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:o,dateFormats:i,dateLibInstance:a,locale:s,adapterLocale:l,localeText:c}=n;const d=e.useMemo(()=>new o({locale:null!=l?l:s,formats:i,instance:a}),[o,s,l,i,a]),f=e.useMemo(()=>({minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}),[d]),p=e.useMemo(()=>({utils:d,defaultDates:f,localeText:(0,u.Z)({},Xy,null!=c?c:{})}),[f,d,c]);return(0,I.jsx)(Jy.Provider,{value:p,children:r})}const tv=()=>{const t=e.useContext(Jy);if(null===t)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return t},nv=()=>tv().utils,rv=()=>tv().defaultDates,ov=()=>tv().localeText,iv=()=>{const t=nv();return e.useRef(t.date()).current},av=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let l=e,u=e;for(a.isBefore(e,o)&&(l=a.date(o),u=null),a.isAfter(e,r)&&(u&&(u=a.date(r)),l=null);l||u;){if(l&&a.isAfter(l,r)&&(l=null),u&&a.isBefore(u,o)&&(u=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},sv=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},lv=(e,t,n)=>{if(null==t)return n;const r=e.date(t);return e.isValid(r)?r:n},uv=e=>1===e.length&&"year"===e[0],cv=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function dv(e,t){var n;const r=nv(),o=rv(),i=(0,m.Z)({props:e,name:t}),a=null!=(n=i.views)?n:["year","day"];return(0,u.Z)({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>uv(e)?{inputFormat:t.formats.year}:cv(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(a,r),i,{views:a,minDate:lv(r,i.minDate,o.minDate),maxDate:lv(r,i.maxDate,o.maxDate)})}const fv={emptyValue:null,getTodayValue:e=>e.date(),parseInput:sv,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function pv(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=pv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const hv=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=pv(e))&&(r&&(r+=" "),r+=t);return r};const mv=e.createContext();function gv(e){return(0,X.ZP)("MuiGrid",e)}const yv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],vv=(0,L.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-"+e),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-"+e),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-"+e),...yv.map(e=>"grid-xs-"+e),...yv.map(e=>"grid-sm-"+e),...yv.map(e=>"grid-md-"+e),...yv.map(e=>"grid-lg-"+e),...yv.map(e=>"grid-xl-"+e)]),bv=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function wv(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function xv({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(e=>{""===n&&0!==t[e]&&(n=e)});const r=Object.keys(e).sort((t,n)=>e[t]-e[n]);return r.slice(0,r.indexOf(n))}const Sv=(0,h.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n["spacing-xs-"+String(e)]];const r=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])}),r}(a,u,t));const d=[];return u.forEach(e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t["direction-xs-"+String(o)],"wrap"!==s&&t["wrap-xs-"+String(s)],...d]}})(({ownerState:e})=>(0,u.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),(function({theme:e,ownerState:t}){const n=(0,$m.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,$m.k9)({theme:e},n,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > ."+vv.item]={maxWidth:"none"}),t})}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,$m.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=xv({breakpoints:e.breakpoints.values,values:t})),o=(0,$m.k9)({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:"-"+wv(i),["& > ."+vv.item]:{paddingTop:wv(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,["& > ."+vv.item]:{paddingTop:0}}})}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,$m.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=xv({breakpoints:e.breakpoints.values,values:t})),o=(0,$m.k9)({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${wv(i)})`,marginLeft:"-"+wv(i),["& > ."+vv.item]:{paddingLeft:wv(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > ."+vv.item]:{paddingLeft:0}}})}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,$m.P$)({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${wv(n)})`;c={flexBasis:e,maxWidth:e}}}i=(0,u.Z)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}));const _v=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-"+String(e)];const n=[];return t.forEach(t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}}),n}(i,l));const c=[];l.forEach(t=>{const n=e[t];n&&c.push(`grid-${t}-${String(n)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==r&&"direction-xs-"+String(r),"wrap"!==a&&"wrap-xs-"+String(a),...c]};return(0,f.Z)(d,gv,t)};const kv=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiGrid"}),{breakpoints:o}=vi(),i=Wm(r),{className:a,columns:s,columnSpacing:d,component:f="div",container:p=!1,direction:h="row",item:g=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:w=!1}=i,x=(0,l.Z)(i,bv),S=y||v,_=d||v,k=e.useContext(mv),E=p?s||12:k,C={},P=(0,u.Z)({},x);o.keys.forEach(e=>{null!=x[e]&&(C[e]=x[e],delete P[e])});const T=(0,u.Z)({},i,{columns:E,container:p,direction:h,item:g,rowSpacing:S,columnSpacing:_,wrap:b,zeroMinWidth:w,spacing:v},C,{breakpoints:o.keys}),O=_v(T);return(0,I.jsx)(mv.Provider,{value:E,children:(0,I.jsx)(Sv,(0,u.Z)({ownerState:T,className:(0,c.Z)(O.root,a),as:f,ref:n},P))})})),Ev=(0,bh.Z)((0,I.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cv=(0,bh.Z)((0,I.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Pv=(0,bh.Z)((0,I.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Tv=(0,bh.Z)((0,I.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Ov=(0,bh.Z)((0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,I.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Rv=((0,bh.Z)((0,I.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,bh.Z)((0,I.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));(0,bh.Z)((0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,I.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Av(e){return(0,X.ZP)("MuiPickersToolbar",e)}const Mv=(0,L.Z)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Dv=(0,h.ZP)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),jv=(0,h.ZP)(kv,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>(0,u.Z)({flex:1},!e.isLandscape&&{alignItems:"center"})),Iv=(0,h.ZP)(Fh,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{["&."+Mv.penIconButtonLandscape]:t.penIconButtonLandscape},t.penIconButton]})({}),Nv=e=>"clock"===e?(0,I.jsx)(Ov,{color:"inherit"}):(0,I.jsx)(Tv,{color:"inherit"}),Lv=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,getMobileKeyboardInputViewButtonText:i,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:l="column",toggleMobileKeyboardView:u,toolbarTitle:c,viewType:d="calendar"}=n,p=n,h=ov(),g=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return(0,f.Z)(r,Av,t)})(p);return(0,I.jsxs)(Dv,{ref:t,className:hv(g.root,o),ownerState:p,children:[(0,I.jsx)(ig,{color:"text.secondary",variant:"overline",children:c}),(0,I.jsxs)(jv,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?l:"row",alignItems:a?"flex-start":"flex-end",children:[r,(0,I.jsx)(Iv,{onClick:u,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":i?i(s,d):h.inputModeToggleButtonAriaLabel(s,d),children:s?Nv(d):(0,I.jsx)(Rv,{color:"inherit"})})]})]})}));function Zv(e){return(0,X.ZP)("MuiDatePickerToolbar",e)}(0,L.Z)("MuiDatePickerToolbar",["root","title"]);const Fv=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Bv=(0,h.ZP)(Lv,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vv=(0,h.ZP)(ig,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>(0,u.Z)({},e.isLandscape&&{margin:"auto 16px auto auto"})),zv=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,toolbarFormat:c,toolbarPlaceholder:d="––",toolbarTitle:p,views:h}=r,g=(0,l.Z)(r,Fv),y=nv(),v=ov(),b=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],title:["title"]},Zv,t)})(r),w=null!=p?p:v.datePickerDefaultToolbarTitle,x=e.useMemo(()=>o?c?y.formatByString(o,c):uv(h)?y.format(o,"year"):cv(h)?y.format(o,"month"):/en/.test(y.getCurrentLocaleCode())?y.format(o,"normalDateWithWeekday"):y.format(o,"normalDate"):d,[o,c,d,y,h]),S=r;return(0,I.jsx)(Bv,(0,u.Z)({ref:n,toolbarTitle:w,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,isLandscape:i,className:b.root},g,{children:(0,I.jsx)(Vv,{variant:"h4",align:i?"left":"center",ownerState:S,className:b.title,children:x})}))})),Wv=e.createContext(null);function Uv(e){return(0,X.ZP)("MuiDialogActions",e)}(0,L.Z)("MuiDialogActions",["root","spacing"]);const $v=["className","disableSpacing"],Hv=(0,h.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,u.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Yv=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,i=(0,l.Z)(n,$v),a=(0,u.Z)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,f.Z)(r,Uv,t)})(a);return(0,I.jsx)(Hv,(0,u.Z)({className:(0,c.Z)(s.root,r),ownerState:a,ref:t},i))})),Gv=["onAccept","onClear","onCancel","onSetToday","actions"],qv=t=>{const{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:a}=t,s=(0,l.Z)(t,Gv),c=e.useContext(Wv),d=ov(),f="function"==typeof a?a(c):a;if(null==f||0===f.length)return null;const p=null==f?void 0:f.map(e=>{switch(e){case"clear":return(0,I.jsx)(pe,{onClick:r,children:d.clearButtonLabel},e);case"cancel":return(0,I.jsx)(pe,{onClick:o,children:d.cancelButtonLabel},e);case"accept":return(0,I.jsx)(pe,{onClick:n,children:d.okButtonLabel},e);case"today":return(0,I.jsx)(pe,{onClick:i,children:d.todayButtonLabel},e);default:return null}});return(0,I.jsx)(Yv,(0,u.Z)({},s,{children:p}))};function Kv(e){return(0,X.ZP)("MuiPickersPopper",e)}(0,L.Z)("MuiPickersPopper",["root","paper"]);function Xv(e,t){return Array.isArray(t)?t.every(t=>-1!==e.indexOf(t)):-1!==e.indexOf(t)}const Qv=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Jv=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Jv(t.shadowRoot):t:null},eb=["onClick","onTouchStart"],tb=(0,h.ZP)(as,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),nb=(0,h.ZP)(jp,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>(0,u.Z)({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}));function rb(t){var n;const r=(0,m.Z)({props:t,name:"MuiPickersPopper"}),{anchorEl:o,children:i,containerRef:a=null,onBlur:s,onClose:c,onClear:d,onAccept:p,onCancel:h,onSetToday:v,open:b,PopperProps:w,role:x,TransitionComponent:S=Mi,TrapFocusProps:_,PaperProps:k={},components:E,componentsProps:C}=r;e.useEffect(()=>{function e(e){!b||"Escape"!==e.key&&"Esc"!==e.key||c()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,b]);const P=e.useRef(null);e.useEffect(()=>{"tooltip"!==x&&(b?P.current=Jv(document):P.current&&P.current instanceof HTMLElement&&setTimeout(()=>{P.current instanceof HTMLElement&&P.current.focus()}))},[b,x]);const[T,O,R]=function(t,n){const r=e.useRef(!1),o=e.useRef(!1),i=e.useRef(null),a=e.useRef(!1);e.useEffect(()=>{if(t)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0),a.current=!1};function e(){a.current=!0}},[t]);const s=(0,y.Z)(e=>{if(!a.current)return;const t=o.current;o.current=!1;const s=(0,Uf.Z)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(r.current)return void(r.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||t||n(e)}),l=()=>{o.current=!0};return e.useEffect(()=>{if(t){const e=(0,Uf.Z)(i.current),t=()=>{r.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}},[t,s]),e.useEffect(()=>{if(t){const e=(0,Uf.Z)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),o.current=!1}}},[t,s]),[i,l,l]}(b,null!=s?s:c),A=e.useRef(null),M=(0,g.Z)(A,a),D=(0,g.Z)(M,T),j=r,N=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Kv,t)})(j),{onClick:L,onTouchStart:Z}=k,F=(0,l.Z)(k,eb),B=null!=(n=null==E?void 0:E.ActionBar)?n:qv,V=(null==E?void 0:E.PaperContent)||e.Fragment;return(0,I.jsx)(tb,(0,u.Z)({transition:!0,role:x,open:b,anchorEl:o,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),c())},className:N.root},w,{children:({TransitionProps:e,placement:t})=>(0,I.jsx)(yp,(0,u.Z)({open:b,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===x,isEnabled:()=>!0},_,{children:(0,I.jsx)(S,(0,u.Z)({},e,{children:(0,I.jsx)(nb,(0,u.Z)({tabIndex:-1,elevation:8,ref:D,onClick:e=>{O(e),L&&L(e)},onTouchStart:e=>{R(e),Z&&Z(e)},ownerState:(0,u.Z)({},j,{placement:t}),className:N.paper},F,{children:(0,I.jsxs)(V,(0,u.Z)({},null==C?void 0:C.paperContent,{children:[i,(0,I.jsx)(B,(0,u.Z)({onAccept:p,onClear:d,onCancel:h,onSetToday:v,actions:[]},null==C?void 0:C.actionBar))]}))}))}))}))}))}function ob(t){const{children:n,DateInputProps:r,KeyboardDateInputComponent:o,onClear:i,onDismiss:a,onCancel:s,onAccept:l,onSetToday:c,open:d,PopperProps:f,PaperProps:p,TransitionComponent:h,components:m,componentsProps:y}=t,v=e.useRef(null),b=(0,g.Z)(r.inputRef,v);return(0,I.jsxs)(Wv.Provider,{value:"desktop",children:[(0,I.jsx)(o,(0,u.Z)({},r,{inputRef:b})),(0,I.jsx)(rb,{role:"dialog",open:d,anchorEl:v.current,TransitionComponent:h,PopperProps:f,PaperProps:p,onClose:a,onCancel:s,onClear:i,onAccept:l,onSetToday:c,components:m,componentsProps:y,children:n})]})}function ib({onChange:t,onViewChange:n,openTo:r,view:o,views:i}){var a,s;const[l,u]=(0,ls.Z)({name:"Picker",state:"view",controlled:o,default:r&&Xv(i,r)?r:i[0]}),c=null!=(a=i[i.indexOf(l)-1])?a:null,d=null!=(s=i[i.indexOf(l)+1])?s:null,f=e.useCallback(e=>{u(e),n&&n(e)},[u,n]),p=e.useCallback(()=>{d&&f(d)},[d,f]);return{handleChangeAndOpenNext:e.useCallback((e,n)=>{const r="finish"===n,o=r&&Boolean(d)?"partial":n;t(e,o),r&&p()},[d,t,p]),nextView:d,previousView:c,openNext:p,openView:l,setOpenView:f}}const ab={x:110,y:110},sb=ab.x-ab.x,lb=0-ab.y,ub=(e,t,n)=>{const r=t-ab.x,o=n-ab.y,i=Math.atan2(sb,lb)-Math.atan2(r,o);let a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function cb(e){return(0,X.ZP)("MuiClockPointer",e)}(0,L.Z)("MuiClockPointer",["root","thumb"]);const db=["className","hasSelected","isInner","type","value"],fb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),pb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>(0,u.Z)({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:"16px solid "+e.palette.primary.main,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function hb(t){const n=(0,m.Z)({props:t,name:"MuiClockPointer"}),{className:r,isInner:o,type:i,value:a}=n,s=(0,l.Z)(n,db),c=e.useRef(i);e.useEffect(()=>{c.current=i},[i]);const d=(0,u.Z)({},n,{shouldAnimate:c.current!==i}),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],thumb:["thumb"]},cb,t)})(d);return(0,I.jsx)(fb,(0,u.Z)({style:(()=>{let e=360/("hours"===i?12:60)*a;return"hours"===i&&a>12&&(e-=360),{height:Math.round(220*(o?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:hv(r,p.root),ownerState:d},s,{children:(0,I.jsx)(pb,{ownerState:d,className:p.thumb})}))}function mb(e){return(0,X.ZP)("MuiClock",e)}(0,L.Z)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const gb=(0,h.ZP)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),yb=(0,h.ZP)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),vb=(0,h.ZP)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),bb=(0,h.ZP)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>(0,u.Z)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),wb=(0,h.ZP)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),xb=(0,h.ZP)(Fh,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},"am"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),Sb=(0,h.ZP)(Fh,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function _b(t){const n=(0,m.Z)({props:t,name:"MuiClock"}),{ampm:r,ampmInClock:o,autoFocus:i,children:a,date:s,getClockLabelText:l,handleMeridiemChange:u,isTimeDisabled:c,meridiemMode:d,minutesStep:p=1,onChange:h,selectedId:g,type:y,value:v,disabled:b,readOnly:w,className:x}=n,S=n,_=nv(),k=e.useContext(Wv),E=e.useRef(!1),C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},mb,t)})(S),P=c(v,y),T=!r&&"hours"===y&&(v<1||v>12),O=(e,t)=>{b||w||c(e,y)||h(e,t)},R=(e,t)=>{let{offsetX:n,offsetY:o}=e;if(void 0===n){const t=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===y||"minutes"===y?((e,t,n=1)=>{const r=6*n;let{value:o}=ub(r,e,t);return o=o*n%60,o})(n,o,p):((e,t,n)=>{const{value:r,distance:o}=ub(30,e,t);let i=r||12;return n?i%=12:o<74&&(i+=12,i%=24),i})(n,o,Boolean(r));O(i,t)},A=e.useMemo(()=>"hours"===y||v%5==0,[y,v]),M="minutes"===y?p:1,D=e.useRef(null);(0,ji.Z)(()=>{i&&D.current.focus()},[i]);return(0,I.jsxs)(gb,{className:hv(x,C.root),children:[(0,I.jsxs)(yb,{className:C.clock,children:[(0,I.jsx)(bb,{onTouchMove:e=>{E.current=!0,R(e,"shallow")},onTouchEnd:e=>{E.current&&(R(e,"finish"),E.current=!1)},onMouseUp:e=>{E.current&&(E.current=!1),R(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&R(e.nativeEvent,"shallow")},ownerState:{disabled:b},className:C.squareMask}),!P&&(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(wb,{className:C.pin}),s&&(0,I.jsx)(hb,{type:y,value:v,isInner:T,hasSelected:A})]}),(0,I.jsx)(vb,{"aria-activedescendant":g,"aria-label":l(y,s,_),ref:D,role:"listbox",onKeyDown:e=>{if(!E.current)switch(e.key){case"Home":O(0,"partial"),e.preventDefault();break;case"End":O("minutes"===y?59:23,"partial"),e.preventDefault();break;case"ArrowUp":O(v+M,"partial"),e.preventDefault();break;case"ArrowDown":O(v-M,"partial"),e.preventDefault()}},tabIndex:0,className:C.wrapper,children:a})]}),r&&("desktop"===k||o)&&(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(xb,{onClick:w?void 0:()=>u("am"),disabled:b||null===d,ownerState:S,className:C.amButton,children:(0,I.jsx)(ig,{variant:"caption",children:"AM"})}),(0,I.jsx)(Sb,{disabled:b||null===d,onClick:w?void 0:()=>u("pm"),ownerState:S,className:C.pmButton,children:(0,I.jsx)(ig,{variant:"caption",children:"PM"})})]})]})}function kb(e){return(0,X.ZP)("MuiClockNumber",e)}const Eb=(0,L.Z)("MuiClockNumber",["root","selected","disabled"]),Cb=["className","disabled","index","inner","label","selected"],Pb=(0,h.ZP)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Eb.disabled]:t.disabled},{["&."+Eb.selected]:t.selected}]})(({theme:e,ownerState:t})=>(0,u.Z)({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},["&."+Eb.selected]:{color:e.palette.primary.contrastText},["&."+Eb.disabled]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&(0,u.Z)({},e.typography.body2,{color:e.palette.text.secondary})));function Tb(e){const t=(0,m.Z)({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,c=(0,l.Z)(t,Cb),d=t,p=(e=>{const{classes:t,selected:n,disabled:r}=e,o={root:["root",n&&"selected",r&&"disabled"]};return(0,f.Z)(o,kb,t)})(d),h=o%12/12*Math.PI*2-Math.PI/2,g=91*(i?.65:1),y=Math.round(Math.cos(h)*g),v=Math.round(Math.sin(h)*g);return(0,I.jsx)(Pb,(0,u.Z)({className:hv(n,p.root),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${y}px, ${v+92}px`},ownerState:d},c,{children:a}))}const Ob=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=i.formatNumber(a);const c=u(t);s.push((0,I.jsx)(Tb,{id:c?o:void 0,index:t,inner:l,selected:c,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},Rb=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([e,i],a)=>{const s=e===t;return(0,I.jsx)(Tb,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(i)},e)})};function Ab(e){return(0,X.ZP)("MuiPickersArrowSwitcher",e)}(0,L.Z)("MuiPickersArrowSwitcher",["root","spacer","button"]);const Mb=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Db=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),jb=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Ib=(0,h.ZP)(Fh,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,u.Z)({},e.hidden&&{visibility:"hidden"})),Nb=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPickersArrowSwitcher"}),{children:r,className:o,components:i,componentsProps:a,isLeftDisabled:s,isLeftHidden:c,isRightDisabled:d,isRightHidden:p,leftArrowButtonText:h,onLeftClick:g,onRightClick:y,rightArrowButtonText:v}=n,b=(0,l.Z)(n,Mb),w="rtl"===vi().direction,x=(null==a?void 0:a.leftArrowButton)||{},S=(null==i?void 0:i.LeftArrowIcon)||Cv,_=(null==a?void 0:a.rightArrowButton)||{},k=(null==i?void 0:i.RightArrowIcon)||Pv,E=n,C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],spacer:["spacer"],button:["button"]},Ab,t)})(E);return(0,I.jsxs)(Db,(0,u.Z)({ref:t,className:hv(C.root,o),ownerState:E},b,{children:[(0,I.jsx)(Ib,(0,u.Z)({as:null==i?void 0:i.LeftArrowButton,size:"small","aria-label":h,title:h,disabled:s,edge:"end",onClick:g},x,{className:hv(C.button,x.className),ownerState:(0,u.Z)({},E,x,{hidden:c}),children:w?(0,I.jsx)(k,{}):(0,I.jsx)(S,{})})),r?(0,I.jsx)(ig,{variant:"subtitle1",component:"span",children:r}):(0,I.jsx)(jb,{className:C.spacer,ownerState:E}),(0,I.jsx)(Ib,(0,u.Z)({as:null==i?void 0:i.RightArrowButton,size:"small","aria-label":v,title:v,edge:"start",disabled:d,onClick:y},_,{className:hv(C.button,_.className),ownerState:(0,u.Z)({},E,_,{hidden:p}),children:w?(0,I.jsx)(S,{}):(0,I.jsx)(k,{})}))]}))})),Lb=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Zb=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),Fb=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):Zb(n,t)>Zb(r,t);function Bb(t,n,r){const o=nv();return{meridiemMode:((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(t,o),handleMeridiemChange:e.useCallback(e=>{const i=null==t?null:((e,t,n,r)=>{const o=Lb(r.getHours(e),t,n);return r.setHours(e,o)})(t,e,Boolean(n),o);r(i,"partial")},[n,t,r,o])}}function Vb(e){return(0,X.ZP)("MuiClockPicker",e)}(0,L.Z)("MuiClockPicker",["root","arrowSwitcher"]);const zb=(0,h.ZP)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"}),Wb=(0,h.ZP)(zb,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Ub=(0,h.ZP)(Nb,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),$b=()=>{},Hb=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiClockPicker"}),{ampm:o=!1,ampmInClock:i=!1,autoFocus:a,components:s,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:d,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y,leftArrowButtonText:v,maxTime:b,minTime:w,minutesStep:x=1,rightArrowButtonText:S,shouldDisableTime:_,showViewSwitcher:k,onChange:E,view:C,views:P=["hours","minutes"],openTo:T,onViewChange:O,className:R,disabled:A,readOnly:M}=r;$b({leftArrowButtonText:v,rightArrowButtonText:S,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y});const D=ov(),j=null!=v?v:D.openPreviousView,N=null!=S?S:D.openNextView,L=null!=p?p:D.clockLabelText,Z=null!=h?h:D.hoursClockNumberText,F=null!=g?g:D.minutesClockNumberText,B=null!=y?y:D.secondsClockNumberText,{openView:V,setOpenView:z,nextView:W,previousView:U,handleChangeAndOpenNext:$}=ib({view:C,views:P,openTo:T,onViewChange:O,onChange:E}),H=iv(),Y=nv(),G=e.useMemo(()=>c||Y.setSeconds(Y.setMinutes(Y.setHours(H,0),0),0),[c,H,Y]),{meridiemMode:q,handleMeridiemChange:K}=Bb(G,o,$),X=e.useCallback((e,t)=>{const n=Fb(d,Y),r=({start:e,end:t})=>(!w||!n(w,t))&&(!b||!n(e,b)),i=(e,n=1)=>e%n==0&&(!_||!_(e,t));switch(t){case"hours":{const t=Lb(e,q,o),n=Y.setHours(G,t);return!r({start:Y.setSeconds(Y.setMinutes(n,0),0),end:Y.setSeconds(Y.setMinutes(n,59),59)})||!i(t)}case"minutes":{const t=Y.setMinutes(G,e);return!r({start:Y.setSeconds(t,0),end:Y.setSeconds(t,59)})||!i(e,x)}case"seconds":{const t=Y.setSeconds(G,e);return!r({start:t,end:t})||!i(e)}default:throw new Error("not supported")}},[o,G,d,b,q,w,x,_,Y]),Q=(0,ss.Z)(),J=e.useMemo(()=>{switch(V){case"hours":{const e=(e,t)=>{const n=Lb(e,q,o);$(Y.setHours(G,n),t)};return{onChange:e,value:Y.getHours(G),children:Ob({date:c,utils:Y,ampm:o,onChange:e,getClockNumberText:Z,isDisabled:e=>A||X(e,"hours"),selectedId:Q})}}case"minutes":{const e=Y.getMinutes(G),t=(e,t)=>{$(Y.setMinutes(G,e),t)};return{value:e,onChange:t,children:Rb({utils:Y,value:e,onChange:t,getClockNumberText:F,isDisabled:e=>A||X(e,"minutes"),selectedId:Q})}}case"seconds":{const e=Y.getSeconds(G),t=(e,t)=>{$(Y.setSeconds(G,e),t)};return{value:e,onChange:t,children:Rb({utils:Y,value:e,onChange:t,getClockNumberText:B,isDisabled:e=>A||X(e,"seconds"),selectedId:Q})}}default:throw new Error("You must provide the type for ClockView")}},[V,Y,c,o,Z,F,B,q,$,G,X,Q,A]),ee=r,te=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],arrowSwitcher:["arrowSwitcher"]},Vb,t)})(ee);return(0,I.jsxs)(Wb,{ref:n,className:hv(te.root,R),ownerState:ee,children:[k&&(0,I.jsx)(Ub,{className:te.arrowSwitcher,leftArrowButtonText:j,rightArrowButtonText:N,components:s,componentsProps:l,onLeftClick:()=>z(U),onRightClick:()=>z(W),isLeftDisabled:!U,isRightDisabled:!W,ownerState:ee}),(0,I.jsx)(_b,(0,u.Z)({autoFocus:a,date:c,ampmInClock:i,type:V,ampm:o,getClockLabelText:L,minutesStep:x,isTimeDisabled:X,meridiemMode:q,handleMeridiemChange:K,selectedId:Q,disabled:A,readOnly:M},J))]})}));function Yb(e){return(0,X.ZP)("PrivatePickersMonth",e)}const Gb=(0,L.Z)("PrivatePickersMonth",["root","selected"]),qb=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],Kb=(0,h.ZP)(ig,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Gb.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},["&."+Gb.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Xb=()=>{},Qb=t=>{const{disabled:n,onSelect:r,selected:o,value:i,tabIndex:a,hasFocus:s,onFocus:c=Xb,onBlur:d=Xb}=t,p=(0,l.Z)(t,qb),h=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,f.Z)(r,Yb,t)})(t),m=()=>{r(i)},g=e.useRef(null);return(0,Id.Z)(()=>{var e;s&&(null==(e=g.current)||e.focus())},[s]),(0,I.jsx)(Kb,(0,u.Z)({ref:g,component:"button",type:"button",className:h.root,tabIndex:a,onClick:m,onKeyDown:Qv(m),color:o?"primary":void 0,variant:o?"h5":"subtitle1",disabled:n,onFocus:e=>c(e,i),onBlur:e=>d(e,i)},p))};function Jb(e){return(0,X.ZP)("MuiMonthPicker",e)}(0,L.Z)("MuiMonthPicker",["root"]);const ew=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"];const tw=(0,h.ZP)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),nw=e.forwardRef((function(t,n){const r=nv(),o=iv(),i=function(e,t){const n=nv(),r=rv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disableFuture:!1,disablePast:!1},o,{minDate:lv(n,o.minDate,r.minDate),maxDate:lv(n,o.maxDate,r.maxDate)})}(t,"MuiMonthPicker"),{className:a,date:s,disabled:c,disableFuture:d,disablePast:p,maxDate:h,minDate:g,onChange:v,shouldDisableMonth:b,readOnly:w,disableHighlightToday:x,autoFocus:S=!1,onMonthFocus:_,hasFocus:k,onFocusedViewChange:E}=i,C=(0,l.Z)(i,ew),P=i,T=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Jb,t)})(P),O=(0,mi.Z)(),R=e.useMemo(()=>null!=s?s:r.startOfMonth(o),[o,r,s]),A=e.useMemo(()=>null!=s?r.getMonth(s):x?null:r.getMonth(o),[o,s,r,x]),[M,D]=e.useState(()=>A||r.getMonth(o)),j=e.useCallback(e=>{const t=r.startOfMonth(p&&r.isAfter(o,g)?o:g),n=r.startOfMonth(d&&r.isBefore(o,h)?o:h);return!!r.isBefore(e,t)||(!!r.isAfter(e,n)||!!b&&b(e))},[d,p,h,g,o,b,r]),N=e=>{if(w)return;const t=r.setMonth(R,e);v(t,"finish")},[L,Z]=(0,ls.Z)({name:"MonthPicker",state:"hasFocus",controlled:k,default:S}),F=e.useCallback(e=>{Z(e),E&&E(e)},[Z,E]),B=e.useCallback(e=>{j(r.setMonth(R,e))||(D(e),F(!0),_&&_(e))},[j,r,R,F,_]);e.useEffect(()=>{D(e=>null!==A&&e!==A?A:e)},[A]);const V=(0,y.Z)(e=>{switch(e.key){case"ArrowUp":B((12+M-3)%12),e.preventDefault();break;case"ArrowDown":B((12+M+3)%12),e.preventDefault();break;case"ArrowLeft":B((12+M+("ltr"===O.direction?-1:1))%12),e.preventDefault();break;case"ArrowRight":B((12+M+("ltr"===O.direction?1:-1))%12),e.preventDefault()}}),z=e.useCallback((e,t)=>{B(t)},[B]),W=e.useCallback(()=>{F(!1)},[F]),U=r.getMonth(o);return(0,I.jsx)(tw,(0,u.Z)({ref:n,className:hv(T.root,a),ownerState:P,onKeyDown:V},C,{children:r.getMonthArray(R).map(e=>{const t=r.getMonth(e),n=r.format(e,"monthShort"),o=c||j(e);return(0,I.jsx)(Qb,{value:t,selected:t===A,tabIndex:t!==M||o?-1:0,hasFocus:L&&t===M,onSelect:N,onFocus:z,onBlur:W,disabled:o,"aria-current":U===t?"date":void 0,children:n},n)})}))}));function rw(t,n,r){const{value:o,onError:i}=t,a=tv(),s=e.useRef(null),l=n({adapter:a,value:o,props:t});return e.useEffect(()=>{i&&!r(l,s.current)&&i(l,o),s.current=l},[r,i,s,l,o]),l}const ow=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),o=n.utils.date(t),i=lv(n.utils,e.minDate,n.defaultDates.minDate),a=lv(n.utils,e.maxDate,n.defaultDates.maxDate);if(null===o)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case Boolean(e.shouldDisableDate&&e.shouldDisableDate(o)):return"shouldDisableDate";case Boolean(e.disableFuture&&n.utils.isAfterDay(o,r)):return"disableFuture";case Boolean(e.disablePast&&n.utils.isBeforeDay(o,r)):return"disablePast";case Boolean(i&&n.utils.isBeforeDay(o,i)):return"minDate";case Boolean(a&&n.utils.isAfterDay(o,a)):return"maxDate";default:return null}},iw=({shouldDisableDate:t,minDate:n,maxDate:r,disableFuture:o,disablePast:i})=>{const a=tv();return e.useCallback(e=>null!==ow({adapter:a,value:e,props:{shouldDisableDate:t,minDate:n,maxDate:r,disableFuture:o,disablePast:i}}),[a,t,n,r,o,i])},aw=(e,t)=>e===t,sw=e=>rw(e,ow,aw),lw=({date:t,defaultCalendarMonth:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:d})=>{var f;const p=iv(),h=nv(),m=e.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return(0,u.Z)({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,u.Z)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return(0,u.Z)({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(c),i,h)).current,[g,y]=e.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||p,currentMonth:h.startOfMonth(null!=(f=null!=t?t:n)?f:p),slideDirection:"left"}),v=e.useCallback(e=>{y((0,u.Z)({type:"changeMonth"},e)),l&&l(e.newMonth)},[l]),b=e.useCallback(e=>{const t=null!=e?e:p;h.isSameMonth(t,g.currentMonth)||v({newMonth:h.startOfMonth(t),direction:h.isAfterDay(t,g.currentMonth)?"left":"right"})},[g.currentMonth,v,p,h]),w=iw({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:r,disablePast:o}),x=e.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),S=e.useCallback((e,t)=>{w(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})},[w]);return{calendarState:g,changeMonth:b,changeFocusedDay:S,isDateDisabled:w,onMonthSwitchingAnimationEnd:x,handleChangeMonth:v}},uw=e=>(0,X.ZP)("MuiPickersFadeTransitionGroup",e),cw=((0,L.Z)("MuiPickersFadeTransitionGroup",["root"]),(0,h.ZP)(P,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function dw(e){const t=(0,m.Z)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},uw,t)})(t);return o?n:(0,I.jsx)(cw,{className:hv(a.root,r),children:(0,I.jsx)(wp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:n},i)})}function fw(e){return(0,X.ZP)("MuiPickersDay",e)}const pw=(0,L.Z)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),hw=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],mw=({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),["&."+pw.selected]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+pw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+pw.disabled]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${pw.selected})`]:{border:"1px solid "+e.palette.text.secondary}}),gw=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},yw=(0,h.ZP)(ne,{name:"MuiPickersDay",slot:"Root",overridesResolver:gw})(mw),vw=(0,h.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:gw})(({theme:e,ownerState:t})=>(0,u.Z)({},mw({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),bw=()=>{},ww=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:c=!1,disableMargin:d=!1,isAnimating:p,onClick:h,onDaySelect:y,onFocus:v=bw,onBlur:b=bw,onKeyDown:w=bw,onMouseDown:x,outsideCurrentMonth:S,selected:_=!1,showDaysOutsideCurrentMonth:k=!1,children:E,today:C=!1}=r,P=(0,l.Z)(r,hw),T=(0,u.Z)({},r,{autoFocus:o,disabled:s,disableHighlightToday:c,disableMargin:d,selected:_,showDaysOutsideCurrentMonth:k,today:C}),O=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u={root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,f.Z)(u,fw,l)})(T),R=nv(),A=e.useRef(null),M=(0,g.Z)(A,n);(0,ji.Z)(()=>{!o||s||p||S||A.current.focus()},[o,s,p,S]);return S&&!k?(0,I.jsx)(vw,{className:hv(O.root,O.hiddenDaySpacingFiller,i),ownerState:T,role:P.role}):(0,I.jsx)(yw,(0,u.Z)({className:hv(O.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:s,tabIndex:_?0:-1,onKeyDown:e=>w(e,a),onFocus:e=>v(e,a),onBlur:e=>b(e,a),onClick:e=>{s||y(a,"finish"),S&&e.currentTarget.focus(),h&&h(e)},onMouseDown:e=>{x&&x(e),S&&e.preventDefault()}},P,{children:E||R.format(a,"dayOfMonth")}))})),xw=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,Sw=e.memo(ww,xw);function _w(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var kw=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=_w(n.className,r):n.setAttribute("class",_w(n.className&&n.className.baseVal||"",r)));var n,r}))},Ew=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}w(n,t);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&xi(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&kw(e,r),o&&kw(e,o),i&&kw(e,i)},r.render=function(){var t=this.props,n=(t.classNames,(0,l.Z)(t,["classNames"]));return e.createElement(ki,(0,u.Z)({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(e.Component);Ew.defaultProps={classNames:""},Ew.propTypes={};const Cw=Ew,Pw=e=>(0,X.ZP)("PrivatePickersSlideTransition",e),Tw=(0,L.Z)("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ow=["children","className","reduceAnimations","slideDirection","transKey"],Rw=(0,h.ZP)(P,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{["."+Tw["slideEnter-left"]]:t["slideEnter-left"]},{["."+Tw["slideEnter-right"]]:t["slideEnter-right"]},{["."+Tw.slideEnterActive]:t.slideEnterActive},{["."+Tw.slideExit]:t.slideExit},{["."+Tw["slideExitActiveLeft-left"]]:t["slideExitActiveLeft-left"]},{["."+Tw["slideExitActiveLeft-right"]]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& ."+Tw["slideEnter-left"]]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& ."+Tw["slideEnter-right"]]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& ."+Tw.slideEnterActive]:{transform:"translate(0%)",transition:t},["& ."+Tw.slideExit]:{transform:"translate(0%)"},["& ."+Tw["slideExitActiveLeft-left"]]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},["& ."+Tw["slideExitActiveLeft-right"]]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Aw=e=>(0,X.ZP)("MuiDayPicker",e),Mw=((0,L.Z)("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),e=>e.charAt(0).toUpperCase()),Dw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),jw=(0,h.ZP)(ig,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Iw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Nw=(0,h.ZP)(t=>{const{children:n,className:r,reduceAnimations:o,slideDirection:i,transKey:a}=t,s=(0,l.Z)(t,Ow),c=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Pw,t)})(t);if(o)return(0,I.jsx)("div",{className:hv(c.root,r),children:n});const d={exit:Tw.slideExit,enterActive:Tw.slideEnterActive,enter:Tw["slideEnter-"+i],exitActive:Tw["slideExitActiveLeft-"+i]};return(0,I.jsx)(Rw,{className:hv(c.root,r),childFactory:t=>e.cloneElement(t,{classNames:d}),role:"presentation",children:(0,I.jsx)(Cw,(0,u.Z)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:d},s,{children:n}),a)})},{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Lw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Zw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function Fw(t){const n=iv(),r=nv(),o=(0,m.Z)({props:t,name:"MuiDayPicker"}),i=(e=>{const{classes:t}=e;return(0,f.Z)({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Aw,t)})(o),{onFocusedDayChange:a,className:s,currentMonth:l,selectedDays:c,disabled:d,disableHighlightToday:p,focusedDay:h,isMonthSwitchingAnimating:g,loading:y,onSelectedDaysChange:v,onMonthSwitchingAnimationEnd:b,readOnly:w,reduceAnimations:x,renderDay:S,renderLoading:_=(()=>(0,I.jsx)("span",{children:"..."})),showDaysOutsideCurrentMonth:k,slideDirection:E,TransitionProps:C,disablePast:P,disableFuture:T,minDate:O,maxDate:R,shouldDisableDate:A,dayOfWeekFormatter:M=Mw,hasFocus:D,onFocusedViewChange:j,gridLabelId:N}=o,L=iw({shouldDisableDate:A,minDate:O,maxDate:R,disablePast:P,disableFuture:T}),[Z,F]=e.useState(()=>h||n),B=e.useCallback(e=>{j&&j(e)},[j]),V=e.useCallback((e,t="finish")=>{w||v(e,t)},[v,w]),z=e.useCallback(e=>{L(e)||(a(e),F(e),B(!0))},[L,a,B]),W=vi();function U(e,t){switch(e.key){case"ArrowUp":z(r.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":z(r.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=r.addDays(t,"ltr"===W.direction?-1:1),o="ltr"===W.direction?r.getPreviousMonth(t):r.getNextMonth(t),i=av({utils:r,date:n,minDate:"ltr"===W.direction?r.startOfMonth(o):n,maxDate:"ltr"===W.direction?n:r.endOfMonth(o),isDateDisabled:L});z(i||n),e.preventDefault();break}case"ArrowRight":{const n=r.addDays(t,"ltr"===W.direction?1:-1),o="ltr"===W.direction?r.getNextMonth(t):r.getPreviousMonth(t),i=av({utils:r,date:n,minDate:"ltr"===W.direction?n:r.startOfMonth(o),maxDate:"ltr"===W.direction?r.endOfMonth(o):n,isDateDisabled:L});z(i||n),e.preventDefault();break}case"Home":z(r.startOfWeek(t)),e.preventDefault();break;case"End":z(r.endOfWeek(t)),e.preventDefault();break;case"PageUp":z(r.getNextMonth(t)),e.preventDefault();break;case"PageDown":z(r.getPreviousMonth(t)),e.preventDefault()}}function $(e,t){z(t)}function H(e,t){D&&r.isSameDay(Z,t)&&B(!1)}const Y=r.getMonth(l),G=c.filter(e=>!!e).map(e=>r.startOfDay(e)),q=Y,K=e.useMemo(()=>e.createRef(),[q]),X=r.startOfWeek(n),Q=e.useMemo(()=>{const e=r.startOfMonth(l),t=r.endOfMonth(l);return L(Z)||r.isAfterDay(Z,t)||r.isBeforeDay(Z,e)?av({utils:r,date:Z,minDate:e,maxDate:t,disablePast:P,disableFuture:T,isDateDisabled:L}):Z},[l,T,P,Z,L,r]);return(0,I.jsxs)("div",{role:"grid","aria-labelledby":N,children:[(0,I.jsx)(Dw,{role:"row",className:i.header,children:r.getWeekdays().map((e,t)=>{var n;return(0,I.jsx)(jw,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(X,t),"weekday"),className:i.weekDayLabel,children:null!=(n=null==M?void 0:M(e))?n:e},e+t.toString())})}),y?(0,I.jsx)(Iw,{className:i.loadingContainer,children:_()}):(0,I.jsx)(Nw,(0,u.Z)({transKey:q,onExited:b,reduceAnimations:x,slideDirection:E,className:hv(s,i.slideTransition)},C,{nodeRef:K,children:(0,I.jsx)(Lw,{ref:K,role:"rowgroup",className:i.monthContainer,children:r.getWeekArray(l).map(t=>(0,I.jsx)(Zw,{role:"row",className:i.weekContainer,children:t.map(t=>{const o=null!==Q&&r.isSameDay(t,Q),i=G.some(e=>r.isSameDay(e,t)),a=r.isSameDay(t,n),s={key:null==t?void 0:t.toString(),day:t,isAnimating:g,disabled:d||L(t),autoFocus:D&&o,today:a,outsideCurrentMonth:r.getMonth(t)!==Y,selected:i,disableHighlightToday:p,showDaysOutsideCurrentMonth:k,onKeyDown:U,onFocus:$,onBlur:H,onDaySelect:V,tabIndex:o?0:-1,role:"gridcell","aria-selected":i};return a&&(s["aria-current"]="date"),S?S(t,G,s):(0,e.createElement)(Sw,(0,u.Z)({},s,{key:s.key}))})},"week-"+t[0]))})}))]})}const Bw=e=>(0,X.ZP)("MuiPickersCalendarHeader",e),Vw=((0,L.Z)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30})),zw=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>(0,u.Z)({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Ww=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Uw=(0,h.ZP)(Fh,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),$w=(0,h.ZP)(Ev,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>(0,u.Z)({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},"year"===t.openView&&{transform:"rotate(180deg)"})),Hw=()=>{};function Yw(t){const n=(0,m.Z)({props:t,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:o={},currentMonth:i,disabled:a,disableFuture:s,disablePast:l,getViewSwitchingButtonText:c,leftArrowButtonText:d,maxDate:p,minDate:h,onMonthChange:g,onViewChange:y,openView:v,reduceAnimations:b,rightArrowButtonText:w,views:x,labelId:S}=n;Hw({leftArrowButtonText:d,rightArrowButtonText:w,getViewSwitchingButtonText:c});const _=ov(),k=null!=d?d:_.previousMonth,E=null!=w?w:_.nextMonth,C=null!=c?c:_.calendarViewSwitchingButtonAriaLabel,P=nv(),T=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Bw,t)})(n),O=o.switchViewButton||{},R=function(t,{disableFuture:n,maxDate:r}){const o=nv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(n&&o.isBefore(e,r)?e:r);return!o.isAfter(i,t)},[n,r,t,o])}(i,{disableFuture:s,maxDate:p}),A=function(t,{disablePast:n,minDate:r}){const o=nv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(n&&o.isAfter(e,r)?e:r);return!o.isBefore(i,t)},[n,r,t,o])}(i,{disablePast:l,minDate:h});if(1===x.length&&"year"===x[0])return null;const M=n;return(0,I.jsxs)(Vw,{ownerState:M,className:T.root,children:[(0,I.jsxs)(zw,{role:"presentation",onClick:()=>{if(1!==x.length&&y&&!a)if(2===x.length)y(x.find(e=>e!==v)||x[0]);else{const e=0!==x.indexOf(v)?0:1;y(x[e])}},ownerState:M,"aria-live":"polite",className:T.labelContainer,children:[(0,I.jsx)(dw,{reduceAnimations:b,transKey:P.format(i,"monthAndYear"),children:(0,I.jsx)(Ww,{id:S,ownerState:M,className:T.label,children:P.format(i,"monthAndYear")})}),x.length>1&&!a&&(0,I.jsx)(Uw,(0,u.Z)({size:"small",as:r.SwitchViewButton,"aria-label":C(v),className:T.switchViewButton},O,{children:(0,I.jsx)($w,{as:r.SwitchViewIcon,ownerState:M,className:T.switchViewIcon})}))]}),(0,I.jsx)(wp,{in:"day"===v,children:(0,I.jsx)(Nb,{leftArrowButtonText:k,rightArrowButtonText:E,components:r,componentsProps:o,onLeftClick:()=>g(P.getPreviousMonth(i),"right"),onRightClick:()=>g(P.getNextMonth(i),"left"),isLeftDisabled:A,isRightDisabled:R})})]})}function Gw(e){return(0,X.ZP)("PrivatePickersYear",e)}const qw=(0,L.Z)("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Kw=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Xw=(0,h.ZP)("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+qw.modeDesktop]:t.modeDesktop},{["&."+qw.modeMobile]:t.modeMobile}]})(({ownerState:e})=>(0,u.Z)({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"})),Qw=(0,h.ZP)("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{["&."+qw.disabled]:t.disabled},{["&."+qw.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},["&."+qw.disabled]:{color:e.palette.text.secondary},["&."+qw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},ex=e.forwardRef((function(t,n){const{autoFocus:r,className:o,children:i,disabled:a,onClick:s,onKeyDown:c,value:d,tabIndex:p,onFocus:h=Jw,onBlur:m=Jw}=t,y=(0,l.Z)(t,Kw),v=e.useRef(null),b=(0,g.Z)(v,n),w=e.useContext(Wv),x=(0,u.Z)({},t,{wrapperVariant:w}),S=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:o}=e,i={root:["root",t&&"mode"+(0,re.Z)(t)],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return(0,f.Z)(i,Gw,o)})(x);return e.useEffect(()=>{r&&v.current.focus()},[r]),(0,I.jsx)(Xw,{className:hv(S.root,o),ownerState:x,children:(0,I.jsx)(Qw,(0,u.Z)({ref:b,disabled:a,type:"button",tabIndex:a?-1:p,onClick:e=>s(e,d),onKeyDown:e=>c(e,d),onFocus:e=>h(e,d),onBlur:e=>m(e,d),className:S.yearButton,ownerState:x},y,{children:i}))})}));function tx(e){return(0,X.ZP)("MuiYearPicker",e)}(0,L.Z)("MuiYearPicker",["root"]);const nx=(0,h.ZP)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),rx=e.forwardRef((function(t,n){const r=iv(),o=vi(),i=nv(),a=function(e,t){const n=nv(),r=rv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disablePast:!1,disableFuture:!1},o,{minDate:lv(n,o.minDate,r.minDate),maxDate:lv(n,o.maxDate,r.maxDate)})}(t,"MuiYearPicker"),{autoFocus:s,className:l,date:c,disabled:d,disableFuture:p,disablePast:h,maxDate:y,minDate:v,onChange:b,readOnly:w,shouldDisableYear:x,disableHighlightToday:S,onYearFocus:_,hasFocus:k,onFocusedViewChange:E}=a,C=a,P=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},tx,t)})(C),T=e.useMemo(()=>null!=c?c:i.startOfYear(r),[r,i,c]),O=e.useMemo(()=>null!=c?i.getYear(c):S?null:i.getYear(r),[r,c,i,S]),R=e.useContext(Wv),A=e.useRef(null),[M,D]=e.useState(()=>O||i.getYear(r)),[j,N]=(0,Dg.Z)({name:"YearPicker",state:"hasFocus",controlled:k,default:s}),L=e.useCallback(e=>{N(e),E&&E(e)},[N,E]),Z=e.useCallback(e=>!(!h||!i.isBeforeYear(e,r))||(!(!p||!i.isAfterYear(e,r))||(!(!v||!i.isBeforeYear(e,v))||(!(!y||!i.isAfterYear(e,y))||!(!x||!x(e))))),[p,h,y,v,r,x,i]),F=(e,t,n="finish")=>{if(w)return;const r=i.setYear(T,t);b(r,n)},B=e.useCallback(e=>{Z(i.setYear(T,e))||(D(e),L(!0),null==_||_(e))},[Z,i,T,L,_]);e.useEffect(()=>{D(e=>null!==O&&e!==O?O:e)},[O]);const V="desktop"===R?4:3,z=e.useCallback((e,t)=>{switch(e.key){case"ArrowUp":B(t-V),e.preventDefault();break;case"ArrowDown":B(t+V),e.preventDefault();break;case"ArrowLeft":B(t+("ltr"===o.direction?-1:1)),e.preventDefault();break;case"ArrowRight":B(t+("ltr"===o.direction?1:-1)),e.preventDefault()}},[B,o.direction,V]),W=e.useCallback((e,t)=>{B(t)},[B]),U=e.useCallback((e,t)=>{M===t&&L(!1)},[M,L]),$=i.getYear(r),H=e.useRef(null),Y=(0,g.Z)(n,H);return e.useEffect(()=>{if(s||null===H.current)return;const e=H.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=H.current.clientHeight,o=H.current.scrollTop,i=n+t;t>r||n<o||(H.current.scrollTop=i-r/2-t/2)},[s]),(0,I.jsx)(nx,{ref:Y,className:hv(P.root,l),ownerState:C,children:i.getYearRange(v,y).map(e=>{const t=i.getYear(e),n=t===O;return(0,I.jsx)(ex,{selected:n,value:t,onClick:F,onKeyDown:z,autoFocus:j&&t===M,ref:n?A:void 0,disabled:d||Z(e),tabIndex:t===M?0:-1,onFocus:W,onBlur:U,"aria-current":$===t?"date":void 0,children:i.format(e,"year")},i.format(e,"year"))})})})),ox="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),ix=e=>(0,X.ZP)("MuiCalendarPicker",e),ax=((0,L.Z)("MuiCalendarPicker",["root","viewTransitionContainer"]),["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"]);const sx=(0,h.ZP)(zb,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),lx=(0,h.ZP)(dw,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ux=e.forwardRef((function(t,n){const r=nv(),o=(0,ss.Z)(),i=function(e,t){const n=nv(),r=rv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:ox,renderLoading:()=>(0,I.jsx)("span",{children:"..."})},o,{minDate:lv(n,o.minDate,r.minDate),maxDate:lv(n,o.maxDate,r.maxDate)})}(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:s,date:c,disableFuture:d,disablePast:p,defaultCalendarMonth:h,onChange:g,onYearChange:v,onMonthChange:b,reduceAnimations:w,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:_,view:k,views:E,openTo:C,className:P,disabled:T,readOnly:O,minDate:R,maxDate:A,disableHighlightToday:M,focusedView:D,onFocusedViewChange:j}=i,N=(0,l.Z)(i,ax),{openView:L,setOpenView:Z,openNext:F}=ib({view:k,views:E,openTo:C,onChange:g,onViewChange:s}),{calendarState:B,changeFocusedDay:V,changeMonth:z,handleChangeMonth:W,isDateDisabled:U,onMonthSwitchingAnimationEnd:$}=lw({date:c,defaultCalendarMonth:h,reduceAnimations:w,onMonthChange:b,minDate:R,maxDate:A,shouldDisableDate:x,disablePast:p,disableFuture:d}),H=e.useCallback((e,t)=>{const n=r.startOfMonth(e),o=r.endOfMonth(e),i=U(e)?av({utils:r,date:e,minDate:r.isBefore(R,n)?n:R,maxDate:r.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==b||b(n)):(F(),z(n)),V(i,!0)},[V,d,p,U,A,R,g,b,z,F,r]),Y=e.useCallback((e,t)=>{const n=r.startOfYear(e),o=r.endOfYear(e),i=U(e)?av({utils:r,date:e,minDate:r.isBefore(R,n)?n:R,maxDate:r.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==v||v(i)):(F(),z(n)),V(i,!0)},[V,d,p,U,A,R,g,v,F,r,z]),G=e.useCallback((e,t)=>g(c&&e?r.mergeDateAndTime(e,c):e,t),[r,c,g]);e.useEffect(()=>{c&&z(c)},[c]);const q=i,K=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ix,t)})(q),X={disablePast:p,disableFuture:d,maxDate:A,minDate:R},Q=T&&c||R,J=T&&c||A,ee={disableHighlightToday:M,readOnly:O,disabled:T},te=o+"-grid-label",[ne,re]=(0,ls.Z)({name:"DayPicker",state:"focusedView",controlled:D,default:a?L:null}),oe=null!==ne,ie=(0,y.Z)(e=>t=>{j?j(e)(t):re(t?e:t=>t===e?null:t)}),ae=e.useRef(L);return e.useEffect(()=>{ae.current!==L&&(ae.current=L,ie(L)(!0))},[L,ie]),(0,I.jsxs)(sx,{ref:n,className:hv(K.root,P),ownerState:q,children:[(0,I.jsx)(Yw,(0,u.Z)({},N,{views:E,openView:L,currentMonth:B.currentMonth,onViewChange:Z,onMonthChange:(e,t)=>W({newMonth:e,direction:t}),minDate:Q,maxDate:J,disabled:T,disablePast:p,disableFuture:d,reduceAnimations:w,labelId:te})),(0,I.jsx)(lx,{reduceAnimations:w,className:K.viewTransitionContainer,transKey:L,ownerState:q,children:(0,I.jsxs)("div",{children:["year"===L&&(0,I.jsx)(rx,(0,u.Z)({},N,X,ee,{autoFocus:a,date:c,onChange:Y,shouldDisableYear:_,hasFocus:oe,onFocusedViewChange:ie("year")})),"month"===L&&(0,I.jsx)(nw,(0,u.Z)({},X,ee,{autoFocus:a,hasFocus:oe,className:P,date:c,onChange:H,shouldDisableMonth:S,onFocusedViewChange:ie("month")})),"day"===L&&(0,I.jsx)(Fw,(0,u.Z)({},N,B,X,ee,{autoFocus:a,onMonthSwitchingAnimationEnd:$,onFocusedDayChange:V,reduceAnimations:w,selectedDays:[c],onSelectedDaysChange:G,shouldDisableDate:x,hasFocus:oe,onFocusedViewChange:ie("day"),gridLabelId:te}))]})})]})}));function cx(e){return(0,X.ZP)("MuiInputAdornment",e)}const dx=(0,L.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fx;const px=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hx=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position"+(0,re.Z)(n.position)],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${dx.positionStart}&:not(.${dx.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),mx=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:d=!1,position:p,variant:h}=r,g=(0,l.Z)(r,px),y=jd()||{};let v=h;h&&y.variant,y&&!v&&(v=y.variant);const b=(0,u.Z)({},r,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:s,position:p,variant:v}),w=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&"position"+(0,re.Z)(o),a,r&&"hiddenLabel",i&&"size"+(0,re.Z)(i)]};return(0,f.Z)(s,cx,t)})(b);return(0,I.jsx)(Dd.Provider,{value:null,children:(0,I.jsx)(hx,(0,u.Z)({as:a,ownerState:b,className:(0,c.Z)(w.root,i),ref:n},g,{children:"string"!=typeof o||d?(0,I.jsxs)(e.Fragment,{children:["start"===p?fx||(fx=(0,I.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,I.jsx)(ig,{color:"text.secondary",children:o})}))})})),gx=t=>{const[,n]=(0,e.useReducer)(e=>e+1,0),r=(0,e.useRef)(null),{replace:o,append:i}=t,a=o?o(t.format(t.value)):t.format(t.value),s=(0,e.useRef)(!1);return(0,e.useLayoutEffect)(()=>{if(null==r.current)return;let[e,s,l,u,c]=r.current;r.current=null;const d=u&&c,f=e.slice(s.selectionStart).search(t.accept||/\d/g),p=-1!==f?f:0,h=e=>(e.match(t.accept||/\d/g)||[]).join(""),m=h(e.substr(0,s.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==m.length;++r){let o=e.indexOf(m[r],t)+1,i=h(e).indexOf(m[r],n)+1;i-n>1&&(o=t,i=n),n=Math.max(i,n),t=Math.max(t,o)}return t};if(!0===t.mask&&l&&!c){let t=g(e);const n=h(e.substr(t))[0];t=e.indexOf(n,t),e=`${e.substr(0,t)}${e.substr(t+1)}`}let y=t.format(e);null==i||s.selectionStart!==e.length||c||(l?y=i(y):""===h(y.slice(-1))&&(y=y.slice(0,-1)));const v=o?o(y):y;return a===v?n():t.onChange(v),()=>{let e=g(y);if(null!=t.mask&&(l||u&&!d))for(;y[e]&&""===h(y[e]);)e+=1;s.selectionStart=s.selectionEnd=e+(d?1+p:0)}}),(0,e.useEffect)(()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),{value:null!=r.current?r.current[0]:a,onChange:e=>{const o=e.target.value;r.current=[o,e.target,o.length>a.length,s.current,a===t.format(o)],n()}}},yx=(e,t,n)=>{const r=e.date(t);return null===t?"":e.isValid(r)?e.formatByString(r,n):""};function vx(e,t,n,r){if(!e)return!1;const o=r.formatByString(r.date("2019-01-01T09:00:00.000"),t).replace(n,"_"),i=r.formatByString(r.date("2019-11-21T22:30:00.000"),t).replace(n,"_"),a=i===o&&e===i;return!a&&r.lib,a}const bx=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],wx=e.forwardRef((function(t,n){const{className:r,components:o={},disableOpenPicker:i,getOpenDialogAriaText:a,InputAdornmentProps:s,InputProps:c,inputRef:d,openPicker:f,OpenPickerButtonProps:p,renderInput:h}=t,m=(0,l.Z)(t,bx),g=ov(),y=null!=a?a:g.openDatePickerDialogue,v=nv(),b=(({acceptRegex:t=/[\d]/gi,disabled:n,disableMaskedInput:r,ignoreInvalidInputs:o,inputFormat:i,inputProps:a,label:s,mask:l,onChange:c,rawValue:d,readOnly:f,rifmFormatter:p,TextFieldProps:h,validationError:m})=>{const g=nv(),y=g.getFormatHelperText(i),{shouldUseMaskedInput:v,maskToUse:b}=e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const e=function(e,t,n,r){if(e)return e;const o=r.formatByString(r.date("2019-01-01T09:00:00.000"),t).replace(n,"_");return o===r.formatByString(r.date("2019-11-21T22:30:00.000"),t).replace(n,"_")?o:""}(l,i,t,g);return{shouldUseMaskedInput:vx(e,i,t,g),maskToUse:e}},[t,r,i,l,g]),w=e.useMemo(()=>v&&b?((e,t)=>n=>{let r=0;return n.split("").map((o,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const a=e[r],s=e[r+1],l=t.test(o)?o:"",u="_"===a?l:a+l;r+=u.length;return i===n.length-1&&s&&"_"!==s?u?u+s:"":u}).join("")})(b,t):e=>e,[t,b,v]),x=null===d?null:g.date(d),[S,_]=e.useState(x),[k,E]=e.useState(yx(g,d,i)),C=e.useRef(),P=e.useRef(g.locale),T=e.useRef(i);e.useEffect(()=>{const e=d!==C.current,t=g.locale!==P.current,n=i!==T.current;if(C.current=d,P.current=g.locale,T.current=i,!e&&!t&&!n)return;const r=null===d?null:g.date(d),o=null===d||g.isValid(r);let a=null===S&&null===r;if(null!==S&&null!==r){const e=g.isEqual(S,r);if(e)a=!0;else{const t=Math.abs(g.getDiff(S,r));a=0===t?e:t<1e3}}if(!t&&!n&&(!o||a))return;const s=yx(g,d,i);_(r),E(s)},[g,d,i,S]);const O=e=>{const t=""===e||e===l?"":e;E(t);const n=null===t?null:g.parse(t,i);o&&!g.isValid(n)||(_(n),c(n,t||void 0))},R=gx({value:k,onChange:O,format:p||w}),A=v?R:{value:k,onChange:e=>{O(e.currentTarget.value)}};return(0,u.Z)({label:s,disabled:n,error:m,inputProps:(0,u.Z)({},A,{disabled:n,placeholder:y,readOnly:f,type:v?"tel":"text"},a)},h)})(m),w=(null==s?void 0:s.position)||"end",x=o.OpenPickerIcon||Tv;return h((0,u.Z)({ref:n,inputRef:d,className:r},b,{InputProps:(0,u.Z)({},c,{[w+"Adornment"]:i?void 0:(0,I.jsx)(mx,(0,u.Z)({position:w},s,{children:(0,I.jsx)(Fh,(0,u.Z)({edge:w,disabled:m.disabled||m.readOnly,"aria-label":y(m.rawValue,v)},p,{onClick:f,children:(0,I.jsx)(x,{})}))}))})}))}));function xx(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function Sx(e){return(0,X.ZP)("MuiCalendarOrClockPicker",e)}(0,L.Z)("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const _x=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],kx=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Ex=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),Cx={fullWidth:!0},Px=e=>"year"===e||"month"===e||"day"===e,Tx=e=>"hours"===e||"minutes"===e||"seconds"===e;function Ox(t){var n,r;const o=(0,m.Z)({props:t,name:"MuiCalendarOrClockPicker"}),{autoFocus:i,parsedValue:a,DateInputProps:s,isMobileKeyboardViewOpen:c,onDateChange:d,onViewChange:p,openTo:h,orientation:g,showToolbar:y,toggleMobileKeyboardView:v,ToolbarComponent:b=(()=>null),toolbarFormat:w,toolbarPlaceholder:x,toolbarTitle:S,views:_,dateRangeIcon:k,timeIcon:E,hideTabs:C}=o,P=(0,l.Z)(o,_x),T=null==(n=P.components)?void 0:n.Tabs,O=((t,n)=>{const[r,o]=e.useState(xx);if((0,ji.Z)(()=>{const e=()=>{o(xx())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),Xv(t,["hours","minutes","seconds"]))return!1;return"landscape"===(n||r)})(_,g),R=e.useContext(Wv),A=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Sx,t)})(o),M=null!=y?y:"desktop"!==R,D=!C&&"undefined"!=typeof window&&window.innerHeight>667,j=e.useCallback((e,t)=>{d(e,R,t)},[d,R]),N=e.useCallback(e=>{c&&v(),p&&p(e)},[c,p,v]);const{openView:L,setOpenView:Z,handleChangeAndOpenNext:F}=ib({view:void 0,views:_,openTo:h,onChange:j,onViewChange:N}),{focusedView:B,setFocusedView:V}=(({autoFocus:t,openView:n})=>{const[r,o]=e.useState(t?n:null);return{focusedView:r,setFocusedView:e.useCallback(e=>t=>{o(t?e:t=>e===t?null:t)},[])}})({autoFocus:i,openView:L});return(0,I.jsxs)(Ex,{ownerState:{isLandscape:O},className:A.root,children:[M&&(0,I.jsx)(b,(0,u.Z)({},P,{views:_,isLandscape:O,parsedValue:a,onChange:j,setOpenView:Z,openView:L,toolbarTitle:S,toolbarFormat:w,toolbarPlaceholder:x,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:v})),D&&!!T&&(0,I.jsx)(T,(0,u.Z)({dateRangeIcon:k,timeIcon:E,view:L,onChange:Z},null==(r=P.componentsProps)?void 0:r.tabs)),(0,I.jsx)(zb,{children:c?(0,I.jsx)(kx,{className:A.mobileKeyboardInputView,children:(0,I.jsx)(wx,(0,u.Z)({},s,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:Cx}))}):(0,I.jsxs)(e.Fragment,{children:[Px(L)&&(0,I.jsx)(ux,(0,u.Z)({autoFocus:i,date:a,onViewChange:Z,onChange:F,view:L,views:_.filter(Px),focusedView:B,onFocusedViewChange:V},P)),Tx(L)&&(0,I.jsx)(Hb,(0,u.Z)({},P,{autoFocus:i,date:a,view:L,views:_.filter(Tx),onChange:F,onViewChange:Z,showViewSwitcher:"desktop"===R}))]})})]})}const Rx=(t,n)=>{const{onAccept:r,onChange:o,value:i,closeOnSelect:a}=t,s=nv(),{isOpen:l,setIsOpen:c}=(({open:t,onOpen:n,onClose:r})=>{const o=e.useRef("boolean"==typeof t).current,[i,a]=e.useState(!1);e.useEffect(()=>{if(o){if("boolean"!=typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(t)}},[o,t]);return{isOpen:i,setIsOpen:e.useCallback(e=>{o||a(e),e&&n&&n(),!e&&r&&r()},[o,n,r])}})(t),d=e.useMemo(()=>n.parseInput(s,i),[n,s,i]),[f,p]=e.useState(d),[h,m]=e.useState(()=>({committed:d,draft:d,resetFallback:d})),g=e.useCallback(e=>{m(t=>{switch(e.action){case"setAll":case"acceptAndClose":return{draft:e.value,committed:e.value,resetFallback:e.value};case"setCommitted":return(0,u.Z)({},t,{draft:e.value,committed:e.value});case"setDraft":return(0,u.Z)({},t,{draft:e.value});default:return t}}),(e.forceOnChangeCall||!e.skipOnChangeCall&&!n.areValuesEqual(s,h.committed,e.value))&&o(e.value),"acceptAndClose"===e.action&&(c(!1),r&&!n.areValuesEqual(s,h.resetFallback,e.value)&&r(e.value))},[r,o,c,h,s,n]);e.useEffect(()=>{s.isValid(d)&&p(d)},[s,d]),e.useEffect(()=>{l&&g({action:"setAll",value:d,skipOnChangeCall:!0})},[l]),n.areValuesEqual(s,h.committed,d)||g({action:"setCommitted",value:d,skipOnChangeCall:!0});const y=e.useMemo(()=>({open:l,onClear:()=>{g({value:n.emptyValue,action:"acceptAndClose",forceOnChangeCall:!n.areValuesEqual(s,i,n.emptyValue)})},onAccept:()=>{g({value:h.draft,action:"acceptAndClose",forceOnChangeCall:!n.areValuesEqual(s,i,d)})},onDismiss:()=>{g({value:h.committed,action:"acceptAndClose"})},onCancel:()=>{g({value:h.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{g({value:n.getTodayValue(s),action:"acceptAndClose"})}}),[g,l,s,h,n,i,d]),[v,b]=e.useState(!1),w=e.useMemo(()=>({parsedValue:h.draft,isMobileKeyboardViewOpen:v,toggleMobileKeyboardView:()=>b(!v),onDateChange:(e,t,n="partial")=>{switch(n){case"shallow":return g({action:"setDraft",value:e,skipOnChangeCall:!0});case"partial":return g({action:"setDraft",value:e});case"finish":return g((null!=a?a:"desktop"===t)?{value:e,action:"acceptAndClose"}:{value:e,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[g,v,h.draft,a]),x=e.useCallback((e,t)=>{const r=n.valueReducer?n.valueReducer(s,f,e):e;o(r,t)},[o,n,f,s]),S={pickerProps:w,inputProps:e.useMemo(()=>({onChange:x,open:l,rawValue:i,openPicker:()=>c(!0)}),[x,l,i,c]),wrapperProps:y};return e.useDebugValue(S,()=>({MuiPickerState:{dateState:h,other:S}})),S},Ax=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],Mx=e.forwardRef((function(e,t){const n=dv(e,"MuiDesktopDatePicker"),r=null!==sw(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,fv),{PopperProps:s,PaperProps:c,ToolbarComponent:d=zv,TransitionComponent:f,components:p,componentsProps:h}=n,m=(0,l.Z)(n,Ax),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:r});return(0,I.jsx)(ob,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:s,PaperProps:c,TransitionComponent:f,components:p,componentsProps:h,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))}));function Dx(e){return(0,X.ZP)("MuiDialogContent",e)}(0,L.Z)("MuiDialogContent",["root","dividers"]);const jx=(0,L.Z)("MuiDialogTitle",["root"]),Ix=["className","dividers"],Nx=(0,h.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,u.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:"1px solid "+(e.vars||e).palette.divider,borderBottom:"1px solid "+(e.vars||e).palette.divider}:{[`.${jx.root} + &`]:{paddingTop:0}})),Lx=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=(0,l.Z)(n,Ix),a=(0,u.Z)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,f.Z)(r,Dx,t)})(a);return(0,I.jsx)(Nx,(0,u.Z)({className:(0,c.Z)(s.root,r),ownerState:a,ref:t},i))}));function Zx(e){return(0,X.ZP)("MuiDialog",e)}const Fx=(0,L.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Bx=e.createContext({}),Vx=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],zx=(0,h.ZP)(kp,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Wx=(0,h.ZP)(Op,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ux=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll"+(0,re.Z)(n.scroll)]]}})(({ownerState:e})=>(0,u.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$x=(0,h.ZP)(jp,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper"+(0,re.Z)(n.scroll)],t["paperWidth"+(0,re.Z)(String(n.maxWidth))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,["&."+Fx.paperScrollBody]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,["&."+Fx.paperScrollBody]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&."+Fx.paperScrollBody]:{margin:0,maxWidth:"100%"}})),Hx=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiDialog"}),o=vi(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:x,onClose:S,open:_,PaperComponent:k=jp,PaperProps:E={},scroll:C="paper",TransitionComponent:P=wp,transitionDuration:T=i,TransitionProps:O}=r,R=(0,l.Z)(r,Vx),A=(0,u.Z)({},r,{disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:w,scroll:C}),M=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll"+(0,re.Z)(n)],paper:["paper","paperScroll"+(0,re.Z)(n),"paperWidth"+(0,re.Z)(String(r)),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,f.Z)(a,Zx,t)})(A),D=e.useRef(),j=(0,Sd.Z)(s),N=e.useMemo(()=>({titleId:j}),[j]);return(0,I.jsx)(Wx,(0,u.Z)({className:(0,c.Z)(M.root,g),closeAfterTransition:!0,components:{Backdrop:zx},componentsProps:{backdrop:(0,u.Z)({transitionDuration:T,as:d},p)},disableEscapeKeyDown:y,onClose:S,open:_,ref:n,onClick:e=>{D.current&&(D.current=null,x&&x(e),S&&S(e,"backdropClick"))},ownerState:A},R,{children:(0,I.jsx)(P,(0,u.Z)({appear:!0,in:_,timeout:T,role:"presentation"},O,{children:(0,I.jsx)(Ux,{className:(0,c.Z)(M.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:A,children:(0,I.jsx)($x,(0,u.Z)({as:k,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},E,{className:(0,c.Z)(M.paper,E.className),ownerState:A,children:(0,I.jsx)(Bx.Provider,{value:N,children:h})}))})}))}))})),Yx=(0,h.ZP)(Hx)({["& ."+Fx.container]:{outline:0},["& ."+Fx.paper]:{outline:0,minWidth:320}}),Gx=(0,h.ZP)(Lx)({"&:first-of-type":{padding:0}}),qx=e=>{var t;const{children:n,DialogProps:r={},onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:l,open:c,components:d,componentsProps:f}=e,p=null!=(t=null==d?void 0:d.ActionBar)?t:qv;return(0,I.jsxs)(Yx,(0,u.Z)({open:c,onClose:a},r,{children:[(0,I.jsx)(Gx,{children:n}),(0,I.jsx)(p,(0,u.Z)({onAccept:o,onClear:i,onCancel:s,onSetToday:l,actions:["cancel","accept"]},null==f?void 0:f.actionBar))]}))},Kx=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Xx(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,PureDateInputComponent:f,components:p,componentsProps:h}=e,m=(0,l.Z)(e,Kx);return(0,I.jsxs)(Wv.Provider,{value:"mobile",children:[(0,I.jsx)(f,(0,u.Z)({components:p},m,n)),(0,I.jsx)(qx,{DialogProps:r,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,components:p,componentsProps:h,children:t})]})}const Qx=e.forwardRef((function(t,n){const{disabled:r,getOpenDialogAriaText:o,inputFormat:i,InputProps:a,inputRef:s,label:l,openPicker:c,rawValue:d,renderInput:f,TextFieldProps:p={},validationError:h,className:m}=t,g=ov(),v=null!=o?o:g.openDatePickerDialogue,b=nv(),w=e.useMemo(()=>(0,u.Z)({},a,{readOnly:!0}),[a]),x=yx(b,d,i),S=(0,y.Z)(e=>{e.stopPropagation(),c()});return f((0,u.Z)({label:l,disabled:r,ref:n,inputRef:s,error:h,InputProps:w,className:m},!t.readOnly&&!t.disabled&&{onClick:S},{inputProps:(0,u.Z)({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":v(d,b),value:x},!t.readOnly&&{onClick:S},{onKeyDown:Qv(c)})},p))})),Jx=["ToolbarComponent","value","onChange","components","componentsProps"],eS=e.forwardRef((function(e,t){const n=dv(e,"MuiMobileDatePicker"),r=null!==sw(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,fv),{ToolbarComponent:s=zv,components:c,componentsProps:d}=n,f=(0,l.Z)(n,Jx),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:r});return(0,I.jsx)(Xx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Qx,components:c,componentsProps:d,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),tS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],nS=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=n,s=(0,l.Z)(n,tS);return qy(r,{defaultMatches:!0})?(0,I.jsx)(Mx,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,I.jsx)(eS,(0,u.Z)({ref:t,DialogProps:o},s))}));function rS(e,t){var n;const r=(0,m.Z)({props:e,name:t}),o=nv(),i=null!=(n=r.ampm)?n:o.is12HourCycleInCurrentLocale(),a=ov().openTimePickerDialogue;return(0,u.Z)({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?o.formats.fullTime12h:o.formats.fullTime24h},r,{components:(0,u.Z)({OpenPickerIcon:Ov},r.components)})}const oS={emptyValue:null,parseInput:sv,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>t&&e.isValid(n)?e.mergeDateAndTime(t,n):n};function iS(e){return(0,X.ZP)("PrivatePickersToolbarText",e)}const aS=(0,L.Z)("PrivatePickersToolbarText",["root","selected"]),sS=["className","selected","value"],lS=(0,h.ZP)(ig,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+aS.selected]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,["&."+aS.selected]:{color:e.palette.text.primary}})),uS=e.forwardRef((function(e,t){const{className:n,value:r}=e,o=(0,l.Z)(e,sS),i=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,f.Z)(r,iS,t)})(e);return(0,I.jsx)(lS,(0,u.Z)({ref:t,className:hv(n,i.root),component:"span"},o,{children:r}))})),cS=["align","className","selected","typographyClassName","value","variant"],dS=(0,h.ZP)(pe,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),fS=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:i,typographyClassName:a,value:s,variant:c}=n,d=(0,l.Z)(n,cS),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Av,t)})(n);return(0,I.jsx)(dS,(0,u.Z)({variant:"text",ref:t,className:hv(o,p.root)},d,{children:(0,I.jsx)(uS,{align:r,className:a,variant:c,value:s,selected:i})}))}));function pS(e){return(0,X.ZP)("MuiTimePickerToolbar",e)}const hS=(0,L.Z)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),mS=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],gS=(0,h.ZP)(Lv,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({["& ."+Mv.penIconButtonLandscape]:{marginTop:"auto"}}),yS=(0,h.ZP)(uS,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),vS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{["&."+hS.hourMinuteLabelLandscape]:t.hourMinuteLabelLandscape,["&."+hS.hourMinuteLabelReverse]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})),bS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{["."+hS.ampmLabel]:t.ampmLabel},{["&."+hS.ampmLandscape]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{["& ."+hS.ampmLabel]:{fontSize:17}}));function wS(e){const t=(0,m.Z)({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,onChange:s,openView:c,setOpenView:d,toggleMobileKeyboardView:p,toolbarTitle:h,views:g,disabled:y,readOnly:v}=t,b=(0,l.Z)(t,mS),w=nv(),x=ov(),S=null!=h?h:x.timePickerDefaultToolbarTitle,_=vi(),k=Boolean(n&&!r),{meridiemMode:E,handleMeridiemChange:C}=Bb(o,n,s),P=t,T=(e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,f.Z)(o,pS,r)})((0,u.Z)({},P,{theme:_})),O=(0,I.jsx)(yS,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:T.separator});return(0,I.jsxs)(gS,(0,u.Z)({viewType:"clock",landscapeDirection:"row",toolbarTitle:S,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p,ownerState:P,className:T.root},b,{children:[(0,I.jsxs)(vS,{className:T.hourMinuteLabel,ownerState:P,children:[Xv(g,"hours")&&(0,I.jsx)(fS,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:"hours"===c,value:o?(R=o,n?w.format(R,"hours12h"):w.format(R,"hours24h")):"--"}),Xv(g,["hours","minutes"])&&O,Xv(g,"minutes")&&(0,I.jsx)(fS,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:"minutes"===c,value:o?w.format(o,"minutes"):"--"}),Xv(g,["minutes","seconds"])&&O,Xv(g,"seconds")&&(0,I.jsx)(fS,{variant:"h3",onClick:()=>d("seconds"),selected:"seconds"===c,value:o?w.format(o,"seconds"):"--"})]}),k&&(0,I.jsxs)(bS,{className:T.ampmSelection,ownerState:P,children:[(0,I.jsx)(fS,{disableRipple:!0,variant:"subtitle2",selected:"am"===E,typographyClassName:T.ampmLabel,value:w.getMeridiemText("am"),onClick:v?void 0:()=>C("am"),disabled:y}),(0,I.jsx)(fS,{disableRipple:!0,variant:"subtitle2",selected:"pm"===E,typographyClassName:T.ampmLabel,value:w.getMeridiemText("pm"),onClick:v?void 0:()=>C("pm"),disabled:y})]})]}));var R}const xS=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:o,minutesStep:i,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:s}=n,l=e.utils.date(t),u=Fb(s,e.utils);if(null===t)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(r&&u(r,l)):return"minTime";case Boolean(o&&u(l,o)):return"maxTime";case Boolean(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case Boolean(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case Boolean(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case Boolean(i&&e.utils.getMinutes(l)%i!=0):return"minutesStep";default:return null}},SS=(e,t)=>e===t,_S=e=>rw(e,xS,SS),kS=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],ES=e.forwardRef((function(e,t){const n=rS(e,"MuiDesktopTimePicker"),r=null!==_S(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,oS),{PaperProps:s,PopperProps:c,ToolbarComponent:d=wS,TransitionComponent:f,components:p,componentsProps:h}=n,m=(0,l.Z)(n,kS),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:r});return(0,I.jsx)(ob,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:c,PaperProps:s,TransitionComponent:f,components:p,componentsProps:h,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))})),CS=["ToolbarComponent","value","onChange","components","componentsProps"],PS=e.forwardRef((function(e,t){const n=rS(e,"MuiMobileTimePicker"),r=null!==_S(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,oS),{ToolbarComponent:s=wS,components:c,componentsProps:d}=n,f=(0,l.Z)(n,CS),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:r});return(0,I.jsx)(Xx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Qx,components:c,componentsProps:d,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),TS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],OS=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=n,s=(0,l.Z)(n,TS);return qy(r,{defaultMatches:!0})?(0,I.jsx)(ES,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,I.jsx)(PS,(0,u.Z)({ref:t,DialogProps:o},s))})),RS={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};class AS{constructor({locale:e,formats:t,instance:n}={}){this.lib="moment",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.getFormatHelperText=e=>{var t,n;return null!==(n=null===(t=e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g))||void 0===t?void 0:t.map(e=>{const t=e[0];return"L"===t||";"===t?this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat(e):e}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase())&&void 0!==n?n:e},this.getCurrentLocaleCode=()=>this.locale||this.moment.locale(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.date=e=>{if(null===e)return null;const t=this.moment(e);return this.locale&&t.locale(this.locale),t},this.toJsDate=e=>e.toDate(),this.isValid=e=>this.moment(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,n)=>this.moment(t).isValid()?e.diff(t,n):0,this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isBeforeMonth=(e,t)=>e.isBefore(t,"month"),this.isAfterMonth=(e,t)=>e.isAfter(t,"month"),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfDay=e=>e.clone().endOf("day"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return this.locale&&n.locale(this.locale),n.format(t)},this.formatNumber=e=>e,this.getHours=e=>e.get("hours"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.setHours=(e,t)=>e.clone().hours(t),this.getMinutes=e=>e.get("minutes"),this.setMinutes=(e,t)=>e.clone().minutes(t),this.getSeconds=e=>e.get("seconds"),this.setSeconds=(e,t)=>e.clone().seconds(t),this.getMonth=e=>e.get("month"),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.setMonth=(e,t)=>e.clone().month(t),this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?this.moment.localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.startOfYear=e=>e.clone().startOf("year"),this.endOfYear=e=>e.clone().endOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.endOfMonth=e=>e.clone().endOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.endOfWeek=e=>e.clone().endOf("week"),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[e.clone().startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.get("year"),this.setYear=(e,t)=>e.clone().set("year",t),this.getDate=e=>e.get("date"),this.setDate=(e,t)=>e.clone().set("date",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>this.moment.weekdaysShort(!0),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.getWeekArray=e=>{const t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week");let r=0,o=t;const i=[];for(;o.isBefore(n);){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=o.clone().add(1,"day"),r+=1}return i},this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[];let i=n;for(;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.moment=n||Go(),this.locale=e,this.formats=Object.assign({},RS,t)}}function MS(){return(MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function DS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IS=function(t,n,r){try{var o=vd(n);t.appendChild(e.createElement("div",{key:n.getHash()},o))}catch(e){console.warn("Could not present date, expected ISO8601 format in the form 2001-01-01 \n (potentially with time given after a 'T' character as well) but found '".concat(n.getValue(),"' instead."))}},NS=fi.presenterRegistry;NS.itemtype("text").datatype("xsd:dateTime").register(IS),NS.itemtype("text").datatype("xsd:date").register(IS),NS.itemtype("text").datatype("xsd:time").register(IS),NS.itemtype("text").datatype("xsd:gYear").register(IS),NS.itemtype("text").datatype("xsd:gYearMonth").register(IS),NS.itemtype("text").datatype("xsd:gMonthDay").register(IS),NS.itemtype("text").datatype("dcterms:W3CDTF").register(IS);var LS={format:{Year:"YYYY",DateTime:"YYYY-MM-DD",Date:"YYYY-MM-DD",YearMonth:"YYYY-MM",MonthDay:"MM-DD",Time:"YYYY-MM-DD"},mask:{Year:"____",DateTime:"____-__-__",Date:"____-__-__",YearMonth:"____-__",MonthDay:"__-__",Time:"____-__-__"},views:{Year:["year"],DateTime:["day"],Date:["day"],YearMonth:["year","month"],MonthDay:["month","day"],Time:["day"]},labelKey:{Year:"date_year",DateTime:"date_date",Date:"date_date",YearMonth:"date_year_and_month",MonthDay:"date_month_and_day",Time:"date_date"},ariaLabelKey:{Year:"date_openYearPicker",DateTime:"date_openDatePicker",Date:"date_openDatePicker",YearMonth:"date_openDatePicker",MonthDay:"date_openDatePicker",Time:"date_openDatePicker"}},ZS=function(t,n,r){var o=r.view.messages,i=function(){var i=n.getGist(),a=(0,e.useMemo)((function(){return yd(n.getItem())}),[]),s=DS((0,e.useState)(""===i?null:pd(i)),2),l=s[0],u=s[1],c=DS((0,e.useState)(function(e,t){var n=hd(e.getDatatype());return t[n]||(t[n]="error"),n||md(e.getItem())}(n,a)),2),d=c[0],f=c[1],p=1===Object.keys(a).length,h=DS((0,e.useState)(n.getMatchingCode()===Os.WRONG_DATATYPE),2),m=h[0],g=h[1];(0,e.useEffect)((function(){t.toggleClass("mismatchReport",m)}),[m]),(0,e.useEffect)((function(){r.clear=function(){u(null),f(md(n.getItem())),g(!1)}}),[]);var y=function(e){null==e?(n.setValue(""),u(null)):e.isValid()&&(n.setValue(gd(e.toDate(),d)),u(e.toDate()))},v={"aria-labelledby":r.view.getLabelIndex(n),variant:fi.materialVariant},b=tm(n,r),w=a.Date||a.DateTime||a.Year||a.YearMonth||a.MonthDay,x=!b&&("DateTime"===d||"Date"===d||"Year"===d||"YearMonth"===d||"MonthDay"===d);return e.createElement(e.Fragment,null,e.createElement(ev,{dateAdapter:AS},e.createElement("span",{className:"rdformsDatePicker"},w&&e.createElement(nS,MS({renderInput:function(t){return e.createElement(Dh,MS({},t,v))},leftArrowButtonProps:{"aria-label":o.date_previousMonth},rightArrowButtonProps:{"aria-label":o.date_nextMonth},KeyboardButtonProps:{"aria-label":o[LS.ariaLabelKey[d]]},label:o[LS.labelKey[d]]},x?{}:{disabled:!0},{value:x?l:null,minDate:Go()(new Date("0000-01-01")),inputFormat:LS.format[d],views:LS.views[d],onChange:y,autoOk:!0,mask:LS.mask[d]})),(a.DateTime||a.Time)&&e.createElement(OS,MS({renderInput:function(t){return e.createElement(Dh,MS({},t,v))},label:o.date_time},b||"DateTime"!==d&&"Time"!==d?{disabled:!0}:{},{KeyboardButtonProps:{"aria-label":o.date_openTimePicker},value:"DateTime"===d||"Time"===d?l:null,onChange:y,ampm:!1,autoOk:!0})),!p&&e.createElement(Lf,{variant:fi.materialVariant},e.createElement(Th,{value:d,inputProps:v,error:"error"===a[d],onChange:function(e){n.setDatatype(function(e){switch(e){case"DateTime":return"http://www.w3.org/2001/XMLSchema#dateTime";case"Date":return"http://www.w3.org/2001/XMLSchema#date";case"Time":return"http://www.w3.org/2001/XMLSchema#time";case"Year":return"http://www.w3.org/2001/XMLSchema#gYear";case"YearMonth":return"http://www.w3.org/2001/XMLSchema#gYearMonth";case"MonthDay":return"http://www.w3.org/2001/XMLSchema#gMonthDay";default:return""}}(e.target.value)),n.setValue(gd(l,e.target.value)),f(e.target.value),g("error"===a[e.target.value])},disabled:!!b},a.Year&&e.createElement(Yh,{disabled:"error"===a.Year,className:"rdformsDatatypeOption",value:"Year"},o.date_year),a.Date&&e.createElement(Yh,{disabled:"error"===a.Date,className:"rdformsDatatypeOption",value:"Date"},o.date_date),a.DateTime&&e.createElement(Yh,{disabled:"error"===a.DateTime,className:"rdformsDatatypeOption",value:"DateTime"},o.date_date_and_time),a.YearMonth&&e.createElement(Yh,{disabled:"error"===a.YearMonth,className:"rdformsDatatypeOption",value:"YearMonth"},o.date_year_and_month),a.MonthDay&&e.createElement(Yh,{disabled:"error"===a.MonthDay,className:"rdformsDatatypeOption",value:"MonthDay"},o.date_month_and_day),a.Time&&e.createElement(Yh,{disabled:"error"===a.Time,className:"rdformsDatatypeOption",value:"Time"},o.date_time))))),m&&e.createElement("div",{key:"warning",className:"rdformsWarning"},r.view.messages.wrongDatatypeField))};t.appendChild(e.createElement(i,{key:n.getHash()}))},FS=fi.editorRegistry;FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gMonthDay").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYearMonth").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#time").register(ZS),FS.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(ZS);o(9474);function BS(e){return(BS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function VS(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 zS(e,t,n){var r;return r=function(e,t){if("object"!=BS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==BS(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return US(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return US(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function US(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $S=["years","months","days","hours","minutes"];fi.editorRegistry.itemtype("text").datatype("xsd:duration").register((function(t,n,r){var o=r.view.messages,i=function(){var t=WS((0,e.useState)((function(){var e=n.getValue();return""===e?{}:fd(e)})),2),i=t[0],a=t[1];(0,e.useEffect)((function(){r.clear=function(){a({})}}),[]);var s=(0,e.useMemo)((function(){return $S.reduce((function(e,t){return e[t]=function(e){var r=e.target.value||"";a((function(e){var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VS(Object(n),!0).forEach((function(t){zS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return""!==r?o[t]=Math.abs(parseInt(r,10)):delete o[t],setTimeout((function(){n.setValue(function(e){if(e.years||e.months||e.days||e.hours||e.minutes){var t="P".concat(e.years?"".concat(e.years,"Y"):"").concat(e.months?"".concat(e.months,"M"):"").concat(e.days?"".concat(e.days,"D"):"");return(e.hours||e.minutes)&&(t="".concat(t,"T").concat(e.hours?"".concat(e.hours,"H"):"").concat(e.minutes?"".concat(e.minutes,"M"):"")),t}return null}(o))}),1),o}))},e}),{})})),l=r.view.getLabelIndex(n),u=tm(n,r);return e.createElement(e.Fragment,null,$S.map((function(t){return e.createElement(Dh,{key:t,className:"rdformsDurationInput",value:"".concat(i[t]||""),disabled:!!u,label:o["duration_".concat(t)],type:"number",onChange:s[t],inputProps:{min:0,"aria-label":o["duration_".concat(t)],"aria-describedby":l},variant:fi.materialVariant})})))};t.appendChild(e.createElement(i,{key:n.getHash()}))}));var HS=fi.presenterRegistry,YS=fi.editorRegistry,GS=function(e){return function t(n,r,o){var i=r.getValue();o.inEditor&&(null!=i&&""!==i||r.setGist(Xo.generateUUID(),!0)),e.getComponentBefore(r.getItem(),t)(n,r,o)}};HS.itemtype("text").style("autoUUID").register(GS(HS)),YS.itemtype("text").style("autoUUID").register(GS(YS));var qS=function(e){return function t(n,r,o){var i=r.getValue(),a=r.getItem();o.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&r.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&r.setValue((new Date).toISOString(),!0)),e.getComponentBefore(r.getItem(),t)(n,r,o)}},KS=qS(HS);HS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(KS),HS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(KS),HS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(KS),HS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(KS);var XS=qS(YS);YS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(XS);var QS=function(e){return function t(n,r,o){if(o.inEditor){var i=r.getValue(),a=r.getItem().getDeps();if((null==i||""===i)&&a){var s=Hu.findBindingRelativeToParentBinding(r.getParent(),a),l=function(e){var t=Hu.matchPathBelowBinding(s,a),n=r.getGist(),o=t?t.getValue():"";n!=o&&r.setGist(o,e)};l(!0),s.addListener((function(e){e!=r&&l()}))}}e.getComponentBefore(r.getItem(),t)(n,r,o)}};function JS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return e_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e_(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}HS.itemtype("text").style("autoValue").register(QS(HS)),YS.itemtype("text").style("autoValue").register(QS(YS));var t_=function(t){var n=t.element,r=(0,e.useRef)();return(0,e.useEffect)((function(){r.current.appendChild(n)}),[n]),e.createElement("div",{ref:r})},n_=function(e,t,n){var r=!1;return t.split(" ").forEach((function(t){n?e.has(t)||(e.add(t),r=!0):e.has(t)&&(e.delete(t),r=!0)})),r},r_=function(e,t){return t.has(e.substr(1))},o_=function(e,t){return t.find((function(t){return t.component&&void 0!==t.domQuery(e)}))},i_=function(e,t,n){return n?e[t]=n:delete e[t],e},a_=0,s_=function(t,n,r){var o,i=new Set,a=[],s={},l={id:"struct_".concat(a_+=1),parent:n,toggleClass:function(e,t){return n_(i,e,t)},domQuery:function(e){return r_(e,i)?l:o_(e,a)},appendChild:function(e){a.push(e)},appendAfter:function(e,t){a.splice(a.indexOf(t)+1,0,e)},text:function(e){o=e},attr:function(e,t){return i_(s,e,t)},destroy:function(){return!(l.parent instanceof Node)&&l.parent.removeChild(l)},clear:function(){a=[]},component:function(){var n=JS((0,e.useState)(i),2),u=n[0],c=n[1],d=JS((0,e.useState)(a),2),f=d[0],p=d[1],h=JS((0,e.useState)(o),2),m=h[0],g=h[1],y=JS((0,e.useState)(s),2),v=(y[0],y[1]);return l.domQuery=function(e){return r_(e,u)?l:o_(e,f)},l.toggleClass=function(e,t){c((function(n){var r=new Set(n);return n_(r,e,t)?r:n}))},l.appendChild=function(e){p((function(t){return t.concat([e])}))},l.appendAfter=function(e,t){p((function(n){var r=n.slice(0);return r.splice(t&&r.indexOf(t)+1||0,0,e),r}))},l.text=function(e){return g(e)},l.removeChild=function(e){p((function(t){var n=t.slice(0);return n.splice(n.indexOf(e),1),n}))},l.clear=function(){p([])},l.attr=function(e,t){v((function(n){return i_(Object.assign({},n),e,t)}))},e.createElement(t,{id:r,className:Array.from(u).join(" ")},f.map((function(t,n){return function(t,n){return t instanceof Node?e.createElement(t_,{key:n,element:t}):t.component?e.createElement(t.component,{key:t.id}):t}(t,n)})),m)}};return l};fi.domQuery=function(e,t){return t.domQuery(e)},fi.domCreate=function(e,t,n){var r=s_(e,t,n);return t.appendChild(r),r},fi.domCreateAfter=function(e,t,n){if(t.parent){var r=s_(e,t.parent,n);return t.parent.appendAfter(r,t),r}},fi.domSetAttr=function(e,t,n){return e.attr(t,n)},fi.domText=function(e,t){return e.text(t)},fi.domClassToggle=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.toggleClass(t,n)},fi.createDomNode=function(e){var t;return null!=e&&e.component?e:(t=e instanceof Node?e:"string"==typeof e?document.getElementById(e):s_("div"),s_("div",t))},fi.destroyDomNode=function(e){e.component&&e.destroy()},fi.prePresenterViewRenderer=function(){},fi.materialVariant="filled",fi.preEditorRenderer=function(t,n,r){if("group"!==n.getItem().getType()&&!0!==r.noCardinalityButtons){r.controlDiv=s_("div",t),fi.domClassToggle(r.controlDiv,"rdformsFieldControl");var o=fi.addRemoveButton(t,n,r);r.controlDiv.appendChild(e.createElement(o,{key:"".concat(n.getHash(),"_removeButton")}))}},fi.postEditorRenderer=function(e,t,n){n.controlDiv&&e.appendChild(n.controlDiv)};var l_={error:r.Z,warning:n.Z,deprecated:a.Z},u_=0;fi.renderValidationMessage=function(t,n,r){var o=l_[n];u_+=1,t.appendChild(e.createElement("div",{className:"rdformsValidationMessageWrapper",key:"rdforms_valcount_".concat(u_)},e.createElement(o,null),e.createElement("span",{className:"rdformsValidationMessage"},r)))},fi.multiValueSupport=!0,fi.addTruncateControl=function(t,n){var r=function(){var r=JS((0,e.useState)(!0),2),o=r[0],i=r[1],a=n.view.messages;return e.createElement(e.Fragment,null,o?e.createElement(pe,{className:"rdformsShowMore",size:"small",onClick:function(){fi.domClassToggle(t,"rdformsTruncated",!1),i(!1)}},a.showMore):e.createElement(pe,{className:"rdformsShowLess",size:"small",onClick:function(){fi.domClassToggle(t,"rdformsTruncated",!0),i(!0)}},a.showLess))};t.appendChild(e.createElement(r,null))};var c_=o(3379),d_=o.n(c_),f_=o(7795),p_=o.n(f_),h_=o(569),m_=o.n(h_),g_=o(3565),y_=o.n(g_),v_=o(9216),b_=o.n(v_),w_=o(4589),x_=o.n(w_),S_=o(7135),__={};__.styleTagTransform=x_(),__.setAttributes=y_(),__.insert=m_().bind(null,"head"),__.domAPI=p_(),__.insertStyleElement=b_();d_()(S_.Z,__);S_.Z&&S_.Z.locals&&S_.Z.locals;var k_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==o.g&&o.g||{},E_="URLSearchParams"in k_,C_="Symbol"in k_&&"iterator"in Symbol,P_="FileReader"in k_&&"Blob"in k_&&function(){try{return new Blob,!0}catch(e){return!1}}(),T_="FormData"in k_,O_="ArrayBuffer"in k_;if(O_)var R_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A_=ArrayBuffer.isView||function(e){return e&&R_.indexOf(Object.prototype.toString.call(e))>-1};function M_(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function D_(e){return"string"!=typeof e&&(e=String(e)),e}function j_(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return C_&&(t[Symbol.iterator]=function(){return t}),t}function I_(e){this.map={},e instanceof I_?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function N_(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function L_(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Z_(e){var t=new FileReader,n=L_(t);return t.readAsArrayBuffer(e),n}function F_(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function B_(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:P_&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:T_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:E_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():O_&&P_&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=F_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):O_&&(ArrayBuffer.prototype.isPrototypeOf(e)||A_(e))?this._bodyArrayBuffer=F_(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):E_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P_&&(this.blob=function(){var e=N_(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=N_(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(P_)return this.blob().then(Z_);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=N_(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=L_(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},T_&&(this.formData=function(){return this.text().then(W_)}),this.json=function(){return this.text().then(JSON.parse)},this}I_.prototype.append=function(e,t){e=M_(e),t=D_(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},I_.prototype.delete=function(e){delete this.map[M_(e)]},I_.prototype.get=function(e){return e=M_(e),this.has(e)?this.map[e]:null},I_.prototype.has=function(e){return this.map.hasOwnProperty(M_(e))},I_.prototype.set=function(e,t){this.map[M_(e)]=D_(t)},I_.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},I_.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),j_(e)},I_.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),j_(e)},I_.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),j_(e)},C_&&(I_.prototype[Symbol.iterator]=I_.prototype.entries);var V_=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function z_(e,t){if(!(this instanceof z_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof z_){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new I_(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new I_(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),V_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in k_)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function W_(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function U_(e,t){if(!(this instanceof U_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new I_(t.headers),this.url=t.url||"",this._initBody(e)}z_.prototype.clone=function(){return new z_(this,{body:this._bodyInit})},B_.call(z_.prototype),B_.call(U_.prototype),U_.prototype.clone=function(){return new U_(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I_(this.headers),url:this.url})},U_.error=function(){var e=new U_(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var $_=[301,302,303,307,308];U_.redirect=function(e,t){if(-1===$_.indexOf(t))throw new RangeError("Invalid status code");return new U_(null,{status:t,headers:{location:e}})};var H_=k_.DOMException;try{new H_}catch(e){(H_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),H_.prototype.constructor=H_}function Y_(e,t){return new Promise((function(n,r){var o=new z_(e,t);if(o.signal&&o.signal.aborted)return r(new H_("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,r={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new I_,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?r.status=200:r.status=i.status,r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){n(new U_(a,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){r(new H_("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&k_.location.href?k_.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(P_?i.responseType="blob":O_&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof I_||k_.Headers&&t.headers instanceof k_.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(M_(e)),i.setRequestHeader(e,D_(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Y_.polyfill=!0,k_.fetch||(k_.fetch=Y_,k_.Headers=I_,k_.Request=z_,k_.Response=U_);const G_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const q_=function(e){return this.__data__.has(e)};function K_(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}K_.prototype.add=K_.prototype.push=G_,K_.prototype.has=q_;const X_=K_;const Q_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const J_=function(e,t){return e.has(t)};const ek=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new X_:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Q_(t,(function(e,t){if(!J_(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const tk=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const nk=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var rk=nn?nn.prototype:void 0,ok=rk?rk.valueOf:void 0;const ik=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Eo(e),new Eo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Bt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=tk;case"[object Set]":var l=1&r;if(s||(s=nk),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ek(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ok)return ok.call(e)==ok.call(t)}return!1};var ak=Object.prototype.hasOwnProperty;const sk=function(e,t,n,r,o,i){var a=1&n,s=uo(e),l=s.length;if(l!=uo(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:ak.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var y=a?r(g,m,c,t,e,i):r(m,g,c,e,t,i);if(!(void 0===y?m===g||o(m,g,n,r,i):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p};var lk=Object.prototype.hasOwnProperty;const uk=function(e,t,n,r,o,i){var a=fr(e),s=fr(t),l=a?"[object Array]":So(e),u=s?"[object Array]":So(t),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f=l==u;if(f&&yr(e)){if(!yr(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Qn),a||Or(e)?ek(e,t,n,r,o,i):ik(e,t,l,n,r,o,i);if(!(1&n)){var p=c&&lk.call(e,"__wrapped__"),h=d&&lk.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return i||(i=new Qn),o(m,g,n,r,i)}}return!!f&&(i||(i=new Qn),sk(e,t,n,r,o,i))};const ck=function e(t,n,r,o,i){return t===n||(null==t||null==n||!ar(t)&&!ar(n)?t!=t&&n!=n:uk(t,n,r,o,e,i))};const dk=function(e,t){return ck(e,t)};function fk(e){return(fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pk(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,hk(r.key),r)}}function hk(e){var t=function(e,t){if("object"!=fk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fk(t)?t:String(t)}var mk=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._registry={}}var t,n,r;return t=e,(n=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var n=this._findChoices(e);if(null==n);else{if(null==t)return n;t(n)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];if(dk(r.constraints,e.getConstraints())&&e.getParentProperty()===r.parentProperty&&e.getHierarchyProperty()===r.hierarchyProperty&&e.isParentPropertyInverted()===(r.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(r.isHierarchyPropertyInverted||!1))return r.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var n=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(n+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var r=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(r+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&pk(t.prototype,n),r&&pk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gk(e){return(gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yk(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,vk(r.key),r)}}function vk(e){var t=function(e,t){if("object"!=gk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gk(t)?t:String(t)}var bk=0,wk=function(){function e(t){var n=t.itemStore,r=t.source,o=t.path,i=t.readOnly,a=void 0!==i&&i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=n,this._source=r,this._path=o,this._readOnly=a,this._items=[],bk+=1,this._id="_bundle_".concat(bk),this._root=null,this._modified=!1}var t,n,r;return t=e,(n=[{key:"getInternalId",value:function(){return this._id}},{key:"getSource",value:function(){return this._source}},{key:"setRoot",value:function(e){return this._source.root=e,e}},{key:"getRoot",value:function(){if(this._source.root)return this._itemStore.getItem(this._source.root)}},{key:"getItemStore",value:function(){return this._itemStore}},{key:"getPath",value:function(){return this._path}},{key:"getItems",value:function(){return this._items}},{key:"addItem",value:function(e){this._items.push(e)}},{key:"removeItem",value:function(e){this._items.splice(this._items.indexOf(e),1)}},{key:"isModified",value:function(){return this._modified}},{key:"setModified",value:function(e){this._modified=e}},{key:"isReadOnly",value:function(){return this._readOnly||null==this._path}}])&&yk(t.prototype,n),r&&yk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xk(e){return(xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sk(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,_k(r.key),r)}}function _k(e){var t=function(e,t){if("object"!=xk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xk(t)?t:String(t)}var kk=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.automaticSortAllowed=!0,this.handleErrorAs="throw",this._bundles=[],this._registry={},this._registryByProperty={},this._ontologyStore=t||new mk}var t,n,r;return t=e,(n=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var n=e.getSource(!0),r=n.content||n.items||[];if(t)return this._createItems(r,e._forceChildrenClones,e.getBundle());var o=this.getItem(n.extends);return o?o.getChildren().concat(e.getChildren(!0)):e.getChildren(!0)}},{key:"getItem",value:function(e){if(null!=e)return this._registry[e]}},{key:"getItems",value:function(){var e=this;return Object.keys(this._registry).map((function(t){return e._registry[t]}))}},{key:"renameItem",value:function(e,t){if(this._registry[t])this._handleError("Cannot rename to ".concat(t," since an item with that id already exists."));else if(""!==t&&null!==t){var n=this._registry[e];n&&(delete this._registry[e],this._registry[t]=n,n.setId(t));for(var r=function n(r){var o=r.content;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&n(a)}},o=this.getItems(),i=0;i<o.length;i++){var a=o[i];a instanceof il&&r(a._source)}}else this._handleError("Cannot give an item an empty string or null as id.")}},{key:"getItemIds",value:function(){return Object.keys(this._registry)}},{key:"getItemByProperty",value:function(e){return this._registryByProperty[e]}},{key:"detectTemplate",value:function(e,t,n){return Fu(e,t,this,n)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new wk(e);this._bundles.push(t),e.source&&e.source.namespaces&&Se(e.source.namespaces);var n=e.source.templates||e.source.auxilliary;return n instanceof Array&&this._createItems(n,!1,t),"object"===xk(e.source.cachedChoices)&&this._ontologyStore.importRegistry(e.source.cachedChoices),t}},{key:"getBundles",value:function(){return this._bundles}},{key:"createTemplate",value:function(e){return this.registerBundle({source:e}).getRoot()}},{key:"createTemplateFromChildren",value:function(e){var t=this,n=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new il({source:{},children:n,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var n=Object.assign(Object.assign({},e),t);return n._extendedSource=t,n.extends=null,delete n.children,n}},{key:"createItem",value:function(e,t,n,r){var o,i=e.id||e["@id"],a=e.type||e["@type"];if(e.extends){var s=this._registry[e.extends];if(null==s&&this._handleError("Cannot find item to extend with id: ".concat(e.extends)),s){var l=this.createExtendedSource(s.getSource(),e);return this.createItem(l,!1,!1,r)}}if(null!=a){switch(a){case"text":o=new _l({source:e,itemStore:this,bundle:r});break;case"choice":o=new Dl({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:r});break;case"group":o=new il({source:e,children:null,itemStore:this,bundle:r});break;case"propertygroup":o=new ml({source:e,children:null,itemStore:this,bundle:r})}return!0!==n&&(null!=e.property&&(this._registryByProperty[e.property]=o,this.priorities&&null!=this.priorities[e.property]&&(o.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=o,null!=r&&r.addItem(o))),o}if(null!=i){if(null!=this._registry[i]){if(!0===t||Object.keys(e).find((function(e){return"id"!==e&&"@id"!==e}))){var u=Object.assign(Object.assign({},this._registry[i]._source),e);return this.createItem(u,!1,!0)}return this._registry[i]}this._handleError("Cannot find referenced subitem using identifier: ".concat(i))}else this._handleError("Cannot create subitem, `type` for creating new or `id` for referencing external are required.")}},{key:"removeItem",value:function(e,t){var n=e.getBundle();null!=n&&n.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var r=e.getProperty();null!=r&&this._registryByProperty[r]===e&&delete this._registryByProperty[r]}},{key:"_createItems",value:function(e,t,n){var r=this;return e.map((function(o,i){var a="string"==typeof o?e[i]={id:o}:o;return r.createItem(a,t,!1,n)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Sk(t.prototype,n),r&&Sk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ek(e){return(Ek="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ck(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ck=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=v.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Ek(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ek(t)+" is not iterable")}return y.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(k.prototype),u(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!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 l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){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),T(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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Pk(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Tk(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pk(i,r,o,a,s,"next",e)}function s(e){Pk(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ok=function(e,t,n){var r="Fetching template bundle ".concat(n," failed.");if(e===t-1)throw Error("".concat(r," Cannot recover from this, please fix."));console.log("".concat(r," Will try to fetch from a fallback option."))},Rk=function(){var e=Tk(Ck().mark((function e(t){var n,r,o,i,a;return Ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length,i=0;case 2:if(!(i<n)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:r=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(3),Error("A network error ocurred while trying to fetch bundle ".concat(t[i]));case 12:if(!r||!r.ok){e.next=30;break}if(e.prev=13,!(a=r.headers.has("content-type")&&r.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,r.json();case 18:return o=e.sent,e.abrupt("break",34);case 22:throw new Error("Failed fetching template ".concat(t[i],". Expected a JSON file and got ").concat(a));case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(13),Ok(i,n,t[i]);case 28:e.next=31;break;case 30:Ok(i,n,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",o);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),Ak=function(e){return e.map((function(e){return e instanceof Array?Rk(e):Promise.resolve(e)}))},Mk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const Dk=function(){var e=Tk(Ck().mark((function e(t){var n,r,o,i,a,s=arguments;return Ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],r=s.length>2&&void 0!==s[2]?s[2]:function(){},0===n.length&&r&&r([]),o=Ak(n),e.next=6,Promise.all(o);case 6:return i=e.sent,a=Mk(t,i),r(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),i})());
|
|
167
|
+
`),Z.rippleVisible,$,550,({theme:e})=>e.transitions.easing.easeInOut,Z.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Z.child,Z.childLeaving,H,550,({theme:e})=>e.transitions.easing.easeInOut,Z.childPulsate,Y,({theme:e})=>e.transitions.easing.easeInOut),K=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=(0,l.Z)(r,F),[d,f]=e.useState([]),p=e.useRef(0),h=e.useRef(null);e.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const g=e.useRef(!1),y=e.useRef(0),v=e.useRef(null),b=e.useRef(null);e.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const w=e.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;f(e=>[...e,(0,I.jsx)(q,{classes:{ripple:(0,c.Z)(i.ripple,Z.ripple),rippleVisible:(0,c.Z)(i.rippleVisible,Z.rippleVisible),ripplePulsate:(0,c.Z)(i.ripplePulsate,Z.ripplePulsate),child:(0,c.Z)(i.child,Z.child),childLeaving:(0,c.Z)(i.childLeaving,Z.childLeaving),childPulsate:(0,c.Z)(i.childPulsate,Z.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},p.current)]),p.current+=1,h.current=a},[i]),x=e.useCallback((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{w({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},80)):w({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[o,w]),S=e.useCallback(()=>{x({},{pulsate:!0})},[x]),_=e.useCallback((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void(y.current=setTimeout(()=>{_(e,t)}));v.current=null,f(e=>e.length>0?e.slice(1):e),h.current=t},[]);return e.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:_}),[S,x,_]),(0,I.jsx)(G,(0,u.Z)({className:(0,c.Z)(Z.root,i.root,a),ref:b},s,{children:(0,I.jsx)(P,{component:null,exit:!0,children:d})}))}));var X=o(4867);function Q(e){return(0,X.ZP)("MuiButtonBase",e)}const J=(0,L.Z)("MuiButtonBase",["root","disabled","focusVisible"]),ee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],te=(0,h.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&."+J.disabled]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ne=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:b=!1,focusRipple:w=!1,LinkComponent:x="a",onBlur:S,onClick:_,onContextMenu:k,onDragLeave:E,onFocus:C,onFocusVisible:P,onKeyDown:T,onKeyUp:O,onMouseDown:R,onMouseLeave:A,onMouseUp:M,onTouchEnd:D,onTouchMove:j,onTouchStart:N,tabIndex:L=0,TouchRippleProps:Z,touchRippleRef:F,type:B}=r,V=(0,l.Z)(r,ee),z=e.useRef(null),W=e.useRef(null),U=(0,g.Z)(W,F),{isFocusVisibleRef:$,onFocus:H,onBlur:Y,ref:G}=(0,v.Z)(),[q,X]=e.useState(!1);p&&q&&X(!1),e.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),z.current.focus()}}),[]);const[J,ne]=e.useState(!1);e.useEffect(()=>{ne(!0)},[]);const re=J&&!h&&!p;function oe(e,t,n=b){return(0,y.Z)(r=>{t&&t(r);return!n&&W.current&&W.current[e](r),!0})}e.useEffect(()=>{q&&w&&!h&&J&&W.current.pulsate()},[h,w,q,J]);const ie=oe("start",R),ae=oe("stop",k),se=oe("stop",E),le=oe("stop",M),ue=oe("stop",e=>{q&&e.preventDefault(),A&&A(e)}),ce=oe("start",N),de=oe("stop",D),fe=oe("stop",j),pe=oe("stop",e=>{Y(e),!1===$.current&&X(!1),S&&S(e)},!1),he=(0,y.Z)(e=>{z.current||(z.current=e.currentTarget),H(e),!0===$.current&&(X(!0),P&&P(e)),C&&C(e)}),me=()=>{const e=z.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ge=e.useRef(!1),ye=(0,y.Z)(e=>{w&&!ge.current&&q&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,()=>{W.current.start(e)})),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!p&&(e.preventDefault(),_&&_(e))}),ve=(0,y.Z)(e=>{w&&" "===e.key&&W.current&&q&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,()=>{W.current.pulsate(e)})),O&&O(e),_&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&_(e)});let be=d;"button"===be&&(V.href||V.to)&&(be=x);const we={};"button"===be?(we.type=void 0===B?"button":B,we.disabled=p):(V.href||V.to||(we.role="button"),p&&(we["aria-disabled"]=p));const xe=(0,g.Z)(n,G,z);const Se=(0,u.Z)({},r,{centerRipple:i,component:d,disabled:p,disableRipple:h,disableTouchRipple:b,focusRipple:w,tabIndex:L,focusVisible:q}),_e=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,f.Z)(i,Q,o);return n&&r&&(a.root+=" "+r),a})(Se);return(0,I.jsxs)(te,(0,u.Z)({as:be,className:(0,c.Z)(_e.root,s),ownerState:Se,onBlur:pe,onClick:_,onContextMenu:ae,onFocus:he,onKeyDown:ye,onKeyUp:ve,onMouseDown:ie,onMouseLeave:ue,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:fe,onTouchStart:ce,ref:xe,tabIndex:p?-1:L,type:B},we,V,{children:[a,re?(0,I.jsx)(K,(0,u.Z)({ref:U,center:i},Z)):null]}))}));var re=o(8216);function oe(e){return(0,X.ZP)("MuiButton",e)}const ie=(0,L.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ae=e.createContext({});const se=e.createContext(void 0),le=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ue=e=>(0,u.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ce=(0,h.ZP)(ne,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,re.Z)(n.color)}`],t["size"+(0,re.Z)(n.size)],t[`${n.variant}Size${(0,re.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,u.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,u.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:"1px solid "+(e.vars||e).palette[t.color].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),["&."+ie.focusVisible]:(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),["&."+ie.disabled]:(0,u.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.action.disabledBackground},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:"1px solid "+(0,p.Fq)(e.palette[t.color].main,.5)},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&."+ie.focusVisible]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&."+ie.disabled]:{boxShadow:"none"}}),de=(0,h.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize"+(0,re.Z)(n.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ue(e))),fe=(0,h.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize"+(0,re.Z)(n.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ue(e))),pe=e.forwardRef((function(t,n){const r=e.useContext(ae),o=e.useContext(se),i=(0,d.Z)(r,t),a=(0,m.Z)({props:i,name:"MuiButton"}),{children:s,color:p="primary",component:h="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:x,fullWidth:S=!1,size:_="medium",startIcon:k,type:E,variant:C="text"}=a,P=(0,l.Z)(a,le),T=(0,u.Z)({},a,{color:p,component:h,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:S,size:_,type:E,variant:C}),O=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,re.Z)(t)}`,"size"+(0,re.Z)(o),`${i}Size${(0,re.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize"+(0,re.Z)(o)],endIcon:["endIcon","iconSize"+(0,re.Z)(o)]},l=(0,f.Z)(s,oe,a);return(0,u.Z)({},a,l)})(T),R=k&&(0,I.jsx)(de,{className:O.startIcon,ownerState:T,children:k}),A=w&&(0,I.jsx)(fe,{className:O.endIcon,ownerState:T,children:w}),M=o||"";return(0,I.jsxs)(ce,(0,u.Z)({ownerState:T,className:(0,c.Z)(r.className,O.root,g,M),component:h,disabled:y,focusRipple:!b,focusVisibleClassName:(0,c.Z)(O.focusVisible,x),ref:n,type:E},P,{classes:O,children:[R,s,A]}))}));o(8077),o(9358),o(6801),o(3843),o(9373),o(9903),o(9288),o(8832);function he(e){return(he="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)}"__rdfjson_namespaces"in globalThis||(globalThis.__rdfjson_namespaces={ical:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns#",dcterms:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",owl:"http://www.w3.org/2002/07/owl#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",foaf:"http://xmlns.com/foaf/0.1/",wot:"http://xmlns.com/wot/0.1/",dc:"http://purl.org/dc/elements/1.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",gn:"http://www.geonames.org/ontology#",locn:"http://www.w3.org/ns/locn#",schema:"http://schema.org/",ex:"http://example.com/",gsp:"http://www.opengis.net/ont/geosparql#",odrs:"http://schema.theodi.org/odrs#"});var me=globalThis.__rdfjson_namespaces,ge=0,ye=function(e,t,n){return me[e]||(me[e]=t),{abbrev:e,ns:t,localname:n,full:t+n,pretty:"".concat(e,":").concat(n)}},ve=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));if(t)return ye(t,me[t],e.substring(me[t].length));var n=e.lastIndexOf("/"),r=e.lastIndexOf("#");return r>n&&(n=r),ye("ns".concat(ge+=1),e.substring(0,n+1),e.substring(n+1))};const be=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));return t?ye(t,me[t],e.substring(me[t].length)).pretty:e},we=function(e){return ve(e).pretty},xe=function(e){var t=e.split(":");return 2===t.length&&me.hasOwnProperty(t[0])?me[t[0]]+t[1]:e},Se=function(e,t){"string"==typeof e?me[e]=t:"object"===he(e)&&Object.keys(e).forEach((function(t){me[t]=e[t]}))};o(8373),o(6793),o(7629),o(7509),o(8052),o(3964),o(6466);function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke=function(e){return void 0!==e&&(null===e||"object"===_e(e)||Array.isArray(e)||"function"==typeof e)},Ee=function(e){return"string"==typeof e||e instanceof String},Ce=function(e,t,n){0===e[t][n].length&&(delete e[t][n],0===Object.keys(e[t]).length&&delete e[t])},Pe=function(e){if(!ke(e[0]))throw new Error("Graph is not a object.");if(!Ee(e[1]))throw new Error("Subject is not a string.");if(!Ee(e[2]))throw new Error("Predicate is not a string.");if(!ke(e[3]))throw new Error("Object is not a object.");if(void 0===e[3].type)throw new Error("Object has no type attribute, must be one of 'uri', 'literal', or 'bnode'");if(void 0===e[3].value)throw new Error("Object has no value attribute corresponding to the lexical value of the object.")},Te=function(e,t){return e===t||null==e&&e===t||(Ee(e)?Ee(t)?e===t:e===t.value:Ee(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},Oe=function(e){var t={type:e.type,value:e.value};return null!=e.ng&&(t.ng=e.ng),null!=e.lang&&(t.lang=e.lang),null!=e.datatype&&(t.datatype=e.datatype),t},Re=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const Ae={isObject:ke,isString:Ee,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&Te(e.o,t.o)},add:function(e,t,n,r,o){if(Pe([e,t,n,r]),void 0===e[t])return e[t]={},e[t][n]=[r],r;if(void 0===e[t][n])return e[t][n]=[r],r;var i,a=e[t][n];if(!o)for(i=a.length-1;i>=0;i--)if(Te(r,a[i]))return a[i];return a.push(r),r},remove:function(e,t,n,r){if(Pe([e,t,n,r]),void 0!==e[t]&&void 0!==e[t][n]){var o,i=e[t][n];for(o=i.length-1;o>=0;o--)if(Te(r,i[o])){var a=i[o];return i.splice(o,1),Ce(e,t,n),a}}},contains:function(e,t,n,r){if(Pe([e,t,n,r]),void 0!==e[t]&&void 0!==e[t][n]){var o,i=e[t][n];for(o=i.length-1;o>=0;o--)if(Te(r,i[o]))return i[o]}},cleanup:Ce,checkForWrongArgs:Pe,objectEquals:Te,findDirectOrRDFValue:function(e,t,n){var r=e.find(t,n);if(r.length>0)return"bnode"!==r[0].getType()?r[0].getValue():e.findFirstValue(r[0].getValue(),"http://www.w3.org/1999/02/22-rdf-syntax-ns#value")},clone:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return Object.keys(e).forEach((function(r){var o=e[r];n[r]={},Object.keys(o).forEach((function(e){var i=o[e];if(1===i.length)n[r][e]=[Oe(i[0])];else if(t){var a=[],s=new Set;n[r][e]=a,o[e].forEach((function(e){var t=Oe(e),n=Re(t);s.has(n)||(s.add(n),a.push(t))}))}else{var l=[];n[r][e]=l,o[e].forEach((function(e){l.push(Oe(e))}))}}))})),n}};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(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,je(r.key),r)}}function je(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:String(t)}var Ie=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graph=t,this._s=n,this._p=r,this._o=o,this._o._statement=this,this._asserted=i}var t,n,r;return t=e,(n=[{key:"getGraph",value:function(){return this._graph}},{key:"setAsserted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e!==this._asserted&&(e?this._graph.add(this,void 0,void 0,this._silentValue,t):this._graph.remove(this,this._silentValue),this._asserted=e)}},{key:"isAsserted",value:function(){return this._asserted}},{key:"getSubject",value:function(){return this._s}},{key:"isSubjectBlank",value:function(){return!0!==this._sIsBlank&&!1!==this._sIsBlank&&(this._sIsBlank=0===this._s.indexOf("_:")),this._sIsBlank}},{key:"isObjectBlank",value:function(){return"bnode"===this.getType()}},{key:"setSubject",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._s=t,this._graph.add(this),delete this._sIsBlank):this._s=t}},{key:"getPredicate",value:function(){return this._p}},{key:"setPredicate",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._p=t,this._graph.add(this)):this._p=t}},{key:"getNamedGraph",value:function(){return this._o.ng}},{key:"setNamedGraph",value:function(e){this._o.ng=e}},{key:"getObject",value:function(){return this._o}},{key:"getCleanObject",value:function(){var e=this._o,t={value:e.value,type:e.type};return this._o.ng&&(t.ng=e.ng),e.lang&&(t.lang=e.lang),this._o.datatype&&(t.datatype=e.datatype),t}},{key:"getType",value:function(){return this._o.type}},{key:"setType",value:function(e){throw new Error("Changing the type of an object is not supported, create a new statement instead.")}},{key:"getValue",value:function(){return this._o.value}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._silentValue=!0===t,e!==this._o.value&&(this._o.value=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getLanguage",value:function(){return this._o.lang}},{key:"setLanguage",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type)throw new Error("Cannot set the language for a resource, has to be a literal");this._o.lang!==e&&(this._o.lang=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getDatatype",value:function(){return this._o.datatype}},{key:"setDatatype",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type||null!=this._o.lang)throw new Error("Cannot set the datatype for a resource, has to be a literal");this._o.datatype!==e&&(this._o.datatype=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}}])&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ne=(o(5137),o(2568));const Le=function(e,t){var n=[],r=new Set((t||[]).map((function(e){return xe(e)}))),o=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var n=e.getDatatype();return n&&"http://www.w3.org/2001/XMLSchema#string"!==n&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==n&&(t+="^^".concat(n)),t},s=function(e,t){var n=i[e]||{rels:[]};i[e]=n,n.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!r.has(i)){var l="bnode"===e.getType(),u=e.isSubjectBlank();if(u||l)return o.push(e),u&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),u?i:t+i));n.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Ne(e.rels.join(""))})),o.forEach((function(e){var t=[];t.push(e.isSubjectBlank()?i[e.getSubject()].hash:e.getSubject()),t.push(e.getPredicate()),t.push("bnode"===e.getType()?i[e.getValue()].hash:a(e)),n.push(t.join(""))})),n.sort(),Ne(n.join(""))};class Ze{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}Ze.prototype.termType="BlankNode";const Fe=Ze;class Be{equals(e){return!!e&&e.termType===this.termType}}Be.prototype.termType="DefaultGraph",Be.prototype.value="";const Ve=Be;const ze=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const n=e.fromTerm(t.subject),r=e.fromTerm(t.predicate),o=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(n,r,o,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class We{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}We.prototype.termType="Literal";const Ue=We;class $e{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}$e.prototype.termType="NamedNode";const He=$e;class Ye{constructor(e,t,n,r){this.subject=e,this.predicate=t,this.object=n,this.graph=r}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}Ye.prototype.termType="Quad",Ye.prototype.value="";const Ge=Ye;class qe{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}qe.prototype.termType="Variable";const Ke=qe,Xe=new He("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Qe=new He("http://www.w3.org/2001/XMLSchema#string");class Je{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new Ve}}namedNode(e){return new He(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new Fe(e)}literal(e,t){return"string"==typeof t?new Ue(e,t,Xe):new Ue(e,"",t||Qe)}variable(e){return new Ke(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,r=this.defaultGraph()){return new Ge(e,t,n,r)}fromTerm(e){return ze(this,e)}fromQuad(e){return ze(this,e)}}Je.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const et=new Je;var tt=function(e){return 0===e.indexOf("_:")?e.substring(2):e},nt=function(e){return e.find().map((function(e){var t=e.getSubject(),n=e.getPredicate(),r=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return et.literal(e.value,e.lang);if(e.datatype){var t=et.namedNode(e.datatype);return et.literal(e.value,t)}return et.literal(e.value);case"uri":return et.namedNode(e.value);case"blank":return et.blankNode(tt(e.value))}}(e.getObject()),o=e.getNamedGraph()?et.namedNode(e.getNamedGraph()):void 0;return et.quad(e.isSubjectBlank()?et.blankNode(tt(t)):et.namedNode(t),et.namedNode(n),r,o)}))},rt=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ot=function(e,t){var n=t||new Graph,r=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:rt(e.value),type:"bnode"};case"Literal":return e.language?{value:e.value,type:"literal",lang:e.language}:e.datatype?{value:e.value,type:"literal",datatype:e.datatype.value}:{value:e.value,type:"literal"}}}(e.object||e._object);return"DefaultGraph"!==e.graph.termType&&(t.ng=e.graph.value),t};e.forEach((function(e){n.add("BlankNode"===e.subject.termType?rt(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?rt(e.predicate.value):e.predicate.value,r(e))}))};function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(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,lt(r.key),r)}}function lt(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==it(t)?t:String(t)}var ut=function(e){return 0===e.length?e:[e[0]]},ct=function e(t,n,r){return{object:function(o){for(var i=0;i<n.length;i++){var a=void 0;if(r)a=n[i].getSubject();else{var s=n[i].getType();if("uri"===s||"bnode"===s)continue;a=n[i].getValue()}var l=t.find(a,o);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(o){var i,a=[];if(!0===r)for(i=0;i<n.length;i++)a=a.concat(t.find(n[i].getSubject(),o));else for(i=0;i<n.length;i++){var s=n[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(n[i].getValue(),o)))}return e(t,a)},constr:function(o,i){var a=i;Ae.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<n.length;l++){var u=r?n[l].getSubject():n[l].getValue();t.find(u,o,a).length>0&&s.push(n[l])}return e(t,s,r)},each:function(o,i){if(!0===r)for(var a=0;a<n.length;a++){var s="_:"===n[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||o(e(t,n[a],r))}else for(var l=0;l<n.length;l++)o(e(t,n[l],r))},statements:function(){return n},nodes:function(e){var t=[];if(!0===r)for(var o=0;o<n.length;o++){var i="_:"===n[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:n[o].getSubject()})}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getObject());return t},values:function(e){var t=[];if(!0===r)for(var o=0;o<n.length;o++){var i="_:"===n[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(n[o].getSubject())}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getValue());return t},firstValue:function(e){if(!0===r)for(var t=0;t<n.length;t++){var o="_:"===n[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===o)return n[t].getSubject()}else for(var i=0;i<n.length;i++)if(null==e||e===n[i].getType())return n[i].getValue()}}},dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;at(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==n&&this.validate(),this._changed=!1}var t,n,r;return t=e,(n=[{key:"addQuads",value:function(e){return ot(e,this),this}},{key:"toQuads",value:function(){return nt(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var n=e._graph[t];return Object.keys(n).find((function(e){return n[e].find((function(e){return null==e._statement||e._statement.isAsserted()}))}))}))}},{key:"onChange",value:function(){}},{key:"setChanged",value:function(e){this._changed=!(!0!==e&&null!=e),this._changed&&this.onChange()}},{key:"isChanged",value:function(){return this._changed}},{key:"addAll",value:function(e,t){for(var n,r={},o=e.find(),i=0;i<o.length;i++){var a=o[i],s=a.getSubject(),l=a.getPredicate(),u=a.getCleanObject();t&&(u.ng=t),0===s.indexOf("_:")&&(n=r[s]||this._newBNode(),r[s]=n,s=n),0===l.indexOf("_:")&&(n=r[l]||this._newBNode(),r[l]=n,l=n),"bnode"===u.type&&(n=r[u.value]||this._newBNode(),r[u.value]=n,u.value=n),this.add(s,l,u)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(e instanceof Ie){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),u=Ae.add(this._graph,s,i,l,o);return!0!==r&&this.setChanged(),this._get(s,i,u,!0)}return this.create(e,t,n,!0,r,o)}},{key:"addL",value:function(e,t,n,r){var o={type:"literal",value:n};return"string"==typeof r&&(o.lang=r),this.create(e,t,o,!0)}},{key:"addD",value:function(e,t,n,r){var o={type:"literal",value:n};return"string"==typeof r&&(o.datatype=xe(r)),this.create(e,t,o,!0)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=n;if(a=null==a?this._newBNode():xe(a),s=null==s?this._newBNode():xe(s),null==l?l={type:"bnode",value:this._newBNode()}:Ae.isString(l)?l={type:"uri",value:xe(l)}:"object"!==it(l)||Array.isArray(l)?l={type:"uri",value:"".concat(l)}:("uri"===(l={type:l.type,value:l.value,lang:l.lang,datatype:l.datatype,ng:l.ng}).type&&null!=l.value&&(l.value=xe(l.value)),l.datatype&&(l.datatype=xe(l.datatype))),!1!==r){var u=Ae.add(this._graph,a,s,l,i);return!0!==o&&this.setChanged(),this._getOrCreate(a,s,u,!0)}return new Ie(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.find(e,t,n),i=0;i<o.length;i++)this.remove(o[i],r)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getSubject(),r=e.getPredicate(),o=e.getObject();this._trackBNodes(n,r,o),null!=Ae.remove(this._graph,n,r,o)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,n){var r=e,o=t,i=n;if("string"==typeof r&&(r=xe(r)),"string"==typeof o&&(o=xe(o)),"object"===it(i)&&null!==i&&"uri"===i.type?i.value=xe(i.value):"string"==typeof i&&(i={type:"uri",value:xe(i)}),null==i)return null==o?null==r?this._find():this._findS(r):null==r?this._findP(o):this._findSP(r,o);if(null==o)return null==r?this._findO(i):this._findSO(r,i);if(null==r)return this._findPO(o,i);var a=this._get(r,o,Ae.contains(this._graph,r,o,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var n=this.find(e,t);if(n.length>0)return n[0].getValue()}},{key:"projection",value:function(e,t,n){var r=this,o={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?r.findPath(e,a):r.find(e,a);if(s.length>0)switch("*"===i[0]?o[i.substr(1)]=s.map((function(e){return e.getValue()})):o[i]=s[0].getValue(),n||"none"){case"statement":o["*".concat(i)]=s;break;case"objects":o["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":o["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),o}},{key:"subjects",value:function(e,t){return ct(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return ct(this,ut(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return ct(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return ct(this,ut(this.find(e,t,null)))}},{key:"findPath",value:function(e,t){return t.slice(1).reduce((function(e,t){return e.objects(t)}),this.objects(e,t[0])).statements()}},{key:"addList",value:function(e){return this._addList(e,"add")}},{key:"addListL",value:function(e,t){return this._addList(e,"addL",t)}},{key:"addListD",value:function(e,t){return this._addList(e,"addD",t)}},{key:"_addList",value:function(e,t,n){var r,o=this;if(Array.isArray(e)&&0!==e.length){var i=r=this._newBNode(),a=e.length-1;e.forEach((function(e,r){o[t](i,"rdf:first",e,n),r!==a?i=o.add(i,"rdf:rest").getValue():o.add(i,"rdf:rest","rdf:nil")}))}else r=xe("rdf:nil");return r}},{key:"removeList",value:function(e){var t=!1,n="object"===it(e)?e.value:e;try{var r=xe("rdf:nil");for(t=n===r;n!==r&&null!=n;){var o=this.findFirstValue(n,"rdf:rest");this.findAndRemove(n),t=null!=(n=o)}}catch(e){return console.warn("Invalid list for object: ".concat(n)),!1}return t}},{key:"getList",value:function(e){var t="object"===it(e)?e.value:xe(e),n=[];try{for(var r=xe("rdf:nil");t!==r&&null!=t;)n.push(this.find(t,"rdf:first")[0].getObject()),t=this.findFirstValue(t,"rdf:rest")}catch(e){console.warn("Invalid list for object: ".concat(t))}return n}},{key:"findFirstListAsValues",value:function(e,t){return this.getList(this.findFirstValue(e,t)).map((function(e){return e.value}))}},{key:"findAndRemoveLists",value:function(e,t){var n=this,r=!1;return this.find(e,t).forEach((function(e){n.removeList(e.getValue())&&(n.remove(e),r=!0)})),r}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,Ae.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");n[t]=n[e],delete n[e]}return this.forEach((function(n,r,o){"uri"===o.type&&o.value===e&&(o.value=t),n===t&&o._statement&&(o._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,n){var r=this._graph;if(r.hasOwnProperty(e)){if(r.hasOwnProperty(t)){if(!n)throw new Error("Cannot replace subject with target URI since it already exists.");var o=r[t],i=r[e];Object.keys(i).forEach((function(e){if(o.hasOwnProperty(e)){var t=o[e],n=i[e].filter((function(e){return!t.find((function(t){return Ae.objectEquals(t,e)}))}));o[e]=t.concat(n)}else o[e]=i[e]})),delete r[e]}else r[t]=r[e],delete r[e];this.forEach((function(n,r,o){"bnode"===o.type&&o.value===e&&(o.value=t,o.type="uri"),n===t&&o._statement&&(o._statement._s=t)}))}return delete this._bnodes[e],this}},{key:"clone",value:function(){return new e(this.exportRDFJSON(!1))}},{key:"findProperties",value:function(e){return Object.keys(this._graph[e]||{})}},{key:"validate",value:function(){if(this.report=this._validate(),!this.report.valid)throw this.report;return this.report}},{key:"registerBNode",value:function(e){this._bnodes[e]=!0}},{key:"forEach",value:function(e){var t=this._graph;Object.keys(t).forEach((function(n){var r=t[n];Object.keys(r).forEach((function(t){r[t].forEach((function(r){e(n,t,r)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"equals",value:function(e,t){return Le(this,t)===Le(e,t)}},{key:"size",value:function(){var e=0;return Object.values(this._graph).forEach((function(t){Object.values(t).forEach((function(t){e+=t.length}))})),e}},{key:"_get",value:function(e,t,n,r){if(null!=n)return this._getOrCreate(e,t,n,r)}},{key:"_getOrCreate",value:function(e,t,n,r){return null==n._statement&&(n._statement=new Ie(this,e,t,n,r)),n._statement}},{key:"_graphObject",value:function(e){return null==e._statement||e._statement._graph===this?e:{type:e.type,value:e.value,lang:e.lang,datatype:e.datatype}}},{key:"_findSP",value:function(e,t){var n=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(r){return n._get(e,t,r,!0)}))}},{key:"_findS",value:function(e){var t=this,n=this._graph[e],r=Object.keys(n||{}).map((function(n){return t._findSP(e,n)}));return Array.prototype.concat.apply([],r)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(n,r,o){t.push(e._get(n,r,o,!0))})),t}},{key:"_findP",value:function(e){var t=this,n=[];return this.forEach((function(r,o,i){e===o&&n.push(t._get(r,o,i,!0))})),n}},{key:"_findO",value:function(e){var t=this,n=[];return this.forEach((function(r,o,i){Ae.objectEquals(e,i)&&n.push(t._get(r,o,i,!0))})),n}},{key:"_findSO",value:function(e,t){var n=this,r=[];return this.forEach((function(o,i,a){e===o&&Ae.objectEquals(t,a)&&r.push(n._get(o,i,a,!0))})),r}},{key:"_findPO",value:function(e,t){var n=this,r=[];return this.forEach((function(o,i,a){e===i&&Ae.objectEquals(t,a)&&r.push(n._get(o,i,a,!0))})),r}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(n){var r=e[n];Ae.isObject(r)?Object.keys(r).forEach((function(e){var o=r[e];Array.isArray(o)?o.forEach((function(r,o){Ae.isObject(r)?null!=r.type?Ae.isString(r.value)?t.nr+=1:(t.errors.push({s:n,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:o+1,message:"Element ".concat(o+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:n,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:n,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,n;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(n="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[n])return this._bnodes[n]=!0,n;throw new Error("Failed creating a new blank node, increadible unprobable...")}},{key:"_indexBNodes",value:function(){var e=this;if(!this._bnodesIndexed){var t=this._graph;Object.keys(t).forEach((function(n){0===n.indexOf("_:")&&(e._bnodes[n]=!0);var r=t[n];Object.keys(r).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),r[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,n){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===n.type&&(this._bnodes[n.value]=!0)}}])&&st(t.prototype,n),r&&st(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(7267);o(268),o(50),o(6646),o(5787);function ft(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(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,ht(r.key),r)}}function ht(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:String(t)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t,n){return xt(t),function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bt()?Reflect.construct(t,n||[],xt(e).constructor):t.apply(e,n))}function yt(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return vt(e,arguments,xt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),wt(n,e)}(e)}function vt(e,t,n){if(bt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&wt(o,n.prototype),o}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function wt(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xt(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function St(e){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(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,Ct(r.key),r)}}function Et(e,t,n){return t&&kt(e.prototype,t),n&&kt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==St(t)?t:String(t)}var Pt={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#"},Tt={rdftype:"".concat(Pt.rdf,"type"),rdfssco:"".concat(Pt.rdfs,"subClassOf"),rdfsdomain:"".concat(Pt.rdfs,"domain"),rdfsrange:"".concat(Pt.rdfs,"range"),rdfsspo:"".concat(Pt.rdfs,"subPropertyOf"),rdfsClass:"".concat(Pt.rdfs,"Class"),owlClass:"".concat(Pt.owl,"Class"),owlObjectProperty:"".concat(Pt.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Pt.owl,"DatatypeProperty"),rdfProperty:"".concat(Pt.rdf,"Property")},Ot=function(e,t,n){for(var r={},o=!1,i=e.find(t,n),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(r[s.getLanguage()||""]=s.getValue()||"",o=!0)}if(o)return null==r.en&&null!=r[""]&&(r.en=r[""],delete r[""]),r},Rt=function(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r];n[o]||(t.push(o),n[o]=!0)}return t},At=function(){function e(t,n){_t(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=n}return Et(e,[{key:"getURI",value:function(){return this._uri}},{key:"getLabel",value:function(){var e=this.getLabels();if(null!=e.en)return e.en;var t=Object.objects(e);return t.length>0?t[0]:""}},{key:"getLabels",value:function(){return null==this._labels&&(this._labels=Ot(this._graph,this._uri,"".concat(Pt.rdfs,"label")),null==this._labels&&(this._labels={en:this._uri.substr(this._uri.lastIndexOf("/")+1)})),this._labels}},{key:"getComment",value:function(){var e=this.getComments();return null!=e?null!=e.en?e.en:Object.objects(e)[0]:""}},{key:"getComments",value:function(){return null==this._comments&&(this._comments=Ot(this._graph,this._uri,"".concat(Pt.rdfs,"comment"))),this._comments}},{key:"addParent",value:function(e){this._parents.push(e),e._children.push(this)}},{key:"getDirectParents",value:function(){return this._parents}},{key:"getParents",value:function(){if(this._parentLock)return[];if(this._parentLock=!0,null==this._allParents){this._allParents=[];for(var e=0;e<this._parents.length;e++)this._allParents=this._allParents.concat(this._parents[e].getParents()),this._allParents.push(this._parents[e])}return delete this._parentLock,this._allParents}},{key:"getChildren",value:function(){if(this._childLock)return[];if(this._childLock=!0,null==this._allChildren){this._allChildren=[];for(var e=0;e<this._children.length;e++)this._allChildren=this._allChildren.concat(this._children[e].getChildren()),this._allChildren.push(this._children[e])}return delete this._childLock,this._allChildren}},{key:"setRange",value:function(e){null==this._range&&(this._range=[]),this._range.push(e)}},{key:"setDomain",value:function(e){null==this._domain&&(this._domain=[]),this._domain.push(e),e.setDomainOf(this)}},{key:"getRange",value:function(){if(null==this._allRange){this._allRange=this._range||[];for(var e=0;e<this._parents.length;e++)this._allRange=this._allRange.concat(this._parents[e].getRange());this._allRange=Rt(this._allRange)}return this._allRange}},{key:"getDomain",value:function(){if(null==this._allDomain){this._allDomain=this._domain||[];for(var e=0;e<this._parents.length;e++)this._allDomain=this._allDomain.concat(this._parents[e].getDomain());this._allDomain=Rt(this._allDomain)}return this._allDomain}},{key:"setDomainOf",value:function(e){null==this._domainOf&&(this._domainOf=[]),this._domainOf.push(e)}},{key:"getDomainOf",value:function(){return this._domainOf}},{key:"getAllDomainOf",value:function(){if(this._domainOfLock)return[];if(this._domainOfLock=!0,null==this._allDomainOf){var e=this._domainOf||[];this._allDomainOf=this._domainOf||[];for(var t=0;t<e.length;t++)this._allDomainOf=this._allDomainOf.concat(e[t].getChildren());for(var n=0;n<this._parents.length;n++)this._allDomainOf=this._allDomainOf.concat(this._parents[n].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Mt=function(e,t,n,r){for(var o=0;o<n.length;o++){var i=n[o],a=i.getSubject(),s=e[a];if(s||(s=new At(a,i.getGraph()),e[a]=s,t.push(s)),r){var l=i.getValue(),u=e[l];u||(u=new At(l,i.getGraph()),e[l]=u,t.push(u)),s.addParent(u)}}},Dt=function(){function e(){_t(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return Et(e,[{key:"addGraph",value:function(e){Mt(this._cidx,this._carr,e.find(null,Tt.rdftype,Tt.rdfsClass)),Mt(this._cidx,this._carr,e.find(null,Tt.rdftype,Tt.owlClass)),Mt(this._cidx,this._carr,e.find(null,Tt.rdfssco,null),!0),Mt(this._pidx,this._parr,e.find(null,Tt.rdftype,Tt.rdfProperty)),Mt(this._pidx,this._parr,e.find(null,Tt.rdfsspo,null),!0),Mt(this._pidx,this._parr,e.find(null,Tt.rdftype,Tt.owlDatatypeProperty)),Mt(this._pidx,this._parr,e.find(null,Tt.rdftype,Tt.owlObjectProperty)),function(e,t,n){for(var r,o,i,a=e.find(null,Tt.rdfsdomain,null),s=0;s<a.length;s++)r=t[(i=a[s]).getSubject()],o=n[i.getValue()],null!=r&&null!=o&&r.setDomain(o);a=e.find(null,Tt.rdfsrange,null);for(var l=0;l<a.length;l++)r=t[(i=a[l]).getSubject()],o=i.getValue(),null!=r&&null!=o&&r.setRange(o)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],n=!1;t||(t=new At(e,new dt),this._cidx[e]=t,this._carr.push(t),n=!0);for(var r=0;r<this._carr.length;r++){var o=this._carr[r];(n&&o!==t||-1===o.getParents().indexOf(t)&&o!==t)&&o.addParent(t)}}},{key:"getClasses",value:function(){return this._carr}},{key:"getProperties",value:function(){return this._parr}},{key:"isClass",value:function(e){return null!=this._cidx[e]}},{key:"isProperty",value:function(e){return null!=this._pidx[e]}},{key:"getClass",value:function(e){return this._cidx[e]}},{key:"getProperty",value:function(e){return this._pidx[e]}}],[{key:"getInstances",value:function(e){for(var t=[],n=[e].concat(e.getChildren()),r=0;r<n.length;r++)for(var o=n[r],i=o.getGraph.find(null,Tt.rdftype,o.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();Dt.prototype.ns=Pt,Dt.prototype.terms=Tt,Dt.global=new Dt;function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(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,Nt(r.key),r)}}function Nt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jt(t)?t:String(t)}var Lt=function(e){this.filterObj={},this.registry=e};Lt.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Lt.prototype[e]=function(t){var n={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var r=t[e];Array.isArray(r)?n[xe(e)]=r.map((function(e){return xe(e)})):n[xe(e)]=xe(r)})),this.filterObj[e]=n;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=xe(t);break;default:this.filterObj[e]=t||!0}return this}}));var Zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.components=[],this.priorities={CHECK:1,ITEMTYPE:2,CHOICES:4,NODETYPE:8,DATATYPE:16,RDFTYPE:32,CONSTRAINT:64,PREDICATE:128,STYLE:256,ITEM:512}}var t,n,r;return t=e,(n=[{key:"calculatePriority",value:function(e,t){var n=0;if(t.itemtype&&(n+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(n+=this.priorities.CHOICES,t.choices){case"static":if(!e.hasStaticChoices())return-1;break;case"dynamic":if(!e.hasChoices()||e.hasStaticChoices())return-1;break;case"none":if(e.hasChoices())return-1;break;case"any":default:if(!e.hasChoices())return-1}if(t.nodetype&&(n+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){n+=this.priorities.DATATYPE;var r=e.getDatatype(),o=!0;if(r&&(o=Array.isArray(r)?!r.includes(t.datatype):r!==t.datatype),o)return-1}return t.rdftype&&(n+=this.priorities.RDFTYPE,!function(e,t){var n=e.getConstraints();return null!=n&&n[rdfType]===t}(e,t.rdftype))||t.constraint&&(n+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var n=e.getConstraints(),r=!0;return null!=n&&(Object.keys(n).find((function(e){var o=t[e];return""!==o&&"*"!==o&&o!==n[e]&&(r=!1,!0)})),r)}(e,t.constraint))||t.predicate&&(n+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(n+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(n+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:n:-1}},{key:"getPriority",value:function(e,t){for(var n=0;n<this.components.length;n++)if(this.components[n].component===t){var r=this.calculatePriority(e,this.components[n].filter);if(r>=0)return r}return 0}},{key:"getComponentBefore",value:function(e,t){var n=this.getPriority(e,t);return this.getComponent(e,n)}},{key:"getComponent",value:function(e,t){for(var n,r,o,i=-1,a=0;a<this.components.length;a++)o=this.components[a],(r=this.calculatePriority(e,o.filter))>i&&(void 0===t||r<t)&&(n=o,i=r);if(n)return n.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Lt(this).itemtype(e)}},{key:"choices",value:function(e){return new Lt(this).choices(e)}},{key:"nodetype",value:function(e){return new Lt(this).nodetype(e)}},{key:"datatype",value:function(e){return new Lt(this).datatype(e)}},{key:"rdftype",value:function(e){return new Lt(this).rdftype(e)}},{key:"constraint",value:function(e){return new Lt(this).constraint(e)}},{key:"predicate",value:function(e){return new Lt(this).predicate(e)}},{key:"style",value:function(e){return new Lt(this).style(e)}},{key:"item",value:function(e){return new Lt(this).item(e)}},{key:"check",value:function(e){return new Lt(this).check(e)}}])&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ft=function(){this.__data__=[],this.size=0};const Bt=function(e,t){return e===t||e!=e&&t!=t};const Vt=function(e,t){for(var n=e.length;n--;)if(Bt(e[n][0],t))return n;return-1};var zt=Array.prototype.splice;const Wt=function(e){var t=this.__data__,n=Vt(t,e);return!(n<0)&&(n==t.length-1?t.pop():zt.call(t,n,1),--this.size,!0)};const Ut=function(e){var t=this.__data__,n=Vt(t,e);return n<0?void 0:t[n][1]};const $t=function(e){return Vt(this.__data__,e)>-1};const Ht=function(e,t){var n=this.__data__,r=Vt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Yt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yt.prototype.clear=Ft,Yt.prototype.delete=Wt,Yt.prototype.get=Ut,Yt.prototype.has=$t,Yt.prototype.set=Ht;const Gt=Yt;const qt=function(){this.__data__=new Gt,this.size=0};const Kt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Xt=function(e){return this.__data__.get(e)};const Qt=function(e){return this.__data__.has(e)};const Jt="object"==typeof global&&global&&global.Object===Object&&global;var en="object"==typeof self&&self&&self.Object===Object&&self;const tn=Jt||en||Function("return this")();const nn=tn.Symbol;var rn=Object.prototype,on=rn.hasOwnProperty,an=rn.toString,sn=nn?nn.toStringTag:void 0;const ln=function(e){var t=on.call(e,sn),n=e[sn];try{e[sn]=void 0;var r=!0}catch(e){}var o=an.call(e);return r&&(t?e[sn]=n:delete e[sn]),o};var un=Object.prototype.toString;const cn=function(e){return un.call(e)};var dn=nn?nn.toStringTag:void 0;const fn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dn&&dn in Object(e)?ln(e):cn(e)};const pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const hn=function(e){if(!pn(e))return!1;var t=fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const mn=tn["__core-js_shared__"];var gn,yn=(gn=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||""))?"Symbol(src)_1."+gn:"";const vn=function(e){return!!yn&&yn in e};var bn=Function.prototype.toString;const wn=function(e){if(null!=e){try{return bn.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var xn=/^\[object .+?Constructor\]$/,Sn=Function.prototype,_n=Object.prototype,kn=Sn.toString,En=_n.hasOwnProperty,Cn=RegExp("^"+kn.call(En).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Pn=function(e){return!(!pn(e)||vn(e))&&(hn(e)?Cn:xn).test(wn(e))};const Tn=function(e,t){return null==e?void 0:e[t]};const On=function(e,t){var n=Tn(e,t);return Pn(n)?n:void 0};const Rn=On(tn,"Map");const An=On(Object,"create");const Mn=function(){this.__data__=An?An(null):{},this.size=0};const Dn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var jn=Object.prototype.hasOwnProperty;const In=function(e){var t=this.__data__;if(An){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return jn.call(t,e)?t[e]:void 0};var Nn=Object.prototype.hasOwnProperty;const Ln=function(e){var t=this.__data__;return An?void 0!==t[e]:Nn.call(t,e)};const Zn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&void 0===t?"__lodash_hash_undefined__":t,this};function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fn.prototype.clear=Mn,Fn.prototype.delete=Dn,Fn.prototype.get=In,Fn.prototype.has=Ln,Fn.prototype.set=Zn;const Bn=Fn;const Vn=function(){this.size=0,this.__data__={hash:new Bn,map:new(Rn||Gt),string:new Bn}};const zn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Wn=function(e,t){var n=e.__data__;return zn(t)?n["string"==typeof t?"string":"hash"]:n.map};const Un=function(e){var t=Wn(this,e).delete(e);return this.size-=t?1:0,t};const $n=function(e){return Wn(this,e).get(e)};const Hn=function(e){return Wn(this,e).has(e)};const Yn=function(e,t){var n=Wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gn.prototype.clear=Vn,Gn.prototype.delete=Un,Gn.prototype.get=$n,Gn.prototype.has=Hn,Gn.prototype.set=Yn;const qn=Gn;const Kn=function(e,t){var n=this.__data__;if(n instanceof Gt){var r=n.__data__;if(!Rn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};function Xn(e){var t=this.__data__=new Gt(e);this.size=t.size}Xn.prototype.clear=qt,Xn.prototype.delete=Kt,Xn.prototype.get=Xt,Xn.prototype.has=Qt,Xn.prototype.set=Kn;const Qn=Xn;const Jn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const er=function(){try{var e=On(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const tr=function(e,t,n){"__proto__"==t&&er?er(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var nr=Object.prototype.hasOwnProperty;const rr=function(e,t,n){var r=e[t];nr.call(e,t)&&Bt(r,n)&&(void 0!==n||t in e)||tr(e,t,n)};const or=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?tr(n,s,l):rr(n,s,l)}return n};const ir=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const ar=function(e){return null!=e&&"object"==typeof e};const sr=function(e){return ar(e)&&"[object Arguments]"==fn(e)};var lr=Object.prototype,ur=lr.hasOwnProperty,cr=lr.propertyIsEnumerable;const dr=sr(function(){return arguments}())?sr:function(e){return ar(e)&&ur.call(e,"callee")&&!cr.call(e,"callee")};const fr=Array.isArray;const pr=function(){return!1};var hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,mr=hr&&"object"==typeof module&&module&&!module.nodeType&&module,gr=mr&&mr.exports===hr?tn.Buffer:void 0;const yr=(gr?gr.isBuffer:void 0)||pr;var vr=/^(?:0|[1-9]\d*)$/;const br=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&vr.test(e))&&e>-1&&e%1==0&&e<t};const wr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var xr={};xr["[object Float32Array]"]=xr["[object Float64Array]"]=xr["[object Int8Array]"]=xr["[object Int16Array]"]=xr["[object Int32Array]"]=xr["[object Uint8Array]"]=xr["[object Uint8ClampedArray]"]=xr["[object Uint16Array]"]=xr["[object Uint32Array]"]=!0,xr["[object Arguments]"]=xr["[object Array]"]=xr["[object ArrayBuffer]"]=xr["[object Boolean]"]=xr["[object DataView]"]=xr["[object Date]"]=xr["[object Error]"]=xr["[object Function]"]=xr["[object Map]"]=xr["[object Number]"]=xr["[object Object]"]=xr["[object RegExp]"]=xr["[object Set]"]=xr["[object String]"]=xr["[object WeakMap]"]=!1;const Sr=function(e){return ar(e)&&wr(e.length)&&!!xr[fn(e)]};const _r=function(e){return function(t){return e(t)}};var kr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Er=kr&&"object"==typeof module&&module&&!module.nodeType&&module,Cr=Er&&Er.exports===kr&&Jt.process;const Pr=function(){try{var e=Er&&Er.require&&Er.require("util").types;return e||Cr&&Cr.binding&&Cr.binding("util")}catch(e){}}();var Tr=Pr&&Pr.isTypedArray;const Or=Tr?_r(Tr):Sr;var Rr=Object.prototype.hasOwnProperty;const Ar=function(e,t){var n=fr(e),r=!n&&dr(e),o=!n&&!r&&yr(e),i=!n&&!r&&!o&&Or(e),a=n||r||o||i,s=a?ir(e.length,String):[],l=s.length;for(var u in e)!t&&!Rr.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||br(u,l))||s.push(u);return s};var Mr=Object.prototype;const Dr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Mr)};const jr=function(e,t){return function(n){return e(t(n))}};const Ir=jr(Object.keys,Object);var Nr=Object.prototype.hasOwnProperty;const Lr=function(e){if(!Dr(e))return Ir(e);var t=[];for(var n in Object(e))Nr.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Zr=function(e){return null!=e&&wr(e.length)&&!hn(e)};const Fr=function(e){return Zr(e)?Ar(e):Lr(e)};const Br=function(e,t){return e&&or(t,Fr(t),e)};const Vr=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var zr=Object.prototype.hasOwnProperty;const Wr=function(e){if(!pn(e))return Vr(e);var t=Dr(e),n=[];for(var r in e)("constructor"!=r||!t&&zr.call(e,r))&&n.push(r);return n};const Ur=function(e){return Zr(e)?Ar(e,!0):Wr(e)};const $r=function(e,t){return e&&or(t,Ur(t),e)};var Hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yr=Hr&&"object"==typeof module&&module&&!module.nodeType&&module,Gr=Yr&&Yr.exports===Hr?tn.Buffer:void 0,qr=Gr?Gr.allocUnsafe:void 0;const Kr=function(e,t){if(t)return e.slice();var n=e.length,r=qr?qr(n):new e.constructor(n);return e.copy(r),r};const Xr=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};const Qr=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};const Jr=function(){return[]};var eo=Object.prototype.propertyIsEnumerable,to=Object.getOwnPropertySymbols;const no=to?function(e){return null==e?[]:(e=Object(e),Qr(to(e),(function(t){return eo.call(e,t)})))}:Jr;const ro=function(e,t){return or(e,no(e),t)};const oo=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const io=jr(Object.getPrototypeOf,Object);const ao=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oo(t,no(e)),e=io(e);return t}:Jr;const so=function(e,t){return or(e,ao(e),t)};const lo=function(e,t,n){var r=t(e);return fr(e)?r:oo(r,n(e))};const uo=function(e){return lo(e,Fr,no)};const co=function(e){return lo(e,Ur,ao)};const fo=On(tn,"DataView");const po=On(tn,"Promise");const ho=On(tn,"Set");const mo=On(tn,"WeakMap");var go=wn(fo),yo=wn(Rn),vo=wn(po),bo=wn(ho),wo=wn(mo),xo=fn;(fo&&"[object DataView]"!=xo(new fo(new ArrayBuffer(1)))||Rn&&"[object Map]"!=xo(new Rn)||po&&"[object Promise]"!=xo(po.resolve())||ho&&"[object Set]"!=xo(new ho)||mo&&"[object WeakMap]"!=xo(new mo))&&(xo=function(e){var t=fn(e),n="[object Object]"==t?e.constructor:void 0,r=n?wn(n):"";if(r)switch(r){case go:return"[object DataView]";case yo:return"[object Map]";case vo:return"[object Promise]";case bo:return"[object Set]";case wo:return"[object WeakMap]"}return t});const So=xo;var _o=Object.prototype.hasOwnProperty;const ko=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&_o.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Eo=tn.Uint8Array;const Co=function(e){var t=new e.constructor(e.byteLength);return new Eo(t).set(new Eo(e)),t};const Po=function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var To=/\w*$/;const Oo=function(e){var t=new e.constructor(e.source,To.exec(e));return t.lastIndex=e.lastIndex,t};var Ro=nn?nn.prototype:void 0,Ao=Ro?Ro.valueOf:void 0;const Mo=function(e){return Ao?Object(Ao.call(e)):{}};const Do=function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const jo=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Co(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Po(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Do(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Oo(e);case"[object Set]":return new r;case"[object Symbol]":return Mo(e)}};var Io=Object.create;const No=function(){function e(){}return function(t){if(!pn(t))return{};if(Io)return Io(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Lo=function(e){return"function"!=typeof e.constructor||Dr(e)?{}:No(io(e))};const Zo=function(e){return ar(e)&&"[object Map]"==So(e)};var Fo=Pr&&Pr.isMap;const Bo=Fo?_r(Fo):Zo;const Vo=function(e){return ar(e)&&"[object Set]"==So(e)};var zo=Pr&&Pr.isSet;const Wo=zo?_r(zo):Vo;var Uo={};Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object DataView]"]=Uo["[object Boolean]"]=Uo["[object Date]"]=Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object Symbol]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object WeakMap]"]=!1;const $o=function e(t,n,r,o,i,a){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!pn(t))return t;var d=fr(t);if(d){if(s=ko(t),!l)return Xr(t,s)}else{var f=So(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(yr(t))return Kr(t,l);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=u||p?{}:Lo(t),!l)return u?so(t,$r(s,t)):ro(t,Br(s,t))}else{if(!Uo[f])return i?t:{};s=jo(t,f,l)}}a||(a=new Qn);var h=a.get(t);if(h)return h;a.set(t,s),Wo(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Bo(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var m=d?void 0:(c?u?co:uo:u?Ur:Fr)(t);return Jn(m||t,(function(o,i){m&&(o=t[i=o]),rr(s,i,e(o,n,r,i,t,a))})),s};const Ho=function(e){return $o(e,5)};o(2003),o(2462);var Yo=o(381),Go=o.n(Yo),qo=function(e){var t=Go().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(t))return{value:e[t],precision:"exact",lang:t};if(t.indexOf("_")>-1&&e.hasOwnProperty(t.substr(0,2)))return{value:e[t.substr(0,2)],precision:"coarsen",lang:t.substr(0,2)};if(e.hasOwnProperty("en"))return{value:e.en,precision:"default",lang:"en"};if(e.hasOwnProperty(""))return{value:e[""],precision:"nolang",lang:""};var n=Object.keys(e);return n.length>0?{value:e[n[0]],precision:"any",lang:n[0]}:{precision:"none"}},Ko=function(e,t,n){var r=e.find(t,n);if(r.length>0){for(var o={},i=0;i<r.length;i++)o[r[i].getLanguage()||""]=r[i].getValue();return o}};const Xo={getLocalizedValue:qo,getLocalizedMap:function(e,t,n){var r,o=t,i=n;e.getItem?(r=e.getGraph(),o=e.getValue(),i=e.getItem().getURIValueLabelProperties()):r=e,null!=i&&0!==i.length||(i=Jo.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],u=0;u<s.length;u++){var c=Ko(r,o,s[u]);c&&l.push(qo(c).value)}if(l.length>0)return{"":l.join(" ")}}else{var d=Ko(r,o,s);if(d)return d}}},cloneArrayWithLabels:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=qo(o.label),a={value:o.value,label:i.value||o.value||""};!0===o.top&&(a.top=!0),null!=o.children&&(a.children=Ho(o.children)),!1===o.selectable?a.selectable=!1:a.selectable=!0,n.push(a)}return!0!==t&&n.sort((function(e,t){return e.label>t.label?1:-1})),n},extractGist:function(e,t){var n=t;if(n){-1===n.indexOf("$1")&&(n+="$1");var r="".concat(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),o=new RegExp(r).exec(e);if(null!=o)return o[1]}return e},findFirstValue:function(e,t,n,r){var o=e.findFirstValueBinding(e.match(t,n,r),!1);if(o)return o.getChoice?qo(o.getChoice().label).value:o.getGist()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}};var Qo=function(e,t,n,r){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var o=Xo.getLocalizedMap(r,t,e.getURIValueLabelProperties());if(!o){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");o=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:o}}return{value:t,label:t}};const Jo={hasDnDSupport:function(e){return!1},addDnD:function(e,t,n){return{}},attachExternalLinkBehaviour:function(){return!1},attachLinkBehaviour:function(e,t){return!1},openChoiceSelector:function(e,t){alert('This alert is a placeholder for a search dialog that should be provided as part of the integration of RDForms into a wider system.\nSimply override the methods "getChoices" and "openChoiceSelector" in the system module.'),t({value:"http://example.com/choice1",label:{en:"First choice",sv:"Första valet"}})},getChoice:function(e,t,n,r){return Qo(e,t,0,r)},getFallbackChoice:Qo,labelProperties:["http://www.w3.org/2000/01/rdf-schema#label","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2004/02/skos/core#prefLabel","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/name"],createURI:function(e,t){for(var n=t.getChildrenRootUri(),r=n.lastIndexOf("#"),o=-1===r?"".concat(n,"#"):n.substring(0,r+1),i=t.getGraph()._graph;;){var a=o+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},ei=JSON.parse('{"edit_add":"Add","edit_remove":"Remove","edit_clear":"Clear","edit_browse":"Browse and select","edit_browse_create":"Browse and select or create","edit_expand":"Expand","edit_upgrade":"Provide additional information for this web address","info_label":"Label","info_property":"Property","info_description":"Description","info_missing":"No information","address_label":"Address","validation_min_required_one":"at least one value is required","validation_min_required_more":"a minimum of $1 values is required","validation_min_recommended_one":"at least one value is recommended","validation_min_recommended_more":"a minimum of $1 values is recommended","validation_max_one":"at most one value is allowed","validation_max_more":"a maximum of $1 values are allowed","validation_at_most_one_child":"A maximum of one value is allowed","validation_at_least_one_child":"A minimum of one value is required","validation_exactly_one_child":"Exactly one value is required","validation_deprecated":"This field is deprecated","validation_nodetype":"Wrong nodetype","validation_value":"Wrong value","validation_datatype":"Wrong datatype","validation_constraints":"Missing constraints","validation_pattern":"Value does not follow pattern","validation_language":"A language code is required","date_date":"Date","date_time":"Time","date_year":"Year","date_date_and_time":"Date and time","date_year_and_month":"Year and month","date_month_and_day":"Month and day","date_openDatePicker":"Open date picker dialog","date_openTimePicker":"Open time picker dialog","date_openYearPicker":"Open year picker dialog","date_nextMonth":"Next month","date_previousMonth":"Previous month","duration_years":"Years","duration_months":"Months","duration_days":"Days","duration_hours":"Hours","duration_minutes":"Minutes","mandatoryLabel":"Mandatory","recommendedLabel":"Recommended","optionalLabel":"Optional","today":"Today","mandatoryMark":"*","recommendedMark":"(Recommended)","optionalMark":"(Optional)","deprecatedField":"This field has been deprecated, please remove it.","missingValueField":"This field is required, please provide a value.","dependencyField":"This field depends on another field, please review the field it depends on or remove this value.","wrongValueField":"This is an invalid value, please change or remove it.","wrongDatatypeField":"The value has an invalid datatype, please change or remove it.","openLinkExternally":"Open link externally","showMore":"Show more","showLess":"Show less"}');function ti(e){return(ti="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)}var ni,ri,oi,ii,ai,si="body",li=[{value:"",label:{en:""}},{value:"bg",label:{en:"Bulgarian",bg:"български"}},{value:"es",label:{en:"Spanish",es:"Español"}},{value:"cs",label:{en:"Czech",cs:"čeština"}},{value:"da",label:{en:"Danish",da:"Dansk"}},{value:"no",label:{en:"Norwegian",no:"Norsk",nb:"Norsk",nn:"Norsk nynorsk"}},{value:"nb",label:{en:"Norwegian (bokmål)",nb:"Norsk bokmål",no:"Norsk bokmål",nn:"Norsk bokmål"}},{value:"nn",label:{en:"Norwegian (nynorsk)",nb:"Norsk nynorsk",no:"Norsk nynorsk",nn:"Norsk nynorsk"}},{value:"de",label:{en:"German",de:"Deutsch"}},{value:"et",label:{en:"Estonian",et:"Eesti keel"}},{value:"el",label:{en:"Greek",el:"ελληνικά"}},{value:"en",label:{en:"English"}},{value:"fr",label:{en:"French",fr:"Français"}},{value:"ga",label:{en:"Irish",ga:"Gaeilge"}},{value:"hr",label:{en:"Croatian",hr:"Hrvatski"}},{value:"it",label:{en:"Italian",it:"Italiano"}},{value:"lv",label:{en:"Latvian",lv:"Latviešu valoda"}},{value:"lt",label:{en:"Lithuanian",lt:"Lietuvių kalba"}},{value:"hu",label:{en:"Hungarian",hu:"Magyar"}},{value:"mt",label:{en:"Maltese",mt:"Malti"}},{value:"nl",label:{en:"Dutch",nl:"Nederlands"}},{value:"pl",label:{en:"Polish",pl:"Polski"}},{value:"pt",label:{en:"Portuguese",pt:"Português"}},{value:"ro",label:{en:"Romanian",ro:"Română"}},{value:"sk",label:{en:"Slovak",sk:"Slovenčina"}},{value:"sl",label:{en:"Slovenian",sl:"Slovenščina"}},{value:"fi",label:{en:"Finnish",fi:"Suomi"}},{value:"sv",label:{en:"Swedish",sv:"Svenska"}}],ui={domQuery:function(){},domCreate:function(){},domCreateAfter:function(){},domClassToggle:function(){},domSetAttr:function(){},domText:function(){},createDomNode:function(e){return e instanceof Node?e:"string"==typeof e?document.getElementById(e):document.createElement("div")},destroyDomNode:function(){},presenterRegistry:new Zt,editorRegistry:new Zt,chooserRegistry:new Zt,renderPresenter:function(e,t,n){var r=ui.presenterRegistry.getComponent(t.getItem());r&&(ui.prePresenterRenderer(e,t,n),r(e,t,n),ui.postPresenterRenderer(e,t,n))},renderEditor:function(e,t,n){var r=ui.editorRegistry.getComponent(t.getItem());r&&(ui.preEditorRenderer(e,t,n),r(e,t,n),ui.postEditorRenderer(e,t,n))},renderValidationMessage:function(e,t,n){},renderSelect:function(){},getChoice:function(e,t){var n=ui.chooserRegistry.getComponent(e);if(null==n)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return n.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=ui.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,n){var r=ui.chooserRegistry.getComponent(e.getItem());if(null!=r&&r&&r.getChoice)r.show(e,t,n);else{var o=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(o))}},getExtLinkClass:function(){return""},setMessages:function(e){ni=e},getMessages:function(){return ni||ei},getLanguageList:function(){return ri||li},getPrimaryLanguageList:function(){if(!ii){for(var e,t=ui.getLanguageList(),n=oi||[],r=[],o=0;o<t.length;o++){var i=t[o].value,a=n.indexOf(i);""===i&&(e=t[o]),-1!==a&&(r[a]=t[o])}ii=[];for(var s=0;s<r.length;s++)"object"===ti(r[s])&&ii.push(r[s]);ii.length>0&&e&&ii.splice(0,0,e)}return ii},getNonPrimaryLanguageList:function(){if(!ai){var e=ui.getPrimaryLanguageList().length>0,t=ui.getLanguageList(),n=oi||[];ai=[];for(var r=0;r<t.length;r++){var o=t[r].value;-1===n.indexOf(o)&&(e&&""===o||ai.push(t[r]))}}return ai},setPrimaryLanguageCodes:function(e){ai=null,ii=null,oi=e},setLanguageList:function(e){ri=e},filterTranslations:function(e,t,n){for(var r={},o=0;o<e.length;o++){var i=e[o].getLanguage();""===i||null==i?r.noLanguage=!0:i===t?r.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?r.close=!0:0===i.indexOf(n)&&(r.defaultLanguage=!0)}return r.best?e.filter((function(e){return e.getLanguage()===t})):r.close?e.filter((function(e){var n=e.getLanguage();return n&&(-1!==n.indexOf(t)||-1!==t.indexOf(n))})):r.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(n)})):e},setPopoverContainer:function(e){si=e},getPopoverContainer:function(){return si},preEditorViewRenderer:function(e,t){},prePresenterViewRenderer:function(e,t){},preEditorRenderer:function(){},postEditorRenderer:function(){},prePresenterRenderer:function(){},postPresenterRenderer:function(){},renderEditorLabel:function(){},renderEditorLabelScopeEnd:function(){},renderPresenterLabel:function(){},attachItemInfo:function(){},addCreateChildButton:function(){},addGroupButtons:function(){},addExpandButton:function(){},addRemoveButton:function(){},addPresenterTable:function(){},fillPresenterTable:function(){},addEditorTable:function(){},fillEditorTable:function(){},addTruncateControl:function(){}};Jo.getChoice=ui.getChoice;var ci=function(e,t,n){new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,binding:t,topLevel:!1,compact:n.view.compact,showLanguage:n.view.showLanguage,showDescription:n.view.showDescription,defaultLanguage:n.view.defaultLanguage,filterTranslations:n.view.filterTranslations,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e)};ui.presenterRegistry.itemtype("group").register(ci),ui.presenterRegistry.itemtype("propertygroup").register(ci);var di=function(e,t,n){var r=new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,languages:n.view.languages,binding:t,topLevel:!1,compact:n.view.compact,showDescription:n.view.showDescription,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e);n.view._subEditors.push(r)};ui.editorRegistry.itemtype("group").register(di),ui.editorRegistry.itemtype("propertygroup").register(di);const fi=ui;function pi(e){return"string"==typeof e}function hi(e,t,n){return void 0===e||pi(e)?t:(0,u.Z)({},t,{ownerState:(0,u.Z)({},t.ownerState,n)})}var mi=o(6682),gi=o(8794),yi=o(606);function vi(){const e=(0,mi.Z)(gi.Z);return e[yi.Z]||e}var bi=o(3935);const wi=!1;var xi=function(e){return e.scrollTop},Si=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}w(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this);n&&xi(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[bi.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||wi?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:bi.findDOMNode(this);t&&!wi?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if("unmounted"===t)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,l.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(x.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function _i(){}Si.contextType=x,Si.propTypes={},Si.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Si.UNMOUNTED="unmounted",Si.EXITED="exited",Si.ENTERING="entering",Si.ENTERED="entered",Si.EXITING="exiting";const ki=Si,Ei=e=>e.scrollTop;function Ci(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Pi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ti(e){return`scale(${e}, ${e**2})`}const Oi={entering:{opacity:1,transform:Ti(1)},entered:{opacity:1,transform:"none"}},Ri="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ai=e.forwardRef((function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:y,timeout:v="auto",TransitionComponent:b=ki}=t,w=(0,l.Z)(t,Pi),x=e.useRef(),S=e.useRef(),_=vi(),k=e.useRef(null),E=(0,g.Z)(k,i.ref,n),C=e=>t=>{if(e){const n=k.current;void 0===t?e(n):e(n,t)}},P=C(f),T=C((e,t)=>{Ei(e);const{duration:n,delay:r,easing:o}=Ci({style:y,timeout:v,easing:a},{mode:"enter"});let i;"auto"===v?(i=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=i):i=n,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:r}),_.transitions.create("transform",{duration:Ri?i:.666*i,delay:r,easing:o})].join(","),c&&c(e,t)}),O=C(d),R=C(m),A=C(e=>{const{duration:t,delay:n,easing:r}=Ci({style:y,timeout:v,easing:a},{mode:"exit"});let o;"auto"===v?(o=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:Ri?o:.666*o,delay:Ri?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ti(.75),p&&p(e)}),M=C(h);return e.useEffect(()=>()=>{clearTimeout(x.current)},[]),(0,I.jsx)(b,(0,u.Z)({appear:o,in:s,nodeRef:k,onEnter:T,onEntered:O,onEntering:P,onExit:A,onExited:M,onExiting:R,addEndListener:e=>{"auto"===v&&(x.current=setTimeout(e,S.current||0)),r&&r(k.current,e)},timeout:"auto"===v?null:v},w,{children:(t,n)=>e.cloneElement(i,(0,u.Z)({style:(0,u.Z)({opacity:0,transform:Ti(.75),visibility:"exited"!==t||s?void 0:"hidden"},Oi[t],y,i.props.style),ref:E},n))}))}));Ai.muiSupportAuto=!0;const Mi=Ai;var Di=o(3703),ji=o(3546),Ii=o(2690);function Ni(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Li(e){return e instanceof Ni(e).Element||e instanceof Element}function Zi(e){return e instanceof Ni(e).HTMLElement||e instanceof HTMLElement}function Fi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ni(e).ShadowRoot||e instanceof ShadowRoot)}var Bi=Math.max,Vi=Math.min,zi=Math.round;function Wi(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ui(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function $i(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Zi(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=(Li(e)?Ni(e):window).visualViewport,s=!Ui()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Hi(e){var t=Ni(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yi(e){return e?(e.nodeName||"").toLowerCase():null}function Gi(e){return((Li(e)?e.ownerDocument:e.document)||window.document).documentElement}function qi(e){return $i(Gi(e)).left+Hi(e).scrollLeft}function Ki(e){return Ni(e).getComputedStyle(e)}function Xi(e){var t=Ki(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Qi(e,t,n){void 0===n&&(n=!1);var r,o,i=Zi(t),a=Zi(t)&&function(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Gi(t),l=$i(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==Yi(t)||Xi(s))&&(u=(r=t)!==Ni(r)&&Zi(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Hi(r)),Zi(t)?((c=$i(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=qi(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function Ji(e){var t=$i(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 ea(e){return"html"===Yi(e)?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||Gi(e)}function ta(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(Yi(t))>=0?t.ownerDocument.body:Zi(t)&&Xi(t)?t:e(ea(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ni(r),a=o?[i].concat(i.visualViewport||[],Xi(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ta(ea(a)))}function na(e){return["table","td","th"].indexOf(Yi(e))>=0}function ra(e){return Zi(e)&&"fixed"!==Ki(e).position?e.offsetParent:null}function oa(e){for(var t=Ni(e),n=ra(e);n&&na(n)&&"static"===Ki(n).position;)n=ra(n);return n&&("html"===Yi(n)||"body"===Yi(n)&&"static"===Ki(n).position)?t:n||function(e){var t=/firefox/i.test(Wi());if(/Trident/i.test(Wi())&&Zi(e)&&"fixed"===Ki(e).position)return null;var n=ea(e);for(Fi(n)&&(n=n.host);Zi(n)&&["html","body"].indexOf(Yi(n))<0;){var r=Ki(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 ia="top",aa="bottom",sa="right",la="left",ua=[ia,aa,sa,la],ca=ua.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),da=[].concat(ua,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),fa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pa(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var ha={placement:"bottom",modifiers:[],strategy:"absolute"};function ma(){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 ga(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ha:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ha,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Li(e)?ta(e):e.contextElement?ta(e.contextElement):[],popper:ta(t)};var a,u,f=function(e){var t=pa(e);return fa.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.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}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:r});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(ma(t,n)){s.rects={reference:Qi(t,oa(n),"fixed"===s.options.strategy),popper:Ji(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!ma(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var ya={passive:!0};function va(e){return e.split("-")[0]}function ba(e){return e.split("-")[1]}function wa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xa(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?va(o):null,a=o?ba(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ia:t={x:s,y:n.y-r.height};break;case aa:t={x:s,y:n.y+n.height};break;case sa:t={x:n.x+n.width,y:l};break;case la:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?wa(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Sa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _a(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=la,w=ia,x=window;if(u){var S=oa(n),_="clientHeight",k="clientWidth";if(S===Ni(n)&&"static"!==Ki(S=Gi(n)).position&&"absolute"===s&&(_="scrollHeight",k="scrollWidth"),S=S,o===ia||(o===la||o===sa)&&"end"===i)w=aa,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[_])-r.height,m*=l?1:-1;if(o===la||(o===ia||o===aa)&&"end"===i)b=sa,p-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-r.width,p*=l?1:-1}var E,C=Object.assign({position:s},u&&Sa),P=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}({x:p,y:m},Ni(n)):{x:p,y:m};return p=P.x,m=P.y,l?Object.assign({},C,((E={})[w]=v?"0":"",E[b]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var ka={left:"right",right:"left",bottom:"top",top:"bottom"};function Ea(e){return e.replace(/left|right|bottom|top/g,(function(e){return ka[e]}))}var Ca={start:"end",end:"start"};function Pa(e){return e.replace(/start|end/g,(function(e){return Ca[e]}))}function Ta(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Oa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ra(e,t,n){return"viewport"===t?Oa(function(e,t){var n=Ni(e),r=Gi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Ui();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+qi(e),y:l}}(e,n)):Li(t)?function(e,t){var n=$i(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Oa(function(e){var t,n=Gi(e),r=Hi(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Bi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Bi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+qi(e),l=-r.scrollTop;return"rtl"===Ki(o||n).direction&&(s+=Bi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Gi(e)))}function Aa(e,t,n,r){var o="clippingParents"===t?function(e){var t=ta(ea(e)),n=["absolute","fixed"].indexOf(Ki(e).position)>=0&&Zi(e)?oa(e):e;return Li(n)?t.filter((function(e){return Li(e)&&Ta(e,n)&&"body"!==Yi(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Ra(e,n,r);return t.top=Bi(o.top,t.top),t.right=Vi(o.right,t.right),t.bottom=Vi(o.bottom,t.bottom),t.left=Bi(o.left,t.left),t}),Ra(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ma(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Da(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ja(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?"viewport":u,d=n.elementContext,f=void 0===d?"popper":d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=Ma("number"!=typeof g?g:Da(g,ua)),v="popper"===f?"reference":"popper",b=e.rects.popper,w=e.elements[h?v:f],x=Aa(Li(w)?w:w.contextElement||Gi(e.elements.popper),l,c,a),S=$i(e.elements.reference),_=xa({reference:S,element:b,strategy:"absolute",placement:o}),k=Oa(Object.assign({},b,_)),E="popper"===f?k:S,C={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},P=e.modifiersData.offset;if("popper"===f&&P){var T=P[o];Object.keys(C).forEach((function(e){var t=[sa,aa].indexOf(e)>=0?1:-1,n=[ia,aa].indexOf(e)>=0?"y":"x";C[e]+=T[n]*t}))}return C}function Ia(e,t,n){return Bi(e,Vi(t,n))}function Na(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 La(e){return[ia,sa,aa,la].some((function(t){return e[t]>=0}))}var Za=ga({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Ni(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,ya)})),s&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ya)})),s&&l.removeEventListener("resize",n.update,ya)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xa({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,l=void 0===s||s,u={placement:va(t.placement),variation:ba(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,_a(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),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];Zi(o)&&Yi(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}),{});Zi(r)&&Yi(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{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=da.reduce((function(e,n){return e[n]=function(e,t,n){var r=va(e),o=[la,ia].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,[la,sa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{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,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,y=va(g),v=l||(y===g||!h?[Ea(g)]:function(e){if("auto"===va(e))return[];var t=Ea(e);return[Pa(e),t,Pa(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat("auto"===va(n)?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,l=n.allowedAutoPlacements,u=void 0===l?da:l,c=ba(r),d=c?s?ca:ca.filter((function(e){return ba(e)===c})):ua,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=ja(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[va(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,_=!0,k=b[0],E=0;E<b.length;E++){var C=b[E],P=va(C),T="start"===ba(C),O=[ia,aa].indexOf(P)>=0,R=O?"width":"height",A=ja(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=O?T?sa:la:T?aa:ia;w[R]>x[R]&&(M=Ea(M));var D=Ea(M),j=[];if(i&&j.push(A[P]<=0),s&&j.push(A[M]<=0,A[D]<=0),j.every((function(e){return e}))){k=C,_=!1;break}S.set(C,j)}if(_)for(var I=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=h?3:1;N>0;N--){if("break"===I(N))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{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,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=ja(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=va(t.placement),v=ba(t.placement),b=!v,w=wa(y),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(i){var O,R="y"===w?ia:la,A="y"===w?aa:sa,M="y"===w?"height":"width",D=S[w],j=D+g[R],I=D-g[A],N=p?-k[M]/2:0,L="start"===v?_[M]:k[M],Z="start"===v?-k[M]:-_[M],F=t.elements.arrow,B=p&&F?Ji(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[R],W=V[A],U=Ia(0,_[M],B[M]),$=b?_[M]/2-N-U-z-C.mainAxis:L-U-z-C.mainAxis,H=b?-_[M]/2+N+U+W+C.mainAxis:Z+U+W+C.mainAxis,Y=t.elements.arrow&&oa(t.elements.arrow),G=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(O=null==P?void 0:P[w])?O:0,K=D+H-q,X=Ia(p?Vi(j,D+$-q-G):j,D,p?Bi(I,K):I);S[w]=X,T[w]=X-D}if(s){var Q,J="x"===w?ia:la,ee="x"===w?aa:sa,te=S[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[ia,la].indexOf(y),ae=null!=(Q=null==P?void 0:P[x])?Q:0,se=ie?re:te-_[ne]-k[ne]-ae+C.altAxis,le=ie?te+_[ne]+k[ne]-ae-C.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Ia(e,t,n);return r>n?n:r}(se,te,le):Ia(p?se:re,te,p?le:oe);S[x]=ue,T[x]=ue-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]},{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=va(n.placement),l=wa(s),u=[la,sa].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return Ma("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Da(e,ua))}(o.padding,n),d=Ji(i),f="y"===l?ia:la,p="y"===l?aa:sa,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=oa(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=c[f],w=y-d[u]-c[p],x=y/2-d[u]/2+v,S=Ia(b,x,w),_=l;n.modifiersData[r]=((t={})[_]=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)))&&Ta(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{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=ja(t,{elementContext:"reference"}),s=ja(t,{altBoundary:!0}),l=Na(a,r),u=Na(s,o,i),c=La(l),d=La(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),Fa=o(7960);const Ba=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=e.useState(null),l=(0,Di.Z)(e.isValidElement(r)?r.ref:null,n);if((0,ji.Z)(()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,i]),(0,ji.Z)(()=>{if(a&&!i)return(0,Fa.Z)(n,a),()=>{(0,Fa.Z)(n,null)}},[n,a,i]),i){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return(0,I.jsx)(e.Fragment,{children:r})}return(0,I.jsx)(e.Fragment,{children:a?bi.createPortal(r,a):a})}));function Va(e,t){const n=X._v[t];return n?"base--"+n:function(e,t){return`base-${e}-${t}`}(e,t)}function za(e){return Va("Popper",e)}!function(e,t){const n={};t.forEach(t=>{n[t]=Va(e,t)})}("Popper",["root"]);function Wa(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Ua(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const $a=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ha(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,l.Z)(e,$a),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:d,internalRef:f}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,c.Z)(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,u.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=(0,u.Z)({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Wa((0,u.Z)({},o,r)),s=Ua(r),l=Ua(o),d=t(a),f=(0,c.Z)(null==d?void 0:d.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),p=(0,u.Z)({},null==d?void 0:d.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),h=(0,u.Z)({},d,n,l,s);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:d.ref}}((0,u.Z)({},a,{externalSlotProps:s})),p=(0,Di.Z)(f,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return hi(n,(0,u.Z)({},d,{ref:p}),o)}const Ya={disableDefaultClasses:!1},Ga=e.createContext(Ya);const qa=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ka=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Xa(e){return"function"==typeof e?e():e}function Qa(e){return void 0!==e.nodeType}const Ja=()=>(0,f.Z)({root:["root"]},function(t){const{disableDefaultClasses:n}=e.useContext(Ga);return e=>n?"":t(e)}(za)),es={},ts=e.forwardRef((function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:c,open:d,placement:f,popperOptions:p,popperRef:h,slotProps:m={},slots:g={},TransitionProps:y}=t,v=(0,l.Z)(t,qa),b=e.useRef(null),w=(0,Di.Z)(b,n),x=e.useRef(null),S=(0,Di.Z)(x,h),_=e.useRef(S);(0,ji.Z)(()=>{_.current=S},[S]),e.useImperativeHandle(h,()=>x.current,[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,a),[E,C]=e.useState(k),[P,T]=e.useState(Xa(o));e.useEffect(()=>{x.current&&x.current.forceUpdate()}),e.useEffect(()=>{o&&T(Xa(o))},[o]),(0,ji.Z)(()=>{if(!P||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Za(P,b.current,(0,u.Z)({placement:k},p,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}},[P,s,c,d,p,k]);const O={placement:E};null!==y&&(O.TransitionProps=y);const R=Ja(),A=null!=(r=g.root)?r:"div",M=Ha({elementType:A,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:R.root});return(0,I.jsx)(A,(0,u.Z)({},M,{children:"function"==typeof i?i(O):i}))})),ns=e.forwardRef((function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:h=es,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:b={}}=t,w=(0,l.Z)(t,Ka),[x,S]=e.useState(!0);if(!c&&!f&&(!y||x))return null;let _;if(i)_=i;else if(r){const e=Xa(r);_=e&&Qa(e)?(0,Ii.Z)(e).body:(0,Ii.Z)(null).body}const k=f||!c||y&&!x?void 0:"none",E=y?{in:f,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,I.jsx)(Ba,{disablePortal:s,container:_,children:(0,I.jsx)(ts,(0,u.Z)({anchorEl:r,direction:a,disablePortal:s,modifiers:d,ref:n,open:y?!x:f,placement:p,popperOptions:h,popperRef:m,slotProps:v,slots:b},w,{style:(0,u.Z)({position:"fixed",top:0,left:0,display:k},g),TransitionProps:E,children:o}))})}));var rs=o(4168);const os=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],is=(0,h.ZP)(ns,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),as=e.forwardRef((function(e,t){var n;const r=(0,rs.Z)(),o=(0,m.Z)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:c,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w,slots:x,slotProps:S}=o,_=(0,l.Z)(o,os),k=null!=(n=null==x?void 0:x.root)?n:null==s?void 0:s.Root,E=(0,u.Z)({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w},_);return(0,I.jsx)(is,(0,u.Z)({as:a,direction:null==r?void 0:r.direction,slots:{root:k},slotProps:null!=S?S:c},E,{ref:t}))}));var ss=o(7909),ls=o(9299);function us(e){return(0,X.ZP)("MuiTooltip",e)}const cs=(0,L.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ds=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const fs=(0,h.ZP)(as,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{['&[data-popper-placement*="bottom"] .'+cs.arrow]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'+cs.arrow]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'+cs.arrow]:(0,u.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'+cs.arrow]:(0,u.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ps=(0,h.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement"+(0,re.Z)(n.placement.split("-")[0])]]}})(({theme:e,ownerState:t})=>{return(0,u.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${cs.popper}[data-popper-placement*="left"] &`]:(0,u.Z)({transformOrigin:"right center"},t.isRtl?(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${cs.popper}[data-popper-placement*="right"] &`]:(0,u.Z)({transformOrigin:"left center"},t.isRtl?(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${cs.popper}[data-popper-placement*="top"] &`]:(0,u.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${cs.popper}[data-popper-placement*="bottom"] &`]:(0,u.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),hs=(0,h.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ms=!1,gs=null,ys={x:0,y:0};function vs(e,t){return n=>{t&&t(n),e(n)}}const bs=e.forwardRef((function(t,n){var r,o,i,a,s,d,p,h,b,w,x,S,_,k,E,C,P,T,O;const R=(0,m.Z)({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:M,components:D={},componentsProps:j={},describeChild:N=!1,disableFocusListener:L=!1,disableHoverListener:Z=!1,disableInteractive:F=!1,disableTouchListener:B=!1,enterDelay:V=100,enterNextDelay:z=0,enterTouchDelay:W=700,followCursor:U=!1,id:$,leaveDelay:H=0,leaveTouchDelay:Y=1500,onClose:G,onOpen:q,open:K,placement:X="bottom",PopperComponent:Q,PopperProps:J={},slotProps:ee={},slots:te={},title:ne,TransitionComponent:oe=Mi,TransitionProps:ie}=R,ae=(0,l.Z)(R,ds),se=e.isValidElement(M)?M:(0,I.jsx)("span",{children:M}),le=vi(),ue="rtl"===le.direction,[ce,de]=e.useState(),[fe,pe]=e.useState(null),he=e.useRef(!1),me=F||U,ge=e.useRef(),ye=e.useRef(),ve=e.useRef(),be=e.useRef(),[we,xe]=(0,ls.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"});let Se=we;const _e=(0,ss.Z)($),ke=e.useRef(),Ee=e.useCallback(()=>{void 0!==ke.current&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),clearTimeout(be.current)},[]);e.useEffect(()=>()=>{clearTimeout(ge.current),clearTimeout(ye.current),clearTimeout(ve.current),Ee()},[Ee]);const Ce=e=>{clearTimeout(gs),ms=!0,xe(!0),q&&!Se&&q(e)},Pe=(0,y.Z)(e=>{clearTimeout(gs),gs=setTimeout(()=>{ms=!1},800+H),xe(!1),G&&Se&&G(e),clearTimeout(ge.current),ge.current=setTimeout(()=>{he.current=!1},le.transitions.duration.shortest)}),Te=e=>{he.current&&"touchstart"!==e.type||(ce&&ce.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(ve.current),V||ms&&z?ye.current=setTimeout(()=>{Ce(e)},ms?z:V):Ce(e))},Oe=e=>{clearTimeout(ye.current),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},H)},{isFocusVisibleRef:Re,onBlur:Ae,onFocus:Me,ref:De}=(0,v.Z)(),[,je]=e.useState(!1),Ie=e=>{Ae(e),!1===Re.current&&(je(!1),Oe(e))},Ne=e=>{ce||de(e.currentTarget),Me(e),!0===Re.current&&(je(!0),Te(e))},Le=e=>{he.current=!0;const t=se.props;t.onTouchStart&&t.onTouchStart(e)},Ze=Te,Fe=Oe,Be=e=>{Le(e),clearTimeout(ve.current),clearTimeout(ge.current),Ee(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ke.current,Te(e)},W)},Ve=e=>{se.props.onTouchEnd&&se.props.onTouchEnd(e),Ee(),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},Y)};e.useEffect(()=>{if(Se)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Pe(e)}},[Pe,Se]);const ze=(0,g.Z)(se.ref,De,de,n);ne||0===ne||(Se=!1);const We=e.useRef(),Ue={},$e="string"==typeof ne;N?(Ue.title=Se||!$e||Z?null:ne,Ue["aria-describedby"]=Se?_e:null):(Ue["aria-label"]=$e?ne:null,Ue["aria-labelledby"]=Se&&!$e?_e:null);const He=(0,u.Z)({},Ue,ae,se.props,{className:(0,c.Z)(ae.className,se.props.className),onTouchStart:Le,ref:ze},U?{onMouseMove:e=>{const t=se.props;t.onMouseMove&&t.onMouseMove(e),ys={x:e.clientX,y:e.clientY},We.current&&We.current.update()}}:{});const Ye={};B||(He.onTouchStart=Be,He.onTouchEnd=Ve),Z||(He.onMouseOver=vs(Ze,He.onMouseOver),He.onMouseLeave=vs(Fe,He.onMouseLeave),me||(Ye.onMouseOver=Ze,Ye.onMouseLeave=Fe)),L||(He.onFocus=vs(Ne,He.onFocus),He.onBlur=vs(Ie,He.onBlur),me||(Ye.onFocus=Ne,Ye.onBlur=Ie));const Ge=e.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(fe),options:{element:fe,padding:4}}];return null!=(e=J.popperOptions)&&e.modifiers&&(t=t.concat(J.popperOptions.modifiers)),(0,u.Z)({},J.popperOptions,{modifiers:t})},[fe,J]),qe=(0,u.Z)({},R,{isRtl:ue,arrow:A,disableInteractive:me,placement:X,PopperComponentProp:Q,touch:he.current}),Ke=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement"+(0,re.Z)(i.split("-")[0])],arrow:["arrow"]};return(0,f.Z)(a,us,t)})(qe),Xe=null!=(r=null!=(o=te.popper)?o:D.Popper)?r:fs,Qe=null!=(i=null!=(a=null!=(s=te.transition)?s:D.Transition)?a:oe)?i:Mi,Je=null!=(d=null!=(p=te.tooltip)?p:D.Tooltip)?d:ps,et=null!=(h=null!=(b=te.arrow)?b:D.Arrow)?h:hs,tt=hi(Xe,(0,u.Z)({},J,null!=(w=ee.popper)?w:j.popper,{className:(0,c.Z)(Ke.popper,null==J?void 0:J.className,null==(x=null!=(S=ee.popper)?S:j.popper)?void 0:x.className)}),qe),nt=hi(Qe,(0,u.Z)({},ie,null!=(_=ee.transition)?_:j.transition),qe),rt=hi(Je,(0,u.Z)({},null!=(k=ee.tooltip)?k:j.tooltip,{className:(0,c.Z)(Ke.tooltip,null==(E=null!=(C=ee.tooltip)?C:j.tooltip)?void 0:E.className)}),qe),ot=hi(et,(0,u.Z)({},null!=(P=ee.arrow)?P:j.arrow,{className:(0,c.Z)(Ke.arrow,null==(T=null!=(O=ee.arrow)?O:j.arrow)?void 0:T.className)}),qe);return(0,I.jsxs)(e.Fragment,{children:[e.cloneElement(se,He),(0,I.jsx)(Xe,(0,u.Z)({as:null!=Q?Q:as,placement:X,anchorEl:U?{getBoundingClientRect:()=>({top:ys.y,left:ys.x,right:ys.x,bottom:ys.y,width:0,height:0})}:ce,popperRef:We,open:!!ce&&Se,id:_e,transition:!0},Ye,tt,{popperOptions:Ge,children:({TransitionProps:e})=>(0,I.jsx)(Qe,(0,u.Z)({timeout:le.transitions.duration.shorter},e,nt,{children:(0,I.jsxs)(Je,(0,u.Z)({},rt,{children:[ne,A?(0,I.jsx)(et,(0,u.Z)({},ot,{ref:pe})):null]}))}))}))]})}));var ws=o(9948);function xs(e){return e.substring(2).toLowerCase()}function Ss(t){const{children:n,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const d=(0,Di.Z)(n.ref,l),f=(0,ws.Z)(e=>{const t=c.current;c.current=!1;const n=(0,Ii.Z)(l.current);if(!u.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),o||!r&&t||i(e)}),p=e=>t=>{c.current=!0;const r=n.props[e];r&&r(t)},h={ref:d};return!1!==a&&(h[a]=p(a)),e.useEffect(()=>{if(!1!==a){const e=xs(a),t=(0,Ii.Z)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",n)}}},[f,a]),!1!==o&&(h[o]=p(o)),e.useEffect(()=>{if(!1!==o){const e=xs(o),t=(0,Ii.Z)(l.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}},[f,o]),(0,I.jsx)(e.Fragment,{children:e.cloneElement(n,h)})}o(2349),o(1919);var _s=o(745);function ks(e){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Es(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,Cs(r.key),r)}}function Cs(e){var t=function(e,t){if("object"!=ks(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ks(t)?t:String(t)}var Ps=0,Ts=function(){function e(t){var n=t.item,r=t.statement,o=t.graph,i=t.matchingCode;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=n,this._statement=r,this._graph=o,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Ps),this._matchingCode=i||"correct",Ps+=1}var t,n,r;return t=e,(n=[{key:"getGraph",value:function(){return this._graph||(this._statement?this._graph=this._statement.getGraph():this._parent&&(this._graph=this._parent.getGraph())),this._graph}},{key:"isReadOnly",value:function(){if(!("_readOnly"in this)){var e=this.getParent();e&&e._readOnly?this._readyOnly=!0:this._readOnly=!(!this._statement||!this._statement.getNamedGraph())}return this._readOnly}},{key:"remove",value:function(){}},{key:"setSubject",value:function(e){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(e,t){}},{key:"getGist",value:function(){return Xo.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var n=e,r=this.getItem().getValueTemplate();r&&n.length>0&&(-1===r.indexOf("$1")&&(r+="$1"),n=r.replace("$1",n)),this.setValue(n,t)}},{key:"getCardinalityTracker",value:function(){return this._cardinalityTracker}},{key:"setCardinalityTracker",value:function(e){this._cardinalityTracker=e}},{key:"getItem",value:function(){return this._item}},{key:"getStatement",value:function(){return this._statement}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(e){this._parent=e}},{key:"isValid",value:function(){}},{key:"getMatchingCode",value:function(){return this._matchingCode}},{key:"setMatchingCode",value:function(e){this._matchingCode=e}},{key:"setAncestorValid",value:function(e){this._ancestorValid=e,this.updateAssertions()}},{key:"updateAssertions",value:function(){}},{key:"getHash",value:function(){return this._hash}},{key:"addListener",value:function(e){this._listeners||(this._listeners=[]),this._listeners.push(e)}},{key:"removeListener",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"bindingChange",value:function(e){if(this._listeners)for(var t=0;t<this._listeners.length;t++)this._listeners[t](e);this._parent&&this._parent.bindingChange(e),this._cardinalityTracker&&this._cardinalityTracker.touch()}},{key:"_isValidObjectValue",value:function(e){var t=e;if("string"!=typeof t&&null!==t)throw new Error("In a binding every object value need to be a string!");var n=this._item.getPattern();return n?null!=(t=Xo.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(n,"$")).test(t):null!=t&&""!==t}},{key:"_isValidPredicateValue",value:function(e){if("string"!=typeof e&&null!==e)throw new Error("In a binding every predicate need to be a string!");return null!=e&&""!==e}}])&&Es(t.prototype,n),r&&Es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Os={UNKNOWN:"unknown",OK:"correct",TOO_FEW_VALUES:"few",TOO_FEW_VALUES_MIN:"min",TOO_FEW_VALUES_PREF:"pref",TOO_MANY_VALUES:"many",AT_MOST_ONE_CHILD:"atmostonechild",AT_LEAST_ONE_CHILD:"atleastonechild",EXACTLY_ONE_CHILD:"exactlyonechild",WRONG_VALUE:"value",WRONG_PATTERN:"pattern",WRONG_NODETYPE:"nodetype",WRONG_DATATYPE:"datatype",MISSING_LANGUAGE:"language",MISSING_CONSTRAINTS:"constraints"};function Rs(e){return(Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(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,Ms(r.key),r)}}function Ms(e){var t=function(e,t){if("object"!=Rs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rs(t)?t:String(t)}var Ds=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listener=[],this._limits=t.getCardinality()||{},this._counter=0,this._depsOk=!0,this._listeners=[],this._code=0}var t,n,r;return t=e,(n=[{key:"addListener",value:function(e){return this._listeners.push(e),e}},{key:"removeListener",value:function(e){this._listeners.splice(this._listeners.indexOf(e),1)}},{key:"cardinalityChanged",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"getCardinality",value:function(){return this._counter}},{key:"isMax",value:function(){return null!=this._limits.max&&this._counter>=this._limits.max}},{key:"isMin",value:function(){return null!=this._limits.min&&this._counter<=this._limits.min}},{key:"isFine",value:function(){return this._fine}},{key:"isDepsOk",value:function(){return this._depsOk}},{key:"getCode",value:function(){return this._code}},{key:"setCode",value:function(e){this._code!==e&&(this._code=e,this.cardinalityChanged())}},{key:"setDepsOk",value:function(e){this._depsOk!==e&&(this._code=Os.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=Os.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=Os.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=Os.UNKNOWN,this.cardinalityChanged()}},{key:"_checkCounter",value:function(){null!=this._limits.max&&this._counter===this._limits.max?this._fine=!0:null!=this._limits.max&&this._counter>this._limits.max?this._fine=!1:null!=this._limits.min&&this._counter===this._limits.min?this._fine=!0:null!=this._limits.min&&this._counter<this._limits.min&&(this._fine=!1),this.cardinalityChanged()}}])&&As(t.prototype,n),r&&As(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function js(e){return(js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(e){return function(e){if(Array.isArray(e))return Ns(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ns(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ls(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,Zs(r.key),r)}}function Zs(e){var t=function(e,t){if("object"!=js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==js(t)?t:String(t)}function Fs(e,t,n){return t=zs(t),function(e,t){if(t&&("object"===js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],zs(e).constructor):t.apply(e,n))}function Bs(){return(Bs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Vs(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Vs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zs(e)););return e}function zs(e){return(zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ws(e,t){return(Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Us=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Fs(this,t,[e]);var r=e.constraints,o=void 0===r?[]:r,i=e.childrenRootUri,a=void 0===i?null:i;return n._constraints=o,n._childBindings=n._item.getChildren().map((function(){return[]})),n._rootUri=a,n._validPredicate=!0,n._validObject=!0,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate()),n._validObject=n._isValidObjectValue(n._statement.getValue(),n._statement.getType())),n._cachedChildBindings=null,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ws(e,t)}(t,e),n=t,(r=[{key:"getValue",value:function(){return this._statement&&this._statement.isObjectBlank()?"":this._statement&&this._statement.getValue()}},{key:"oneChildValidityChanged",value:function(e){return e!==this._oneValidChild&&!(!e&&(delete this._oneValidChild,this.isValid()))&&(this._oneValidChild=e,this._notifyValidityChange(e&&this._validPredicate&&this._validObject),this._validPredicate&&this._validObject)}},{key:"setSubject",value:function(e){this._statement?this._statement.setSubject(e):this.getChildBindings().forEach((function(t){return t.setSubject(e)}))}},{key:"getChildrenRootUri",value:function(){return this._statement?this._statement.getValue():null!=this._rootUri?this._rootUri:null!=this._parent?this._parent.getChildrenRootUri():void 0}},{key:"addChildBinding",value:function(e){this.addChildBindings([e])}},{key:"addChildBindings",value:function(e){var t=this;if(this._cachedChildBindings=null,Array.isArray(e)&&0!==e.length)for(var n=e[0].getItem(),r=this._item.getChildren(),o=function(){if(n===r[i]){var o=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new Ds(n);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(o),o.increment()}),t),1}},i=r.length;i>=0&&!o();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e.getItem()===t[n]){this._childBindings[n].splice(this._childBindings[n].indexOf(e),1),delete e._parent,e.getCardinalityTracker().decrement();break}this.oneChildValidityChanged(),this.bindingChange(e)}},{key:"getChildBindingsFor",value:function(e){for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e===t[n])return this._childBindings[n]}},{key:"getItemGroupedChildBindings",value:function(){return this._childBindings}},{key:"getChildBindings",value:function(){var e;return null==this._cachedChildBindings&&(this._childBindings&&this._childBindings.length>0?this._cachedChildBindings=(e=[]).concat.apply(e,Is(this._childBindings)):this._cachedChildBindings=[]),this._cachedChildBindings}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!0)):(this._validPredicate=!1,!1!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!1)),this.updateAssertions()}},{key:"setValue",value:function(e){if("URI"!==this.getItem().getNodetype()||!this._statement)throw new Error("Cannot change the value of a group unless its nodetype is URI and also that it corresponds to a statement");var t=this._validObject;this._isValidObjectValue(e,"uri")?(this._validObject=!0,this._statement._o.type="uri",this._statement.setValue(e),this._constraints.forEach((function(t){return t.setSubject(e)})),this.getChildBindings().forEach((function(t){return t.setSubject(e)})),!t&&this._validPredicate&&this._notifyValidityChange(!0)):(this._validObject=!1,t&&this._validPredicate&&this._notifyValidityChange(!1))}},{key:"getPredicate",value:function(){return this._statement?this._statement.getPredicate():void 0}},{key:"remove",value:function(){this._oneValidChild=!1,this.setAncestorValid(!1),null!=this._parent&&this._parent.removeChildBinding(this),Bs(zs(t.prototype),"remove",this).call(this,arguments)}},{key:"_isValid",value:function(){return"URI"===this.getItem().getNodetype()?this._validObject&&this._validPredicate:this._oneValidChild&&this._validPredicate&&this._validObject}},{key:"isValid",value:function(){return null==this._oneValidChild&&(this._oneValidChild=this._forceOneValidChildCheck()),this._isValid()}},{key:"setAncestorValid",value:function(e){var t=this;this._ancestorValid=e,this.updateAssertions(),this._childBindings.forEach((function(n){return n.forEach((function(n){return n.setAncestorValid(e&&t._isValid())}),t)}),this)}},{key:"updateAssertions",value:function(){null==this._oneValidChild&&this.isValid();var e=this._ancestorValid&&this._isValid();null!=this._statement&&this._statement.setAsserted(e),this._constraints.forEach((function(t){return t.setAsserted(e)})),this.getChildBindings().forEach((function(e){return e.updateAssertions()}))}},{key:"_forceOneValidChildCheck",value:function(){return this._childBindings.some((function(e){return e.some((function(e){return e.isValid()}))}))}},{key:"_notifyValidityChange",value:function(e){this._parent&&this._parent.oneChildValidityChanged(e)||(this.updateAssertions(),this._childBindings.forEach((function(t){return t.forEach((function(t){return t.setAncestorValid(e)}))})))}},{key:"_isValidObjectValue",value:function(e,n){return("URI"!==this.getItem().getNodetype()||"uri"===n)&&Bs(zs(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&Ls(n.prototype,r),o&&Ls(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ts);function $s(e){return($s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hs(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,Ys(r.key),r)}}function Ys(e){var t=function(e,t){if("object"!=$s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$s(t)?t:String(t)}var Gs=0,qs=function(e,t,n){null==n||""===n||Array.isArray(n)&&0===n.length?delete e[t]:e[t]=n},Ks=function(){function e(t){var n=t.source,r=void 0===n?{}:n,o=t.bundle,i=t.itemStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=i,this._source=r,this._bundle=o,Gs+=1,this._internalId=Gs,this._styles=["heading","invisible","invisibleGroup","stars","commentOn","multiline","horizontalRadioButtons","verticalRadioButtons","horizontalCheckBoxes","verticalCheckBoxes","nonEditable","expandable","compact","nonCompact","dropDown","table","firstcolumnfixedtable","tree","externalLink","internalLink","noLink","image","label","tooltip","strictmatch","relaxedDatatypeMatch","viewAllTranslations","filterTranslations","email","atLeastOneChild","atMostOneChild","exactlyOneChild","noLabelInPresent","autoInitDate","autoUpdateDate","autoUUID","autoValue","showURI","showLink","showValue","showDescriptionInPresent","showDescriptionInEdit","textAsChoice","preserveOrderOfChoices","linkWithLabel","deprecated","inline","truncate","noTruncate","card","cardInPresent","cardInEdit"],this._getLocalizedValue=Xo.getLocalizedValue}var t,n,r;return t=e,(n=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){qs(this.getSource(!0),"id",e),delete s["@id"]}},{key:"getType",value:function(e){var t=this.getSource(e);return t.type||t["@type"]}},{key:"setType",value:function(e){qs(this.getSource(!0),"type",e),delete s["@type"],this.refreshExtends()}},{key:"getExtends",value:function(){return this.getSource(!0).extends||""}},{key:"refreshExtends",value:function(){this.isExtention&&this.setExtends(this.getExtends())}},{key:"setExtends",value:function(e){var t=this.getSource(!0),n=this._itemStore.getItem(e);this._source=null==n?t:this._itemStore.createExtendedSource(n.getSource(),t),""===e||null==e?delete t.extends:t.extends=e}},{key:"isExtention",value:function(){return null!=this.getExtends()}},{key:"_getText",value:function(e,t,n){var r=this.getSource(n);return t?Xo.getLocalizedValue(r[e]):Xo.getLocalizedValue(r[e]).value}},{key:"_setText",value:function(e,t,n){var r=this.getSource(!0);r[e]=this._setLangHash(r[e],t,n),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){qs(this.getSource(!0),e,t),this.refreshExtends()}},{key:"getLabel",value:function(e,t){return this._getText("label",e,t)}},{key:"setLabel",value:function(e,t){this._setText("label",e,t)}},{key:"getLabelMap",value:function(e){return this.getSource(e).label}},{key:"setLabelMap",value:function(e){this._setTextMap("label",e)}},{key:"getEditLabel",value:function(e,t){return this._getText("editlabel",e,t)}},{key:"setEditLabel",value:function(e,t){this._setText("editlabel",e,t)}},{key:"getEditLabelMap",value:function(e){return this.getSource(e).editlabel}},{key:"setEditLabelMap",value:function(e){this._setTextMap("editlabel",e)}},{key:"getDescription",value:function(e,t){return this._getText("description",e,t)}},{key:"setDescription",value:function(e,t){this._setText("description",e,t)}},{key:"getDescriptionMap",value:function(e){return this.getSource(e).description}},{key:"setDescriptionMap",value:function(e){this._setTextMap("description",e)}},{key:"getEditDescription",value:function(e,t){return this._getText("editdescription",e,t)}},{key:"setEditDescription",value:function(e,t){this._setText("editdescription",e,t)}},{key:"getEditDescriptionMap",value:function(e){return this.getSource(e).editdescription}},{key:"setEditDescriptionMap",value:function(e){this._setTextMap("editdescription",e)}},{key:"getHelp",value:function(e,t){return this._getText("help",e,t)}},{key:"setHelp",value:function(e,t){this._setText("help",e,t)}},{key:"getHelpMap",value:function(e){return this.getSource(e).help}},{key:"setHelpMap",value:function(e){this._setTextMap("help",e)}},{key:"getPlaceholder",value:function(e,t){return this._getText("placeholder",e,t)}},{key:"setPlaceholder",value:function(e,t){this._setText("placeholder",e,t)}},{key:"getPlaceholderMap",value:function(e){return this.getSource(e).placeholder}},{key:"setPlaceholderMap",value:function(e){this._setTextMap("placeholder",e)}},{key:"getPurpose",value:function(e,t){return this._getText("purpose",e,t)}},{key:"setPurpose",value:function(e,t){this._setText("purpose",e,t)}},{key:"getPurposeMap",value:function(e){return this.getSource(e).purpose}},{key:"setPurposeMap",value:function(e){this._setTextMap("purpose",e)}},{key:"getSpecification",value:function(e,t){return this._getText("specification",e,t)}},{key:"setSpecification",value:function(e,t){this._setText("specification",e,t)}},{key:"getSpecificationMap",value:function(e){return this.getSource(e).specification}},{key:"setSpecificationMap",value:function(e){this._setTextMap("specification",e)}},{key:"getText",value:function(e,t,n){var r=this.getSource(n).text||{};return t?Xo.getLocalizedValue(r[e]):Xo.getLocalizedValue(r[e]).value}},{key:"setText",value:function(e,t,n){var r=this.getSource(!0),o=r.text=r.text||{};o[e]=this._setLangHash(o[e],t,n),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var n=this.getSource(!0),r=n.text=n.text||{};qs(r,e,t),this.refreshExtends()}},{key:"getProperty",value:function(e){var t=null,n=this.getSource(e);return n&&null!=(t=n.property)&&""!==t&&(t=xe(t)),t}},{key:"setProperty",value:function(e){qs(this.getSource(!0),"property",e),this.refreshExtends()}},{key:"getURIValueLabelProperties",value:function(e){var t=this.getSource(e).uriValueLabelProperties;return null!=t?t.map((function(e){return xe(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){qs(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var n={};return Object.keys(t).forEach((function(e){var r=t[e];Array.isArray(r)?n[xe(e)]=r.map((function(e){return xe(e)})):n[xe(e)]=xe(r)})),n}return t}},{key:"setConstraints",value:function(e){qs(this.getSource(!0),"constraints",e),this.refreshExtends()}},{key:"getDeps",value:function(e){var t=this.getSource(e).deps;return null!=t?t.map((function(e){return"*"!==e&&".."!==e?xe(e):e})):t}},{key:"setDeps",value:function(e){qs(this.getSource(!0),"deps",e),this.refreshExtends()}},{key:"getDatatype",value:function(e){var t=this.getSource(e).datatype;return null!=t&&""!==t?Array.isArray(t)?t.map((function(e){return xe(e)})):xe(t):t}},{key:"setDatatype",value:function(e){qs(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){qs(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){qs(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){qs(this.getSource(!0),"member",e),this.refreshExtends()}},{key:"getNodetype",value:function(e){var t=this.getSource(e);return t.nodetype||t.nodeType}},{key:"setNodetype",value:function(e){qs(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){qs(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){qs(this.getSource(!0),"valueTemplate",e),this.refreshExtends()}},{key:"getCardinality",value:function(e){if(!this.getProperty()&&"text"===this.getType())return{min:1,max:1};var t=this.getSource(e);return t&&"cardinality"in t?t.cardinality:this.getProperty()?{}:{max:1}}},{key:"setCardinality",value:function(e){qs(this.getSource(!0),"cardinality",e),this.refreshExtends()}},{key:"isEnabled",value:function(e){var t=this.getSource(e);return null==t.enabled||t.enabled}},{key:"setEnabled",value:function(e){var t=this.getSource(!0);e?delete t.enabled:t.enabled=e,this.refreshExtends()}},{key:"getClasses",value:function(e){var t=this.getSource(e);return t&&"cls"in t?t.cls:[]}},{key:"setClasses",value:function(e){qs(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var n=this.getSource(t);return!!this.hasStyle(e,t)||null!=n.cls&&n.cls.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getAvailableStyles",value:function(){return this._styles}},{key:"getStyles",value:function(e){return this.getSource(e).styles||[]}},{key:"setStyles",value:function(e){qs(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var n=this.getSource(t);return!(!n||!("styles"in n))&&n.styles.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getSource",value:function(e){if(!0===e)return this._source._extendedSource||this._source;if(!1===e){var t=this._itemStore.getItem(this.getExtends());return null==t?this._source:t.getSource()}return this._source}},{key:"getBundle",value:function(){return this._bundle}},{key:"toStringShort",value:function(){return"'".concat(this.getLabel(),"'").concat(this.getId()?" (ID: '".concat(this.getId(),"')"):"")}},{key:"toString",value:function(){var e=[];return this.getId()&&e.push("ID: '".concat(this.getId(),"'")),e.push("TYPE: '".concat(this.getType(),"'")),this.getProperty()&&e.push("PROPERTY: '".concat(this.getProperty(),"'")),this.getExtends()&&e.push("EXTENDS: '".concat(this.getExtends(),"'")),"'".concat(this.getLabel(),"' (").concat(e.join(", "),")")}},{key:"_setLangHash",value:function(e,t,n){var r=e||{};if("string"==typeof t)"string"==typeof n?r[n]=t:r[""]=t;else if("object"===$s(t)&&null!==t)return t;return r}}])&&Hs(t.prototype,n),r&&Hs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xs(e){return(Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(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,Js(r.key),r)}}function Js(e){var t=function(e,t){if("object"!=Xs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xs(t)?t:String(t)}function el(e,t,n){return t=rl(t),function(e,t){if(t&&("object"===Xs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],rl(e).constructor):t.apply(e,n))}function tl(){return(tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=nl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function nl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rl(e)););return e}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ol(e,t){return(ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var il=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=el(this,t,[e]))._children=e.children,null!=n._source.content&&(n._source.items=n._source.content,delete n._source.content),n._forceChildrenClones=!1,n._parent=null,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ol(e,t)}(t,e),n=t,(r=[{key:"getChildren",value:function(e){var t,n=e&&this.isExtention(),r=n?this._ochildren:this._children;return null==r&&(r=this._itemStore.getChildren(this,n),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=r).forEach((function(e){e.__label=(e.getLabel()||"").toLowerCase()})),t.sort((function(e,t){return null!=e._source.priority?null!=t._source.priority?e._source.priority>t._source.priority?-1:e._source.priority<t._source.priority?1:0:e._source.priority>0?-1:1:null!=t._source.priority?t._source.priority>0?1:-1:e.__label>t.__label?1:e.__label<t.__label?-1:0}))),this["_".concat(n?"o":"","children")]=r),r}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){tl(rl(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return tl(rl(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&Qs(n.prototype,r),o&&Qs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ks);function al(e){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(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,ul(r.key),r)}}function ul(e){var t=function(e,t){if("object"!=al(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=al(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==al(t)?t:String(t)}function cl(e,t,n){return t=pl(t),function(e,t){if(t&&("object"===al(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],pl(e).constructor):t.apply(e,n))}function dl(){return(dl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=fl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function fl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pl(e)););return e}function pl(e){return(pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hl(e,t){return(hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ml=function(e){function t(){return sl(this,t),cl(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hl(e,t)}(t,e),n=t,(r=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var n=function(){return{min:1,max:1,pref:1}},r=dl(pl(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=r.map((function(e){var t=Object.create(e);return t.getCardinality=n,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&ll(n.prototype,r),o&&ll(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(il);function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vl(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,bl(r.key),r)}}function bl(e){var t=function(e,t){if("object"!=gl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gl(t)?t:String(t)}function wl(e,t,n){return t=xl(t),function(e,t){if(t&&("object"===gl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],xl(e).constructor):t.apply(e,n))}function xl(e){return(xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sl(e,t){return(Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _l=function(e){function t(){return yl(this,t),wl(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sl(e,t)}(t,e),n=t,(r=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&vl(n.prototype,r),o&&vl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ks);function kl(e){return(kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function El(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,Cl(r.key),r)}}function Cl(e){var t=function(e,t){if("object"!=kl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kl(t)?t:String(t)}function Pl(e,t,n){return t=Rl(t),function(e,t){if(t&&("object"===kl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Rl(e).constructor):t.apply(e,n))}function Tl(){return(Tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ol(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ol(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rl(e)););return e}function Rl(e){return(Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Al(e,t){return(Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ml=function(e){null!=e&&e.forEach((function(e){e.value=xe(e.value)}))},Dl=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Pl(this,t,[e]))._ontologyStore=e.ontologyStore,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Al(e,t)}(t,e),n=t,(r=[{key:"getChoices",value:function(e){return this.getStaticChoices(e)||this.getDynamicChoices(e)||[]}},{key:"hasChoices",value:function(e){var t=this.getSource(e);return null!=t.ontologyUrl||null!=t.choices}},{key:"hasStaticChoices",value:function(e){return null!=this.getSource(e).choices}},{key:"getStaticChoices",value:function(e){var t=this.getSource(e);if(t.choices){var n=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(n&&Ml(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(n&&Ml(t.choices),this._staticIsSorted=!0)}return t.choices}},{key:"setStaticChoices",value:function(e){var t=this.getSource(!0);t.choices!==e&&(null!=e&&(this._origStaticIsSorted=!0),t.choices=e,this.refreshExtends())}},{key:"setExtends",value:function(e){Tl(Rl(t.prototype),"setExtends",this).call(this,e),delete this._staticIsSorted,delete this._origStaticIsSorted}},{key:"getDynamicChoices",value:function(e){var t=this;if(null==this._dynamicChoices){if(null==e)return this._dynamicChoices=this._ontologyStore.getChoices(this),this._dynamicChoices;this._ontologyStore.getChoices(this,(function(n){t._dynamicChoices=n,null==t._dynamicChoices&&(console.log("Failed lookup of choices for ".concat(t.getLabel())),console.log("OntologyUrl is: ".concat(t._source.ontologyUrl))),e(t._dynamicChoices)}))}else{if(null==e)return this._dynamicChoices;e(this._dynamicChoices)}}},{key:"getOntologyUrl",value:function(e){var t=this.getSource(e).ontologyUrl;return null!=t&&""!==t?xe(t):t}},{key:"setOntologyUrl",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.ontologyUrl:t.ontologyUrl=e,this.refreshExtends()}},{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties||["http://www.w3.org/2000/01/rdf-schema#label"]}},{key:"getParentProperty",value:function(e){var t=this.getSource(e).parentProperty;return null!=t&&""!==t?xe(t):t}},{key:"setParentProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.parentProperty:t.parentProperty=e,this.refreshExtends()}},{key:"getHierarchyProperty",value:function(e){var t=this.getSource(e).hierarchyProperty;return null!=t&&""!==t?xe(t):t}},{key:"setHierarchyProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.hierarchyProperty:t.hierarchyProperty=e,this.refreshExtends()}},{key:"isParentPropertyInverted",value:function(e){return!0===this.getSource(e).isParentPropertyInverted}},{key:"setParentPropertyInverted",value:function(e){var t=this.getSource(!0);!0===e?t.isParentPropertyInverted=!0:delete t.isParentPropertyInverted,this.refreshExtends()}},{key:"isHierarchyPropertyInverted",value:function(e){return!0===this.getSource(e).isHierarchyPropertyInverted}},{key:"setHierarchyPropertyInverted",value:function(e){var t=this.getSource(!0);e?t.isHierarchyPropertyInverted=!0:delete t.isHierarchyPropertyInverted,this.refreshExtends()}}])&&El(n.prototype,r),o&&El(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ks);o(8436);function jl(e){return(jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Il(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,Nl(r.key),r)}}function Nl(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jl(t)?t:String(t)}function Ll(e,t,n){return t=Bl(t),function(e,t){if(t&&("object"===jl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Bl(e).constructor):t.apply(e,n))}function Zl(){return(Zl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Fl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Fl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bl(e)););return e}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vl(e,t){return(Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zl=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ll(this,t,[e]))._validObject=!0,n._validPredicate=!0,n._excludeFromTreeValidityCheck=!1,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate(),!0),n._validObject=n._isValidObjectValue(n._statement.getValue())),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}(t,e),n=t,(r=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var n="string"==typeof e?e.trim():e,r=this._validObject;this._isValidObjectValue(n)?(this._statement.setValue(n,t),this._validObject=!0,!0===r||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==n&&null!==n||this._statement.setValue("",t),this._validObject=!1,!1!==r&&!0===this._validPredicate&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"setSubject",value:function(e){this._statement.setSubject(e)}},{key:"getPredicate",value:function(){return this._statement.getPredicate()}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!0)):(this._validPredicate=!1,!1!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"getLanguage",value:function(){return this._statement.getLanguage()}},{key:"setLanguage",value:function(e,t){this._statement.setLanguage(e,t),t||this.bindingChange(this)}},{key:"getDatatype",value:function(){return this._statement.getDatatype()}},{key:"setDatatype",value:function(e){this._statement.setDatatype(xe(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Zl(Bl(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){var e=this._ancestorValid&&this._validObject&&this._validPredicate;this._statement.setAsserted(e,!0),this.bindingChange(this)}},{key:"isValid",value:function(){return this._validObject&&this._validPredicate&&!this._excludeFromTreeValidityCheck}}])&&Il(n.prototype,r),o&&Il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ts);function Wl(e){return(Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(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,$l(r.key),r)}}function $l(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wl(t)?t:String(t)}function Hl(e,t,n){return t=ql(t),function(e,t){if(t&&("object"===Wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ql(e).constructor):t.apply(e,n))}function Yl(){return(Yl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Gl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ql(e)););return e}function ql(e){return(ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kl(e,t){return(Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xl="http://www.w3.org/2000/01/rdf-schema#label",Ql="http://www.w3.org/2000/01/rdf-schema#seeAlso",Jl=function(e){function t(e){var n,r=e.choice,o=e.item,i=e.statement,a=e.matchingCode;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Hl(this,t,[{choice:r,item:o,statement:i,matchingCode:a}]))._choice=r,n._validPredicate=null!=o.getProperty(),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kl(e,t)}(t,e),n=t,o=[{key:"seeAlso",get:function(){return Ql}}],(r=[{key:"setChoice",value:function(e,t){this._choice=e,null==e?this.setValue(null,null,t):this.getValue()!==e.value&&this.setValue(e.value,e,t),e&&e.mismatch?this.setMatchingCode(Os.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==Os.WRONG_VALUE||this.setMatchingCode(Os.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,n,r){var o=this.getValue();Yl(ql(t.prototype),"setValue",this).call(this,e,n,r);var i=this._statement.getGraph();if(i.findAndRemove(o,Xl,void 0,r),i.findAndRemove(o,Ql,void 0,r),null!=e&&null!=n&&(n.seeAlso&&n.inlineSeeAlso&&i.create(e,Ql,n.seeAlso,!0,r),!0===n.inlineLabel)){var a=n.label||{};Object.keys(a).forEach((function(t){return i.create(e,Xl,{value:a[t],lang:t,type:"literal"},!0,r)}))}}}])&&Ul(n.prototype,r),o&&Ul(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(zl);function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tu(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,nu(r.key),r)}}function nu(e){var t=function(e,t){if("object"!=eu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eu(t)?t:String(t)}function ru(e,t,n){return t=ou(t),function(e,t){if(t&&("object"===eu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ou(e).constructor):t.apply(e,n))}function ou(e){return(ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iu(e,t){return(iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var au=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ru(this,t,[e]))._objectBinding=e.objectBinding,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iu(e,t)}(t,e),n=t,(r=[{key:"remove",value:function(){}},{key:"setValue",value:function(e){this._objectBinding.setPredicate(e)}},{key:"getValue",value:function(){return this._objectBinding.getPredicate()}},{key:"isValid",value:function(){return!1}},{key:"updateAssertions",value:function(){}}])&&tu(n.prototype,r),o&&tu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Jl);function su(e){return(su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lu(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,uu(r.key),r)}}function uu(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==su(t)?t:String(t)}function cu(e,t,n){return t=du(t),function(e,t){if(t&&("object"===su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],du(e).constructor):t.apply(e,n))}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e,t){return(fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var pu=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=cu(this,t,[e]);var r=e.statement,o=e.constraints;n._statement=void 0,n._validPredicate=!0,n._constraints=[];var i,a=n._item.getChildren(),s=a[1];i=s instanceof il?new Us({item:s,statement:r,constraints:o}):s instanceof Dl?new Jl({item:s,statement:r}):new zl({item:s,statement:r});var l=new au({item:a[0],objectBinding:i});return n.addChildBinding(l),n.addChildBinding(i),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fu(e,t)}(t,e),n=t,(r=[{key:"getPredicateBinding",value:function(){return this._childBindings[0][0]}},{key:"getObjectBinding",value:function(){return this._childBindings[1][0]}},{key:"getGraph",value:function(){return this.getObjectBinding().getGraph()}}])&&lu(n.prototype,r),o&&lu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Us);function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gu(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,yu(r.key),r)}}function yu(e){var t=function(e,t){if("object"!=hu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hu(t)?t:String(t)}function vu(e,t,n){return t=xu(t),function(e,t){if(t&&("object"===hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],xu(e).constructor):t.apply(e,n))}function bu(){return(bu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=wu(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function wu(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xu(e)););return e}function xu(e){return(xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Su(e,t){return(Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _u,ku,Eu,Cu,Pu,Tu=function(e){function t(){return mu(this,t),vu(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Su(e,t)}(t,e),n=t,(r=[{key:"getValue",value:function(){return this._parent.getValue()}},{key:"setValue",value:function(e){return this._parent.setValue(e)}},{key:"getGist",value:function(){return this._parent.getGist()}},{key:"setGist",value:function(e,t){return this._parent.setGist(e,t)}},{key:"setSubject",value:function(e){}},{key:"getPredicate",value:function(){return this._parent.getPredicate()}},{key:"remove",value:function(){this._parent.removeChildBinding(this),bu(xu(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&gu(n.prototype,r),o&&gu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(zl);function Ou(e){return(Ou="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)}var Ru,Au,Mu,Du,ju,Iu,Nu=!1,Lu=function(e,t,n){var r=new Us({item:n,childrenRootUri:t,graph:e});return _u(r),ku(r),r},Zu=function(e,t,n){var r=new Us({item:n,childrenRootUri:t,graph:e});return _u(r),Nu=!0,_u(r),Nu=!1,ku(r),r},Fu=function(e,t,n,r){var o=e.findProperties(t),i=[],a={};if(null!=r){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof il&&t.getChildren().forEach(e)}(e),i.push(e))};r.forEach((function(e){var t=n.getItem(e);null!=t?t instanceof il&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=n.getItemByProperty(e))?s(t):console.warn("Warning, when autodetecting a template: Required item '".concat(e,"' is neither an id for a loaded item or a property for a loaded item, ignoring."))}))}return o.forEach((function(e){if(!a[e]){var t=n.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),n.createTemplateFromChildren(i)},Bu=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Vu=function(e,t){var n,r,o=t.getChildren()[1],i=e.getGraph();o instanceof il?(n=i.create(e.getChildrenRootUri(),"",null,!1),r=Pu(i,n.getSubject(),o)):n=o instanceof Dl?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new pu({item:t,statement:n,constraints:r});return e.addChildBinding(a),o instanceof il&&o.getChildren().forEach((function(e){zu(a.getObjectBinding(),e)})),a},zu=function(e,t,n){return t instanceof _l?function(e,t){if(!t.getProperty()){var n=new Tu({item:t,statement:null,matchingCode:Os.OK});return e.addChildBinding(n),n}var r=e.getGraph(),o=t.getNodetype(),i={value:"",type:"literal"};"URI"===o?i.type="uri":"DATATYPE_LITERAL"===o&&(i.datatype=Bu(t));var a=t.getValue();if(null!=a&&0===e.getChildBindingsFor(t).length){i.value=a;var s=t.getLanguage();null!=s&&(i.lang=s)}var l=r.create(e.getChildrenRootUri(),t.getProperty(),i,!1),u=new zl({item:t,statement:l});return e.addChildBinding(u),u}(e,t):t instanceof ml?Vu(e,t):t instanceof il?function(e,t,n){var r,o;if(void 0!==t.getProperty()){var i=e.getGraph();r=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),o=Pu(i,r.getValue(),t)}var a=new Us({item:t,statement:r,constraints:o});e.addChildBinding(a);var s=t._source["@id"];if(s){if(n[s])return a;n[s]=!0}return a}(e,t,n||{}):t instanceof Dl?function(e,t){var n=e.getGraph(),r=t.getNodetype(),o={type:"literal",value:""};"DATATYPE_LITERAL"===r?o.datatype=Bu(t):"RESOURCE"!==r&&"URI"!==r||(o.type="uri");var i=n.create(e.getChildrenRootUri(),t.getProperty(),o,!1),a=new Jl({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(ju(t,s,n),!0),a}(e,t):void 0};_u=function(e){Nu&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&_u(e)})),e.getItem().getChildren().forEach((function(t){Nu?void 0!==t.getProperty()&&Ru(e,t):Ru(e,t)}))};Ru=function(e,t){t instanceof Dl?function(e,t){if(null!=t.getProperty()){var n=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Eu(e)){var r=Au(t,e),o=Mu(t,e),i=Du(t,e);if(r&&o&&i||Nu){var a=ju(t,e.getValue(),e.getGraph());if(void 0!==a){Cu(e);var s=r?Os.OK:Os.WRONG_NODETYPE;o?i?a.mismatch&&(s=Os.WRONG_VALUE):s=Os.WRONG_PATTERN:s=Os.WRONG_DATATYPE,n.push(new Jl({item:t,statement:e,choice:a,matchingCode:s}))}}}})),n.length>0&&e.addChildBindings(n)}}(e,t):t instanceof ml?function(e,t){var n,r,o,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),u=[];l.find(e.getChildrenRootUri()).forEach((function(e){Eu(e)&&Au(s,e)&&Du(s,e)&&void 0!==(o=ju(a,e.getPredicate(),e.getGraph()))&&(r=null,s instanceof il?void 0!==(n=Iu(l,e.getValue(),s))&&(Cu(e),r=new pu({item:t,statement:e,constraints:n}),_u(r.getObjectBinding())):s instanceof Dl?void 0!==(i=ju(s,e.getValue(),e.getGraph()))&&(Cu(e),(r=new pu({item:t,statement:e})).getObjectBinding().setChoice(i)):(Cu(e),r=new pu({item:t,statement:e})),null!==r&&(r.getPredicateBinding().setChoice(o),u.push(r)))})),u.length>0&&e.addChildBindings(u)}(e,t):t instanceof il?function(e,t){var n,r,o,i,a=e.getGraph();void 0!==t.getProperty()?(n=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(r=[],n.forEach((function(e){if(Eu(e)){var n=Du(t,e),s=Au(t,e);if((n&&s||Nu)&&(void 0!==(o=Iu(a,e.getValue(),t))||Nu)){var l=s?Os.OK:Os.WRONG_NODETYPE;n?void 0===o&&(l=Os.MISSING_CONSTRAINTS):l=Os.WRONG_PATTERN,Cu(e),i=new Us({item:t,statement:e,constraints:o,matchingCode:l}),r.push(i),l===Os.OK&&_u(i)}}})),e.addChildBindings(r)):(i=new Us({item:t}),e.addChildBindings([i]),_u(i))}(e,t):t instanceof _l&&function(e,t){var n=[];null==t.getProperty()?n.push(new Tu({item:t,statement:null,matchingCode:Os.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Eu(e)&&Du(t,e)){var r=Au(t,e),o=Mu(t,e);if(r&&(o||t.hasStyle("relaxedDatatypeMatch"))||Nu){Cu(e);var i=r?Os.OK:Os.WRONG_NODETYPE;o||(i=Os.WRONG_DATATYPE),n.push(new zl({item:t,statement:e,matchingCode:i}))}}})),n.length>0&&e.addChildBindings(n)}(e,t)},Au=function(e,t){var n=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===n;case"RESOURCE":return"uri"===n||"bnode"===n;case"URI":return"uri"===n;case"BLANK":return"bnode"===n}return!1},Mu=function(e,t){var n="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==n||(Array.isArray(n)?-1!==n.indexOf(t.getDatatype()):t.getDatatype()===n)},Du=function(e,t){var n=e.getPattern(),r=Xo.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==n)try{return new RegExp("^".concat(n,"$")).test(r)}catch(e){return!0}return!0},Iu=function(e,t,n){var r,o=n.getConstraints(),i=[],a=function(n,o){if(1!==(r=e.find(t,n,{type:"uri",value:o})).length)return!1;i.push(r[0])};if("object"===Ou(o)&&null!==o){for(var s,l=Object.keys(o),u=function(){var e=l[c],t=o[e];if(t instanceof Array){var n=!0;if(t.forEach((function(t){!1!==a(e,t)&&(n=!1)})),n)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},c=0;c<l.length;c++)if(s=u())return s.v;return i}return[]},Pu=function(e,t,n){var r=[],o=n.getConstraints();return"object"===Ou(o)&&null!==o&&Object.keys(o).forEach((function(n){var i=o[n];Array.isArray(i)?r.push(e.create(t,n,{type:"uri",value:i[0]},!1)):r.push(e.create(t,n,{type:"uri",value:i},!1))})),r},ju=function(e,t,n){var r,o;if(e.hasChoices()){for(o=e.getChoices(),r=0;r<o.length;r++)if(o[r].value===t)return o[r];if(!e.hasStyle("strictmatch")||Nu)return{value:t,label:{"":t},mismatch:!0}}else{var i=Xo.getLocalizedMap(n,t,e.getLabelProperties());null==i&&Nu&&(i={"":t,mismatch:!0});var a=n.findFirstValue(t,Jl.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=Jo.getChoice)return Jo.getChoice(e,t,a,n)}},Cu=function(e){e._dibbs=!0},Eu=function(e){return!0!==e._dibbs},ku=function(e){var t,n,r,o=e.getItemGroupedChildBindings()||[];for(t=0;t<o.length;t++)for(r=o[t],n=0;n<r.length;n++){var i=r[n];i._statement&&delete i._statement._dibbs,(i instanceof Us||i instanceof pu)&&ku(i)}};var Wu=function e(t,n){for(var r="/"===n[0]?n.slice(1):n,o=t.getItemGroupedChildBindings(),i=r[0],a=0;a<o.length;a++)for(var s=o[a],l=void 0,u=0;u<s.length;u++){var c=s[u],d=c.getItem();if(d instanceof Dl&&void 0===d.getProperty()&&i===d.getId()&&2===r.length&&r[1]===c.getValue())return c;if(c.isValid()){if("propertygroup"===d.getType())d=(c=c.getObjectBinding()).getItem();else if(void 0===d.getProperty()&&(l=e(c,r)))return l;if("*"===i||i===c.getPredicate())if("group"===d.getType()){if(l=e(c,r.slice(1)))return l}else if(1===r.length||"*"===r[1]||r[1]===c.getValue())return c}}},Uu=function(e,t){var n=t[0],r=e;if("/"===n){for(;r.getParent();)r=r.getParent();return r}if(".."===n){for(var o=0;o<t.length;o++){if(".."!==t[o]||!r.getParent())return r;r=r.getParent()}return r}return e},$u=function(e,t){var n=e.getId(),r={},o={};e.getChoices().forEach((function(e){r[e.value]=0,o[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===n||"/"===t[0]&&t[1]===n)){var o="/"===t[0]?t[2]:t[1],i=r[o];void 0!==i&&(r[o]=i+1)}}));var i,a=0;return Object.keys(r).forEach((function(e){(!i||r[e]>a)&&(i=e,a=r[e])})),o[i]};const Hu={detectLevel:function(e){if(e.mandatory>0){if(0===e.recommended&&0===e.optional)return"mandatory";if(0===e.optional)return"mixed_mandatory_recommended";if(0===e.recommended)return"mixed_mandatory_optional"}else{if(e.recommended>0)return 0===e.optional?"recommended":"mixed_recommended_optional";if(0===e.recommended&&e.recommended>0&&0===e.optional)return"optional"}return"mixed_all"},levelProfile:function(e){var t=function e(t,n,r){var o=n.getCardinality();return r&&"group"===n.getType()||(null!=o?o.min>0?t.mandatory+=1:o.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===n.getType()&&n.getChildren().forEach((function(n){return e(t,n)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,n){if(t instanceof zl)return t;for(var r=t.getItemGroupedChildBindings(),o=Go().locale(),i=0;i<r.length;i++){var a=r[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof _l))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},u=0;u<a.length;u++){var c=a[u].getLanguage();null==c?l.emptyLanguageValue=a[u]:c===o?l.perfectLocaleLanguageValue=a[u]:c.substring(0,1)===o.substring(0,1)?l.localeLanguageValue=a[u]:-1!==c.indexOf("en")?l.defaultLanguageValue=a[u]:l.anyLanguageValue=a[u]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(n){var d=zu(t,s,{});return d instanceof zl?(d.setLanguage(o),d):e(d,!0)}}},create:zu,constructTemplate:Fu,findPopularChoice:$u,match:Lu,fuzzyMatch:Zu,matchPathBelowBinding:Wu,findBindingRelativeToParentBinding:Uu,CODES:Os};var Yu=function(e,t){var n=t;return null==n?n={errors:[],warnings:[],deprecated:[]}:(n.errors=n.errors||[],n.warnings=n.warnings||[],n.deprecated=n.deprecated||[]),Xu(e,n,!0)},Gu=function(e){for(var t=0,n=0;n<e.length;n++)e[n].isValid()&&(t+=1);return t},qu=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},Ku=function(e,t){if(t.hasStyle("deprecated"))return!0;var n=t.getDeps();if(n){var r=Uu(e,n);if(!Wu(r,n))return!0}return!1},Xu=function e(t,n,r){if(t.getMatchingCode()===Os.OK){var o=t.getItem();if(!0===r||t.isValid()||null==o.getProperty()||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var i=o.getChildren();if(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild")||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Gu(s);l>1&&(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild"))?a=Os.AT_MOST_ONE_CHILD:1!==l&&o.hasStyle("exactlyOneChild")?a=Os.EXACTLY_ONE_CHILD:0===l&&o.hasStyle("atLeastOneChild")&&(a=Os.AT_LEAST_ONE_CHILD),a&&(qu([t],a),i.length>0&&n.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,r){var o=i[r];if(!Ku(t,o)&&null!=o.getProperty()){var a=Gu(e),s=o.getCardinality();null!=s.min&&s.min>a?(n.errors.push({parentBinding:t,item:o,code:Os.TOO_FEW_VALUES_MIN}),qu(e,Os.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&n.warnings.push({parentBinding:t,item:o,code:Os.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(n.errors.push({parentBinding:t,item:o,code:Os.TOO_MANY_VALUES}),qu(e,Os.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(r){var o=r.getItem();r.getMatchingCode()!==Os.OK&&n.errors.push({parentBinding:r,item:o,code:r.getMatchingCode()}),o.hasStyle("deprecated")&&n.deprecated.push(r),Ku(t,o)||"group"===o.getType()&&e(r,n)}))}return n}},Qu=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},Ju=function(e,t,n){for(var r=e;;){var o=r.getChildrenRootUri?r.getChildrenRootUri():r.getParent().getChildrenRootUri();if(o===t)return!0;if(n[o])return!1;r=r.getParent()}},ec=function(e,t){var n=e,r=[];for(null!=t.getProperty()&&n.getItem()!==t&&r.push(we(t.getProperty()));null!=n.getItem().getProperty()&&r.push(we(n.getItem().getProperty())),null!=n.getParent();)n=n.getParent();return r.reverse(),r.join(" > ")},tc=function(e){var t=e.errors,n=e.warnings,r=e.deprecated;e.errors=t.map((function(e){return{path:ec(e.parentBinding,e.item),code:e.code}})),e.warnings=n.map((function(e){return{path:ec(e.parentBinding,e.item),code:e.code}})),e.deprecated=r.map((function(e){return function(e){return"".concat(ec(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},nc=function(e,t,n,r){var o=Zu(t,e,n),i=Yu(o);return function(e,t,n){var r=e.errors,o=e.warnings,i=e.deprecated;e.errors=r.filter((function(e){return Ju(e.parentBinding,t,n)})),e.warnings=o.filter((function(e){return Ju(e.parentBinding,t,n)})),e.deprecated=i.filter((function(e){return Ju(e,t,n)}))}(i,e,r||{}),tc(i),i};const rc={graphReport:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a={},s={errors:0,warnings:0,deprecated:0,resources:[]};Object.keys(t).forEach((function(t){var n=Qu(e,t);i[t]=n,n.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(o){n=t[o],i[o].forEach((function(t){(r=nc(t,e,n,a)).uri=t,r.type=o,r.template=n.getId(),s.resources.push(r),s.errors+=r.errors.length,s.warnings+=r.warnings.length,s.deprecated+=r.deprecated.length}))}));var l=[];return o.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Yu};function oc(e){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ic(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,ac(r.key),r)}}function ac(e){var t=function(e,t){if("object"!=oc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oc(t)?t:String(t)}var sc=0;function lc(e){return(lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cc(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,dc(r.key),r)}}function dc(e){var t=function(e,t){if("object"!=lc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lc(t)?t:String(t)}function fc(e,t,n){return t=mc(t),function(e,t){if(t&&("object"===lc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],mc(e).constructor):t.apply(e,n))}function pc(){return(pc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=hc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function hc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mc(e)););return e}function mc(e){return(mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gc(e,t){return(gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yc=function(e,t,n){if(0===n.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var r=t.getChildren();return 0===r.length||!!n[0].getItemGroupedChildBindings().find((function(t,n){return yc(e,r[n],t)}))}return!0},vc=function(e){function t(){return uc(this,t),fc(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gc(e,t)}(t,e),n=t,(r=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",pc(mc(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return yc(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),n="group"===t.getType();return!(!t.getProperty()&&n&&0===t.getChildren().length)&&n&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?fi.filterTranslations(t,Go().locale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,n){n.hasStyle("noLabelInPresent")?fi.domClassToggle(e,"rdformsInvisibleGroup",!0):fi.renderPresenterLabel(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return fi.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return fi.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){fi.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){fi.renderPresenter(e,t,this.context)}},{key:"truncateAt",value:function(e,t){return"group"!==e.getType()&&t&&t.length>this.truncateLimit&&(this.truncate||e.hasStyle("truncate"))&&!e.hasStyle("noTruncate")?this.truncateLimit:-1}}])&&cc(n.prototype,r),o&&cc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=sc,sc+=1,this.parentView=t.parentView,this.srcNodeRef=n,this.binding=t.binding||null,this.template=t.template||null,this.graph=t.graph||null,this.resource=t.resource||"",this.topLevel=!1!==t.topLevel,this.compact=!1!==t.compact,this.showDescription=!0===t.showDescription,this.styleCls=t.styleCls||"",this.truncateLimit=void 0!==t.truncateLimit?t.truncateLimit:10,this.truncate=void 0!==t.truncate&&t.truncate,Array.isArray(t.filterPredicates)?this.filterPredicates=t.filterPredicates.reduce((function(e,t){return e[t]=!0,e}),{}):"object"===oc(t.filterPredicates)?this.filterPredicates=t.filterPredicates:"string"==typeof t.filterPredicates?this.filterPredicates=t.filterPredicates.split(",").reduce((function(e,t){return e[t]=!0,e}),{}):this.filterPredicates=null,this.restrictToItem=t.restrictToItem,this.fuzzy=!0===t.fuzzy,this.markOrigin=!1!==t.markOrigin,this._handleParams(t),this._labelIndex={},this.domNode=fi.createDomNode(n,this),fi.domClassToggle(this.domNode,"rdforms",!0),fi.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,n,r;return t=e,(n=[{key:"getParentView",value:function(){return this.parentView}},{key:"getNamedGraphId",value:function(e){if(this.markOrigin){this.namedGraphs||(this.namedGraphs={},this.namedGraphCounter=65);var t=this.namedGraphs[e];return void 0===t&&(t=String.fromCharCode(this.namedGraphCounter),this.namedGraphs[e]=t,this.namedGraphCounter+=1),t}}},{key:"getNamedGraphFromId",value:function(e){var t=this;return this.namedGraphs?Object.keys(this.namedGraphs).find((function(n){return t.namedGraphs[n]===e})):void 0}},{key:"destroy",value:function(){fi.destroyDomNode(this.domNode,this)}},{key:"getBinding",value:function(){return this.binding}},{key:"_handleParams",value:function(e){if(e.binding)this.binding=e.binding;else{if(this.template=e.template||this.template,this.graph=e.graph||this.graph,this.resource=e.resource||this.resource,null==this.graph||null==this.resource||null==this.template)return;this.fuzzy?(this.binding=Zu(this.graph,this.resource,this.template),Yu(this.binding)):this.binding=Lu(this.graph,this.resource,this.template)}}},{key:"showNow",value:function(){return!0}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(){}},{key:"addTable",value:function(){}},{key:"fillTable",value:function(){}},{key:"addLabel",value:function(){}},{key:"addComponent",value:function(){}},{key:"showAsTable",value:function(e){return"group"===e.getType()&&(e.hasStyle("table")||e.hasClass("rdformsTable"))}},{key:"show",value:function(e){this._handleParams(e),this.render()}},{key:"render",value:function(){if(fi.domText(this.domNode,""),null!=this.binding){var e=fi.getMessages();if(this.messages=e,null!=this.binding){var t,n,r,o,i,a=this.binding.getItem().getChildren(),s=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?fi.domClassToggle(this.domNode,"compact",!1):fi.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),t=0;t<s.length;t++)if(o=s[t],i=a[t],(!this.restrictToItem||this.restrictToItem===i)&&this.showNow(i,o)){if(o=this.prepareBindings(i,o),this.showAsTable(i))this.context={view:this},r=this.createRowNode(r,o[0],i),o.length>0&&(n=this.addTable(r,o[0],i),this.fillTable(n,o));else if(o.length>0)if(this.isMultiValued(i))this.context={view:this},r=this.addRow(r,o[0],!0);else{for(var l=this.truncateAt(i,o),u=0;u<o.length;u++)this.context={view:this},r=this.addRow(r,o[u],0===u||o[u]instanceof Us,u,l);if(-1!==l){var c=fi.domQuery(".rdformsFields",r);c&&fi.addTruncateControl(c,this.context)}}else this.context={view:this},r=this.createRowNode(r,null,i);o.length>0&&o[0].getCardinalityTracker().checkCardinality()}}}}},{key:"addRow",value:function(e,t,n,r,o){var i,a,s=n,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof Us),!0===s){a=this.createRowNode(e,t,l);var u=fi.domCreate("div",a);fi.domClassToggle(u,"rdformsFields",!0),-1!==o&&fi.domClassToggle(u,"rdformsTruncated",!0),l.hasStyle("inline")&&fi.domClassToggle(u,"rdformsInline",!0),i=fi.domCreate("div",u),this.createEndOfRowNode(a,t,l)}else{var c=fi.domQuery(".rdformsFields",e);if(null!=c)i=fi.domCreate("div",c),fi.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==o&&r>=o&&fi.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var d=fi.domCreate("div",e);fi.domClassToggle(d,"rdformsFields",!0),l.hasStyle("inline")&&fi.domClassToggle(d,"rdformsInline",!0),i=fi.domCreate("div",d),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(fi.domClassToggle(i,"rdformsOrigin",!0),fi.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(fi.domClassToggle(i,"rdformsOrigin",!0),fi.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?fi.domClassToggle(i,"rdformsGroup",!0):fi.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&fi.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,n){var r;r=null==e?fi.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):fi.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),n.getClasses().forEach((function(e){fi.domClassToggle(r,e,!0)})),fi.domClassToggle(r,"rdformsRow",!0),fi.domClassToggle(r,"rdformsTopLevel",this.topLevel),fi.domClassToggle(r,"rdformsInvisibleGroup",n.hasStyle("invisibleGroup")),fi.domClassToggle(r,"rdformsHeading",n.hasStyle("heading")),fi.domClassToggle(r,"notCompact","group"===n.getType()||n.hasStyle("nonCompact")),fi.domClassToggle(r,"rdformsCompactItem",n.hasStyle("compact")),this.addLabel(r,t,n),t&&this.filterBinding(t)&&fi.domClassToggle(r,"hiddenProperty",!0);var o=void 0!==this._subEditors;return(n.hasStyle("card")||n.hasStyle("cardInEdit")&&o||n.hasStyle("cardInPresent")&&!o)&&fi.domClassToggle(r,"rdformsCard",!0),r}},{key:"createEndOfRowNode",value:function(e,t,n){}},{key:"_getFilterPredicates",value:function(){return this.parentView?this.parentView._getFilterPredicates():this.filterPredicates}},{key:"filterBinding",value:function(e){return this.filterItem(e.getItem())}},{key:"filterItem",value:function(e){var t=this,n=this._getFilterPredicates();return!!n&&function e(n,r){var o=n.getId();if(o&&Object.keys(r).includes(o))return!0;var i=n.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=be(i);return a?!0===r[i]||!0===r[l]||!0===r["*".concat(i)]||!0===r["".concat(l)]:!0===r["*".concat(i)]||!0===r["*".concat(l)]}if("group"===n.getType()){var u=n.getChildren()||[],c=!1;return u.forEach((function(t){e(t,r)||(c=!0)})),!c}return!1}(e,n)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,n=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=n._labelIndex[e.getHash()])})),void 0!==t?t:this.parentView?this.parentView.getLabelIndex(e.getParent()):""}},{key:"createLabelIndex",value:function(e){var t="".concat(e.getHash(),"_").concat(this._viewId,"_label");return this._labelIndex[e.getHash()]=t,t}},{key:"getRowIndex",value:function(e){return"".concat(e.getHash(),"_").concat(this._viewId,"_row")}},{key:"isMultiValued",value:function(e){return!1}},{key:"truncateAt",value:function(e,t){return-1}}])&&ic(t.prototype,n),r&&ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function bc(e){return(bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(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,Sc(r.key),r)}}function Sc(e){var t=function(e,t){if("object"!=bc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bc(t)?t:String(t)}function _c(e,t,n){return t=Cc(t),function(e,t){if(t&&("object"===bc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Cc(e).constructor):t.apply(e,n))}function kc(){return(kc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ec(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ec(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cc(e)););return e}function Cc(e){return(Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pc(e,t){return(Pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Tc=function(e,t,n,r){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===n.length)return!1;var o=t.getProperty();if(n.length>0){if(o)return!e.filterItem(t);if("group"!==t.getType())return!0;var i=t.getChildren();if(0===i.length)return!0;if(t.hasStyle("atLeastOneChild")||t.hasStyle("exactlyOneChild"))return!0;if(n[0].getItemGroupedChildBindings().find((function(t,n){return Tc(e,i[n],t,r)})))return!0;if(!o)return!1}var a=t.getCardinality();switch(r){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},Oc=function(e){function t(){return wc(this,t),_c(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pc(e,t)}(t,e),n=t,(r=[{key:"_handleParams",value:function(e){this._subEditors=this._subEditors||[],this.includeLevel=e.includeLevel||"recommended",this.hideAddress=!1!==e.hideAddress,e.styleCls=e.styleCls||"rdformsEditor",e.filterTranslations=void 0!==e.filterTranslations&&e.filterTranslations,kc(Cc(t.prototype),"_handleParams",this).call(this,e)}},{key:"getSubEditorForBinding",value:function(e){return this._subEditors.find((function(t){return t.getBinding()===e}))}},{key:"report",value:function(e){var t=this,n=e||Yu(this.binding);Object.keys(this._binding2node).forEach((function(e){fi.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var r=function(){var e=n.errors[o];if(e.parentBinding===t.binding)if(e.code===Os.TOO_FEW_VALUES_MIN){var r=e.item,i=r.getCardinality().min;t.binding.getChildBindingsFor(r).find((function(e){return i-=1,e.isValid()||fi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===Os.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==Os.OK&&fi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},o=0;o<n.errors.length;o++)r();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(n)}},{key:"getIncludeLevel",value:function(){return this.includeLevel}},{key:"setIncludeLevel",value:function(e){this.includeLevel!==e&&(this.includeLevel=e,null!=this.graph&&null!=this.resource&&null!=this.template&&(this.binding=Lu(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],kc(Cc(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Tc(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,r=t,o=e.getCardinality();if(n=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?1:"group"===e.getType()?(e.getProperty(),1):1,e.hasStyle("nonEditable")&&!e.hasStyle("autoInitDate")&&!e.hasStyle("autoUpdateDate")&&!e.hasStyle("autoUUID")&&!e.hasStyle("autoValue")&&!e.getValue())return r;if(n>r.length)for(r=r.concat([]);n>r.length;)r.push(zu(this.binding,e));return r}},{key:"addLabel",value:function(e,t,n){fi.renderEditorLabel(e,t,n,this.context)}},{key:"createEndOfRowNode",value:function(e,t,n){fi.renderEditorLabelScopeEnd(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):fi.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){fi.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){fi.preEditorViewRenderer(this.domNode,this.binding,{view:this,inEditor:!0,topLevel:this.topLevel,hideAddress:this.hideAddress})}},{key:"addComponent",value:function(e,t){this.context.inEditor=!0,t.getItem().hasStyle("nonEditable")?fi.renderPresenter(e,t,this.context):fi.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,n,r){if(null!=n||!r.hasStyle("nonEditable")){var o=kc(Cc(t.prototype),"createRowNode",this).call(this,e,n,r);if("choice"===r.getType()&&void 0===r.getProperty()){var i=$u(r,n.getParent());i&&n.setChoice(i)}var a=r.getDeps();if(a){var s=function(e){e?(fi.domClassToggle(o,"missingDepsWithValue",!1),fi.domClassToggle(o,"missingDeps",!1)):n.isValid()?fi.domClassToggle(o,"missingDepsWithValue",!0):fi.domClassToggle(o,"missingDeps",!0),n.getCardinalityTracker().setDepsOk(e)},l=Uu(n.getParent(),a);Wu(l,a)||s(!1),l.addListener((function e(){n.getParent()?s(Wu(l,a)):l.removeListener(e)}))}return this.filterBinding(n)&&fi.domClassToggle(o,"hiddenProperty",!0),r.hasStyle("deprecated")&&fi.domClassToggle(o,"rdformsDeprecated",!0),o}}},{key:"isMultiValued",value:function(e){return fi.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&xc(n.prototype,r),o&&xc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(vc);function Rc(e){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mc(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,Dc(r.key),r)}}function Dc(e){var t=function(e,t){if("object"!=Rc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rc(t)?t:String(t)}function jc(e,t,n){return t=Lc(t),function(e,t){if(t&&("object"===Rc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Lc(e).constructor):t.apply(e,n))}function Ic(){return(Ic="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Nc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Nc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Lc(e)););return e}function Lc(e){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zc(e,t){return(Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fc=function(e,t,n){return 1===n?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",n)},Bc=function(e){function t(){return Ac(this,t),jc(this,t,arguments)}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zc(e,t)}(t,e),n=t,(r=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,Ic(Lc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Yu(this.binding)}},{key:"showNow",value:function(e,t){if(e.hasStyle("invisible"))return!1;if(t.length>0)return!0;if(e.hasStyle("deprecated"))return!1;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;var n=this.binding.getMatchingCode();if(n===Os.MISSING_CONSTRAINTS||n===Os.WRONG_NODETYPE)return!1;var r=e.getCardinality();switch(this.includeLevel){case"mandatory":return r&&r.min>=1;case"recommended":default:return r&&(r.min>=1||r.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,r=t,o=e.getCardinality(),i=null!=o.min?o.min:0,a=null!=o.pref?o.pref:0;n=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?0:"group"===e.getType()&&null==e.getProperty()?1:0;var s=this.binding.getMatchingCode(),l=!(this.binding.getItem().hasStyle("atleastOneChild")||this.binding.getItem().hasStyle("atMostOneChild")||this.binding.getItem().hasStyle("disjoint")||this.binding.getItem().hasStyle("exactlyOneChild"))||s===Os.TOO_FEW_VALUES_MIN||s===Os.TOO_FEW_VALUES_PREF,u=s===Os.MISSING_CONSTRAINTS||s===Os.WRONG_NODETYPE;if(n>r.length&&l&&!u)for(r=r.concat([]);n>r.length;){var c=zu(this.binding,e);r.length<i?c.setMatchingCode(Os.TOO_FEW_VALUES_MIN):r.length<a&&c.setMatchingCode(Os.TOO_FEW_VALUES_PREF),r.push(c)}return r}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var n,r,o=t.getItem(),i=o.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===o.getType()?null===(n=t.getCardinalityTracker())||void 0===n?void 0:n.getCode():void 0,u=l&&l!==Os.OK&&l!==Os.UNKNOWN?l:t.getMatchingCode(),c=u===Os.TOO_FEW_VALUES_PREF;if(u!==Os.TOO_FEW_VALUES_PREF&&u!==Os.OK)return fi.domClassToggle(e,"error",!0),u===Os.TOO_FEW_VALUES_MIN?r=Fc(this.messages,"validation_min_required",a):u===Os.TOO_MANY_VALUES?r=Fc(this.messages,"validation_max",i.max||1):u===Os.AT_MOST_ONE_CHILD?r=this.messages.validation_at_most_one_child:u===Os.AT_LEAST_ONE_CHILD?r=this.messages.validation_at_least_one_child:u===Os.EXACTLY_ONE_CHILD?r=this.messages.validation_exactly_one_child:u===Os.WRONG_NODETYPE?r=this.messages.validation_nodetype:u===Os.WRONG_VALUE?r=this.messages.validation_value:u===Os.WRONG_DATATYPE?r=this.messages.validation_datatype:u===Os.MISSING_CONSTRAINTS?r=this.messages.validation_constraints:u===Os.WRONG_PATTERN?r=this.messages.validation_pattern:u===Os.MISSING_LANGUAGE&&(r=this.messages.validation_language),fi.renderValidationMessage(e,"error",r),!0;if(c){fi.domClassToggle(e,"warning",!0);var d=Fc(this.messages,"validation_min_recommended",s);return fi.renderValidationMessage(e,"warning",d),!0}return!!o.hasStyle("deprecated")&&(fi.domClassToggle(e,"deprecated",!0),fi.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,n){Ic(Lc(t.prototype),"addComponent",this).call(this,e,n),this.addValidationMarker(e,n)}}])&&Mc(n.prototype,r),o&&Mc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(vc);function Vc(e){return(Vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(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,$c(r.key),r)}}function Uc(e,t,n){return t&&Wc(e.prototype,t),n&&Wc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $c(e){var t=function(e,t){if("object"!=Vc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vc(t)?t:String(t)}function Hc(e,t,n){return t=qc(t),function(e,t){if(t&&("object"===Vc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],qc(e).constructor):t.apply(e,n))}function Yc(){return(Yc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Gc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qc(e)););return e}function qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xc(e,t)}function Xc(e,t){return(Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Qc=function(t){var n=function(t){function n(){return zc(this,n),Hc(this,n,arguments)}return Kc(n,t),Uc(n,[{key:"render",value:function(){if(this.domNode.clear(),Yc(qc(n.prototype),"render",this).call(this),!this.initiatedAlready&&this.domNode.parent instanceof Node){var t=this.domNode.component;(0,_s.s)(this.domNode.parent).render(e.createElement(t,null))}this.initiatedAlready=!0}}]),n}(t);return n.Component=function(e){function t(e){var r;return zc(this,t),(r=Hc(this,t,[e])).fix=new n(e),r}return Kc(t,e),Uc(t,[{key:"render",value:function(){return this.fix.domNode.component}}]),t}(e.Component),n},Jc=Qc(Oc),ed=Qc(vc),td=Qc(Bc);function nd(e){return(nd="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)}var rd=["className"];function od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return id(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return id(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function id(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ad(e,t,n){var r;return r=function(e,t){if("object"!=nd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==nd(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(){return(sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ld(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ud=(0,h.ZP)((0,e.forwardRef)((function(t,n){var r=t.className,o=ld(t,rd);return e.createElement(bs,sd({},o,{classes:{popper:r}}))})))((function(e){var t=e.theme;return ad(ad({},"& .".concat(cs.tooltip),{backgroundColor:t.palette.background.default,fontSize:12,color:"black",boxShadow:t.shadows[10],pointerEvents:"auto"}),"& .".concat(cs.tooltipPlacementBottom),{margin:"2px 0 24px 0",marginTop:"0px !important"})})),cd=function(t){var n=od((0,e.useState)(!1),2),r=n[0],o=n[1],i=function(){o(!1)},a=function(){o(!0)},s="",l=t.item.getProperty();l&&(s=e.createElement("div",{className:"rdformsProperty"},e.createElement("a",{target:"_blank",href:l},l)));var u=t.context.view instanceof Jc?t.item.getEditDescription()||t.item.getDescription():t.item.getDescription()||(l?"":t.context.view.messages.info_missing||"");return e.createElement(Ss,{onClickAway:i},e.createElement(ud,{title:e.createElement(e.Fragment,null,e.createElement("p",{className:"rdformsLinebreaks rdformsDescription"},u),s),placement:"bottom-start",disableHoverListener:!0,disableTouchListener:!0,onClose:i,onOpen:a,open:r},e.createElement("span",{onClick:a},t.children)))};fi.renderPresenterLabel=function(t,n,r,o){var i=o.view instanceof Jc&&r.getEditLabel()||r.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a,s=o.view;if(r.hasStyle("showDescriptionInPresent")||s.showDescription){var l=r.hasStyle("compact")||s.compact&&!r.hasStyle("nonCompact")&&(s.topLevel&&"group"!==r.getType()||s.parentView&&s.parentView.topLevel&&s.binding.getItem().hasStyle("heading")),u=s instanceof Jc&&r.getEditDescription()||r.getDescription();!l&&u&&(a=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},u))}var c=n?o.view.createLabelIndex(n):void 0;i=r.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",id:c,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},i)):e.createElement("span",{tabIndex:"0",id:c,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},i)),t.appendChild(e.createElement(e.Fragment,{key:"".concat(n?n.getHash():r._internalId,"_label")},e.createElement(cd,{context:o,item:r},i),a))},fi.renderEditorLabel=function(t,n,r,o){if(r.hasStyle("nonEditable")||r.hasStyle("heading"))fi.renderPresenterLabel(t,n,r,o,!0);else{var i=r.getEditLabel()||r.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"",i=r.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",className:"rdformsLabel"},i):e.createElement("span",{tabIndex:"0",className:"rdformsLabel"},i),i=e.createElement(cd,{item:r,context:o},i);var a,s,l=r.getCardinality(),u=o.view.messages;r.getProperty()&&(a=l.min>0?e.createElement("span",{className:"rdformsMark rdformsMandatoryMark"},u.mandatoryMark):l.pref>0?e.createElement("span",{className:"rdformsMark rdformsRecommendedMark"},u.recommendedMark):e.createElement("span",{className:"rdformsMark rdformsOptionalMark"},u.optionalMark)),null==n?s=fi.addExpandButton(t,null,r,o):"group"!==r.getType()||o.view.showAsTable(r)||r.getProperty()&&(s=fi.addRemoveButton(t,n,o));var c,d=o.view;if(r.hasStyle("showDescriptionInEdit")||d.showDescription){var f=r.hasStyle("compact")||d.compact&&!r.hasStyle("nonCompact")&&(d.topLevel&&"group"!==r.getType()||d.parentView&&d.parentView.topLevel&&d.binding.getItem().hasStyle("heading")),p=d instanceof Jc&&r.getEditDescription()||r.getDescription();!f&&p&&(c=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},p))}var h=o.view.createLabelIndex(n);t.appendChild(e.createElement(e.Fragment,{key:"".concat(n.getHash(),"_label")},e.createElement("div",{id:h,className:"rdformsLabelRow"},i,a,s&&e.createElement(s,null)),c))}};var dd=function(t){var n,r=t.rowNode,o=t.binding,i=(t.item,t.context),a=od((0,e.useState)(o.getCardinalityTracker().getCode()),2),s=a[0],l=a[1];if((0,e.useEffect)((function(){var e=o.getCardinalityTracker(),t=function(){var t=e.getCode();fi.domClassToggle(r,"rdformsError",t!==Os.UNKNOWN),l(t)};t();var n=e.addListener(t);return function(){return e.removeListener(n)}}),[]),s===Os.UNKNOWN)return"";switch(s){case Os.TOO_MANY_VALUES:case Os.AT_MOST_ONE_CHILD:n=i.view.messages.validation_at_most_one_child;break;case Os.AT_LEAST_ONE_CHILD:n=i.view.messages.validation_at_least_one_child;break;case Os.EXACTLY_ONE_CHILD:n=i.view.messages.validation_exactly_one_child;break;case Os.TOO_FEW_VALUES_MIN:default:n=i.view.messages.missingValueField}return e.createElement("div",{className:"rdformsWarning"},n)};fi.renderEditorLabelScopeEnd=function(t,n,r,o){if(!r.hasStyle("nonEditable")&&!r.hasStyle("heading")){if(!o.view.isMultiValued(r)){var i,a=r.getCardinality();null==n?i=fi.addExpandButton(t,null,r,o):!n.getPredicate()||o.view.showAsTable(r)||1===a.max||null!=a.max&&a.max===a.min||(i=fi.addCreateChildButton(t,null,n,o)),i&&t.appendChild(e.createElement(i,{key:"".concat(n.getHash(),"_labelEnd")}))}if(r.hasStyle("deprecated")){var s=n.getCardinalityTracker(),l=s.addListener((function(){0===s.getCardinality()&&(s.removeListener(l),t.destroy())}));t.appendChild(e.createElement("div",{key:"deprecatedWarning",className:"rdformsWarning"},o.view.messages.deprecatedField))}r.getDeps()&&t.appendChild(e.createElement("div",{key:"dependencyWarning",className:"rdformsWarning rdformsDependency"},o.view.messages.dependencyField)),t.appendChild(e.createElement(dd,{key:"errMessage",rowNode:t,binding:n,item:r,context:o}))}};var fd=function(e){var t,n=function(e){return e&&e.length>1?parseInt(e[0],10):0},r=n(e.match(/([0-9])*Y/)),o=n(e.match(/([0-9])*D/)),i=n(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=n(e.match(/([0-9])*M/));else{var s=e.split("T");t=n(s[0].match(/([0-9])*M/)),a=n(s[1].match(/([0-9])*M/))}return{years:r,months:t,days:o,hours:i,minutes:a}},pd=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),n=new Date("".concat(t).concat(e));return n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n}return new Date(e)}catch(e){return null}},hd=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"DateTime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";case"http://www.w3.org/2001/XMLSchema#time":return"Time";case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"YearMonth";case"http://www.w3.org/2001/XMLSchema#gMonthDay":return"MonthDay";default:return}},md=function(e){var t=e.getDatatype();return Array.isArray(t)?hd(t[0]):hd(t)},gd=function(e,t){if(e)switch(t){case"DateTime":return e.toISOString();case"Date":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,10);case"YearMonth":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,7);case"MonthDay":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(5,5);case"Time":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(11);case"Year":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,4);default:return""}return""},yd=function(e){var t={},n=e.getDatatype();return(Array.isArray(n)?n:[n]).forEach((function(e){var n=hd(e);n&&(t[n]=!0)})),t},vd=function(e){var t=e.getValue();if(null!=t&&""!==t){var n=e.getItem(),r=pd(t);if(r){var o=function(e){return e.indexOf("T")>0?"DateTime":e.indexOf(":")>0?"Time":/^\d\d\d\d-\d\d$/.test(e)?"YearMonth":/^\d\d-\d\d$/.test(e)?"MonthDay":e.length>4?"Date":"Year"}(t),i=hd(e.getDatatype()),a=md(n),s=yd(n);return function(e,t){switch(e){case"DateTime":return Go()(t).format("lll");case"Date":return Go()(t).format("LL");case"Time":return Go()(t).format("LT");case"Year":return Go()(t).format("YYYY");case"YearMonth":return Go()(t).format("MMMM YYYY");case"MonthDay":return Go()(t).format("D MMMM");default:return""}}(s[i]?i:s[o]?o:a,r)}}},bd=function(e,t){var n,r=null===(n=e.getStatement()||e.getParent().getStatement())||void 0===n?void 0:n.getNamedGraph();if(r){for(var o=t.view;o.getParentView();)o=o.getParentView();return o.getNamedGraphId(r)}};function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xd=fi.presenterRegistry;xd.itemtype("text").datatype("xsd:duration").register((function(t,n,r){var o=fd(n.getValue());t.appendChild(e.createElement("div",{key:n.getHash()},["years","months","days","hours","minutes"].map((function(t){return 0!==o[t]&&e.createElement(e.Fragment,{key:t},e.createElement("span",{className:"durationLabel"},r.view.messages["duration_".concat(t)],":"),e.createElement("span",{className:"durationValue"},o[t]))}))))})),xd.itemtype("text").nodetype("URI").register((function(t,n){var r=Xo.getLocalizedMap(n),o=n.getValue(),i=n.getItem().hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,n)||{}:Jo.attachLinkBehaviour(t,n)||{},a=i.component||null;delete i.component;var s=n.getItem().hasStyle("showValue")?o:r?Xo.getLocalizedValue(r).value||o:n.getGist();t.appendChild(e.createElement("a",wd({},i,{key:n.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(t,n,r){var o=n.getValue(),i=n.getItem().hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,n)||{}:Jo.attachLinkBehaviour(t,n)||{},a=i.component||null;delete i.component;var s,l=n.getItem().getChildren().find((function(e){return e.hasStyle("label")})),u=l?fi.filterTranslations(n.getChildBindingsFor(l),Go().locale(),r.view.defaultLanguage):[],c=n.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),d=c?fi.filterTranslations(n.getChildBindingsFor(c),Go().locale(),r.view.defaultLanguage):[],f=d.length>0?d[0].getValue():o;if(u.length>0)s=u[0].getValue();else{var p=Xo.getLocalizedMap(n);s=n.getItem().hasStyle("showValue")?o:p?Xo.getLocalizedValue(p).value||o:n.getGist()}t.appendChild(e.createElement("a",wd({},i,{key:n.getHash(),title:f,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("text").nodetype("URI").style("externalLink").register((function(t,n){var r=Xo.getLocalizedMap(n),o=n.getValue(),i=Jo.attachExternalLinkBehaviour(t,n)||{};i.target=i.target||"_blank";var a=i.component||null;delete i.component;var s=n.getItem().hasStyle("showValue")?o:r?Xo.getLocalizedValue(r).value||o:n.getGist();t.appendChild(e.createElement("a",wd({},i,{key:n.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("text").nodetype("URI").style("image").register((function(t,n){t.appendChild(e.createElement("img",{key:n.getHash(),className:"rdformsImage",src:n.getGixt()}))})),xd.itemtype("text").register((function(t,n,r){var o=n.getItem(),i=n.getLanguage();o.hasStyle("inline")||(o.hasStyle("multiline")?fi.domClassToggle(t,"rdformsMultiline",!0):fi.domClassToggle(t,"rdformsSingleline",!0),r.view.showLanguage&&i&&t.appendChild(e.createElement("span",{className:"rdformsLanguage",key:"lang_".concat(n.getHash())},i)));var a=n.getParent();if(o.hasStyle("label")&&!0!==r.view.topLevel&&null!=a&&a.getItem().getChildren()[0]===o&&null!=a.getStatement()&&"uri"===a.getStatement().getType()){var s=Jo.attachLinkBehaviour(t,n,a),l=s.component||null;delete s.component,i&&(s.lang=i);var u=Xo.getLocalizedMap(n),c=a.getGist();t.appendChild(e.createElement("a",wd({},s,{key:n.getHash(),className:"rdformsUrl",href:a.getStatement().getValue()}),e.createElement("span",null,u&&Xo.getLocalizedValue(u).value||c),l))}else{var d=o.hasStyle("showValue")?n.getValue():n.getGist();i?t.appendChild(e.createElement("span",{lang:i,key:n.getHash()},d)):t.appendChild(e.createElement("span",{key:n.getHash()},d))}}));var Sd=o(2996),_d=o(9766),kd=o(6535),Ed=o(4161),Cd=o(3649);const Pd=["onChange","maxRows","minRows","style","value"];function Td(e){return parseInt(e,10)||0}const Od={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Ad=e.forwardRef((function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,c=(0,l.Z)(t,Pd),{current:d}=e.useRef(null!=s),f=e.useRef(null),p=(0,Di.Z)(n,f),h=e.useRef(null),m=e.useRef(0),[g,y]=e.useState({outerHeightStyle:0}),v=e.useCallback(()=>{const e=f.current,n=(0,Ed.Z)(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const r=h.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,s=Td(n.paddingBottom)+Td(n.paddingTop),l=Td(n.borderBottomWidth)+Td(n.borderTopWidth),u=r.scrollHeight;r.value="x";const c=r.scrollHeight;let d=u;i&&(d=Math.max(Number(i)*c,d)),o&&(d=Math.min(Number(o)*c,d)),d=Math.max(d,c);return{outerHeightStyle:d+("border-box"===a?s+l:0),overflow:Math.abs(d-u)<=1}},[o,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return m.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},w=e.useCallback(()=>{const e=v();Rd(e)||y(t=>b(t,e))},[v]);(0,ji.Z)(()=>{const e=()=>{m.current=0,(()=>{const e=v();Rd(e)||bi.flushSync(()=>{y(t=>b(t,e))})})()};let t;const n=(0,Cd.Z)(e),r=f.current,o=(0,Ed.Z)(r);let i;return o.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),i&&i.disconnect()}},[v]),(0,ji.Z)(()=>{w()}),e.useEffect(()=>{m.current=0},[s]);return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("textarea",(0,u.Z)({value:s,onChange:e=>{m.current=0,d||w(),r&&r(e)},ref:p,rows:i,style:(0,u.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},c)),(0,I.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,u.Z)({},Od,a,{paddingTop:0,paddingBottom:0})})]})}));function Md({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Dd=e.createContext(void 0);function jd(){return e.useContext(Dd)}var Id=o(8974);function Nd(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,I.jsx)(M,{styles:r})}const Ld=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,mi.Z)(n),o="function"==typeof e?e(t&&r[t]||r):e;return(0,I.jsx)(Nd,{styles:o})};const Zd=function(e){return(0,I.jsx)(Ld,(0,u.Z)({},e,{defaultTheme:gi.Z,themeId:yi.Z}))};function Fd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bd(e,t=!1){return e&&(Fd(e.value)&&""!==e.value||t&&Fd(e.defaultValue)&&""!==e.defaultValue)}function Vd(e){return(0,X.ZP)("MuiInputBase",e)}const zd=(0,L.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Wd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ud=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color"+(0,re.Z)(n.color)],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$d=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Hd=(0,h.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ud})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&."+zd.disabled]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,u.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Yd=(0,h.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,u.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,u.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&."+zd.disabled]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Gd=(0,I.jsx)(Zd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qd=e.forwardRef((function(t,n){var r;const o=(0,m.Z)({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:d,components:p={},componentsProps:h={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,fullWidth:x=!1,id:S,inputComponent:_="input",inputProps:k={},inputRef:E,maxRows:C,minRows:P,multiline:T=!1,name:O,onBlur:R,onChange:A,onClick:M,onFocus:D,onKeyDown:j,onKeyUp:N,placeholder:L,readOnly:Z,renderSuffix:F,rows:B,slotProps:V={},slots:z={},startAdornment:W,type:U="text",value:$}=o,H=(0,l.Z)(o,Wd),Y=null!=k.value?k.value:$,{current:G}=e.useRef(null!=Y),q=e.useRef(),K=e.useCallback(e=>{0},[]),X=(0,g.Z)(q,E,k.ref,K),[Q,J]=e.useState(!1),ee=jd();const te=Md({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:Q,e.useEffect(()=>{!ee&&v&&Q&&(J(!1),R&&R())},[ee,v,Q,R]);const ne=ee&&ee.onFilled,oe=ee&&ee.onEmpty,ie=e.useCallback(e=>{Bd(e)?ne&&ne():oe&&oe()},[ne,oe]);(0,Id.Z)(()=>{G&&ie({value:Y})},[Y,ie,G]);e.useEffect(()=>{ie(q.current)},[]);let ae=_,se=k;T&&"input"===ae&&(se=B?(0,u.Z)({type:void 0,minRows:B,maxRows:B},se):(0,u.Z)({type:void 0,maxRows:C,minRows:P},se),ae=Ad);e.useEffect(()=>{ee&&ee.setAdornedStart(Boolean(W))},[ee,W]);const le=(0,u.Z)({},o,{color:te.color||"primary",disabled:te.disabled,endAdornment:w,error:te.error,focused:te.focused,formControl:ee,fullWidth:x,hiddenLabel:te.hiddenLabel,multiline:T,size:te.size,startAdornment:W,type:U}),ue=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root","color"+(0,re.Z)(n),r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&"size"+(0,re.Z)(p),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,f.Z)(g,Vd,t)})(le),ce=z.root||p.Root||Hd,de=V.root||h.root||{},fe=z.input||p.Input||Yd;return se=(0,u.Z)({},se,null!=(r=V.input)?r:h.input),(0,I.jsxs)(e.Fragment,{children:[!b&&Gd,(0,I.jsxs)(ce,(0,u.Z)({},de,!pi(ce)&&{ownerState:(0,u.Z)({},le,de.ownerState)},{ref:n,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),M&&M(e)}},H,{className:(0,c.Z)(ue.root,de.className,d,Z&&"MuiInputBase-readOnly"),children:[W,(0,I.jsx)(Dd.Provider,{value:null,children:(0,I.jsx)(fe,(0,u.Z)({ownerState:le,"aria-invalid":te.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:y,disabled:te.disabled,id:S,onAnimationStart:e=>{ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:O,placeholder:L,readOnly:Z,required:te.required,rows:B,value:Y,onKeyDown:j,onKeyUp:N,type:U},se,!pi(fe)&&{as:ae,ownerState:(0,u.Z)({},le,se.ownerState)},{ref:X,className:(0,c.Z)(ue.input,se.className,Z&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),k.onBlur&&k.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||q.current;if(null==t)throw new Error((0,kd.Z)(1));ie({value:t.value})}k.onChange&&k.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{te.disabled?e.stopPropagation():(D&&D(e),k.onFocus&&k.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):J(!0))}}))}),w,F?F((0,u.Z)({},te,{startAdornment:W})):null]}))]})}));function Kd(e){return(0,X.ZP)("MuiInput",e)}const Xd=(0,u.Z)({},zd,(0,L.Z)("MuiInput",["root","underline","input"])),Qd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jd=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ud(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,u.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(e.vars||e).palette[t.color].main,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+Xd.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+n,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xd.disabled}, .${Xd.error}):before`]:{borderBottom:"2px solid "+(e.vars||e).palette.text.primary,"@media (hover: none)":{borderBottom:"1px solid "+n}},[`&.${Xd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ef=(0,h.ZP)(Yd,{name:"MuiInput",slot:"Input",overridesResolver:$d})({}),tf=e.forwardRef((function(e,t){var n,r,o,i;const a=(0,m.Z)({props:e,name:"MuiInput"}),{disableUnderline:s,components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:v={},type:b="text"}=a,w=(0,l.Z)(a,Qd),x=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,f.Z)(r,Kd,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:{disableUnderline:s}}},_=(null!=y?y:d)?(0,_d.Z)(null!=y?y:d,S):S,k=null!=(n=null!=(r=v.root)?r:c.Root)?n:Jd,E=null!=(o=null!=(i=v.input)?i:c.Input)?o:ef;return(0,I.jsx)(qd,(0,u.Z)({slots:{root:k,input:E},slotProps:_,fullWidth:p,inputComponent:h,multiline:g,ref:t,type:b},w,{classes:x}))}));tf.muiName="Input";const nf=tf;function rf(e){return(0,X.ZP)("MuiFilledInput",e)}const of=(0,u.Z)({},zd,(0,L.Z)("MuiFilledInput",["root","underline","input"])),af=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sf=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ud(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,u.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},["&."+of.focused]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},["&."+of.disabled]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${of.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+of.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+(e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${of.disabled}, .${of.error}):before`]:{borderBottom:"1px solid "+(e.vars||e).palette.text.primary},[`&.${of.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,u.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),lf=(0,h.ZP)(Yd,{name:"MuiFilledInput",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),uf=e.forwardRef((function(e,t){var n,r,o,i;const a=(0,m.Z)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:y={},type:v="text"}=a,b=(0,l.Z)(a,af),w=(0,u.Z)({},a,{fullWidth:d,inputComponent:p,multiline:h,type:v}),x=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,f.Z)(r,rf,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:w},input:{ownerState:w}},_=(null!=g?g:c)?(0,_d.Z)(S,null!=g?g:c):S,k=null!=(n=null!=(r=y.root)?r:s.Root)?n:sf,E=null!=(o=null!=(i=y.input)?i:s.Input)?o:lf;return(0,I.jsx)(qd,(0,u.Z)({slots:{root:k,input:E},componentsProps:_,fullWidth:d,inputComponent:p,multiline:h,ref:t,type:v},b,{classes:x}))}));uf.muiName="Input";const cf=uf;var df;const ff=["children","classes","className","label","notched"],pf=(0,h.ZP)("fieldset",{shouldForwardProp:h.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),hf=(0,h.ZP)("legend",{shouldForwardProp:h.FO})(({ownerState:e,theme:t})=>(0,u.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,u.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mf(e){return(0,X.ZP)("MuiOutlinedInput",e)}const gf=(0,u.Z)({},zd,(0,L.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),yf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vf=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ud})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,u.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,["&:hover ."+gf.notchedOutline]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{["&:hover ."+gf.notchedOutline]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${gf.focused} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gf.error} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gf.disabled} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,u.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),bf=(0,h.ZP)((function(e){const{className:t,label:n,notched:r}=e,o=(0,l.Z)(e,ff),i=null!=n&&""!==n,a=(0,u.Z)({},e,{notched:r,withLabel:i});return(0,I.jsx)(pf,(0,u.Z)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,I.jsx)(hf,{ownerState:a,children:i?(0,I.jsx)("span",{children:n}):df||(df=(0,I.jsx)("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),wf=(0,h.ZP)(Yd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),xf=e.forwardRef((function(t,n){var r,o,i,a,s;const c=(0,m.Z)({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:g,multiline:y=!1,notched:v,slots:b={},type:w="text"}=c,x=(0,l.Z)(c,yf),S=(e=>{const{classes:t}=e,n=(0,f.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mf,t);return(0,u.Z)({},t,n)})(c),_=jd(),k=Md({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=(0,u.Z)({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:_,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:y,size:k.size,type:w}),C=null!=(r=null!=(o=b.root)?o:d.Root)?r:vf,P=null!=(i=null!=(a=b.input)?a:d.Input)?i:wf;return(0,I.jsx)(qd,(0,u.Z)({slots:{root:C,input:P},renderSuffix:t=>(0,I.jsx)(bf,{ownerState:E,className:S.notchedOutline,label:null!=g&&""!==g&&k.required?s||(s=(0,I.jsxs)(e.Fragment,{children:[g," ","*"]})):g,notched:void 0!==v?v:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:p,inputComponent:h,multiline:y,ref:n,type:w},x,{classes:(0,u.Z)({},S,{notchedOutline:null})}))}));xf.muiName="Input";const Sf=xf;function _f(e){return(0,X.ZP)("MuiFormLabel",e)}const kf=(0,L.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ef=["children","className","color","component","disabled","error","filled","focused","required"],Cf=(0,h.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&."+kf.focused]:{color:(e.vars||e).palette[t.color].main},["&."+kf.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+kf.error]:{color:(e.vars||e).palette.error.main}})),Pf=(0,h.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+kf.error]:{color:(e.vars||e).palette.error.main}})),Tf=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=(0,l.Z)(n,Ef),s=Md({props:n,muiFormControl:jd(),states:["color","required","focused","disabled","error","filled"]}),d=(0,u.Z)({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root","color"+(0,re.Z)(n),o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,f.Z)(l,_f,t)})(d);return(0,I.jsxs)(Cf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:[r,s.required&&(0,I.jsxs)(Pf,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}));function Of(e){return(0,X.ZP)("MuiInputLabel",e)}(0,L.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Rf=["disableAnimation","margin","shrink","variant","className"],Af=(0,h.ZP)(Tf,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& ."+kf.asterisk]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,u.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Mf=e.forwardRef((function(e,t){const n=(0,m.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:i}=n,a=(0,l.Z)(n,Rf),s=jd();let d=o;void 0===d&&s&&(d=s.filled||s.focused||s.adornedStart);const p=Md({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),h=(0,u.Z)({},n,{disableAnimation:r,formControl:s,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"normal"!==r&&"size"+(0,re.Z)(r),a],asterisk:[s&&"asterisk"]},c=(0,f.Z)(l,Of,t);return(0,u.Z)({},t,c)})(h);return(0,I.jsx)(Af,(0,u.Z)({"data-shrink":d,ownerState:h,ref:t,className:(0,c.Z)(g.root,i)},a,{classes:g}))}));var Df=o(8502);function jf(e){return(0,X.ZP)("MuiFormControl",e)}(0,L.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const If=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nf=(0,h.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,t["margin"+(0,re.Z)(e.margin)],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,u.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Lf=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:d=!1,error:p=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:v="none",required:b=!1,size:w="medium",variant:x="outlined"}=r,S=(0,l.Z)(r,If),_=(0,u.Z)({},r,{color:a,component:s,disabled:d,error:p,fullWidth:g,hiddenLabel:y,margin:v,required:b,size:w,variant:x}),k=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&"margin"+(0,re.Z)(n),r&&"fullWidth"]};return(0,f.Z)(o,jf,t)})(_),[E,C]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{if(!(0,Df.Z)(e,["Input","Select"]))return;const n=(0,Df.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}),t}),[P,T]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{(0,Df.Z)(e,["Input","Select"])&&(Bd(e.props,!0)||Bd(e.props.inputProps,!0))&&(t=!0)}),t}),[O,R]=e.useState(!1);d&&O&&R(!1);const A=void 0===h||d?O:h;const M=e.useMemo(()=>({adornedStart:E,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:A,fullWidth:g,hiddenLabel:y,size:w,onBlur:()=>{R(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{R(!0)},registerEffect:void 0,required:b,variant:x}),[E,a,d,p,P,A,g,y,void 0,b,w,x]);return(0,I.jsx)(Dd.Provider,{value:M,children:(0,I.jsx)(Nf,(0,u.Z)({as:s,ownerState:_,className:(0,c.Z)(k.root,i),ref:n},S,{children:o}))})}));function Zf(e){return(0,X.ZP)("MuiFormHelperText",e)}const Ff=(0,L.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Bf;const Vf=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zf=(0,h.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size"+(0,re.Z)(n.size)],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&."+Ff.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+Ff.error]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Wf=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p"}=n,a=(0,l.Z)(n,Vf),s=Md({props:n,muiFormControl:jd(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,u.Z)({},n,{component:i,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&"size"+(0,re.Z)(r),n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,f.Z)(u,Zf,t)})(d);return(0,I.jsx)(zf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:" "===r?Bf||(Bf=(0,I.jsx)("span",{className:"notranslate",children:""})):r}))}));o(6607);var Uf=o(8038);const $f=e.createContext({});function Hf(e){return(0,X.ZP)("MuiList",e)}(0,L.Z)("MuiList",["root","padding","dense","subheader"]);const Yf=["children","className","component","dense","disablePadding","subheader"],Gf=(0,h.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>(0,u.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),qf=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:d=!1,subheader:p}=r,h=(0,l.Z)(r,Yf),g=e.useMemo(()=>({dense:s}),[s]),y=(0,u.Z)({},r,{component:a,dense:s,disablePadding:d}),v=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,f.Z)(i,Hf,t)})(y);return(0,I.jsx)($f.Provider,{value:g,children:(0,I.jsxs)(Gf,(0,u.Z)({as:a,className:(0,c.Z)(v.root,i),ref:n,ownerState:y},h,{children:[p,o]}))})}));function Kf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Xf=Kf,Qf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ep(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function tp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function np(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&tp(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const rp=e.forwardRef((function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=t,h=(0,l.Z)(t,Qf),m=e.useRef(null),y=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Id.Z)(()=>{o&&m.current.focus()},[o]),e.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{const n=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&n){const n=Xf((0,Uf.Z)(e))+"px";m.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,m.current.style.width=`calc(100% + ${n})`}return m.current}}),[]);const v=(0,g.Z)(m,n);let b=-1;e.Children.forEach(a,(t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===p&&t.props.selected||-1===b)&&(b=n),b===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))):b===n&&(b+=1,b>=a.length&&(b=-1))});const w=e.Children.map(a,(t,n)=>{if(n===b){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===p&&(n.tabIndex=0),e.cloneElement(t,n)}return t});return(0,I.jsx)(qf,(0,u.Z)({role:"menu",ref:v,className:s,onKeyDown:e=>{const t=m.current,n=e.key,r=(0,Uf.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),np(t,r,d,c,Jf);else if("ArrowUp"===n)e.preventDefault(),np(t,r,d,c,ep);else if("Home"===n)e.preventDefault(),np(t,null,d,c,Jf);else if("End"===n)e.preventDefault(),np(t,null,d,c,ep);else if(1===n.length){const o=y.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&tp(r,o);o.previousKeyMatched&&(s||np(t,r,!1,c,Jf,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},h,{children:w}))}));var op=o(7144),ip=o(5340),ap=o(9064);function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lp(e){return parseInt((0,Ed.Z)(e).getComputedStyle(e).paddingRight,10)||0}function up(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&sp(e,o)})}function cp(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function dp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ii.Z)(e);return t.body===e?(0,Ed.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Kf((0,Ii.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=lp(r)+e+"px";const t=(0,Ii.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=lp(t)+e+"px"})}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Ii.Z)(r).body;else{const t=r.parentElement,n=(0,Ed.Z)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const fp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&sp(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);up(t,e.mount,e.modalRef,r,!0);const o=cp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=cp(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=dp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=cp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sp(e.modalRef,t),up(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function pp(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=fp,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:p}=t,h=e.useRef({}),m=e.useRef(null),g=e.useRef(null),y=(0,Di.Z)(g,p),[v,b]=e.useState(!f),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const S=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),_=()=>{i.mount(S(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},k=(0,ws.Z)(()=>{const e=function(e){return"function"==typeof e?e():e}(n)||(0,Ii.Z)(m.current).body;i.add(S(),e),g.current&&_()}),E=e.useCallback(()=>i.isTopModal(S()),[i]),C=(0,ws.Z)(e=>{m.current=e,e&&(f&&E()?_():g.current&&sp(g.current,x))}),P=e.useCallback(()=>{i.remove(S(),x)},[x,i]);e.useEffect(()=>()=>{P()},[P]),e.useEffect(()=>{f?k():w&&a||P()},[f,P,w,a,k]);const T=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(e={})=>{const n=Wa(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,u.Z)({},n,e);return(0,u.Z)({role:"presentation"},r,{onKeyDown:T(r),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,u.Z)({"aria-hidden":!0},t,{onClick:O(t),open:f})},getTransitionProps:()=>({onEnter:(0,ap.Z)(()=>{b(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:(0,ap.Z)(()=>{b(!0),l&&l(),a&&P()},null==c?void 0:c.props.onExited)}),rootRef:y,portalRef:C,isTopModal:E,exited:v,hasTransition:w}}const hp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mp(e){const t=[],n=[];return Array.from(e.querySelectorAll(hp)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'+t);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function gp(){return!0}function yp(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=mp,isEnabled:s=gp,open:l}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=(0,Di.Z)(n.ref,m),y=e.useRef(null);e.useEffect(()=>{l&&m.current&&(h.current=!r)},[r,l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Ii.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Ii.Z)(m.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,i;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=y.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[r,o,i,s,l,a]);const v=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,I.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const vp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bp={entering:{opacity:1},entered:{opacity:1}},wp=e.forwardRef((function(t,n){const r=vi(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:d,onEnter:f,onEntered:p,onEntering:h,onExit:m,onExited:y,onExiting:v,style:b,timeout:w=o,TransitionComponent:x=ki}=t,S=(0,l.Z)(t,vp),_=e.useRef(null),k=(0,g.Z)(_,s.ref,n),E=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},C=E(h),P=E((e,t)=>{Ei(e);const n=Ci({style:b,timeout:w,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),f&&f(e,t)}),T=E(p),O=E(v),R=E(e=>{const t=Ci({style:b,timeout:w,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),m&&m(e)}),A=E(y);return(0,I.jsx)(x,(0,u.Z)({appear:a,in:d,nodeRef:_,onEnter:P,onEntered:T,onEntering:C,onExit:R,onExited:A,onExiting:O,addEndListener:e=>{i&&i(_.current,e)},timeout:w},S,{children:(t,n)=>e.cloneElement(s,(0,u.Z)({style:(0,u.Z)({opacity:0,visibility:"exited"!==t||d?void 0:"hidden"},bp[t],b,s.props.style),ref:k},n))}))}));function xp(e){return(0,X.ZP)("MuiBackdrop",e)}(0,L.Z)("MuiBackdrop",["root","invisible"]);const Sp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_p=(0,h.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>(0,u.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),kp=e.forwardRef((function(e,t){var n,r,o;const i=(0,m.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:d="div",components:p={},componentsProps:h={},invisible:g=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:w=wp,transitionDuration:x}=i,S=(0,l.Z)(i,Sp),_=(0,u.Z)({},i,{component:d,invisible:g}),k=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,f.Z)(r,xp,t)})(_),E=null!=(n=v.root)?n:h.root;return(0,I.jsx)(w,(0,u.Z)({in:y,timeout:x},S,{children:(0,I.jsx)(_p,(0,u.Z)({"aria-hidden":!0},E,{as:null!=(r=null!=(o=b.root)?o:p.Root)?r:d,className:(0,c.Z)(k.root,s,null==E?void 0:E.className),ownerState:(0,u.Z)({},_,null==E?void 0:E.ownerState),classes:k,ref:t,children:a}))}))}));function Ep(e){return(0,X.ZP)("MuiModal",e)}(0,L.Z)("MuiModal",["root","hidden","backdrop"]);const Cp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Pp=(0,h.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,u.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Tp=(0,h.ZP)(kp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Op=e.forwardRef((function(t,n){var r,o,i,a,s,d;const p=(0,m.Z)({name:"MuiModal",props:t}),{BackdropComponent:h=Tp,BackdropProps:g,className:y,closeAfterTransition:v=!1,children:b,container:w,component:x,components:S={},componentsProps:_={},disableAutoFocus:k=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:P=!1,disableRestoreFocus:T=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:D,slotProps:j,slots:N}=p,L=(0,l.Z)(p,Cp),Z=(0,u.Z)({},p,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:P,disableRestoreFocus:T,disableScrollLock:O,hideBackdrop:R,keepMounted:A}),{getRootProps:F,getBackdropProps:B,getTransitionProps:V,portalRef:z,isTopModal:W,exited:U,hasTransition:$}=pp((0,u.Z)({},Z,{rootRef:n})),H=(0,u.Z)({},Z,{exited:U}),Y=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,f.Z)(o,Ep,r)})(H),G={};if(void 0===b.props.tabIndex&&(G.tabIndex="-1"),$){const{onEnter:e,onExited:t}=V();G.onEnter=e,G.onExited=t}const q=null!=(r=null!=(o=null==N?void 0:N.root)?o:S.Root)?r:Pp,K=null!=(i=null!=(a=null==N?void 0:N.backdrop)?a:S.Backdrop)?i:h,X=null!=(s=null==j?void 0:j.root)?s:_.root,Q=null!=(d=null==j?void 0:j.backdrop)?d:_.backdrop,J=Ha({elementType:q,externalSlotProps:X,externalForwardedProps:L,getSlotProps:F,additionalProps:{ref:n,as:x},ownerState:H,className:(0,c.Z)(y,null==X?void 0:X.className,null==Y?void 0:Y.root,!H.open&&H.exited&&(null==Y?void 0:Y.hidden))}),ee=Ha({elementType:K,externalSlotProps:Q,additionalProps:g,getSlotProps:e=>B((0,u.Z)({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,c.Z)(null==Q?void 0:Q.className,null==g?void 0:g.className,null==Y?void 0:Y.backdrop),ownerState:H});return A||D||$&&!U?(0,I.jsx)(Ba,{ref:z,container:w,disablePortal:P,children:(0,I.jsxs)(q,(0,u.Z)({},J,{children:[!R&&h?(0,I.jsx)(K,(0,u.Z)({},ee)):null,(0,I.jsx)(yp,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:T,isEnabled:W,open:D,children:e.cloneElement(b,G)})]}))}):null})),Rp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ap(e){return(0,X.ZP)("MuiPaper",e)}(0,L.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Mp=["className","component","elevation","square","variant"],Dp=(0,h.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation"+n.elevation]]}})(({theme:e,ownerState:t})=>{var n;return(0,u.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.divider},"elevation"===t.variant&&(0,u.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,p.Fq)("#fff",Rp(t.elevation))}, ${(0,p.Fq)("#fff",Rp(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),jp=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,d=(0,l.Z)(n,Mp),p=(0,u.Z)({},n,{component:o,elevation:i,square:a,variant:s}),h=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation"+n]};return(0,f.Z)(i,Ap,o)})(p);return(0,I.jsx)(Dp,(0,u.Z)({as:o,ownerState:p,className:(0,c.Z)(h.root,r),ref:t},d))}));function Ip(e){return(0,X.ZP)("MuiPopover",e)}(0,L.Z)("MuiPopover",["root","paper"]);const Np=["onEntering"],Lp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zp=["slotProps"];function Fp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Bp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Vp(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?e+"px":e).join(" ")}function zp(e){return"function"==typeof e?e():e}const Wp=(0,h.ZP)(Op,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Up=(0,h.ZP)(jp,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$p=e.forwardRef((function(t,n){var r,o,i;const a=(0,m.Z)({props:t,name:"MuiPopover"}),{action:s,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:y="anchorEl",children:v,className:b,container:w,elevation:x=8,marginThreshold:S=16,open:_,PaperProps:k={},slots:E,slotProps:C,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:T=Mi,transitionDuration:O="auto",TransitionProps:{onEntering:R}={},disableScrollLock:A=!1}=a,M=(0,l.Z)(a.TransitionProps,Np),D=(0,l.Z)(a,Lp),j=null!=(r=null==C?void 0:C.paper)?r:k,N=e.useRef(),L=(0,g.Z)(N,j.ref),Z=(0,u.Z)({},a,{anchorOrigin:p,anchorReference:y,elevation:x,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:P,TransitionComponent:T,transitionDuration:O,TransitionProps:M}),F=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Ip,t)})(Z),B=e.useCallback(()=>{if("anchorPosition"===y)return h;const e=zp(d),t=(e&&1===e.nodeType?e:(0,Uf.Z)(N.current).body).getBoundingClientRect();return{top:t.top+Fp(t,p.vertical),left:t.left+Bp(t,p.horizontal)}},[d,p.horizontal,p.vertical,h,y]),V=e.useCallback(e=>({vertical:Fp(e,P.vertical),horizontal:Bp(e,P.horizontal)}),[P.horizontal,P.vertical]),z=e.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=V(t);if("none"===y)return{top:null,left:null,transformOrigin:Vp(n)};const r=B();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,l=(0,ip.Z)(zp(d)),u=l.innerHeight-S,c=l.innerWidth-S;if(null!==S&&o<S){const e=o-S;o-=e,n.vertical+=e}else if(null!==S&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==S&&i<S){const e=i-S;i-=e,n.horizontal+=e}else if(s>c){const e=s-c;i-=e,n.horizontal+=e}return{top:Math.round(o)+"px",left:Math.round(i)+"px",transformOrigin:Vp(n)}},[d,y,B,V,S]),[W,U]=e.useState(_),$=e.useCallback(()=>{const e=N.current;if(!e)return;const t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)},[z]);e.useEffect(()=>(A&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[d,A,$]);e.useEffect(()=>{_&&$()}),e.useImperativeHandle(s,()=>_?{updatePosition:()=>{$()}}:null,[_,$]),e.useEffect(()=>{if(!_)return;const e=(0,op.Z)(()=>{$()}),t=(0,ip.Z)(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[d,_,$]);let H=O;"auto"!==O||T.muiSupportAuto||(H=void 0);const Y=w||(d?(0,Uf.Z)(zp(d)).body:void 0),G=null!=(o=null==E?void 0:E.root)?o:Wp,q=null!=(i=null==E?void 0:E.paper)?i:Up,K=Ha({elementType:q,externalSlotProps:(0,u.Z)({},j,{style:W?j.style:(0,u.Z)({},j.style,{opacity:0})}),additionalProps:{elevation:x,ref:L},ownerState:Z,className:(0,c.Z)(F.paper,null==j?void 0:j.className)}),X=Ha({elementType:G,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Y,open:_},ownerState:Z,className:(0,c.Z)(F.root,b)}),{slotProps:Q}=X,J=(0,l.Z)(X,Zp);return(0,I.jsx)(G,(0,u.Z)({},J,!pi(G)&&{slotProps:Q,disableScrollLock:A},{children:(0,I.jsx)(T,(0,u.Z)({appear:!0,in:_,onEntering:(e,t)=>{R&&R(e,t),$()},onExited:()=>{U(!1)},timeout:H},M,{children:(0,I.jsx)(q,(0,u.Z)({},K,{children:v}))}))}))}));function Hp(e){return(0,X.ZP)("MuiMenu",e)}(0,L.Z)("MuiMenu",["root","paper","list"]);const Yp=["onEntering"],Gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qp={vertical:"top",horizontal:"right"},Kp={vertical:"top",horizontal:"left"},Xp=(0,h.ZP)($p,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qp=(0,h.ZP)(Up,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jp=(0,h.ZP)(rp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eh=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:d,disableAutoFocusItem:p=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:v={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:x}={},variant:S="selectedMenu",slots:_={},slotProps:k={}}=i,E=(0,l.Z)(i.TransitionProps,Yp),C=(0,l.Z)(i,Gp),P=vi(),T="rtl"===P.direction,O=(0,u.Z)({},i,{autoFocus:a,disableAutoFocusItem:p,MenuListProps:h,onEntering:x,PaperProps:v,transitionDuration:w,TransitionProps:E,variant:S}),R=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"],list:["list"]},Hp,t)})(O),A=a&&!p&&y,M=e.useRef(null);let D=-1;e.Children.map(s,(t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===S&&t.props.selected||-1===D)&&(D=n))});const j=null!=(r=_.paper)?r:Qp,N=null!=(o=k.paper)?o:v,L=Ha({elementType:_.root,externalSlotProps:k.root,ownerState:O,className:[R.root,d]}),Z=Ha({elementType:j,externalSlotProps:N,ownerState:O,className:R.paper});return(0,I.jsx)(Xp,(0,u.Z)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?qp:Kp,slots:{paper:j,root:_.root},slotProps:{root:L,paper:Z},open:y,ref:n,transitionDuration:w,TransitionProps:(0,u.Z)({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,P),x&&x(e,t)}},E),ownerState:O},C,{classes:b,children:(0,I.jsx)(Jp,(0,u.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===D||p),autoFocusItem:A,variant:S},h,{className:(0,c.Z)(R.list,h.className),children:s}))}))}));function th(e){return(0,X.ZP)("MuiNativeSelect",e)}const nh=(0,L.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rh=["className","disabled","error","IconComponent","inputRef","variant"],oh=({ownerState:e,theme:t})=>(0,u.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,u.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&."+nh.disabled]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ih=(0,h.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:h.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&."+nh.multiple]:t.multiple}]}})(oh),ah=({ownerState:e,theme:t})=>(0,u.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&."+nh.disabled]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),sh=(0,h.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon"+(0,re.Z)(n.variant)],n.open&&t.iconOpen]}})(ah),lh=e.forwardRef((function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:d="standard"}=t,p=(0,l.Z)(t,rh),h=(0,u.Z)({},t,{disabled:o,variant:d,error:i}),m=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,re.Z)(n),i&&"iconOpen",r&&"disabled"]};return(0,f.Z)(s,th,t)})(h);return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(ih,(0,u.Z)({ownerState:h,className:(0,c.Z)(m.select,r),disabled:o,ref:s||n},p)),t.multiple?null:(0,I.jsx)(sh,{as:a,ownerState:h,className:m.icon})]})}));function uh(e){return(0,X.ZP)("MuiSelect",e)}const ch=(0,L.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dh;const fh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ph=(0,h.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&."+ch.select]:t.select},{["&."+ch.select]:t[n.variant]},{["&."+ch.error]:t.error},{["&."+ch.multiple]:t.multiple}]}})(oh,{["&."+ch.select]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hh=(0,h.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon"+(0,re.Z)(n.variant)],n.open&&t.iconOpen]}})(ah),mh=(0,h.ZP)("input",{shouldForwardProp:e=>(0,h.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yh(e){return null==e||"string"==typeof e&&!e.trim()}const vh=e.forwardRef((function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:d,className:p,defaultOpen:h,defaultValue:m,disabled:y,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:x,labelId:S,MenuProps:_={},multiple:k,name:E,onBlur:C,onChange:P,onClose:T,onFocus:O,onOpen:R,open:A,readOnly:M,renderValue:D,SelectDisplayProps:j={},tabIndex:N,value:L,variant:Z="standard"}=t,F=(0,l.Z)(t,fh),[B,V]=(0,ls.Z)({controlled:L,default:m,name:"Select"}),[z,W]=(0,ls.Z)({controlled:A,default:h,name:"Select"}),U=e.useRef(null),$=e.useRef(null),[H,Y]=e.useState(null),{current:G}=e.useRef(null!=A),[q,K]=e.useState(),X=(0,g.Z)(n,x),Q=e.useCallback(e=>{$.current=e,e&&Y(e)},[]),J=null==H?void 0:H.parentNode;e.useImperativeHandle(X,()=>({focus:()=>{$.current.focus()},node:U.current,value:B}),[B]),e.useEffect(()=>{h&&z&&H&&!G&&(K(s?null:J.clientWidth),$.current.focus())},[H,s]),e.useEffect(()=>{a&&$.current.focus()},[a]),e.useEffect(()=>{if(!S)return;const e=(0,Uf.Z)($.current).getElementById(S);if(e){const t=()=>{getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[S]);const ee=(e,t)=>{e?R&&R(t):T&&T(t),G||(K(s?null:J.clientWidth),W(e))},te=e.Children.toArray(d),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(k){n=Array.isArray(B)?B.slice():[];const t=B.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==n&&(V(n),P)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:E}}),P(o,e)}k||ee(!1,t)}},oe=null!==H&&z;let ie,ae;delete F["aria-invalid"];const se=[];let le=!1,ue=!1;(Bd({value:B})||v)&&(D?ie=D(B):le=!0);const ce=te.map(t=>{if(!e.isValidElement(t))return null;let n;if(k){if(!Array.isArray(B))throw new Error((0,kd.Z)(2));n=B.some(e=>gh(e,t.props.value)),n&&le&&se.push(t.props.children)}else n=gh(B,t.props.value),n&&le&&(ae=t.props.children);return n&&(ue=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:ne(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})});le&&(ie=k?0===se.length?null:se.reduce((e,t,n)=>(e.push(t),n<se.length-1&&e.push(", "),e),[]):ae);let de,fe=q;!s&&G&&H&&(fe=J.clientWidth),de=void 0!==N?N:y?null:0;const pe=j.id||(E?"mui-component-select-"+E:void 0),he=(0,u.Z)({},t,{variant:Z,value:B,open:oe,error:b}),me=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,re.Z)(n),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,f.Z)(s,uh,t)})(he),ge=(0,u.Z)({},_.PaperProps,null==(r=_.slotProps)?void 0:r.paper),ye=(0,Sd.Z)();return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(ph,(0,u.Z)({ref:Q,tabIndex:de,role:"combobox","aria-controls":ye,"aria-disabled":y?"true":void 0,"aria-expanded":oe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[S,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:y||M?null:e=>{0===e.button&&(e.preventDefault(),$.current.focus(),ee(!0,e))},onBlur:e=>{!oe&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:E}}),C(e))},onFocus:O},j,{ownerState:he,className:(0,c.Z)(j.className,me.select,p),id:pe,children:yh(ie)?dh||(dh=(0,I.jsx)("span",{className:"notranslate",children:""})):ie})),(0,I.jsx)(mh,(0,u.Z)({"aria-invalid":b,value:Array.isArray(B)?B.join(","):B,name:E,ref:U,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(V(t.props.value),P&&P(e,t))},tabIndex:-1,disabled:y,className:me.nativeInput,autoFocus:a,ownerState:he},F)),(0,I.jsx)(hh,{as:w,className:me.icon,ownerState:he}),(0,I.jsx)(eh,(0,u.Z)({id:"menu-"+(E||""),anchorEl:J,open:oe,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,u.Z)({"aria-labelledby":S,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:ye},_.MenuListProps),slotProps:(0,u.Z)({},_.slotProps,{paper:(0,u.Z)({},ge,{style:(0,u.Z)({minWidth:fe},null!=ge?ge.style:null)})}),children:ce}))]})}));var bh=o(2066);const wh=(0,bh.Z)((0,I.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),xh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sh=["root"],_h={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,h.FO)(e)&&"variant"!==e,slot:"Root"},kh=(0,h.ZP)(nf,_h)(""),Eh=(0,h.ZP)(Sf,_h)(""),Ch=(0,h.ZP)(cf,_h)(""),Ph=e.forwardRef((function(t,n){const r=(0,m.Z)({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:p=wh,id:h,input:y,inputProps:v,label:b,labelId:w,MenuProps:x,multiple:S=!1,native:_=!1,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:T,variant:O="outlined"}=r,R=(0,l.Z)(r,xh),A=_?lh:vh,M=Md({props:r,muiFormControl:jd(),states:["variant","error"]}),D=M.variant||O,j=(0,u.Z)({},r,{variant:D,classes:a}),N=(e=>{const{classes:t}=e;return t})(j),L=(0,l.Z)(N,Sh),Z=y||{standard:(0,I.jsx)(kh,{ownerState:j}),outlined:(0,I.jsx)(Eh,{label:b,ownerState:j}),filled:(0,I.jsx)(Ch,{ownerState:j})}[D],F=(0,g.Z)(n,Z.ref);return(0,I.jsx)(e.Fragment,{children:e.cloneElement(Z,(0,u.Z)({inputComponent:A,inputProps:(0,u.Z)({children:i,error:M.error,IconComponent:p,variant:D,type:void 0,multiple:S},_?{id:h}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:x,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:(0,u.Z)({id:h},T)},v,{classes:v?(0,_d.Z)(L,v.classes):L},y?y.props.inputProps:{})},S&&_&&"outlined"===D?{notched:!0}:{},{ref:F,className:(0,c.Z)(Z.props.className,s,N.root)},!y&&{variant:D},R))})}));Ph.muiName="Select";const Th=Ph;function Oh(e){return(0,X.ZP)("MuiTextField",e)}(0,L.Z)("MuiTextField",["root"]);const Rh=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ah={standard:nf,filled:cf,outlined:Sf},Mh=(0,h.ZP)(Lf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dh=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:w,inputProps:x,InputProps:S,inputRef:_,label:k,maxRows:E,minRows:C,multiline:P=!1,name:T,onBlur:O,onChange:R,onFocus:A,placeholder:M,required:D=!1,rows:j,select:N=!1,SelectProps:L,type:Z,value:F,variant:B="outlined"}=n,V=(0,l.Z)(n,Rh),z=(0,u.Z)({},n,{autoFocus:o,color:s,disabled:p,error:h,fullWidth:y,multiline:P,required:D,select:N,variant:B}),W=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Oh,t)})(z);const U={};"outlined"===B&&(w&&void 0!==w.shrink&&(U.notched=w.shrink),U.label=k),N&&(L&&L.native||(U.id=void 0),U["aria-describedby"]=void 0);const $=(0,Sd.Z)(b),H=v&&$?$+"-helper-text":void 0,Y=k&&$?$+"-label":void 0,G=Ah[B],q=(0,I.jsx)(G,(0,u.Z)({"aria-describedby":H,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:y,multiline:P,name:T,rows:j,maxRows:E,minRows:C,type:Z,value:F,id:$,inputRef:_,onBlur:O,onChange:R,onFocus:A,placeholder:M,inputProps:x},U,S));return(0,I.jsxs)(Mh,(0,u.Z)({className:(0,c.Z)(W.root,a),disabled:p,error:h,fullWidth:y,ref:t,required:D,color:s,variant:B,ownerState:z},V,{children:[null!=k&&""!==k&&(0,I.jsx)(Mf,(0,u.Z)({htmlFor:$,id:Y},w,{children:k})),N?(0,I.jsx)(Th,(0,u.Z)({"aria-describedby":H,id:$,labelId:Y,value:F,input:q},L,{children:i})):q,v&&(0,I.jsx)(Wf,(0,u.Z)({id:H},g,{children:v}))]}))}));var jh=o(4048);function Ih(e){return(0,X.ZP)("MuiIconButton",e)}const Nh=(0,L.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Lh=["edge","children","className","color","disabled","disableFocusRipple","size"],Zh=(0,h.ZP)(ne,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color"+(0,re.Z)(n.color)],n.edge&&t["edge"+(0,re.Z)(n.edge)],t["size"+(0,re.Z)(n.size)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,u.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,u.Z)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,u.Z)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{["&."+Nh.disabled]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fh=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:d=!1,size:p="medium"}=n,h=(0,l.Z)(n,Lh),g=(0,u.Z)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:d,size:p}),y=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&"color"+(0,re.Z)(r),o&&"edge"+(0,re.Z)(o),"size"+(0,re.Z)(i)]};return(0,f.Z)(a,Ih,t)})(g);return(0,I.jsx)(Zh,(0,u.Z)({className:(0,c.Z)(y.root,i),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:g},h,{children:o}))}));const Bh=(0,L.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Vh=(0,L.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const zh=(0,L.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Wh(e){return(0,X.ZP)("MuiMenuItem",e)}const Uh=(0,L.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$h=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hh=(0,h.ZP)(ne,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:"1px solid "+(e.vars||e).palette.divider,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+Uh.selected]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+Uh.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&."+Uh.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["&."+Uh.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + ."+Bh.root]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + ."+Bh.inset]:{marginLeft:52},["& ."+zh.root]:{marginTop:0,marginBottom:0},["& ."+zh.inset]:{paddingLeft:36},["& ."+Vh.root]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,u.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vh.root} svg`]:{fontSize:"1.25rem"}}))),Yh=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:d=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:y,className:v}=r,b=(0,l.Z)(r,$h),w=e.useContext($f),x=e.useMemo(()=>({dense:a||w.dense||!1,disableGutters:d}),[w.dense,a,d]),S=e.useRef(null);(0,Id.Z)(()=>{o&&S.current&&S.current.focus()},[o]);const _=(0,u.Z)({},r,{dense:x.dense,divider:s,disableGutters:d}),k=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},l=(0,f.Z)(s,Wh,a);return(0,u.Z)({},a,l)})(r),E=(0,g.Z)(S,n);let C;return r.disabled||(C=void 0!==y?y:-1),(0,I.jsx)($f.Provider,{value:x,children:(0,I.jsx)(Hh,(0,u.Z)({ref:E,role:h,tabIndex:C,component:i,focusVisibleClassName:(0,c.Z)(k.focusVisible,p),className:(0,c.Z)(k.root,v)},b,{ownerState:_,classes:k}))})}));function Gh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kh=function(e,t){return{value:e.value,label:Xo.getLocalizedValue(t&&e.editlabel||e.label).value,description:e.description||e.editdescription?Xo.getLocalizedValue(t&&e.editdescription||e.description).value:void 0,seeAlso:e.seeAlso,mismatch:e.mismatch,original:e}},Xh=function(e){return Kh(e,!0)},Qh=function(t,n){return(0,e.useMemo)((function(){var e=t.getItem(),r=e.getChoices().map(n?Xh:Kh);e.hasStyle("preserveOrderOfChoices")||r.sort((function(e,t){return e.label<t.label?-1:1}));var o=t.getChoice();return null!=o&&o.mismatch&&r.unshift({value:o.value,label:o.value,mismatch:!0,original:o}),r}),[])},Jh=function(t,n){var r=n?Xh:Kh,o=Gh((0,e.useState)((function(){var e=t.getChoice()||null;return e?r(e):null})),2),i=o[0],a=o[1];return(0,e.useEffect)((function(){i&&i.original.load&&i.original.load((function(){a(r(i.original))}),(function(){a(r(i.original))}))}),[]),[i,a]},em=0,tm=function(t,n){return(0,e.useMemo)((function(){return bd(t,n)}))};function nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var om=function(t){var n=nm((0,e.useState)(t.binding.getLanguage()||""),2),r=n[0],o=n[1],i=(0,e.useMemo)((function(){var e=Xo.cloneArrayWithLabels(fi.getPrimaryLanguageList()),t=Xo.cloneArrayWithLabels(fi.getNonPrimaryLanguageList());return 0===e.length?t:e.concat([null],t)}));(0,e.useEffect)((function(){if(!t.binding.isValid()){var e=Go().locale();"string"==typeof e&&""!==e&&(o(e),t.binding.setLanguage(e,!0))}}),[]);(0,e.useEffect)((function(){t.context.clearLanguage=function(){o("")}}),[]);var a=tm(t.binding,t.context);return e.createElement(Lf,{className:"rdformsLangControl",variant:fi.materialVariant},e.createElement(Th,{inputProps:{"aria-labelledby":t.labelledby},value:r,disabled:!!a,onChange:function(e){t.binding.setLanguage(e.target.value),o(e.target.value)}},i.map((function(t){return null===t?e.createElement(Yh,{key:"_none",value:"_none",disabled:!0},"─────"):e.createElement(Yh,{key:t.value,value:t.value},t.label||" ")}))))},im=fi.editorRegistry;im.itemtype("text").register((function(t,n,r){var o=n.getItem(),i=o.getNodetype(),a=o.hasStyle("multiline"),s=o.hasStyle("externalLink"),l="LANGUAGE_LITERAL"===i||"PLAIN_LITERAL"===i,u=o.getPattern(),c=u?new RegExp(u):null,d=function(){var t=nm((0,e.useState)(n.getGist()),2),i=t[0],u=t[1],d=n.getValue();(0,e.useEffect)((function(){r.clear=function(){u(""),r.clearLanguage&&r.clearLanguage()}}),[]);var f=null===i||""===i||!c||c.test(i),p=r.view.getLabelIndex(n),h={value:i,"aria-labelledby":p,onChange:function(e){var t=e.target.value;!c||c.test(t)?n.setGist(t):n.setGist(""),u(t)}},m=r.view.messages,g=tm(n,r);return e.createElement(e.Fragment,null,e.createElement(Dh,{className:s||l?"rdformsTwoThirds":"",multiline:a,placeholder:o.getPlaceholder(),error:!f,disabled:!!g,helperText:f?"":o.getHelp()||"",variant:fi.materialVariant,inputProps:h}),s&&(null!=d||""===d)&&e.createElement(Fh,{"aria-label":m.openLinkExternally,disabled:!f,target:"_blank",href:d,title:d},e.createElement(jh.Z,null)),l?e.createElement(om,{binding:n,context:r,labelledby:p}):"")};t.appendChild(e.createElement(d,{key:n.getHash()}))}));var am=function(t){return function(n,r,o){var i=t?new RegExp(t):null,a=r.getItem(),s=function(){var t=nm((0,e.useState)(r.getGist()),2),n=t[0],s=t[1];(0,e.useEffect)((function(){o.clear=function(){return s("")}}),[]);var l=!n||!i||i.test(n),u={value:n,"aria-labelledby":o.view.getLabelIndex(r),onChange:function(e){var t=e.target.value;!i||i.test(t)?r.setGist(t):r.setGist(""),s(t)}};return e.createElement(Dh,{error:!l,placeholder:a.getPlaceholder(),helperText:l?"":a.getHelp()||"",variant:fi.materialVariant,inputProps:u})};n.appendChild(e.createElement(s,{key:r.getHash()}))}};function sm(){return(sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return um(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return um(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function um(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}im.itemtype("text").datatype("xsd:integer").register(am("^-?\\d+$")),im.itemtype("text").datatype("xsd:decimal").register(am("^-?(\\d+(\\.\\d+)?)$"));var cm=fi.presenterRegistry,dm=function(e){return function(t,n,r){var o,i=n.getChoice(),a=r.view instanceof Jc;i&&(a&&i.editdescription?o=Xo.getLocalizedValue(i.editdescription).value:i.description&&(o=Xo.getLocalizedValue(i.description).value),e(t,n,i,o,a))}};cm.itemtype("choice").style("image").register(dm((function(t,n,r,o){t.appendChild(e.createElement("img",{key:n.getHash(),className:"rdformsImage",title:o||r.value,src:r.value}))}))),cm.itemtype("choice").style("stars").register(dm((function(t,n,r){isNaN(parseInt(r.value,10))||t.appendChild(e.createElement("span",{key:n.getHash(),className:"rdformsStar"}))})));var fm=function(e,t){return Xo.getLocalizedValue(t&&e.editlabel||e.label)};cm.itemtype("choice").register(dm((function(t,n,r,o,i){var a=n.getItem(),s=o||r.seeAlso||r.value;if(a.hasStaticChoices()&&!a.hasStyle("externalLink")||a.hasStyle("noLink"))t.appendChild(e.createElement((function(){var t=lm((0,e.useState)(fm(r,i)),2),o=t[0],a=t[1];(0,e.useEffect)((function(){null!=r.load&&r.load((function(){a(fm(r,i))}))}),[]);var l=o.lang?{lang:o.lang}:{};return e.createElement("div",sm({key:n.getHash()},l,{title:s}),o.value)})));else{var l,u=(l=a.hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,n)||{}:Jo.attachLinkBehaviour(t,n)||{}).component||null;delete l.component,t.appendChild(e.createElement((function(){var t=lm((0,e.useState)(fm(r,i)),2),n=t[0],o=t[1];return(0,e.useEffect)((function(){null!=r.load&&r.load((function(){o(fm(r,i))}))}),[]),n.lang&&(l.lang=n.lang),e.createElement("a",sm({},l,{title:s,href:r.seeAlso||r.value}),e.createElement("span",null,n.value),u)}),{key:n.getHash()}))}})));o(7872);function pm(e){return(0,X.ZP)("PrivateSwitchBase",e)}(0,L.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hm=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mm=(0,h.ZP)(ne)(({ownerState:e})=>(0,u.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),gm=(0,h.ZP)("input",{shouldForwardProp:h.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ym=e.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:y,name:v,onBlur:b,onChange:w,onFocus:x,readOnly:S,required:_=!1,tabIndex:k,type:E,value:C}=e,P=(0,l.Z)(e,hm),[T,O]=(0,ls.Z)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=jd();let A=s;R&&void 0===A&&(A=R.disabled);const M="checkbox"===E||"radio"===E,D=(0,u.Z)({},e,{checked:T,disabled:A,disableFocusRipple:d,edge:p}),j=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&"edge"+(0,re.Z)(o)],input:["input"]};return(0,f.Z)(i,pm,t)})(D);return(0,I.jsxs)(mm,(0,u.Z)({component:"span",className:(0,c.Z)(j.root,i),centerRipple:!0,focusRipple:!d,disabled:A,tabIndex:null,role:void 0,onFocus:e=>{x&&x(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{b&&b(e),R&&R.onBlur&&R.onBlur(e)},ownerState:D,ref:t},P,{children:[(0,I.jsx)(gm,(0,u.Z)({autoFocus:n,checked:r,defaultChecked:a,className:j.input,disabled:A,id:M?m:void 0,name:v,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;O(t),w&&w(e,t)},readOnly:S,ref:y,required:_,ownerState:D,tabIndex:k,type:E},"checkbox"===E&&void 0===C?{}:{value:C},g)),T?o:h]}))})),vm=(0,bh.Z)((0,I.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),bm=(0,bh.Z)((0,I.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),wm=(0,h.ZP)("span",{shouldForwardProp:h.FO})({position:"relative",display:"flex"}),xm=(0,h.ZP)(vm)({transform:"scale(1)"}),Sm=(0,h.ZP)(bm)(({theme:e,ownerState:t})=>(0,u.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));const _m=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=(0,u.Z)({},e,{checked:t});return(0,I.jsxs)(wm,{className:n.root,ownerState:o,children:[(0,I.jsx)(xm,{fontSize:r,className:n.background,ownerState:o}),(0,I.jsx)(Sm,{fontSize:r,className:n.dot,ownerState:o})]})};var km=o(7450);const Em=e.createContext(void 0);function Cm(e){return(0,X.ZP)("MuiRadio",e)}const Pm=(0,L.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Tm=["checked","checkedIcon","color","icon","name","onChange","size","className"],Om=(0,h.ZP)(ym,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t["size"+(0,re.Z)(n.size)],t["color"+(0,re.Z)(n.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{["&."+Pm.checked]:{color:(e.vars||e).palette[t.color].main}},{["&."+Pm.disabled]:{color:(e.vars||e).palette.action.disabled}}));const Rm=(0,I.jsx)(_m,{checked:!0}),Am=(0,I.jsx)(_m,{}),Mm=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=Rm,color:d="primary",icon:p=Am,name:h,onChange:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Tm),w=(0,u.Z)({},i,{color:d,size:y}),x=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root","color"+(0,re.Z)(n),"medium"!==r&&"size"+(0,re.Z)(r)]};return(0,u.Z)({},t,(0,f.Z)(o,Cm,t))})(w),S=e.useContext(Em);let _=a;const k=(0,km.Z)(g,S&&S.onChange);let E=h;var C,P;return S&&(void 0===_&&(C=S.value,_="object"==typeof(P=i.value)&&null!==P?C===P:String(C)===String(P)),void 0===E&&(E=S.name)),(0,I.jsx)(Om,(0,u.Z)({type:"radio",icon:e.cloneElement(p,{fontSize:null!=(r=Am.props.fontSize)?r:y}),checkedIcon:e.cloneElement(s,{fontSize:null!=(o=Rm.props.fontSize)?o:y}),ownerState:w,classes:x,name:E,checked:_,onChange:k,ref:n,className:(0,c.Z)(x.root,v)},b))}));function Dm(e){return(0,X.ZP)("MuiFormGroup",e)}(0,L.Z)("MuiFormGroup",["root","row","error"]);const jm=["className","row"],Im=(0,h.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Nm=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormGroup"}),{className:r,row:o=!1}=n,i=(0,l.Z)(n,jm),a=Md({props:n,muiFormControl:jd(),states:["error"]}),s=(0,u.Z)({},n,{row:o,error:a.error}),d=(e=>{const{classes:t,row:n,error:r}=e,o={root:["root",n&&"row",r&&"error"]};return(0,f.Z)(o,Dm,t)})(s);return(0,I.jsx)(Im,(0,u.Z)({className:(0,c.Z)(d.root,r),ownerState:s,ref:t},i))})),Lm=["actions","children","defaultValue","name","onChange","value"],Zm=e.forwardRef((function(t,n){const{actions:r,children:o,defaultValue:i,name:a,onChange:s,value:c}=t,d=(0,l.Z)(t,Lm),f=e.useRef(null),[p,h]=(0,ls.Z)({controlled:c,default:i,name:"RadioGroup"});e.useImperativeHandle(r,()=>({focus:()=>{let e=f.current.querySelector("input:not(:disabled):checked");e||(e=f.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);const m=(0,g.Z)(n,f),y=(0,ss.Z)(a),v=e.useMemo(()=>({name:y,onChange(e){h(e.target.value),s&&s(e,e.target.value)},value:p}),[y,s,h,p]);return(0,I.jsx)(Em.Provider,{value:v,children:(0,I.jsx)(Nm,(0,u.Z)({role:"radiogroup",ref:m},d,{children:o}))})}));const Fm=(0,o(2360).ZP)();var Bm=o(9628),Vm=o(8010);const zm=["sx"];function Wm(e){const{sx:t}=e,n=(0,l.Z)(e,zm),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Vm.Z;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,_d.P)(n)?(0,u.Z)({},r,n):r}:(0,u.Z)({},r,t),(0,u.Z)({},o,{sx:i})}var Um=o(6268),$m=o(5408),Hm=o(2605);const Ym=["component","direction","spacing","divider","children","className","useFlexGap"],Gm=(0,Um.Z)(),qm=Fm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Km(e){return(0,Bm.Z)({props:e,name:"MuiStack",defaultTheme:Gm})}function Xm(t,n){const r=e.Children.toArray(t).filter(Boolean);return r.reduce((t,o,i)=>(t.push(o),i<r.length-1&&t.push(e.cloneElement(n,{key:"separator-"+i})),t),[])}const Qm=({ownerState:e,theme:t})=>{let n=(0,u.Z)({display:"flex",flexDirection:"column"},(0,$m.k9)({theme:t},(0,$m.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=(0,Hm.hB)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=(0,$m.P$)({values:e.direction,base:o}),a=(0,$m.P$)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});const s=(t,n)=>{return e.useFlexGap?{gap:(0,Hm.NA)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin"+(o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])]:(0,Hm.NA)(r,t)}};var o};n=(0,_d.Z)(n,(0,$m.k9)({theme:t},a,s))}return n=(0,$m.dt)(t.breakpoints,n),n};const Jm=function(t={}){const{createStyledComponent:n=qm,useThemeProps:r=Km,componentName:o="MuiStack"}=t,i=n(Qm);return e.forwardRef((function(e,t){const n=Wm(r(e)),{component:a="div",direction:s="column",spacing:d=0,divider:p,children:h,className:m,useFlexGap:g=!1}=n,y=(0,l.Z)(n,Ym),v={direction:s,spacing:d,useFlexGap:g},b=(0,f.Z)({root:["root"]},e=>(0,X.ZP)(o,e),{});return(0,I.jsx)(i,(0,u.Z)({as:a,ownerState:v,ref:t,className:(0,c.Z)(b.root,m)},y,{children:p?Xm(h,p):h}))}))}({createStyledComponent:(0,h.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,m.Z)({props:e,name:"MuiStack"})});function eg(e){return(0,X.ZP)("MuiTypography",e)}(0,L.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ng=(0,h.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align"+(0,re.Z)(n.align)],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),rg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},og={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ig=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTypography"}),r=(e=>og[e]||e)(n.color),o=Wm((0,u.Z)({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=rg}=o,v=(0,l.Z)(o,tg),b=(0,u.Z)({},o,{align:i,color:r,className:a,component:s,gutterBottom:d,noWrap:p,paragraph:h,variant:g,variantMapping:y}),w=s||(h?"p":y[g]||rg[g])||"span",x=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align"+(0,re.Z)(t),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,f.Z)(s,eg,a)})(b);return(0,I.jsx)(ng,(0,u.Z)({as:w,ref:t,ownerState:b,className:(0,c.Z)(x.root,a)},v))}));function ag(e){return(0,X.ZP)("MuiFormControlLabel",e)}const sg=(0,L.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lg=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ug=(0,h.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& ."+sg.label]:t.label},t.root,t["labelPlacement"+(0,re.Z)(n.labelPlacement)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&."+sg.disabled]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& ."+sg.label]:{["&."+sg.disabled]:{color:(e.vars||e).palette.text.disabled}}})),cg=(0,h.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+sg.error]:{color:(e.vars||e).palette.error.main}})),dg=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:d,disabled:p,disableTypography:h,label:g,labelPlacement:y="end",required:v,slotProps:b={}}=i,w=(0,l.Z)(i,lg),x=jd(),S=null!=(r=null!=p?p:d.props.disabled)?r:null==x?void 0:x.disabled,_=null!=v?v:d.props.required,k={disabled:S,required:_};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===d.props[e]&&void 0!==i[e]&&(k[e]=i[e])});const E=Md({props:i,muiFormControl:x,states:["error"]}),C=(0,u.Z)({},i,{disabled:S,labelPlacement:y,required:_,error:E.error}),P=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled","labelPlacement"+(0,re.Z)(r),o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,f.Z)(a,ag,t)})(C),T=null!=(o=b.typography)?o:s.typography;let O=g;return null==O||O.type===ig||h||(O=(0,I.jsx)(ig,(0,u.Z)({component:"span"},T,{className:(0,c.Z)(P.label,null==T?void 0:T.className),children:O}))),(0,I.jsxs)(ug,(0,u.Z)({className:(0,c.Z)(P.root,a),ownerState:C,ref:n},w,{children:[e.cloneElement(d,k),_?(0,I.jsxs)(Jm,{display:"block",children:[O,(0,I.jsxs)(cg,{ownerState:C,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):O]}))}));function fg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hg(){return(hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var mg=function(t){return e.createElement(dg,hg({disabled:t.disabled,label:t.choice.label,value:t.choice.value,control:e.createElement(Mm,null)},t.choice.mismatch?{className:"mismatch"}:{},{title:t.choice.description||t.choice.seeAlso||t.choice.value}))};function gg(t){var n,r=t.binding,o=r.getItem(),i=(0,e.useMemo)((function(){return"_rdforms_".concat(em+=1)}),[]),a=Qh(r,!0),s=fg((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),l=s[0],u=s[1],c=fg((0,e.useState)((function(){var e=r.getChoice();return e?e.value:""})),2),d=c[0],f=c[1],p=o.hasStyle("verticalRadioButtons")?{}:{row:!0};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]);(0,e.useEffect)((function(){t.context.clear=function(){f(""),u(!1)}}),[]);var h=tm(r,t.context);return e.createElement(e.Fragment,null,e.createElement(Lf,{component:"fieldset"},e.createElement(Zm,hg({},p,{key:"radio","aria-label":o.getEditLabel()||o.getLabel(),name:i,value:d,onChange:function(e){var t=e.target.value,n=a.find((function(e){return e.value===t}));n?(r.setChoice(n.original),u(!0===n.original.mismatch)):(r.setChoice(null),u(!1)),f(t)}}),a.map((function(t){return e.createElement(mg,{key:t.value,disabled:!!h,choice:t})})))),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}const yg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),bg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function wg(e){return(0,X.ZP)("MuiCheckbox",e)}const xg=(0,L.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Sg=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],_g=(0,h.ZP)(ym,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size"+(0,re.Z)(n.size)],"default"!==n.color&&t["color"+(0,re.Z)(n.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${xg.checked}, &.${xg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},["&."+xg.disabled]:{color:(e.vars||e).palette.action.disabled}})),kg=(0,I.jsx)(vg,{}),Eg=(0,I.jsx)(yg,{}),Cg=(0,I.jsx)(bg,{}),Pg=e.forwardRef((function(t,n){var r,o;const i=(0,m.Z)({props:t,name:"MuiCheckbox"}),{checkedIcon:a=kg,color:s="primary",icon:d=Eg,indeterminate:p=!1,indeterminateIcon:h=Cg,inputProps:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Sg),w=p?h:d,x=p?h:a,S=(0,u.Z)({},i,{color:s,indeterminate:p,size:y}),_=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate","color"+(0,re.Z)(r),"size"+(0,re.Z)(o)]},a=(0,f.Z)(i,wg,t);return(0,u.Z)({},t,a)})(S);return(0,I.jsx)(_g,(0,u.Z)({type:"checkbox",inputProps:(0,u.Z)({"data-indeterminate":p},g),icon:e.cloneElement(w,{fontSize:null!=(r=w.props.fontSize)?r:y}),checkedIcon:e.cloneElement(x,{fontSize:null!=(o=x.props.fontSize)?o:y}),ownerState:S,ref:n,className:(0,c.Z)(_.root,v)},b,{classes:_}))}));function Tg(){return(Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ag=function(t){var n=t.choice,r=t.binding,o=t.onChoiceChange,i=Og(e.useState(n.value===r.getValue()),2),a=i[0],s=i[1];return e.createElement(dg,Tg({disabled:t.disabled,label:n.label,control:e.createElement(Pg,{checked:a,onChange:function(e){r.setChoice(e.target.checked?n.original:null),s(e.target.checked),o()}})},n.mismatch?{className:"mismatch"}:{},{title:n.description||n.seeAlso||n.value}))};function Mg(t){var n,r=Og(e.useState(0),2),o=r[0],i=r[1],a=t.binding,s=a.getItem(),l=Qh(a,!0),u=(0,e.useMemo)((function(){var e=a.getParent(),n={};e.getChildBindingsFor(s).forEach((function(e){return n[e.getValue()]=e}));var r=l.map((function(r){var o=n[r.value];return o?(delete n[r.value],[r,o,bd(o,t.context)]):[r,zu(e,s),void 0]}));return Object.values(n).forEach((function(e){var t=e.getChoice();t&&r.push([t,e])})),r})),c=Og((0,e.useState)(!0===(null===(n=a.getChoice())||void 0===n?void 0:n.mismatch)),2),d=c[0],f=c[1],p=s.hasStyle("verticalCheckboxes")?{}:{row:!0},h=function(){var e=void 0!==u.find((function(e){return e[1].getChoice()&&e[1].getChoice().mismatch}));e!==d&&f(e)};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",d)}),[d]),t.context.clear=function(){u.forEach((function(e){return e[1].setChoice(null)})),f(!1),i(o+1)};var m=tm(a,t.context);return e.createElement(e.Fragment,null,e.createElement(Nm,p,u.map((function(t){return e.createElement(Ag,{key:"".concat(o,"-").concat(t[1].getHash()),choice:t[0],binding:t[1],disabled:!!t[2]||!!m,onChoiceChange:h})}))),d&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}var Dg=o(9032);const jg=t=>{const n=e.useRef({});return e.useEffect(()=>{n.current=t}),n.current};function Ig(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Ng(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Lg=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=Ig(u));const c=u?e.filter(e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Ig(r)),"start"===o?0===r.indexOf(u):r.indexOf(u)>-1}):e;return"number"==typeof r?c.slice(0,r):c}}(),Zg=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Fg(t){const{unstable_isActiveElementInListbox:n=Zg,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!t.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:f=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:v=Lg,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:_=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:k,handleHomeEndKeys:E=!t.freeSolo,id:C,includeInputInList:P=!1,inputValue:T,isOptionEqualToValue:O=((e,t)=>e===t),multiple:R=!1,onChange:A,onClose:M,onHighlightChange:D,onInputChange:j,onOpen:I,open:N,openOnFocus:L=!1,options:Z,readOnly:F=!1,selectOnFocus:B=!t.freeSolo,value:V}=t,z=(0,Sd.Z)(C);let W=_;W=e=>{const t=_(e);return"string"!=typeof t?String(t):t};const U=e.useRef(!1),$=e.useRef(!0),H=e.useRef(null),Y=e.useRef(null),[G,q]=e.useState(null),[K,X]=e.useState(-1),Q=i?0:-1,J=e.useRef(Q),[ee,te]=(0,Dg.Z)({controlled:V,default:f,name:d}),[ne,re]=(0,Dg.Z)({controlled:T,default:"",name:d,state:"inputValue"}),[oe,ie]=e.useState(!1),ae=e.useCallback((e,t)=>{if(!(R?ee.length<t.length:null!==t)&&!l)return;let n;if(R)n="";else if(null==t)n="";else{const e=W(t);n="string"==typeof e?e:""}ne!==n&&(re(n),j&&j(e,n,"reset"))},[W,ne,R,j,re,l,ee]),[se,le]=(0,Dg.Z)({controlled:N,default:!1,name:d,state:"open"}),[ue,ce]=e.useState(!0),de=!R&&null!=ee&&ne===W(ee),fe=se&&!F,pe=fe?v(Z.filter(e=>!b||!(R?ee:[ee]).some(t=>null!==t&&O(e,t))),{inputValue:de&&ue?"":ne,getOptionLabel:W}):[],he=jg({filteredOptions:pe,value:ee,inputValue:ne});e.useEffect(()=>{const e=ee!==he.value;oe&&!e||w&&!e||ae(null,ee)},[ee,ae,oe,he.value,w]);const me=se&&pe.length>0&&!F;const ge=(0,ws.Z)(e=>{-1===e?H.current.focus():G.querySelector(`[data-tag-index="${e}"]`).focus()});e.useEffect(()=>{R&&K>ee.length-1&&(X(-1),ge(-1))},[ee,R,K,ge]);const ye=(0,ws.Z)(({event:e,index:t,reason:n="auto"})=>{if(J.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),D&&D(e,-1===t?null:pe[t],n),!Y.current)return;const o=Y.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(r+"-focused"),o.classList.remove(r+"-focusVisible"));let i=Y.current;if("listbox"!==Y.current.getAttribute("role")&&(i=Y.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=Y.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(r+"-focused"),"keyboard"===n&&a.classList.add(r+"-focusVisible"),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(k?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(k?1.3:0))}}),ve=(0,ws.Z)(({event:e,diff:t,direction:n="next",reason:r="auto"})=>{if(!fe)return;const i=function(e,t){if(!Y.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=Y.current.querySelector(`[data-option-index="${n}"]`),o=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&P?-1:y&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&P?-1:y||Math.abs(t)>1?e:0:n})(),n);if(ye({index:i,reason:r,event:e}),o&&"reset"!==t)if(-1===i)H.current.value=ne;else{const e=W(pe[i]);H.current.value=e;0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&H.current.setSelectionRange(ne.length,e.length)}}),be=e.useCallback(()=>{if(!fe)return;if((()=>{if(-1!==J.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===ne&&(R?ee.length===he.value.length&&he.value.every((e,t)=>W(ee[t])===W(e)):(e=he.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=he.filteredOptions[J.current];if(e){if(pe.some(t=>W(t)===W(e)))return!0}}var e,t;return!1})())return;const e=R?ee[0]:ee;if(0!==pe.length&&null!=e){if(Y.current)if(null==e)J.current>=pe.length-1?ye({index:pe.length-1}):ye({index:J.current});else{const t=pe[J.current];if(R&&t&&-1!==Ng(ee,e=>O(t,e)))return;const n=Ng(pe,t=>O(t,e));-1===n?ve({diff:"reset"}):ye({index:n})}}else ve({diff:"reset"})},[pe.length,!R&&ee,b,ve,ye,fe,ne,R]),we=(0,ws.Z)(e=>{(0,Fa.Z)(Y,e),e&&be()});e.useEffect(()=>{be()},[be]);const xe=e=>{se||(le(!0),ce(!0),I&&I(e))},Se=(e,t)=>{se&&(le(!1),M&&M(e,t))},_e=(e,t,n,r)=>{if(R){if(ee.length===t.length&&ee.every((e,n)=>e===t[n]))return}else if(ee===t)return;A&&A(e,t,n,r),te(t)},ke=e.useRef(!1),Ee=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(R){i=Array.isArray(ee)?ee.slice():[];const e=Ng(i,e=>O(t,e));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ae(e,i),_e(e,i,o,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||Se(e,o),(!0===s||"touch"===s&&ke.current||"mouse"===s&&!ke.current)&&H.current.blur()};const Ce=(e,t)=>{if(!R)return;""===ne&&Se(e,"toggleInput");let n=K;-1===K?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=G.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),ge(n)},Pe=e=>{U.current=!0,re(""),j&&j(e,"","clear"),_e(e,R?[]:null,"clear")},Te=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":fe&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==J.current&&fe){const e=pe[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ee(t,e,"selectOption"),o&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else w&&""!==ne&&!1===de&&(R&&t.preventDefault(),Ee(t,ne,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Se(t,"escape")):c&&(""!==ne||R&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(R&&!F&&""===ne&&ee.length>0){const e=-1===K?ee.length-1:K,n=ee.slice();n.splice(e,1),_e(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(R&&!F&&""===ne&&ee.length>0&&-1!==K){const e=K,n=ee.slice();n.splice(e,1),_e(t,n,"removeOption",{option:ee[e]})}}},Oe=e=>{ie(!0),L&&!U.current&&xe(e)},Re=e=>{n(Y)?H.current.focus():(ie(!1),$.current=!0,U.current=!1,a&&-1!==J.current&&fe?Ee(e,pe[J.current],"blur"):a&&w&&""!==ne?Ee(e,ne,"blur","freeSolo"):l&&ae(e,ee),Se(e,"blur"))},Ae=e=>{const t=e.target.value;ne!==t&&(re(t),ce(!1),j&&j(e,t,"input")),""===t?p||R||_e(e,null,"clear"):xe(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ye({event:e,index:t,reason:"mouse"})},De=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),ke.current=!1},Ie=e=>t=>{const n=ee.slice();n.splice(e,1),_e(t,n,"removeOption",{option:ee[e]})},Ne=e=>{se?Se(e,"toggleInput"):xe(e)},Le=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==z&&e.preventDefault()},Ze=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&$.current&&H.current.selectionEnd-H.current.selectionStart==0&&H.current.select(),$.current=!1)},Fe=e=>{m||""!==ne&&se||Ne(e)};let Be=w&&ne.length>0;Be=Be||(R?ee.length>0:null!==ee);let Ve=pe;if(k){new Map;Ve=pe.reduce((e,t,n)=>{const r=k(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])}return m&&oe&&Re(),{getRootProps:(e={})=>(0,u.Z)({"aria-owns":me?z+"-listbox":null},e,{onKeyDown:Te(e),onMouseDown:Le,onClick:Ze}),getInputLabelProps:()=>({id:z+"-label",htmlFor:z}),getInputProps:()=>({id:z,value:ne,onBlur:Re,onFocus:Oe,onChange:Ae,onMouseDown:Fe,"aria-activedescendant":fe?"":null,"aria-autocomplete":o?"both":"list","aria-controls":me?z+"-listbox":void 0,"aria-expanded":me,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>(0,u.Z)({key:e,"data-tag-index":e,tabIndex:-1},!F&&{onDelete:Ie(e)}),getListboxProps:()=>({role:"listbox",id:z+"-listbox","aria-labelledby":z+"-label",ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(R?ee:[ee]).some(e=>null!=e&&O(t,e)),o=!!x&&x(t);return{key:null!=(n=null==S?void 0:S(t))?n:W(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseMove:Me,onClick:je,onTouchStart:De,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:z,inputValue:ne,value:ee,dirty:Be,expanded:fe&&G,popupOpen:fe,focused:oe||-1!==K,anchorEl:G,setAnchorEl:q,focusedTag:K,groupedOptions:Ve}}function Bg(e){return(0,X.ZP)("MuiListSubheader",e)}(0,L.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Vg=["className","color","component","disableGutters","disableSticky","inset"],zg=(0,h.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color"+(0,re.Z)(n.color)],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,u.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Wg=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:d=!1}=n,p=(0,l.Z)(n,Vg),h=(0,u.Z)({},n,{color:o,component:i,disableGutters:a,disableSticky:s,inset:d}),g=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root","default"!==n&&"color"+(0,re.Z)(n),!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,f.Z)(a,Bg,t)})(h);return(0,I.jsx)(zg,(0,u.Z)({as:i,className:(0,c.Z)(g.root,r),ref:t,ownerState:h},p))}));Wg.muiSkipListHighlight=!0;const Ug=Wg,$g=(0,bh.Z)((0,I.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Hg(e){return(0,X.ZP)("MuiChip",e)}const Yg=(0,L.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Gg=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qg=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{["& ."+Yg.avatar]:t.avatar},{["& ."+Yg.avatar]:t["avatar"+(0,re.Z)(s)]},{["& ."+Yg.avatar]:t["avatarColor"+(0,re.Z)(r)]},{["& ."+Yg.icon]:t.icon},{["& ."+Yg.icon]:t["icon"+(0,re.Z)(s)]},{["& ."+Yg.icon]:t["iconColor"+(0,re.Z)(o)]},{["& ."+Yg.deleteIcon]:t.deleteIcon},{["& ."+Yg.deleteIcon]:t["deleteIcon"+(0,re.Z)(s)]},{["& ."+Yg.deleteIcon]:t["deleteIconColor"+(0,re.Z)(r)]},{["& ."+Yg.deleteIcon]:t[`deleteIcon${(0,re.Z)(l)}Color${(0,re.Z)(r)}`]},t.root,t["size"+(0,re.Z)(s)],t["color"+(0,re.Z)(r)],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${(0,re.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t["deletableColor"+(0,re.Z)(r)],t[l],t[`${l}${(0,re.Z)(r)}`]]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,u.Z)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&."+Yg.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["& ."+Yg.avatar]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},["& ."+Yg.avatarColorPrimary]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},["& ."+Yg.avatarColorSecondary]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},["& ."+Yg.avatarSmall]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},["& ."+Yg.icon]:(0,u.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,u.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),["& ."+Yg.deleteIcon]:(0,u.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,p.Fq)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,p.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{["&."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>(0,u.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{["&:hover, &."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>(0,u.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?"1px solid "+e.vars.palette.Chip.defaultBorder:"1px solid "+("light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]),[`&.${Yg.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},["&."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["& ."+Yg.avatar]:{marginLeft:4},["& ."+Yg.avatarSmall]:{marginLeft:2},["& ."+Yg.icon]:{marginLeft:4},["& ."+Yg.iconSmall]:{marginLeft:2},["& ."+Yg.deleteIcon]:{marginRight:5},["& ."+Yg.deleteIconSmall]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:"1px solid "+(e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7)),[`&.${Yg.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},["& ."+Yg.deleteIcon]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Kg=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t["label"+(0,re.Z)(r)]]}})(({ownerState:e})=>(0,u.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function Xg(e){return"Backspace"===e.key||"Delete"===e.key}const Qg=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:d,deleteIcon:p,disabled:h=!1,icon:y,label:v,onClick:b,onDelete:w,onKeyDown:x,onKeyUp:S,size:_="medium",variant:k="filled",tabIndex:E,skipFocusWhenDisabled:C=!1}=r,P=(0,l.Z)(r,Gg),T=e.useRef(null),O=(0,g.Z)(T,n),R=e=>{e.stopPropagation(),w&&w(e)},A=!(!1===a||!b)||a,M=A||w?ne:d||"div",D=(0,u.Z)({},r,{component:M,disabled:h,size:_,color:s,iconColor:e.isValidElement(y)&&y.props.color||s,onDelete:!!w,clickable:A,variant:k}),j=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled","size"+(0,re.Z)(r),"color"+(0,re.Z)(o),s&&"clickable",s&&"clickableColor"+(0,re.Z)(o),a&&"deletable",a&&"deletableColor"+(0,re.Z)(o),`${l}${(0,re.Z)(o)}`],label:["label","label"+(0,re.Z)(r)],avatar:["avatar","avatar"+(0,re.Z)(r),"avatarColor"+(0,re.Z)(o)],icon:["icon","icon"+(0,re.Z)(r),"iconColor"+(0,re.Z)(i)],deleteIcon:["deleteIcon","deleteIcon"+(0,re.Z)(r),"deleteIconColor"+(0,re.Z)(o),`deleteIcon${(0,re.Z)(l)}Color${(0,re.Z)(o)}`]};return(0,f.Z)(u,Hg,t)})(D),N=M===ne?(0,u.Z)({component:d||"div",focusVisibleClassName:j.focusVisible},w&&{disableRipple:!0}):{};let L=null;w&&(L=p&&e.isValidElement(p)?e.cloneElement(p,{className:(0,c.Z)(p.props.className,j.deleteIcon),onClick:R}):(0,I.jsx)($g,{className:(0,c.Z)(j.deleteIcon),onClick:R}));let Z=null;o&&e.isValidElement(o)&&(Z=e.cloneElement(o,{className:(0,c.Z)(j.avatar,o.props.className)}));let F=null;return y&&e.isValidElement(y)&&(F=e.cloneElement(y,{className:(0,c.Z)(j.icon,y.props.className)})),(0,I.jsxs)(qg,(0,u.Z)({as:M,className:(0,c.Z)(j.root,i),disabled:!(!A||!h)||void 0,onClick:b,onKeyDown:e=>{e.currentTarget===e.target&&Xg(e)&&e.preventDefault(),x&&x(e)},onKeyUp:e=>{e.currentTarget===e.target&&(w&&Xg(e)?w(e):"Escape"===e.key&&T.current&&T.current.blur()),S&&S(e)},ref:O,tabIndex:C&&h?-1:E,ownerState:D},N,P,{children:[Z||F,(0,I.jsx)(Kg,{className:(0,c.Z)(j.label),ownerState:D,children:v}),L]}))})),Jg=(0,bh.Z)((0,I.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function ey(e){return(0,X.ZP)("MuiAutocomplete",e)}const ty=(0,L.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ny,ry;const oy=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iy=["ref"],ay=["key"],sy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{["& ."+ty.tag]:t.tag},{["& ."+ty.tag]:t["tagSize"+(0,re.Z)(s)]},{["& ."+ty.inputRoot]:t.inputRoot},{["& ."+ty.input]:t.input},{["& ."+ty.input]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>(0,u.Z)({[`&.${ty.focused} .${ty.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover ."+ty.clearIndicator]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{["& ."+ty.tag]:(0,u.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& ."+ty.inputRoot]:{flexWrap:"wrap",[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:30},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:56},["& ."+ty.input]:{width:0,minWidth:30}},["& ."+Xd.root]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Xd.root}.${zd.sizeSmall}`]:{["& ."+Xd.input]:{padding:"2px 4px 3px 0"}},["& ."+gf.root]:{padding:9,[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:39},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:65},["& ."+ty.input]:{padding:"7.5px 4px 7.5px 5px"},["& ."+ty.endAdornment]:{right:9}},[`& .${gf.root}.${zd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& ."+ty.input]:{padding:"2.5px 4px 2.5px 8px"}},["& ."+of.root]:{paddingTop:19,paddingLeft:8,[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:39},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:65},["& ."+of.input]:{padding:"7px 4px"},["& ."+ty.endAdornment]:{right:9}},[`& .${of.root}.${zd.sizeSmall}`]:{paddingBottom:1,["& ."+of.input]:{padding:"2.5px 4px"}},["& ."+zd.hiddenLabel]:{paddingTop:8},[`& .${of.root}.${zd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,["& ."+ty.input]:{paddingTop:16,paddingBottom:17}},[`& .${of.root}.${zd.hiddenLabel}.${zd.sizeSmall}`]:{["& ."+ty.input]:{paddingTop:8,paddingBottom:9}},["& ."+ty.input]:(0,u.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),ly=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uy=(0,h.ZP)(Fh,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),cy=(0,h.ZP)(Fh,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>(0,u.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),dy=(0,h.ZP)(as,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& ."+ty.option]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),fy=(0,h.ZP)(jp,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,u.Z)({},e.typography.body1,{overflow:"auto"})),py=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),hy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),my=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& ."+ty.option]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},["&."+ty.focused]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["&."+ty.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+ty.focused]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},["&."+ty.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gy=(0,h.ZP)(Ug,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yy=(0,h.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& ."+ty.option]:{paddingLeft:24}}),vy=e.forwardRef((function(t,n){var r,o,i,a;const s=(0,m.Z)({props:t,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:p=!1,autoSelect:h=!1,blurOnSelect:y=!1,ChipProps:v,className:b,clearIcon:w=ny||(ny=(0,I.jsx)(Jg,{fontSize:"small"})),clearOnBlur:x=!s.freeSolo,clearOnEscape:S=!1,clearText:_="Clear",closeText:k="Close",componentsProps:E={},defaultValue:C=(s.multiple?[]:null),disableClearable:P=!1,disableCloseOnSelect:T=!1,disabled:O=!1,disabledItemsFocusable:R=!1,disableListWrap:A=!1,disablePortal:M=!1,filterSelectedOptions:D=!1,forcePopupIcon:j="auto",freeSolo:N=!1,fullWidth:L=!1,getLimitTagsText:Z=(e=>"+"+e),getOptionLabel:F,groupBy:B,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:U="ul",ListboxProps:$,loading:H=!1,loadingText:Y="Loading…",multiple:G=!1,noOptionsText:q="No options",openOnFocus:K=!1,openText:X="Open",PaperComponent:Q=jp,PopperComponent:J=as,popupIcon:ee=ry||(ry=(0,I.jsx)(wh,{})),readOnly:te=!1,renderGroup:ne,renderInput:oe,renderOption:ie,renderTags:ae,selectOnFocus:se=!s.freeSolo,size:le="medium",slotProps:ue={}}=s,ce=(0,l.Z)(s,oy),{getRootProps:de,getInputProps:fe,getInputLabelProps:pe,getPopupIndicatorProps:he,getClearProps:me,getTagProps:ge,getListboxProps:ye,getOptionProps:ve,value:be,dirty:we,expanded:xe,id:Se,popupOpen:_e,focused:ke,focusedTag:Ee,anchorEl:Ce,setAnchorEl:Pe,inputValue:Te,groupedOptions:Oe}=Fg((0,u.Z)({},s,{componentName:"Autocomplete"})),Re=!P&&!O&&we&&!te,Ae=(!N||!0===j)&&!1!==j,{onMouseDown:Me}=fe(),{ref:De}=null!=$?$:{},je=ye(),{ref:Ie}=je,Ne=(0,l.Z)(je,iy),Le=(0,g.Z)(Ie,De),Ze=F||(e=>{var t;return null!=(t=e.label)?t:e}),Fe=(0,u.Z)({},s,{disablePortal:M,expanded:xe,focused:ke,fullWidth:L,getOptionLabel:Ze,hasClearIcon:Re,hasPopupIcon:Ae,inputFocused:-1===Ee,popupOpen:_e,size:le}),Be=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize"+(0,re.Z)(c)],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,f.Z)(d,ey,t)})(Fe);let Ve;if(G&&be.length>0){const e=e=>(0,u.Z)({className:Be.tag,disabled:O},ge(e));Ve=ae?ae(be,e,Fe):be.map((t,n)=>(0,I.jsx)(Qg,(0,u.Z)({label:Ze(t),size:le},e({index:n}),v)))}if(W>-1&&Array.isArray(Ve)){const e=Ve.length-W;!ke&&e>0&&(Ve=Ve.splice(0,W),Ve.push((0,I.jsx)("span",{className:Be.tag,children:Z(e)},Ve.length)))}const ze=ne||(e=>(0,I.jsxs)("li",{children:[(0,I.jsx)(gy,{className:Be.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,I.jsx)(yy,{className:Be.groupUl,ownerState:Fe,children:e.children})]},e.key)),We=ie||((e,t)=>{const{key:n}=e,r=(0,l.Z)(e,ay);return(0,I.jsx)("li",(0,u.Z)({},r,{children:Ze(t)}),n)}),Ue=(e,t)=>{const n=ve({option:e,index:t});return We((0,u.Z)({},n,{className:Be.option}),e,{selected:n["aria-selected"],index:t,inputValue:Te},Fe)},$e=null!=(r=ue.clearIndicator)?r:E.clearIndicator,He=null!=(o=ue.paper)?o:E.paper,Ye=null!=(i=ue.popper)?i:E.popper,Ge=null!=(a=ue.popupIndicator)?a:E.popupIndicator;return(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(sy,(0,u.Z)({ref:n,className:(0,c.Z)(Be.root,b),ownerState:Fe},de(ce),{children:oe({id:Se,disabled:O,fullWidth:!0,size:"small"===le?"small":void 0,InputLabelProps:pe(),InputProps:(0,u.Z)({ref:Pe,className:Be.inputRoot,startAdornment:Ve,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Re||Ae)&&{endAdornment:(0,I.jsxs)(ly,{className:Be.endAdornment,ownerState:Fe,children:[Re?(0,I.jsx)(uy,(0,u.Z)({},me(),{"aria-label":_,title:_,ownerState:Fe},$e,{className:(0,c.Z)(Be.clearIndicator,null==$e?void 0:$e.className),children:w})):null,Ae?(0,I.jsx)(cy,(0,u.Z)({},he(),{disabled:O,"aria-label":_e?k:X,title:_e?k:X,ownerState:Fe},Ge,{className:(0,c.Z)(Be.popupIndicator,null==Ge?void 0:Ge.className),children:ee})):null]})}),inputProps:(0,u.Z)({className:Be.input,disabled:O,readOnly:te},fe())})})),Ce?(0,I.jsx)(dy,(0,u.Z)({as:J,disablePortal:M,style:{width:Ce?Ce.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Ce,open:_e},Ye,{className:(0,c.Z)(Be.popper,null==Ye?void 0:Ye.className),children:(0,I.jsxs)(fy,(0,u.Z)({ownerState:Fe,as:Q},He,{className:(0,c.Z)(Be.paper,null==He?void 0:He.className),children:[H&&0===Oe.length?(0,I.jsx)(py,{className:Be.loading,ownerState:Fe,children:Y}):null,0!==Oe.length||N||H?null:(0,I.jsx)(hy,{className:Be.noOptions,ownerState:Fe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),Oe.length>0?(0,I.jsx)(my,(0,u.Z)({as:U,className:Be.listbox,ownerState:Fe},Ne,$,{ref:Le,children:Oe.map((e,t)=>B?ze({key:e.key,group:e.group,children:e.options.map((t,n)=>Ue(t,e.index+n))}):Ue(e,t))})):null]}))})):null]})}));function by(){return(by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function wy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xy(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}const Sy=function(t){var n,r=t.binding,o=Qh(r,!0),i=wy(function(t,n){return(0,e.useState)((function(){var e=t.getChoice()||null;return null===e?null:n.find((function(t){return t.original===e}))}))}(r,o),2),a=i[0],s=i[1],l=wy((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),u=l[0],c=l[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",u)}),[u]),(0,e.useEffect)((function(){t.context.clear=function(){s(null),c(!1)}}),[]);var d=t.context.view.getLabelIndex(r),f=tm(r,t.context);return e.createElement(e.Fragment,null,e.createElement(vy,{className:"rdformsSearch",disableClearable:!0,value:a,options:o,onChange:function(e,t){r.setChoice(t.original),s(t),c(!0===t.original.mismatch)},disabled:!!f,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label},getOptionDisabled:function(e){return!0===e.mismatch},filterSelectedOptions:!0,renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=d,e.createElement(Dh,by({placeholder:r.getItem().getPlaceholder()},t,a&&a.mismatch?{error:!0}:{},{variant:fi.materialVariant}))},disablePortal:!0}),u&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var _y=o(2761),ky=o(3502);function Ey(t){return e.createElement(ky.Z,t,e.createElement("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),e.createElement("path",{fill:"currentColor",d:"M 24,6 H 21 V 9 H 19 V 6 H 16 V 4 h 3 V 1 h 2 v 3 h 3 z"}))}const Cy=function(t){var n=(0,e.useMemo)((function(){return t.context.chooser&&t.context.chooser.supportsInlineCreate&&t.context.chooser.supportsInlineCreate(t.binding)})),r=n?t.context.view.messages.edit_browse_create:t.context.view.messages.edit_browse;return t.context.chooser.show?e.createElement(Fh,{disabled:t.disabled,"aria-label":r,title:r,onClick:t.onClick},n?e.createElement(Ey,null):e.createElement(_y.Z,null)):""};function Py(){return(Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ty(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oy(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}const Ry=function(t){var n,r=t.binding,o=Ty(Jh(r,!0),2),i=o[0],a=o[1],s=Ty((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),l=s[0],u=s[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]),(0,e.useEffect)((function(){t.context.clear=function(){a(null),u(!1)}}),[]);var c="",d="";i&&(c=i.description?Xo.getLocalizedValue(i.description).value:i.seeAlso||i.value,d=i.label?Xo.getLocalizedValue(i.label).value:i.value);var f=t.context.view.getLabelIndex(t.binding),p=tm(r,t.context);return e.createElement(e.Fragment,null,e.createElement(Dh,Py({inputProps:{"aria-labelledby":f},className:"rdformsSearch",disabled:!0},p||i&&i.mismatch?{mismatch:!0}:{},{title:c,value:d,placeholder:r.getItem().getPlaceholder(),error:l,variant:fi.materialVariant})),e.createElement(Cy,Py({},t,{disabled:!!p,onClick:function(){fi.openChoiceSelector(t.binding,(function(e){t.binding.setChoice(e),a(e),u(!0===e.mismatch)}),t.field)}})),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};o(3255);var Ay,My=o(6024);function Dy(){return(Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function jy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(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}const Ny=function(t){var n,r=t.binding,o=jy((0,e.useState)([]),2),i=o[0],a=o[1],s=jy(Jh(r,!0),2),l=s[0],u=s[1],c=jy((0,e.useState)(""),2),d=c[0],f=c[1],p=jy((0,e.useState)(!1),2),h=p[0],m=p[1],g=jy((0,e.useState)(!0===(null===(n=r.getChoice())||void 0===n?void 0:n.mismatch)),2),y=g[0],v=g[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",y)}),[y]),(0,e.useEffect)((function(){t.context.clear=function(){u(null),v(!1)}}),[]);(0,e.useEffect)((function(){var e=!0;return h&&(Ay&&clearTimeout(Ay),Ay=setTimeout((function(){Ay=void 0,t.context.chooser.search(r,d.trimStart()).then((function(t){e&&a(t.map(Xh))}))}),200)),function(){e=!1}}),[d,h]);var b=t.context.view.getLabelIndex(r),w=tm(r,t.context),x=l&&l.original.upgradeComponent;return e.createElement(e.Fragment,null,e.createElement(vy,{className:"rdformsSearch",disableClearable:!0,fullWidth:!1,value:l,options:i,filterOptions:function(e){return e},open:h,onOpen:function(){return m(!0)},onClose:function(){return m(!1)},onInputChange:function(e,t){return f(t)},onChange:function(e,t){null===t?(r.setChoice(null),u(null),v(!1)):(r.setChoice(t.original),u(t),v(!0===t.original.mismatch))},disabled:!!w,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label||e.value},getOptionDisabled:function(e){return!0===e.mismatch},renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=b,e.createElement(Dh,Dy({"aria-labelledby":b},t,l&&l.mismatch?{error:!0}:{},{placeholder:r.getItem().getPlaceholder(),onKeyDown:function(e){var t=e.key,n=e.keyCode;("Enter"===t||13===n)&&!h&&m(!0)},variant:fi.materialVariant}))},disablePortal:!0}),e.createElement(Cy,Dy({},t,{onClick:function(){fi.openChoiceSelector(t.binding,(function(e){r.setChoice(e),u(Xh(e)),v(!0===e.mismatch)}),t.field)},disabled:!!w})),l&&l.original.upgrade&&e.createElement(e.Fragment,null,e.createElement(Fh,{"aria-label":t.context.view.messages.edit_upgrade,title:t.context.view.messages.edit_upgrade,disabled:!!w,onClick:function(){l.original.upgrade(t.binding,(function(e){u(Xh(e)),v(!0===e.mismatch)}),t.field)}},e.createElement(My.Z,null)),x),y&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var Ly=fi.editorRegistry;Ly.itemtype("choice").choices().check((function(e){var t=e.getChoices();return!(e.getHierarchyProperty()||e.hasStyle("tree"))&&1===e.getCardinality().max&&!e.hasStyle("dropDown")&&(null!=t&&t.length<5||e.hasStyle("verticalRadioButtons")||e.hasStyle("horizontalRadioButtons"))})).register((function(t,n,r){t.appendChild(e.createElement(gg,{key:n.getHash(),binding:n,context:r,field:t}))}));var Zy=function(t,n,r){t.appendChild(e.createElement(Mg,{key:n.getHash(),binding:n,context:r,field:t}))};Ly.itemtype("choice").choices().style("verticalCheckBoxes").register(Zy),Ly.itemtype("choice").choices().style("horizontalCheckBoxes").register(Zy),Ly.itemtype("choice").choices().register((function(t,n,r){t.appendChild(e.createElement(Sy,{key:n.getHash(),binding:n,context:r,field:t}))})),Ly.itemtype("choice").choices("none").register((function(t,n,r){r.chooser=fi.chooserRegistry.getComponent(n.getItem()),"function"==typeof r.chooser.search?t.appendChild(e.createElement(Ny,{key:n.getHash(),binding:n,context:r,field:t})):t.appendChild(e.createElement(Ry,{key:n.getHash(),binding:n,context:r,field:t}))}));var Fy=o(336),By=o(4510),Vy=o(6540);function zy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wy(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}fi.addExpandButton=function(e,t,n,r){console.log("Expand button not yet supported")};var Uy=function(e,t){var n=e.getItem(),r=!n.hasStyle("deprecated");if(t.view.isMultiValued(n)&&r)return!0;var o=e.getCardinalityTracker(),i=t.view.showNow(e.getItem(),[]);return r&&(o.isMin()||1===o.getCardinality()&&i&&o.isDepsOk())};fi.addRemoveButton=function(t,n,r){return function(){var o=n.getItem(),i=n.getCardinalityTracker(),a=zy((0,e.useState)((function(){return Uy(n,r)})),2),s=a[0],l=a[1];(0,e.useEffect)((function(){var e=i.addListener((function(){l(Uy(n,r))}));return function(){return i.removeListener(e)}}),[]);var u=(0,e.useMemo)((function(){return function(){if(Uy(n,r)||!i.isDepsOk()&&1===i.getCardinality()){r.clear&&r.clear();var e=n.getItem().getNodetype(),a=n.getItem().getType();if("group"===a){if(n.remove(),r.view.showNow(o,[])){var s=r.view.prepareBindings(o,[]);s.length>0&&r.view.addRow(t,s[0])}t.destroy()}else"choice"===a?n.setChoice(null):n.setValue(""),"LANGUAGE_LITERAL"!==e&&"PLAIN_LITERAL"!==e||n.setLanguage("")}else r.view.isMultiValued(o)?(n.getParent().getChildBindingsFor(o).slice(0).forEach((function(e){e.remove()})),t.parent.destroy()):(n.remove(),t.destroy())}})),c=tm(n,r),d=s?r.view.messages.edit_clear:r.view.messages.edit_remove;return e.createElement(Fh,{size:"small","aria-label":d,disabled:!!c,title:d,onClick:u},s?e.createElement(By.Z,{fontSize:"small"}):e.createElement(Fy.Z,{fontSize:"small"}))}},fi.addCreateChildButton=function(t,n,r,o){return function(){var n=r.getItem(),i=r.getCardinalityTracker(),a=zy((0,e.useState)(i.isMax()||!i.isDepsOk()||n.hasStyle("deprecated")),2),s=a[0],l=a[1];(0,e.useEffect)((function(){o.rememberParent=r.getParent();var e=i.addListener((function(){l(i.isMax()||!i.isDepsOk())}));return function(){return i.removeListener(e)}}),[]);var u=n.getEditLabel()||n.getLabel();u=null!=u&&""!==u?u.charAt(0).toUpperCase()+u.slice(1):"";var c=o.view.messages.edit_add;return e.createElement(pe,{className:"rdformsAddChild",onClick:function(){if(!i.isMax()){var e=zu(o.rememberParent,n);o.view.addRow(t,e)}},"aria-label":c,title:c,disabled:s,variant:"text",color:"primary",startIcon:e.createElement(Vy.Z,null)},u)}};var $y=o(539);function Hy(t,n,r,o,i){const[a,s]=e.useState(()=>i&&r?r(t).matches:o?o(t).matches:n);return(0,Id.Z)(()=>{let e=!0;if(!r)return;const n=r(t),o=()=>{e&&s(n.matches)};return o(),n.addListener(o),()=>{e=!1,n.removeListener(o)}},[t,r]),a}const Yy=t.useSyncExternalStore;function Gy(t,n,r,o,i){const a=e.useCallback(()=>n,[n]),s=e.useMemo(()=>{if(i&&r)return()=>r(t).matches;if(null!==o){const{matches:e}=o(t);return()=>e}return a},[a,t,o,i,r]),[l,u]=e.useMemo(()=>{if(null===r)return[a,()=>()=>{}];const e=r(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]},[a,r,t]);return Yy(u,l,s)}function qy(e,t={}){const n=(0,rs.Z)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,$y.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==Yy?Gy:Hy)(l,o,i,a,s)}const Ky={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:t+" view is open, go to text input view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":"Selected time is "+n.format(t,"fullTime")}`,hoursClockNumberText:e=>e+" hours",minutesClockNumberText:e=>e+" minutes",secondsClockNumberText:e=>e+" seconds",openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose date, selected date is "+t.format(t.date(e),"fullDate"):"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose time, selected time is "+t.format(t.date(e),"fullTime"):"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Xy=Ky;Qy=Ky,(0,u.Z)({},Qy);var Qy;const Jy=e.createContext(null);function ev(t){const n=(0,m.Z)({props:t,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:o,dateFormats:i,dateLibInstance:a,locale:s,adapterLocale:l,localeText:c}=n;const d=e.useMemo(()=>new o({locale:null!=l?l:s,formats:i,instance:a}),[o,s,l,i,a]),f=e.useMemo(()=>({minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}),[d]),p=e.useMemo(()=>({utils:d,defaultDates:f,localeText:(0,u.Z)({},Xy,null!=c?c:{})}),[f,d,c]);return(0,I.jsx)(Jy.Provider,{value:p,children:r})}const tv=()=>{const t=e.useContext(Jy);if(null===t)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return t},nv=()=>tv().utils,rv=()=>tv().defaultDates,ov=()=>tv().localeText,iv=()=>{const t=nv();return e.useRef(t.date()).current},av=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let l=e,u=e;for(a.isBefore(e,o)&&(l=a.date(o),u=null),a.isAfter(e,r)&&(u&&(u=a.date(r)),l=null);l||u;){if(l&&a.isAfter(l,r)&&(l=null),u&&a.isBefore(u,o)&&(u=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},sv=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},lv=(e,t,n)=>{if(null==t)return n;const r=e.date(t);return e.isValid(r)?r:n},uv=e=>1===e.length&&"year"===e[0],cv=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function dv(e,t){var n;const r=nv(),o=rv(),i=(0,m.Z)({props:e,name:t}),a=null!=(n=i.views)?n:["year","day"];return(0,u.Z)({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>uv(e)?{inputFormat:t.formats.year}:cv(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(a,r),i,{views:a,minDate:lv(r,i.minDate,o.minDate),maxDate:lv(r,i.maxDate,o.maxDate)})}const fv={emptyValue:null,getTodayValue:e=>e.date(),parseInput:sv,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function pv(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=pv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const hv=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=pv(e))&&(r&&(r+=" "),r+=t);return r};const mv=e.createContext();function gv(e){return(0,X.ZP)("MuiGrid",e)}const yv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],vv=(0,L.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-"+e),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-"+e),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-"+e),...yv.map(e=>"grid-xs-"+e),...yv.map(e=>"grid-sm-"+e),...yv.map(e=>"grid-md-"+e),...yv.map(e=>"grid-lg-"+e),...yv.map(e=>"grid-xl-"+e)]),bv=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function wv(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function xv({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(e=>{""===n&&0!==t[e]&&(n=e)});const r=Object.keys(e).sort((t,n)=>e[t]-e[n]);return r.slice(0,r.indexOf(n))}const Sv=(0,h.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n["spacing-xs-"+String(e)]];const r=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])}),r}(a,u,t));const d=[];return u.forEach(e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t["direction-xs-"+String(o)],"wrap"!==s&&t["wrap-xs-"+String(s)],...d]}})(({ownerState:e})=>(0,u.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),(function({theme:e,ownerState:t}){const n=(0,$m.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,$m.k9)({theme:e},n,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > ."+vv.item]={maxWidth:"none"}),t})}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,$m.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=xv({breakpoints:e.breakpoints.values,values:t})),o=(0,$m.k9)({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:"-"+wv(i),["& > ."+vv.item]:{paddingTop:wv(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,["& > ."+vv.item]:{paddingTop:0}}})}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,$m.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=xv({breakpoints:e.breakpoints.values,values:t})),o=(0,$m.k9)({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${wv(i)})`,marginLeft:"-"+wv(i),["& > ."+vv.item]:{paddingLeft:wv(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > ."+vv.item]:{paddingLeft:0}}})}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,$m.P$)({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${wv(n)})`;c={flexBasis:e,maxWidth:e}}}i=(0,u.Z)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}));const _v=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-"+String(e)];const n=[];return t.forEach(t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}}),n}(i,l));const c=[];l.forEach(t=>{const n=e[t];n&&c.push(`grid-${t}-${String(n)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==r&&"direction-xs-"+String(r),"wrap"!==a&&"wrap-xs-"+String(a),...c]};return(0,f.Z)(d,gv,t)};const kv=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiGrid"}),{breakpoints:o}=vi(),i=Wm(r),{className:a,columns:s,columnSpacing:d,component:f="div",container:p=!1,direction:h="row",item:g=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:w=!1}=i,x=(0,l.Z)(i,bv),S=y||v,_=d||v,k=e.useContext(mv),E=p?s||12:k,C={},P=(0,u.Z)({},x);o.keys.forEach(e=>{null!=x[e]&&(C[e]=x[e],delete P[e])});const T=(0,u.Z)({},i,{columns:E,container:p,direction:h,item:g,rowSpacing:S,columnSpacing:_,wrap:b,zeroMinWidth:w,spacing:v},C,{breakpoints:o.keys}),O=_v(T);return(0,I.jsx)(mv.Provider,{value:E,children:(0,I.jsx)(Sv,(0,u.Z)({ownerState:T,className:(0,c.Z)(O.root,a),as:f,ref:n},P))})})),Ev=(0,bh.Z)((0,I.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cv=(0,bh.Z)((0,I.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Pv=(0,bh.Z)((0,I.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Tv=(0,bh.Z)((0,I.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Ov=(0,bh.Z)((0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,I.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Rv=((0,bh.Z)((0,I.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,bh.Z)((0,I.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));(0,bh.Z)((0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,I.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Av(e){return(0,X.ZP)("MuiPickersToolbar",e)}const Mv=(0,L.Z)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Dv=(0,h.ZP)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),jv=(0,h.ZP)(kv,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>(0,u.Z)({flex:1},!e.isLandscape&&{alignItems:"center"})),Iv=(0,h.ZP)(Fh,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{["&."+Mv.penIconButtonLandscape]:t.penIconButtonLandscape},t.penIconButton]})({}),Nv=e=>"clock"===e?(0,I.jsx)(Ov,{color:"inherit"}):(0,I.jsx)(Tv,{color:"inherit"}),Lv=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,getMobileKeyboardInputViewButtonText:i,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:l="column",toggleMobileKeyboardView:u,toolbarTitle:c,viewType:d="calendar"}=n,p=n,h=ov(),g=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return(0,f.Z)(r,Av,t)})(p);return(0,I.jsxs)(Dv,{ref:t,className:hv(g.root,o),ownerState:p,children:[(0,I.jsx)(ig,{color:"text.secondary",variant:"overline",children:c}),(0,I.jsxs)(jv,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?l:"row",alignItems:a?"flex-start":"flex-end",children:[r,(0,I.jsx)(Iv,{onClick:u,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":i?i(s,d):h.inputModeToggleButtonAriaLabel(s,d),children:s?Nv(d):(0,I.jsx)(Rv,{color:"inherit"})})]})]})}));function Zv(e){return(0,X.ZP)("MuiDatePickerToolbar",e)}(0,L.Z)("MuiDatePickerToolbar",["root","title"]);const Fv=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Bv=(0,h.ZP)(Lv,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vv=(0,h.ZP)(ig,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>(0,u.Z)({},e.isLandscape&&{margin:"auto 16px auto auto"})),zv=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,toolbarFormat:c,toolbarPlaceholder:d="––",toolbarTitle:p,views:h}=r,g=(0,l.Z)(r,Fv),y=nv(),v=ov(),b=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],title:["title"]},Zv,t)})(r),w=null!=p?p:v.datePickerDefaultToolbarTitle,x=e.useMemo(()=>o?c?y.formatByString(o,c):uv(h)?y.format(o,"year"):cv(h)?y.format(o,"month"):/en/.test(y.getCurrentLocaleCode())?y.format(o,"normalDateWithWeekday"):y.format(o,"normalDate"):d,[o,c,d,y,h]),S=r;return(0,I.jsx)(Bv,(0,u.Z)({ref:n,toolbarTitle:w,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,isLandscape:i,className:b.root},g,{children:(0,I.jsx)(Vv,{variant:"h4",align:i?"left":"center",ownerState:S,className:b.title,children:x})}))})),Wv=e.createContext(null);function Uv(e){return(0,X.ZP)("MuiDialogActions",e)}(0,L.Z)("MuiDialogActions",["root","spacing"]);const $v=["className","disableSpacing"],Hv=(0,h.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,u.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Yv=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,i=(0,l.Z)(n,$v),a=(0,u.Z)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,f.Z)(r,Uv,t)})(a);return(0,I.jsx)(Hv,(0,u.Z)({className:(0,c.Z)(s.root,r),ownerState:a,ref:t},i))})),Gv=["onAccept","onClear","onCancel","onSetToday","actions"],qv=t=>{const{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:a}=t,s=(0,l.Z)(t,Gv),c=e.useContext(Wv),d=ov(),f="function"==typeof a?a(c):a;if(null==f||0===f.length)return null;const p=null==f?void 0:f.map(e=>{switch(e){case"clear":return(0,I.jsx)(pe,{onClick:r,children:d.clearButtonLabel},e);case"cancel":return(0,I.jsx)(pe,{onClick:o,children:d.cancelButtonLabel},e);case"accept":return(0,I.jsx)(pe,{onClick:n,children:d.okButtonLabel},e);case"today":return(0,I.jsx)(pe,{onClick:i,children:d.todayButtonLabel},e);default:return null}});return(0,I.jsx)(Yv,(0,u.Z)({},s,{children:p}))};function Kv(e){return(0,X.ZP)("MuiPickersPopper",e)}(0,L.Z)("MuiPickersPopper",["root","paper"]);function Xv(e,t){return Array.isArray(t)?t.every(t=>-1!==e.indexOf(t)):-1!==e.indexOf(t)}const Qv=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Jv=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Jv(t.shadowRoot):t:null},eb=["onClick","onTouchStart"],tb=(0,h.ZP)(as,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),nb=(0,h.ZP)(jp,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>(0,u.Z)({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}));function rb(t){var n;const r=(0,m.Z)({props:t,name:"MuiPickersPopper"}),{anchorEl:o,children:i,containerRef:a=null,onBlur:s,onClose:c,onClear:d,onAccept:p,onCancel:h,onSetToday:v,open:b,PopperProps:w,role:x,TransitionComponent:S=Mi,TrapFocusProps:_,PaperProps:k={},components:E,componentsProps:C}=r;e.useEffect(()=>{function e(e){!b||"Escape"!==e.key&&"Esc"!==e.key||c()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,b]);const P=e.useRef(null);e.useEffect(()=>{"tooltip"!==x&&(b?P.current=Jv(document):P.current&&P.current instanceof HTMLElement&&setTimeout(()=>{P.current instanceof HTMLElement&&P.current.focus()}))},[b,x]);const[T,O,R]=function(t,n){const r=e.useRef(!1),o=e.useRef(!1),i=e.useRef(null),a=e.useRef(!1);e.useEffect(()=>{if(t)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0),a.current=!1};function e(){a.current=!0}},[t]);const s=(0,y.Z)(e=>{if(!a.current)return;const t=o.current;o.current=!1;const s=(0,Uf.Z)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(r.current)return void(r.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||t||n(e)}),l=()=>{o.current=!0};return e.useEffect(()=>{if(t){const e=(0,Uf.Z)(i.current),t=()=>{r.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}},[t,s]),e.useEffect(()=>{if(t){const e=(0,Uf.Z)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),o.current=!1}}},[t,s]),[i,l,l]}(b,null!=s?s:c),A=e.useRef(null),M=(0,g.Z)(A,a),D=(0,g.Z)(M,T),j=r,N=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Kv,t)})(j),{onClick:L,onTouchStart:Z}=k,F=(0,l.Z)(k,eb),B=null!=(n=null==E?void 0:E.ActionBar)?n:qv,V=(null==E?void 0:E.PaperContent)||e.Fragment;return(0,I.jsx)(tb,(0,u.Z)({transition:!0,role:x,open:b,anchorEl:o,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),c())},className:N.root},w,{children:({TransitionProps:e,placement:t})=>(0,I.jsx)(yp,(0,u.Z)({open:b,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===x,isEnabled:()=>!0},_,{children:(0,I.jsx)(S,(0,u.Z)({},e,{children:(0,I.jsx)(nb,(0,u.Z)({tabIndex:-1,elevation:8,ref:D,onClick:e=>{O(e),L&&L(e)},onTouchStart:e=>{R(e),Z&&Z(e)},ownerState:(0,u.Z)({},j,{placement:t}),className:N.paper},F,{children:(0,I.jsxs)(V,(0,u.Z)({},null==C?void 0:C.paperContent,{children:[i,(0,I.jsx)(B,(0,u.Z)({onAccept:p,onClear:d,onCancel:h,onSetToday:v,actions:[]},null==C?void 0:C.actionBar))]}))}))}))}))}))}function ob(t){const{children:n,DateInputProps:r,KeyboardDateInputComponent:o,onClear:i,onDismiss:a,onCancel:s,onAccept:l,onSetToday:c,open:d,PopperProps:f,PaperProps:p,TransitionComponent:h,components:m,componentsProps:y}=t,v=e.useRef(null),b=(0,g.Z)(r.inputRef,v);return(0,I.jsxs)(Wv.Provider,{value:"desktop",children:[(0,I.jsx)(o,(0,u.Z)({},r,{inputRef:b})),(0,I.jsx)(rb,{role:"dialog",open:d,anchorEl:v.current,TransitionComponent:h,PopperProps:f,PaperProps:p,onClose:a,onCancel:s,onClear:i,onAccept:l,onSetToday:c,components:m,componentsProps:y,children:n})]})}function ib({onChange:t,onViewChange:n,openTo:r,view:o,views:i}){var a,s;const[l,u]=(0,ls.Z)({name:"Picker",state:"view",controlled:o,default:r&&Xv(i,r)?r:i[0]}),c=null!=(a=i[i.indexOf(l)-1])?a:null,d=null!=(s=i[i.indexOf(l)+1])?s:null,f=e.useCallback(e=>{u(e),n&&n(e)},[u,n]),p=e.useCallback(()=>{d&&f(d)},[d,f]);return{handleChangeAndOpenNext:e.useCallback((e,n)=>{const r="finish"===n,o=r&&Boolean(d)?"partial":n;t(e,o),r&&p()},[d,t,p]),nextView:d,previousView:c,openNext:p,openView:l,setOpenView:f}}const ab={x:110,y:110},sb=ab.x-ab.x,lb=0-ab.y,ub=(e,t,n)=>{const r=t-ab.x,o=n-ab.y,i=Math.atan2(sb,lb)-Math.atan2(r,o);let a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function cb(e){return(0,X.ZP)("MuiClockPointer",e)}(0,L.Z)("MuiClockPointer",["root","thumb"]);const db=["className","hasSelected","isInner","type","value"],fb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),pb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>(0,u.Z)({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:"16px solid "+e.palette.primary.main,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function hb(t){const n=(0,m.Z)({props:t,name:"MuiClockPointer"}),{className:r,isInner:o,type:i,value:a}=n,s=(0,l.Z)(n,db),c=e.useRef(i);e.useEffect(()=>{c.current=i},[i]);const d=(0,u.Z)({},n,{shouldAnimate:c.current!==i}),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],thumb:["thumb"]},cb,t)})(d);return(0,I.jsx)(fb,(0,u.Z)({style:(()=>{let e=360/("hours"===i?12:60)*a;return"hours"===i&&a>12&&(e-=360),{height:Math.round(220*(o?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:hv(r,p.root),ownerState:d},s,{children:(0,I.jsx)(pb,{ownerState:d,className:p.thumb})}))}function mb(e){return(0,X.ZP)("MuiClock",e)}(0,L.Z)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const gb=(0,h.ZP)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),yb=(0,h.ZP)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),vb=(0,h.ZP)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),bb=(0,h.ZP)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>(0,u.Z)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),wb=(0,h.ZP)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),xb=(0,h.ZP)(Fh,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},"am"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),Sb=(0,h.ZP)(Fh,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function _b(t){const n=(0,m.Z)({props:t,name:"MuiClock"}),{ampm:r,ampmInClock:o,autoFocus:i,children:a,date:s,getClockLabelText:l,handleMeridiemChange:u,isTimeDisabled:c,meridiemMode:d,minutesStep:p=1,onChange:h,selectedId:g,type:y,value:v,disabled:b,readOnly:w,className:x}=n,S=n,_=nv(),k=e.useContext(Wv),E=e.useRef(!1),C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},mb,t)})(S),P=c(v,y),T=!r&&"hours"===y&&(v<1||v>12),O=(e,t)=>{b||w||c(e,y)||h(e,t)},R=(e,t)=>{let{offsetX:n,offsetY:o}=e;if(void 0===n){const t=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===y||"minutes"===y?((e,t,n=1)=>{const r=6*n;let{value:o}=ub(r,e,t);return o=o*n%60,o})(n,o,p):((e,t,n)=>{const{value:r,distance:o}=ub(30,e,t);let i=r||12;return n?i%=12:o<74&&(i+=12,i%=24),i})(n,o,Boolean(r));O(i,t)},A=e.useMemo(()=>"hours"===y||v%5==0,[y,v]),M="minutes"===y?p:1,D=e.useRef(null);(0,ji.Z)(()=>{i&&D.current.focus()},[i]);return(0,I.jsxs)(gb,{className:hv(x,C.root),children:[(0,I.jsxs)(yb,{className:C.clock,children:[(0,I.jsx)(bb,{onTouchMove:e=>{E.current=!0,R(e,"shallow")},onTouchEnd:e=>{E.current&&(R(e,"finish"),E.current=!1)},onMouseUp:e=>{E.current&&(E.current=!1),R(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&R(e.nativeEvent,"shallow")},ownerState:{disabled:b},className:C.squareMask}),!P&&(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(wb,{className:C.pin}),s&&(0,I.jsx)(hb,{type:y,value:v,isInner:T,hasSelected:A})]}),(0,I.jsx)(vb,{"aria-activedescendant":g,"aria-label":l(y,s,_),ref:D,role:"listbox",onKeyDown:e=>{if(!E.current)switch(e.key){case"Home":O(0,"partial"),e.preventDefault();break;case"End":O("minutes"===y?59:23,"partial"),e.preventDefault();break;case"ArrowUp":O(v+M,"partial"),e.preventDefault();break;case"ArrowDown":O(v-M,"partial"),e.preventDefault()}},tabIndex:0,className:C.wrapper,children:a})]}),r&&("desktop"===k||o)&&(0,I.jsxs)(e.Fragment,{children:[(0,I.jsx)(xb,{onClick:w?void 0:()=>u("am"),disabled:b||null===d,ownerState:S,className:C.amButton,children:(0,I.jsx)(ig,{variant:"caption",children:"AM"})}),(0,I.jsx)(Sb,{disabled:b||null===d,onClick:w?void 0:()=>u("pm"),ownerState:S,className:C.pmButton,children:(0,I.jsx)(ig,{variant:"caption",children:"PM"})})]})]})}function kb(e){return(0,X.ZP)("MuiClockNumber",e)}const Eb=(0,L.Z)("MuiClockNumber",["root","selected","disabled"]),Cb=["className","disabled","index","inner","label","selected"],Pb=(0,h.ZP)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Eb.disabled]:t.disabled},{["&."+Eb.selected]:t.selected}]})(({theme:e,ownerState:t})=>(0,u.Z)({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},["&."+Eb.selected]:{color:e.palette.primary.contrastText},["&."+Eb.disabled]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&(0,u.Z)({},e.typography.body2,{color:e.palette.text.secondary})));function Tb(e){const t=(0,m.Z)({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,c=(0,l.Z)(t,Cb),d=t,p=(e=>{const{classes:t,selected:n,disabled:r}=e,o={root:["root",n&&"selected",r&&"disabled"]};return(0,f.Z)(o,kb,t)})(d),h=o%12/12*Math.PI*2-Math.PI/2,g=91*(i?.65:1),y=Math.round(Math.cos(h)*g),v=Math.round(Math.sin(h)*g);return(0,I.jsx)(Pb,(0,u.Z)({className:hv(n,p.root),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${y}px, ${v+92}px`},ownerState:d},c,{children:a}))}const Ob=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=i.formatNumber(a);const c=u(t);s.push((0,I.jsx)(Tb,{id:c?o:void 0,index:t,inner:l,selected:c,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},Rb=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([e,i],a)=>{const s=e===t;return(0,I.jsx)(Tb,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(i)},e)})};function Ab(e){return(0,X.ZP)("MuiPickersArrowSwitcher",e)}(0,L.Z)("MuiPickersArrowSwitcher",["root","spacer","button"]);const Mb=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Db=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),jb=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Ib=(0,h.ZP)(Fh,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,u.Z)({},e.hidden&&{visibility:"hidden"})),Nb=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPickersArrowSwitcher"}),{children:r,className:o,components:i,componentsProps:a,isLeftDisabled:s,isLeftHidden:c,isRightDisabled:d,isRightHidden:p,leftArrowButtonText:h,onLeftClick:g,onRightClick:y,rightArrowButtonText:v}=n,b=(0,l.Z)(n,Mb),w="rtl"===vi().direction,x=(null==a?void 0:a.leftArrowButton)||{},S=(null==i?void 0:i.LeftArrowIcon)||Cv,_=(null==a?void 0:a.rightArrowButton)||{},k=(null==i?void 0:i.RightArrowIcon)||Pv,E=n,C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],spacer:["spacer"],button:["button"]},Ab,t)})(E);return(0,I.jsxs)(Db,(0,u.Z)({ref:t,className:hv(C.root,o),ownerState:E},b,{children:[(0,I.jsx)(Ib,(0,u.Z)({as:null==i?void 0:i.LeftArrowButton,size:"small","aria-label":h,title:h,disabled:s,edge:"end",onClick:g},x,{className:hv(C.button,x.className),ownerState:(0,u.Z)({},E,x,{hidden:c}),children:w?(0,I.jsx)(k,{}):(0,I.jsx)(S,{})})),r?(0,I.jsx)(ig,{variant:"subtitle1",component:"span",children:r}):(0,I.jsx)(jb,{className:C.spacer,ownerState:E}),(0,I.jsx)(Ib,(0,u.Z)({as:null==i?void 0:i.RightArrowButton,size:"small","aria-label":v,title:v,edge:"start",disabled:d,onClick:y},_,{className:hv(C.button,_.className),ownerState:(0,u.Z)({},E,_,{hidden:p}),children:w?(0,I.jsx)(S,{}):(0,I.jsx)(k,{})}))]}))})),Lb=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Zb=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),Fb=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):Zb(n,t)>Zb(r,t);function Bb(t,n,r){const o=nv();return{meridiemMode:((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(t,o),handleMeridiemChange:e.useCallback(e=>{const i=null==t?null:((e,t,n,r)=>{const o=Lb(r.getHours(e),t,n);return r.setHours(e,o)})(t,e,Boolean(n),o);r(i,"partial")},[n,t,r,o])}}function Vb(e){return(0,X.ZP)("MuiClockPicker",e)}(0,L.Z)("MuiClockPicker",["root","arrowSwitcher"]);const zb=(0,h.ZP)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"}),Wb=(0,h.ZP)(zb,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Ub=(0,h.ZP)(Nb,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),$b=()=>{},Hb=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiClockPicker"}),{ampm:o=!1,ampmInClock:i=!1,autoFocus:a,components:s,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:d,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y,leftArrowButtonText:v,maxTime:b,minTime:w,minutesStep:x=1,rightArrowButtonText:S,shouldDisableTime:_,showViewSwitcher:k,onChange:E,view:C,views:P=["hours","minutes"],openTo:T,onViewChange:O,className:R,disabled:A,readOnly:M}=r;$b({leftArrowButtonText:v,rightArrowButtonText:S,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y});const D=ov(),j=null!=v?v:D.openPreviousView,N=null!=S?S:D.openNextView,L=null!=p?p:D.clockLabelText,Z=null!=h?h:D.hoursClockNumberText,F=null!=g?g:D.minutesClockNumberText,B=null!=y?y:D.secondsClockNumberText,{openView:V,setOpenView:z,nextView:W,previousView:U,handleChangeAndOpenNext:$}=ib({view:C,views:P,openTo:T,onViewChange:O,onChange:E}),H=iv(),Y=nv(),G=e.useMemo(()=>c||Y.setSeconds(Y.setMinutes(Y.setHours(H,0),0),0),[c,H,Y]),{meridiemMode:q,handleMeridiemChange:K}=Bb(G,o,$),X=e.useCallback((e,t)=>{const n=Fb(d,Y),r=({start:e,end:t})=>(!w||!n(w,t))&&(!b||!n(e,b)),i=(e,n=1)=>e%n==0&&(!_||!_(e,t));switch(t){case"hours":{const t=Lb(e,q,o),n=Y.setHours(G,t);return!r({start:Y.setSeconds(Y.setMinutes(n,0),0),end:Y.setSeconds(Y.setMinutes(n,59),59)})||!i(t)}case"minutes":{const t=Y.setMinutes(G,e);return!r({start:Y.setSeconds(t,0),end:Y.setSeconds(t,59)})||!i(e,x)}case"seconds":{const t=Y.setSeconds(G,e);return!r({start:t,end:t})||!i(e)}default:throw new Error("not supported")}},[o,G,d,b,q,w,x,_,Y]),Q=(0,ss.Z)(),J=e.useMemo(()=>{switch(V){case"hours":{const e=(e,t)=>{const n=Lb(e,q,o);$(Y.setHours(G,n),t)};return{onChange:e,value:Y.getHours(G),children:Ob({date:c,utils:Y,ampm:o,onChange:e,getClockNumberText:Z,isDisabled:e=>A||X(e,"hours"),selectedId:Q})}}case"minutes":{const e=Y.getMinutes(G),t=(e,t)=>{$(Y.setMinutes(G,e),t)};return{value:e,onChange:t,children:Rb({utils:Y,value:e,onChange:t,getClockNumberText:F,isDisabled:e=>A||X(e,"minutes"),selectedId:Q})}}case"seconds":{const e=Y.getSeconds(G),t=(e,t)=>{$(Y.setSeconds(G,e),t)};return{value:e,onChange:t,children:Rb({utils:Y,value:e,onChange:t,getClockNumberText:B,isDisabled:e=>A||X(e,"seconds"),selectedId:Q})}}default:throw new Error("You must provide the type for ClockView")}},[V,Y,c,o,Z,F,B,q,$,G,X,Q,A]),ee=r,te=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],arrowSwitcher:["arrowSwitcher"]},Vb,t)})(ee);return(0,I.jsxs)(Wb,{ref:n,className:hv(te.root,R),ownerState:ee,children:[k&&(0,I.jsx)(Ub,{className:te.arrowSwitcher,leftArrowButtonText:j,rightArrowButtonText:N,components:s,componentsProps:l,onLeftClick:()=>z(U),onRightClick:()=>z(W),isLeftDisabled:!U,isRightDisabled:!W,ownerState:ee}),(0,I.jsx)(_b,(0,u.Z)({autoFocus:a,date:c,ampmInClock:i,type:V,ampm:o,getClockLabelText:L,minutesStep:x,isTimeDisabled:X,meridiemMode:q,handleMeridiemChange:K,selectedId:Q,disabled:A,readOnly:M},J))]})}));function Yb(e){return(0,X.ZP)("PrivatePickersMonth",e)}const Gb=(0,L.Z)("PrivatePickersMonth",["root","selected"]),qb=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],Kb=(0,h.ZP)(ig,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Gb.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},["&."+Gb.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Xb=()=>{},Qb=t=>{const{disabled:n,onSelect:r,selected:o,value:i,tabIndex:a,hasFocus:s,onFocus:c=Xb,onBlur:d=Xb}=t,p=(0,l.Z)(t,qb),h=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,f.Z)(r,Yb,t)})(t),m=()=>{r(i)},g=e.useRef(null);return(0,Id.Z)(()=>{var e;s&&(null==(e=g.current)||e.focus())},[s]),(0,I.jsx)(Kb,(0,u.Z)({ref:g,component:"button",type:"button",className:h.root,tabIndex:a,onClick:m,onKeyDown:Qv(m),color:o?"primary":void 0,variant:o?"h5":"subtitle1",disabled:n,onFocus:e=>c(e,i),onBlur:e=>d(e,i)},p))};function Jb(e){return(0,X.ZP)("MuiMonthPicker",e)}(0,L.Z)("MuiMonthPicker",["root"]);const ew=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"];const tw=(0,h.ZP)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),nw=e.forwardRef((function(t,n){const r=nv(),o=iv(),i=function(e,t){const n=nv(),r=rv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disableFuture:!1,disablePast:!1},o,{minDate:lv(n,o.minDate,r.minDate),maxDate:lv(n,o.maxDate,r.maxDate)})}(t,"MuiMonthPicker"),{className:a,date:s,disabled:c,disableFuture:d,disablePast:p,maxDate:h,minDate:g,onChange:v,shouldDisableMonth:b,readOnly:w,disableHighlightToday:x,autoFocus:S=!1,onMonthFocus:_,hasFocus:k,onFocusedViewChange:E}=i,C=(0,l.Z)(i,ew),P=i,T=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Jb,t)})(P),O=(0,mi.Z)(),R=e.useMemo(()=>null!=s?s:r.startOfMonth(o),[o,r,s]),A=e.useMemo(()=>null!=s?r.getMonth(s):x?null:r.getMonth(o),[o,s,r,x]),[M,D]=e.useState(()=>A||r.getMonth(o)),j=e.useCallback(e=>{const t=r.startOfMonth(p&&r.isAfter(o,g)?o:g),n=r.startOfMonth(d&&r.isBefore(o,h)?o:h);return!!r.isBefore(e,t)||(!!r.isAfter(e,n)||!!b&&b(e))},[d,p,h,g,o,b,r]),N=e=>{if(w)return;const t=r.setMonth(R,e);v(t,"finish")},[L,Z]=(0,ls.Z)({name:"MonthPicker",state:"hasFocus",controlled:k,default:S}),F=e.useCallback(e=>{Z(e),E&&E(e)},[Z,E]),B=e.useCallback(e=>{j(r.setMonth(R,e))||(D(e),F(!0),_&&_(e))},[j,r,R,F,_]);e.useEffect(()=>{D(e=>null!==A&&e!==A?A:e)},[A]);const V=(0,y.Z)(e=>{switch(e.key){case"ArrowUp":B((12+M-3)%12),e.preventDefault();break;case"ArrowDown":B((12+M+3)%12),e.preventDefault();break;case"ArrowLeft":B((12+M+("ltr"===O.direction?-1:1))%12),e.preventDefault();break;case"ArrowRight":B((12+M+("ltr"===O.direction?1:-1))%12),e.preventDefault()}}),z=e.useCallback((e,t)=>{B(t)},[B]),W=e.useCallback(()=>{F(!1)},[F]),U=r.getMonth(o);return(0,I.jsx)(tw,(0,u.Z)({ref:n,className:hv(T.root,a),ownerState:P,onKeyDown:V},C,{children:r.getMonthArray(R).map(e=>{const t=r.getMonth(e),n=r.format(e,"monthShort"),o=c||j(e);return(0,I.jsx)(Qb,{value:t,selected:t===A,tabIndex:t!==M||o?-1:0,hasFocus:L&&t===M,onSelect:N,onFocus:z,onBlur:W,disabled:o,"aria-current":U===t?"date":void 0,children:n},n)})}))}));function rw(t,n,r){const{value:o,onError:i}=t,a=tv(),s=e.useRef(null),l=n({adapter:a,value:o,props:t});return e.useEffect(()=>{i&&!r(l,s.current)&&i(l,o),s.current=l},[r,i,s,l,o]),l}const ow=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),o=n.utils.date(t),i=lv(n.utils,e.minDate,n.defaultDates.minDate),a=lv(n.utils,e.maxDate,n.defaultDates.maxDate);if(null===o)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case Boolean(e.shouldDisableDate&&e.shouldDisableDate(o)):return"shouldDisableDate";case Boolean(e.disableFuture&&n.utils.isAfterDay(o,r)):return"disableFuture";case Boolean(e.disablePast&&n.utils.isBeforeDay(o,r)):return"disablePast";case Boolean(i&&n.utils.isBeforeDay(o,i)):return"minDate";case Boolean(a&&n.utils.isAfterDay(o,a)):return"maxDate";default:return null}},iw=({shouldDisableDate:t,minDate:n,maxDate:r,disableFuture:o,disablePast:i})=>{const a=tv();return e.useCallback(e=>null!==ow({adapter:a,value:e,props:{shouldDisableDate:t,minDate:n,maxDate:r,disableFuture:o,disablePast:i}}),[a,t,n,r,o,i])},aw=(e,t)=>e===t,sw=e=>rw(e,ow,aw),lw=({date:t,defaultCalendarMonth:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:d})=>{var f;const p=iv(),h=nv(),m=e.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return(0,u.Z)({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,u.Z)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return(0,u.Z)({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(c),i,h)).current,[g,y]=e.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||p,currentMonth:h.startOfMonth(null!=(f=null!=t?t:n)?f:p),slideDirection:"left"}),v=e.useCallback(e=>{y((0,u.Z)({type:"changeMonth"},e)),l&&l(e.newMonth)},[l]),b=e.useCallback(e=>{const t=null!=e?e:p;h.isSameMonth(t,g.currentMonth)||v({newMonth:h.startOfMonth(t),direction:h.isAfterDay(t,g.currentMonth)?"left":"right"})},[g.currentMonth,v,p,h]),w=iw({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:r,disablePast:o}),x=e.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),S=e.useCallback((e,t)=>{w(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})},[w]);return{calendarState:g,changeMonth:b,changeFocusedDay:S,isDateDisabled:w,onMonthSwitchingAnimationEnd:x,handleChangeMonth:v}},uw=e=>(0,X.ZP)("MuiPickersFadeTransitionGroup",e),cw=((0,L.Z)("MuiPickersFadeTransitionGroup",["root"]),(0,h.ZP)(P,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function dw(e){const t=(0,m.Z)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},uw,t)})(t);return o?n:(0,I.jsx)(cw,{className:hv(a.root,r),children:(0,I.jsx)(wp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:n},i)})}function fw(e){return(0,X.ZP)("MuiPickersDay",e)}const pw=(0,L.Z)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),hw=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],mw=({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),["&."+pw.selected]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+pw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+pw.disabled]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${pw.selected})`]:{border:"1px solid "+e.palette.text.secondary}}),gw=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},yw=(0,h.ZP)(ne,{name:"MuiPickersDay",slot:"Root",overridesResolver:gw})(mw),vw=(0,h.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:gw})(({theme:e,ownerState:t})=>(0,u.Z)({},mw({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),bw=()=>{},ww=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:c=!1,disableMargin:d=!1,isAnimating:p,onClick:h,onDaySelect:y,onFocus:v=bw,onBlur:b=bw,onKeyDown:w=bw,onMouseDown:x,outsideCurrentMonth:S,selected:_=!1,showDaysOutsideCurrentMonth:k=!1,children:E,today:C=!1}=r,P=(0,l.Z)(r,hw),T=(0,u.Z)({},r,{autoFocus:o,disabled:s,disableHighlightToday:c,disableMargin:d,selected:_,showDaysOutsideCurrentMonth:k,today:C}),O=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u={root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,f.Z)(u,fw,l)})(T),R=nv(),A=e.useRef(null),M=(0,g.Z)(A,n);(0,ji.Z)(()=>{!o||s||p||S||A.current.focus()},[o,s,p,S]);return S&&!k?(0,I.jsx)(vw,{className:hv(O.root,O.hiddenDaySpacingFiller,i),ownerState:T,role:P.role}):(0,I.jsx)(yw,(0,u.Z)({className:hv(O.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:s,tabIndex:_?0:-1,onKeyDown:e=>w(e,a),onFocus:e=>v(e,a),onBlur:e=>b(e,a),onClick:e=>{s||y(a,"finish"),S&&e.currentTarget.focus(),h&&h(e)},onMouseDown:e=>{x&&x(e),S&&e.preventDefault()}},P,{children:E||R.format(a,"dayOfMonth")}))})),xw=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,Sw=e.memo(ww,xw);function _w(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var kw=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=_w(n.className,r):n.setAttribute("class",_w(n.className&&n.className.baseVal||"",r)));var n,r}))},Ew=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}w(n,t);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&xi(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&kw(e,r),o&&kw(e,o),i&&kw(e,i)},r.render=function(){var t=this.props,n=(t.classNames,(0,l.Z)(t,["classNames"]));return e.createElement(ki,(0,u.Z)({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(e.Component);Ew.defaultProps={classNames:""},Ew.propTypes={};const Cw=Ew,Pw=e=>(0,X.ZP)("PrivatePickersSlideTransition",e),Tw=(0,L.Z)("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ow=["children","className","reduceAnimations","slideDirection","transKey"],Rw=(0,h.ZP)(P,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{["."+Tw["slideEnter-left"]]:t["slideEnter-left"]},{["."+Tw["slideEnter-right"]]:t["slideEnter-right"]},{["."+Tw.slideEnterActive]:t.slideEnterActive},{["."+Tw.slideExit]:t.slideExit},{["."+Tw["slideExitActiveLeft-left"]]:t["slideExitActiveLeft-left"]},{["."+Tw["slideExitActiveLeft-right"]]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& ."+Tw["slideEnter-left"]]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& ."+Tw["slideEnter-right"]]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& ."+Tw.slideEnterActive]:{transform:"translate(0%)",transition:t},["& ."+Tw.slideExit]:{transform:"translate(0%)"},["& ."+Tw["slideExitActiveLeft-left"]]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},["& ."+Tw["slideExitActiveLeft-right"]]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Aw=e=>(0,X.ZP)("MuiDayPicker",e),Mw=((0,L.Z)("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),e=>e.charAt(0).toUpperCase()),Dw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),jw=(0,h.ZP)(ig,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Iw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Nw=(0,h.ZP)(t=>{const{children:n,className:r,reduceAnimations:o,slideDirection:i,transKey:a}=t,s=(0,l.Z)(t,Ow),c=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Pw,t)})(t);if(o)return(0,I.jsx)("div",{className:hv(c.root,r),children:n});const d={exit:Tw.slideExit,enterActive:Tw.slideEnterActive,enter:Tw["slideEnter-"+i],exitActive:Tw["slideExitActiveLeft-"+i]};return(0,I.jsx)(Rw,{className:hv(c.root,r),childFactory:t=>e.cloneElement(t,{classNames:d}),role:"presentation",children:(0,I.jsx)(Cw,(0,u.Z)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:d},s,{children:n}),a)})},{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Lw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Zw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function Fw(t){const n=iv(),r=nv(),o=(0,m.Z)({props:t,name:"MuiDayPicker"}),i=(e=>{const{classes:t}=e;return(0,f.Z)({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Aw,t)})(o),{onFocusedDayChange:a,className:s,currentMonth:l,selectedDays:c,disabled:d,disableHighlightToday:p,focusedDay:h,isMonthSwitchingAnimating:g,loading:y,onSelectedDaysChange:v,onMonthSwitchingAnimationEnd:b,readOnly:w,reduceAnimations:x,renderDay:S,renderLoading:_=(()=>(0,I.jsx)("span",{children:"..."})),showDaysOutsideCurrentMonth:k,slideDirection:E,TransitionProps:C,disablePast:P,disableFuture:T,minDate:O,maxDate:R,shouldDisableDate:A,dayOfWeekFormatter:M=Mw,hasFocus:D,onFocusedViewChange:j,gridLabelId:N}=o,L=iw({shouldDisableDate:A,minDate:O,maxDate:R,disablePast:P,disableFuture:T}),[Z,F]=e.useState(()=>h||n),B=e.useCallback(e=>{j&&j(e)},[j]),V=e.useCallback((e,t="finish")=>{w||v(e,t)},[v,w]),z=e.useCallback(e=>{L(e)||(a(e),F(e),B(!0))},[L,a,B]),W=vi();function U(e,t){switch(e.key){case"ArrowUp":z(r.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":z(r.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=r.addDays(t,"ltr"===W.direction?-1:1),o="ltr"===W.direction?r.getPreviousMonth(t):r.getNextMonth(t),i=av({utils:r,date:n,minDate:"ltr"===W.direction?r.startOfMonth(o):n,maxDate:"ltr"===W.direction?n:r.endOfMonth(o),isDateDisabled:L});z(i||n),e.preventDefault();break}case"ArrowRight":{const n=r.addDays(t,"ltr"===W.direction?1:-1),o="ltr"===W.direction?r.getNextMonth(t):r.getPreviousMonth(t),i=av({utils:r,date:n,minDate:"ltr"===W.direction?n:r.startOfMonth(o),maxDate:"ltr"===W.direction?r.endOfMonth(o):n,isDateDisabled:L});z(i||n),e.preventDefault();break}case"Home":z(r.startOfWeek(t)),e.preventDefault();break;case"End":z(r.endOfWeek(t)),e.preventDefault();break;case"PageUp":z(r.getNextMonth(t)),e.preventDefault();break;case"PageDown":z(r.getPreviousMonth(t)),e.preventDefault()}}function $(e,t){z(t)}function H(e,t){D&&r.isSameDay(Z,t)&&B(!1)}const Y=r.getMonth(l),G=c.filter(e=>!!e).map(e=>r.startOfDay(e)),q=Y,K=e.useMemo(()=>e.createRef(),[q]),X=r.startOfWeek(n),Q=e.useMemo(()=>{const e=r.startOfMonth(l),t=r.endOfMonth(l);return L(Z)||r.isAfterDay(Z,t)||r.isBeforeDay(Z,e)?av({utils:r,date:Z,minDate:e,maxDate:t,disablePast:P,disableFuture:T,isDateDisabled:L}):Z},[l,T,P,Z,L,r]);return(0,I.jsxs)("div",{role:"grid","aria-labelledby":N,children:[(0,I.jsx)(Dw,{role:"row",className:i.header,children:r.getWeekdays().map((e,t)=>{var n;return(0,I.jsx)(jw,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(X,t),"weekday"),className:i.weekDayLabel,children:null!=(n=null==M?void 0:M(e))?n:e},e+t.toString())})}),y?(0,I.jsx)(Iw,{className:i.loadingContainer,children:_()}):(0,I.jsx)(Nw,(0,u.Z)({transKey:q,onExited:b,reduceAnimations:x,slideDirection:E,className:hv(s,i.slideTransition)},C,{nodeRef:K,children:(0,I.jsx)(Lw,{ref:K,role:"rowgroup",className:i.monthContainer,children:r.getWeekArray(l).map(t=>(0,I.jsx)(Zw,{role:"row",className:i.weekContainer,children:t.map(t=>{const o=null!==Q&&r.isSameDay(t,Q),i=G.some(e=>r.isSameDay(e,t)),a=r.isSameDay(t,n),s={key:null==t?void 0:t.toString(),day:t,isAnimating:g,disabled:d||L(t),autoFocus:D&&o,today:a,outsideCurrentMonth:r.getMonth(t)!==Y,selected:i,disableHighlightToday:p,showDaysOutsideCurrentMonth:k,onKeyDown:U,onFocus:$,onBlur:H,onDaySelect:V,tabIndex:o?0:-1,role:"gridcell","aria-selected":i};return a&&(s["aria-current"]="date"),S?S(t,G,s):(0,e.createElement)(Sw,(0,u.Z)({},s,{key:s.key}))})},"week-"+t[0]))})}))]})}const Bw=e=>(0,X.ZP)("MuiPickersCalendarHeader",e),Vw=((0,L.Z)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30})),zw=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>(0,u.Z)({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Ww=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Uw=(0,h.ZP)(Fh,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),$w=(0,h.ZP)(Ev,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>(0,u.Z)({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},"year"===t.openView&&{transform:"rotate(180deg)"})),Hw=()=>{};function Yw(t){const n=(0,m.Z)({props:t,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:o={},currentMonth:i,disabled:a,disableFuture:s,disablePast:l,getViewSwitchingButtonText:c,leftArrowButtonText:d,maxDate:p,minDate:h,onMonthChange:g,onViewChange:y,openView:v,reduceAnimations:b,rightArrowButtonText:w,views:x,labelId:S}=n;Hw({leftArrowButtonText:d,rightArrowButtonText:w,getViewSwitchingButtonText:c});const _=ov(),k=null!=d?d:_.previousMonth,E=null!=w?w:_.nextMonth,C=null!=c?c:_.calendarViewSwitchingButtonAriaLabel,P=nv(),T=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Bw,t)})(n),O=o.switchViewButton||{},R=function(t,{disableFuture:n,maxDate:r}){const o=nv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(n&&o.isBefore(e,r)?e:r);return!o.isAfter(i,t)},[n,r,t,o])}(i,{disableFuture:s,maxDate:p}),A=function(t,{disablePast:n,minDate:r}){const o=nv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(n&&o.isAfter(e,r)?e:r);return!o.isBefore(i,t)},[n,r,t,o])}(i,{disablePast:l,minDate:h});if(1===x.length&&"year"===x[0])return null;const M=n;return(0,I.jsxs)(Vw,{ownerState:M,className:T.root,children:[(0,I.jsxs)(zw,{role:"presentation",onClick:()=>{if(1!==x.length&&y&&!a)if(2===x.length)y(x.find(e=>e!==v)||x[0]);else{const e=0!==x.indexOf(v)?0:1;y(x[e])}},ownerState:M,"aria-live":"polite",className:T.labelContainer,children:[(0,I.jsx)(dw,{reduceAnimations:b,transKey:P.format(i,"monthAndYear"),children:(0,I.jsx)(Ww,{id:S,ownerState:M,className:T.label,children:P.format(i,"monthAndYear")})}),x.length>1&&!a&&(0,I.jsx)(Uw,(0,u.Z)({size:"small",as:r.SwitchViewButton,"aria-label":C(v),className:T.switchViewButton},O,{children:(0,I.jsx)($w,{as:r.SwitchViewIcon,ownerState:M,className:T.switchViewIcon})}))]}),(0,I.jsx)(wp,{in:"day"===v,children:(0,I.jsx)(Nb,{leftArrowButtonText:k,rightArrowButtonText:E,components:r,componentsProps:o,onLeftClick:()=>g(P.getPreviousMonth(i),"right"),onRightClick:()=>g(P.getNextMonth(i),"left"),isLeftDisabled:A,isRightDisabled:R})})]})}function Gw(e){return(0,X.ZP)("PrivatePickersYear",e)}const qw=(0,L.Z)("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Kw=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Xw=(0,h.ZP)("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+qw.modeDesktop]:t.modeDesktop},{["&."+qw.modeMobile]:t.modeMobile}]})(({ownerState:e})=>(0,u.Z)({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"})),Qw=(0,h.ZP)("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{["&."+qw.disabled]:t.disabled},{["&."+qw.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},["&."+qw.disabled]:{color:e.palette.text.secondary},["&."+qw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},ex=e.forwardRef((function(t,n){const{autoFocus:r,className:o,children:i,disabled:a,onClick:s,onKeyDown:c,value:d,tabIndex:p,onFocus:h=Jw,onBlur:m=Jw}=t,y=(0,l.Z)(t,Kw),v=e.useRef(null),b=(0,g.Z)(v,n),w=e.useContext(Wv),x=(0,u.Z)({},t,{wrapperVariant:w}),S=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:o}=e,i={root:["root",t&&"mode"+(0,re.Z)(t)],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return(0,f.Z)(i,Gw,o)})(x);return e.useEffect(()=>{r&&v.current.focus()},[r]),(0,I.jsx)(Xw,{className:hv(S.root,o),ownerState:x,children:(0,I.jsx)(Qw,(0,u.Z)({ref:b,disabled:a,type:"button",tabIndex:a?-1:p,onClick:e=>s(e,d),onKeyDown:e=>c(e,d),onFocus:e=>h(e,d),onBlur:e=>m(e,d),className:S.yearButton,ownerState:x},y,{children:i}))})}));function tx(e){return(0,X.ZP)("MuiYearPicker",e)}(0,L.Z)("MuiYearPicker",["root"]);const nx=(0,h.ZP)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),rx=e.forwardRef((function(t,n){const r=iv(),o=vi(),i=nv(),a=function(e,t){const n=nv(),r=rv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disablePast:!1,disableFuture:!1},o,{minDate:lv(n,o.minDate,r.minDate),maxDate:lv(n,o.maxDate,r.maxDate)})}(t,"MuiYearPicker"),{autoFocus:s,className:l,date:c,disabled:d,disableFuture:p,disablePast:h,maxDate:y,minDate:v,onChange:b,readOnly:w,shouldDisableYear:x,disableHighlightToday:S,onYearFocus:_,hasFocus:k,onFocusedViewChange:E}=a,C=a,P=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},tx,t)})(C),T=e.useMemo(()=>null!=c?c:i.startOfYear(r),[r,i,c]),O=e.useMemo(()=>null!=c?i.getYear(c):S?null:i.getYear(r),[r,c,i,S]),R=e.useContext(Wv),A=e.useRef(null),[M,D]=e.useState(()=>O||i.getYear(r)),[j,N]=(0,Dg.Z)({name:"YearPicker",state:"hasFocus",controlled:k,default:s}),L=e.useCallback(e=>{N(e),E&&E(e)},[N,E]),Z=e.useCallback(e=>!(!h||!i.isBeforeYear(e,r))||(!(!p||!i.isAfterYear(e,r))||(!(!v||!i.isBeforeYear(e,v))||(!(!y||!i.isAfterYear(e,y))||!(!x||!x(e))))),[p,h,y,v,r,x,i]),F=(e,t,n="finish")=>{if(w)return;const r=i.setYear(T,t);b(r,n)},B=e.useCallback(e=>{Z(i.setYear(T,e))||(D(e),L(!0),null==_||_(e))},[Z,i,T,L,_]);e.useEffect(()=>{D(e=>null!==O&&e!==O?O:e)},[O]);const V="desktop"===R?4:3,z=e.useCallback((e,t)=>{switch(e.key){case"ArrowUp":B(t-V),e.preventDefault();break;case"ArrowDown":B(t+V),e.preventDefault();break;case"ArrowLeft":B(t+("ltr"===o.direction?-1:1)),e.preventDefault();break;case"ArrowRight":B(t+("ltr"===o.direction?1:-1)),e.preventDefault()}},[B,o.direction,V]),W=e.useCallback((e,t)=>{B(t)},[B]),U=e.useCallback((e,t)=>{M===t&&L(!1)},[M,L]),$=i.getYear(r),H=e.useRef(null),Y=(0,g.Z)(n,H);return e.useEffect(()=>{if(s||null===H.current)return;const e=H.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=H.current.clientHeight,o=H.current.scrollTop,i=n+t;t>r||n<o||(H.current.scrollTop=i-r/2-t/2)},[s]),(0,I.jsx)(nx,{ref:Y,className:hv(P.root,l),ownerState:C,children:i.getYearRange(v,y).map(e=>{const t=i.getYear(e),n=t===O;return(0,I.jsx)(ex,{selected:n,value:t,onClick:F,onKeyDown:z,autoFocus:j&&t===M,ref:n?A:void 0,disabled:d||Z(e),tabIndex:t===M?0:-1,onFocus:W,onBlur:U,"aria-current":$===t?"date":void 0,children:i.format(e,"year")},i.format(e,"year"))})})})),ox="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),ix=e=>(0,X.ZP)("MuiCalendarPicker",e),ax=((0,L.Z)("MuiCalendarPicker",["root","viewTransitionContainer"]),["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"]);const sx=(0,h.ZP)(zb,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),lx=(0,h.ZP)(dw,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ux=e.forwardRef((function(t,n){const r=nv(),o=(0,ss.Z)(),i=function(e,t){const n=nv(),r=rv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:ox,renderLoading:()=>(0,I.jsx)("span",{children:"..."})},o,{minDate:lv(n,o.minDate,r.minDate),maxDate:lv(n,o.maxDate,r.maxDate)})}(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:s,date:c,disableFuture:d,disablePast:p,defaultCalendarMonth:h,onChange:g,onYearChange:v,onMonthChange:b,reduceAnimations:w,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:_,view:k,views:E,openTo:C,className:P,disabled:T,readOnly:O,minDate:R,maxDate:A,disableHighlightToday:M,focusedView:D,onFocusedViewChange:j}=i,N=(0,l.Z)(i,ax),{openView:L,setOpenView:Z,openNext:F}=ib({view:k,views:E,openTo:C,onChange:g,onViewChange:s}),{calendarState:B,changeFocusedDay:V,changeMonth:z,handleChangeMonth:W,isDateDisabled:U,onMonthSwitchingAnimationEnd:$}=lw({date:c,defaultCalendarMonth:h,reduceAnimations:w,onMonthChange:b,minDate:R,maxDate:A,shouldDisableDate:x,disablePast:p,disableFuture:d}),H=e.useCallback((e,t)=>{const n=r.startOfMonth(e),o=r.endOfMonth(e),i=U(e)?av({utils:r,date:e,minDate:r.isBefore(R,n)?n:R,maxDate:r.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==b||b(n)):(F(),z(n)),V(i,!0)},[V,d,p,U,A,R,g,b,z,F,r]),Y=e.useCallback((e,t)=>{const n=r.startOfYear(e),o=r.endOfYear(e),i=U(e)?av({utils:r,date:e,minDate:r.isBefore(R,n)?n:R,maxDate:r.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==v||v(i)):(F(),z(n)),V(i,!0)},[V,d,p,U,A,R,g,v,F,r,z]),G=e.useCallback((e,t)=>g(c&&e?r.mergeDateAndTime(e,c):e,t),[r,c,g]);e.useEffect(()=>{c&&z(c)},[c]);const q=i,K=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ix,t)})(q),X={disablePast:p,disableFuture:d,maxDate:A,minDate:R},Q=T&&c||R,J=T&&c||A,ee={disableHighlightToday:M,readOnly:O,disabled:T},te=o+"-grid-label",[ne,re]=(0,ls.Z)({name:"DayPicker",state:"focusedView",controlled:D,default:a?L:null}),oe=null!==ne,ie=(0,y.Z)(e=>t=>{j?j(e)(t):re(t?e:t=>t===e?null:t)}),ae=e.useRef(L);return e.useEffect(()=>{ae.current!==L&&(ae.current=L,ie(L)(!0))},[L,ie]),(0,I.jsxs)(sx,{ref:n,className:hv(K.root,P),ownerState:q,children:[(0,I.jsx)(Yw,(0,u.Z)({},N,{views:E,openView:L,currentMonth:B.currentMonth,onViewChange:Z,onMonthChange:(e,t)=>W({newMonth:e,direction:t}),minDate:Q,maxDate:J,disabled:T,disablePast:p,disableFuture:d,reduceAnimations:w,labelId:te})),(0,I.jsx)(lx,{reduceAnimations:w,className:K.viewTransitionContainer,transKey:L,ownerState:q,children:(0,I.jsxs)("div",{children:["year"===L&&(0,I.jsx)(rx,(0,u.Z)({},N,X,ee,{autoFocus:a,date:c,onChange:Y,shouldDisableYear:_,hasFocus:oe,onFocusedViewChange:ie("year")})),"month"===L&&(0,I.jsx)(nw,(0,u.Z)({},X,ee,{autoFocus:a,hasFocus:oe,className:P,date:c,onChange:H,shouldDisableMonth:S,onFocusedViewChange:ie("month")})),"day"===L&&(0,I.jsx)(Fw,(0,u.Z)({},N,B,X,ee,{autoFocus:a,onMonthSwitchingAnimationEnd:$,onFocusedDayChange:V,reduceAnimations:w,selectedDays:[c],onSelectedDaysChange:G,shouldDisableDate:x,hasFocus:oe,onFocusedViewChange:ie("day"),gridLabelId:te}))]})})]})}));function cx(e){return(0,X.ZP)("MuiInputAdornment",e)}const dx=(0,L.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fx;const px=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hx=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position"+(0,re.Z)(n.position)],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${dx.positionStart}&:not(.${dx.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),mx=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:d=!1,position:p,variant:h}=r,g=(0,l.Z)(r,px),y=jd()||{};let v=h;h&&y.variant,y&&!v&&(v=y.variant);const b=(0,u.Z)({},r,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:s,position:p,variant:v}),w=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&"position"+(0,re.Z)(o),a,r&&"hiddenLabel",i&&"size"+(0,re.Z)(i)]};return(0,f.Z)(s,cx,t)})(b);return(0,I.jsx)(Dd.Provider,{value:null,children:(0,I.jsx)(hx,(0,u.Z)({as:a,ownerState:b,className:(0,c.Z)(w.root,i),ref:n},g,{children:"string"!=typeof o||d?(0,I.jsxs)(e.Fragment,{children:["start"===p?fx||(fx=(0,I.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,I.jsx)(ig,{color:"text.secondary",children:o})}))})})),gx=t=>{const[,n]=(0,e.useReducer)(e=>e+1,0),r=(0,e.useRef)(null),{replace:o,append:i}=t,a=o?o(t.format(t.value)):t.format(t.value),s=(0,e.useRef)(!1);return(0,e.useLayoutEffect)(()=>{if(null==r.current)return;let[e,s,l,u,c]=r.current;r.current=null;const d=u&&c,f=e.slice(s.selectionStart).search(t.accept||/\d/g),p=-1!==f?f:0,h=e=>(e.match(t.accept||/\d/g)||[]).join(""),m=h(e.substr(0,s.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==m.length;++r){let o=e.indexOf(m[r],t)+1,i=h(e).indexOf(m[r],n)+1;i-n>1&&(o=t,i=n),n=Math.max(i,n),t=Math.max(t,o)}return t};if(!0===t.mask&&l&&!c){let t=g(e);const n=h(e.substr(t))[0];t=e.indexOf(n,t),e=`${e.substr(0,t)}${e.substr(t+1)}`}let y=t.format(e);null==i||s.selectionStart!==e.length||c||(l?y=i(y):""===h(y.slice(-1))&&(y=y.slice(0,-1)));const v=o?o(y):y;return a===v?n():t.onChange(v),()=>{let e=g(y);if(null!=t.mask&&(l||u&&!d))for(;y[e]&&""===h(y[e]);)e+=1;s.selectionStart=s.selectionEnd=e+(d?1+p:0)}}),(0,e.useEffect)(()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),{value:null!=r.current?r.current[0]:a,onChange:e=>{const o=e.target.value;r.current=[o,e.target,o.length>a.length,s.current,a===t.format(o)],n()}}},yx=(e,t,n)=>{const r=e.date(t);return null===t?"":e.isValid(r)?e.formatByString(r,n):""};function vx(e,t,n,r){if(!e)return!1;const o=r.formatByString(r.date("2019-01-01T09:00:00.000"),t).replace(n,"_"),i=r.formatByString(r.date("2019-11-21T22:30:00.000"),t).replace(n,"_"),a=i===o&&e===i;return!a&&r.lib,a}const bx=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],wx=e.forwardRef((function(t,n){const{className:r,components:o={},disableOpenPicker:i,getOpenDialogAriaText:a,InputAdornmentProps:s,InputProps:c,inputRef:d,openPicker:f,OpenPickerButtonProps:p,renderInput:h}=t,m=(0,l.Z)(t,bx),g=ov(),y=null!=a?a:g.openDatePickerDialogue,v=nv(),b=(({acceptRegex:t=/[\d]/gi,disabled:n,disableMaskedInput:r,ignoreInvalidInputs:o,inputFormat:i,inputProps:a,label:s,mask:l,onChange:c,rawValue:d,readOnly:f,rifmFormatter:p,TextFieldProps:h,validationError:m})=>{const g=nv(),y=g.getFormatHelperText(i),{shouldUseMaskedInput:v,maskToUse:b}=e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const e=function(e,t,n,r){if(e)return e;const o=r.formatByString(r.date("2019-01-01T09:00:00.000"),t).replace(n,"_");return o===r.formatByString(r.date("2019-11-21T22:30:00.000"),t).replace(n,"_")?o:""}(l,i,t,g);return{shouldUseMaskedInput:vx(e,i,t,g),maskToUse:e}},[t,r,i,l,g]),w=e.useMemo(()=>v&&b?((e,t)=>n=>{let r=0;return n.split("").map((o,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const a=e[r],s=e[r+1],l=t.test(o)?o:"",u="_"===a?l:a+l;r+=u.length;return i===n.length-1&&s&&"_"!==s?u?u+s:"":u}).join("")})(b,t):e=>e,[t,b,v]),x=null===d?null:g.date(d),[S,_]=e.useState(x),[k,E]=e.useState(yx(g,d,i)),C=e.useRef(),P=e.useRef(g.locale),T=e.useRef(i);e.useEffect(()=>{const e=d!==C.current,t=g.locale!==P.current,n=i!==T.current;if(C.current=d,P.current=g.locale,T.current=i,!e&&!t&&!n)return;const r=null===d?null:g.date(d),o=null===d||g.isValid(r);let a=null===S&&null===r;if(null!==S&&null!==r){const e=g.isEqual(S,r);if(e)a=!0;else{const t=Math.abs(g.getDiff(S,r));a=0===t?e:t<1e3}}if(!t&&!n&&(!o||a))return;const s=yx(g,d,i);_(r),E(s)},[g,d,i,S]);const O=e=>{const t=""===e||e===l?"":e;E(t);const n=null===t?null:g.parse(t,i);o&&!g.isValid(n)||(_(n),c(n,t||void 0))},R=gx({value:k,onChange:O,format:p||w}),A=v?R:{value:k,onChange:e=>{O(e.currentTarget.value)}};return(0,u.Z)({label:s,disabled:n,error:m,inputProps:(0,u.Z)({},A,{disabled:n,placeholder:y,readOnly:f,type:v?"tel":"text"},a)},h)})(m),w=(null==s?void 0:s.position)||"end",x=o.OpenPickerIcon||Tv;return h((0,u.Z)({ref:n,inputRef:d,className:r},b,{InputProps:(0,u.Z)({},c,{[w+"Adornment"]:i?void 0:(0,I.jsx)(mx,(0,u.Z)({position:w},s,{children:(0,I.jsx)(Fh,(0,u.Z)({edge:w,disabled:m.disabled||m.readOnly,"aria-label":y(m.rawValue,v)},p,{onClick:f,children:(0,I.jsx)(x,{})}))}))})}))}));function xx(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function Sx(e){return(0,X.ZP)("MuiCalendarOrClockPicker",e)}(0,L.Z)("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const _x=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],kx=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Ex=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),Cx={fullWidth:!0},Px=e=>"year"===e||"month"===e||"day"===e,Tx=e=>"hours"===e||"minutes"===e||"seconds"===e;function Ox(t){var n,r;const o=(0,m.Z)({props:t,name:"MuiCalendarOrClockPicker"}),{autoFocus:i,parsedValue:a,DateInputProps:s,isMobileKeyboardViewOpen:c,onDateChange:d,onViewChange:p,openTo:h,orientation:g,showToolbar:y,toggleMobileKeyboardView:v,ToolbarComponent:b=(()=>null),toolbarFormat:w,toolbarPlaceholder:x,toolbarTitle:S,views:_,dateRangeIcon:k,timeIcon:E,hideTabs:C}=o,P=(0,l.Z)(o,_x),T=null==(n=P.components)?void 0:n.Tabs,O=((t,n)=>{const[r,o]=e.useState(xx);if((0,ji.Z)(()=>{const e=()=>{o(xx())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),Xv(t,["hours","minutes","seconds"]))return!1;return"landscape"===(n||r)})(_,g),R=e.useContext(Wv),A=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Sx,t)})(o),M=null!=y?y:"desktop"!==R,D=!C&&"undefined"!=typeof window&&window.innerHeight>667,j=e.useCallback((e,t)=>{d(e,R,t)},[d,R]),N=e.useCallback(e=>{c&&v(),p&&p(e)},[c,p,v]);const{openView:L,setOpenView:Z,handleChangeAndOpenNext:F}=ib({view:void 0,views:_,openTo:h,onChange:j,onViewChange:N}),{focusedView:B,setFocusedView:V}=(({autoFocus:t,openView:n})=>{const[r,o]=e.useState(t?n:null);return{focusedView:r,setFocusedView:e.useCallback(e=>t=>{o(t?e:t=>e===t?null:t)},[])}})({autoFocus:i,openView:L});return(0,I.jsxs)(Ex,{ownerState:{isLandscape:O},className:A.root,children:[M&&(0,I.jsx)(b,(0,u.Z)({},P,{views:_,isLandscape:O,parsedValue:a,onChange:j,setOpenView:Z,openView:L,toolbarTitle:S,toolbarFormat:w,toolbarPlaceholder:x,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:v})),D&&!!T&&(0,I.jsx)(T,(0,u.Z)({dateRangeIcon:k,timeIcon:E,view:L,onChange:Z},null==(r=P.componentsProps)?void 0:r.tabs)),(0,I.jsx)(zb,{children:c?(0,I.jsx)(kx,{className:A.mobileKeyboardInputView,children:(0,I.jsx)(wx,(0,u.Z)({},s,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:Cx}))}):(0,I.jsxs)(e.Fragment,{children:[Px(L)&&(0,I.jsx)(ux,(0,u.Z)({autoFocus:i,date:a,onViewChange:Z,onChange:F,view:L,views:_.filter(Px),focusedView:B,onFocusedViewChange:V},P)),Tx(L)&&(0,I.jsx)(Hb,(0,u.Z)({},P,{autoFocus:i,date:a,view:L,views:_.filter(Tx),onChange:F,onViewChange:Z,showViewSwitcher:"desktop"===R}))]})})]})}const Rx=(t,n)=>{const{onAccept:r,onChange:o,value:i,closeOnSelect:a}=t,s=nv(),{isOpen:l,setIsOpen:c}=(({open:t,onOpen:n,onClose:r})=>{const o=e.useRef("boolean"==typeof t).current,[i,a]=e.useState(!1);e.useEffect(()=>{if(o){if("boolean"!=typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(t)}},[o,t]);return{isOpen:i,setIsOpen:e.useCallback(e=>{o||a(e),e&&n&&n(),!e&&r&&r()},[o,n,r])}})(t),d=e.useMemo(()=>n.parseInput(s,i),[n,s,i]),[f,p]=e.useState(d),[h,m]=e.useState(()=>({committed:d,draft:d,resetFallback:d})),g=e.useCallback(e=>{m(t=>{switch(e.action){case"setAll":case"acceptAndClose":return{draft:e.value,committed:e.value,resetFallback:e.value};case"setCommitted":return(0,u.Z)({},t,{draft:e.value,committed:e.value});case"setDraft":return(0,u.Z)({},t,{draft:e.value});default:return t}}),(e.forceOnChangeCall||!e.skipOnChangeCall&&!n.areValuesEqual(s,h.committed,e.value))&&o(e.value),"acceptAndClose"===e.action&&(c(!1),r&&!n.areValuesEqual(s,h.resetFallback,e.value)&&r(e.value))},[r,o,c,h,s,n]);e.useEffect(()=>{s.isValid(d)&&p(d)},[s,d]),e.useEffect(()=>{l&&g({action:"setAll",value:d,skipOnChangeCall:!0})},[l]),n.areValuesEqual(s,h.committed,d)||g({action:"setCommitted",value:d,skipOnChangeCall:!0});const y=e.useMemo(()=>({open:l,onClear:()=>{g({value:n.emptyValue,action:"acceptAndClose",forceOnChangeCall:!n.areValuesEqual(s,i,n.emptyValue)})},onAccept:()=>{g({value:h.draft,action:"acceptAndClose",forceOnChangeCall:!n.areValuesEqual(s,i,d)})},onDismiss:()=>{g({value:h.committed,action:"acceptAndClose"})},onCancel:()=>{g({value:h.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{g({value:n.getTodayValue(s),action:"acceptAndClose"})}}),[g,l,s,h,n,i,d]),[v,b]=e.useState(!1),w=e.useMemo(()=>({parsedValue:h.draft,isMobileKeyboardViewOpen:v,toggleMobileKeyboardView:()=>b(!v),onDateChange:(e,t,n="partial")=>{switch(n){case"shallow":return g({action:"setDraft",value:e,skipOnChangeCall:!0});case"partial":return g({action:"setDraft",value:e});case"finish":return g((null!=a?a:"desktop"===t)?{value:e,action:"acceptAndClose"}:{value:e,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[g,v,h.draft,a]),x=e.useCallback((e,t)=>{const r=n.valueReducer?n.valueReducer(s,f,e):e;o(r,t)},[o,n,f,s]),S={pickerProps:w,inputProps:e.useMemo(()=>({onChange:x,open:l,rawValue:i,openPicker:()=>c(!0)}),[x,l,i,c]),wrapperProps:y};return e.useDebugValue(S,()=>({MuiPickerState:{dateState:h,other:S}})),S},Ax=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],Mx=e.forwardRef((function(e,t){const n=dv(e,"MuiDesktopDatePicker"),r=null!==sw(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,fv),{PopperProps:s,PaperProps:c,ToolbarComponent:d=zv,TransitionComponent:f,components:p,componentsProps:h}=n,m=(0,l.Z)(n,Ax),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:r});return(0,I.jsx)(ob,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:s,PaperProps:c,TransitionComponent:f,components:p,componentsProps:h,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))}));function Dx(e){return(0,X.ZP)("MuiDialogContent",e)}(0,L.Z)("MuiDialogContent",["root","dividers"]);const jx=(0,L.Z)("MuiDialogTitle",["root"]),Ix=["className","dividers"],Nx=(0,h.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,u.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:"1px solid "+(e.vars||e).palette.divider,borderBottom:"1px solid "+(e.vars||e).palette.divider}:{[`.${jx.root} + &`]:{paddingTop:0}})),Lx=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=(0,l.Z)(n,Ix),a=(0,u.Z)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,f.Z)(r,Dx,t)})(a);return(0,I.jsx)(Nx,(0,u.Z)({className:(0,c.Z)(s.root,r),ownerState:a,ref:t},i))}));function Zx(e){return(0,X.ZP)("MuiDialog",e)}const Fx=(0,L.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Bx=e.createContext({}),Vx=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],zx=(0,h.ZP)(kp,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Wx=(0,h.ZP)(Op,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ux=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll"+(0,re.Z)(n.scroll)]]}})(({ownerState:e})=>(0,u.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$x=(0,h.ZP)(jp,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper"+(0,re.Z)(n.scroll)],t["paperWidth"+(0,re.Z)(String(n.maxWidth))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,["&."+Fx.paperScrollBody]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,["&."+Fx.paperScrollBody]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&."+Fx.paperScrollBody]:{margin:0,maxWidth:"100%"}})),Hx=e.forwardRef((function(t,n){const r=(0,m.Z)({props:t,name:"MuiDialog"}),o=vi(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:x,onClose:S,open:_,PaperComponent:k=jp,PaperProps:E={},scroll:C="paper",TransitionComponent:P=wp,transitionDuration:T=i,TransitionProps:O}=r,R=(0,l.Z)(r,Vx),A=(0,u.Z)({},r,{disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:w,scroll:C}),M=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll"+(0,re.Z)(n)],paper:["paper","paperScroll"+(0,re.Z)(n),"paperWidth"+(0,re.Z)(String(r)),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,f.Z)(a,Zx,t)})(A),D=e.useRef(),j=(0,Sd.Z)(s),N=e.useMemo(()=>({titleId:j}),[j]);return(0,I.jsx)(Wx,(0,u.Z)({className:(0,c.Z)(M.root,g),closeAfterTransition:!0,components:{Backdrop:zx},componentsProps:{backdrop:(0,u.Z)({transitionDuration:T,as:d},p)},disableEscapeKeyDown:y,onClose:S,open:_,ref:n,onClick:e=>{D.current&&(D.current=null,x&&x(e),S&&S(e,"backdropClick"))},ownerState:A},R,{children:(0,I.jsx)(P,(0,u.Z)({appear:!0,in:_,timeout:T,role:"presentation"},O,{children:(0,I.jsx)(Ux,{className:(0,c.Z)(M.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:A,children:(0,I.jsx)($x,(0,u.Z)({as:k,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},E,{className:(0,c.Z)(M.paper,E.className),ownerState:A,children:(0,I.jsx)(Bx.Provider,{value:N,children:h})}))})}))}))})),Yx=(0,h.ZP)(Hx)({["& ."+Fx.container]:{outline:0},["& ."+Fx.paper]:{outline:0,minWidth:320}}),Gx=(0,h.ZP)(Lx)({"&:first-of-type":{padding:0}}),qx=e=>{var t;const{children:n,DialogProps:r={},onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:l,open:c,components:d,componentsProps:f}=e,p=null!=(t=null==d?void 0:d.ActionBar)?t:qv;return(0,I.jsxs)(Yx,(0,u.Z)({open:c,onClose:a},r,{children:[(0,I.jsx)(Gx,{children:n}),(0,I.jsx)(p,(0,u.Z)({onAccept:o,onClear:i,onCancel:s,onSetToday:l,actions:["cancel","accept"]},null==f?void 0:f.actionBar))]}))},Kx=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Xx(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,PureDateInputComponent:f,components:p,componentsProps:h}=e,m=(0,l.Z)(e,Kx);return(0,I.jsxs)(Wv.Provider,{value:"mobile",children:[(0,I.jsx)(f,(0,u.Z)({components:p},m,n)),(0,I.jsx)(qx,{DialogProps:r,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,components:p,componentsProps:h,children:t})]})}const Qx=e.forwardRef((function(t,n){const{disabled:r,getOpenDialogAriaText:o,inputFormat:i,InputProps:a,inputRef:s,label:l,openPicker:c,rawValue:d,renderInput:f,TextFieldProps:p={},validationError:h,className:m}=t,g=ov(),v=null!=o?o:g.openDatePickerDialogue,b=nv(),w=e.useMemo(()=>(0,u.Z)({},a,{readOnly:!0}),[a]),x=yx(b,d,i),S=(0,y.Z)(e=>{e.stopPropagation(),c()});return f((0,u.Z)({label:l,disabled:r,ref:n,inputRef:s,error:h,InputProps:w,className:m},!t.readOnly&&!t.disabled&&{onClick:S},{inputProps:(0,u.Z)({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":v(d,b),value:x},!t.readOnly&&{onClick:S},{onKeyDown:Qv(c)})},p))})),Jx=["ToolbarComponent","value","onChange","components","componentsProps"],eS=e.forwardRef((function(e,t){const n=dv(e,"MuiMobileDatePicker"),r=null!==sw(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,fv),{ToolbarComponent:s=zv,components:c,componentsProps:d}=n,f=(0,l.Z)(n,Jx),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:r});return(0,I.jsx)(Xx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Qx,components:c,componentsProps:d,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),tS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],nS=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=n,s=(0,l.Z)(n,tS);return qy(r,{defaultMatches:!0})?(0,I.jsx)(Mx,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,I.jsx)(eS,(0,u.Z)({ref:t,DialogProps:o},s))}));function rS(e,t){var n;const r=(0,m.Z)({props:e,name:t}),o=nv(),i=null!=(n=r.ampm)?n:o.is12HourCycleInCurrentLocale(),a=ov().openTimePickerDialogue;return(0,u.Z)({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?o.formats.fullTime12h:o.formats.fullTime24h},r,{components:(0,u.Z)({OpenPickerIcon:Ov},r.components)})}const oS={emptyValue:null,parseInput:sv,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>t&&e.isValid(n)?e.mergeDateAndTime(t,n):n};function iS(e){return(0,X.ZP)("PrivatePickersToolbarText",e)}const aS=(0,L.Z)("PrivatePickersToolbarText",["root","selected"]),sS=["className","selected","value"],lS=(0,h.ZP)(ig,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+aS.selected]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,["&."+aS.selected]:{color:e.palette.text.primary}})),uS=e.forwardRef((function(e,t){const{className:n,value:r}=e,o=(0,l.Z)(e,sS),i=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,f.Z)(r,iS,t)})(e);return(0,I.jsx)(lS,(0,u.Z)({ref:t,className:hv(n,i.root),component:"span"},o,{children:r}))})),cS=["align","className","selected","typographyClassName","value","variant"],dS=(0,h.ZP)(pe,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),fS=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:i,typographyClassName:a,value:s,variant:c}=n,d=(0,l.Z)(n,cS),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Av,t)})(n);return(0,I.jsx)(dS,(0,u.Z)({variant:"text",ref:t,className:hv(o,p.root)},d,{children:(0,I.jsx)(uS,{align:r,className:a,variant:c,value:s,selected:i})}))}));function pS(e){return(0,X.ZP)("MuiTimePickerToolbar",e)}const hS=(0,L.Z)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),mS=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],gS=(0,h.ZP)(Lv,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({["& ."+Mv.penIconButtonLandscape]:{marginTop:"auto"}}),yS=(0,h.ZP)(uS,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),vS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{["&."+hS.hourMinuteLabelLandscape]:t.hourMinuteLabelLandscape,["&."+hS.hourMinuteLabelReverse]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})),bS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{["."+hS.ampmLabel]:t.ampmLabel},{["&."+hS.ampmLandscape]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{["& ."+hS.ampmLabel]:{fontSize:17}}));function wS(e){const t=(0,m.Z)({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,onChange:s,openView:c,setOpenView:d,toggleMobileKeyboardView:p,toolbarTitle:h,views:g,disabled:y,readOnly:v}=t,b=(0,l.Z)(t,mS),w=nv(),x=ov(),S=null!=h?h:x.timePickerDefaultToolbarTitle,_=vi(),k=Boolean(n&&!r),{meridiemMode:E,handleMeridiemChange:C}=Bb(o,n,s),P=t,T=(e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,f.Z)(o,pS,r)})((0,u.Z)({},P,{theme:_})),O=(0,I.jsx)(yS,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:T.separator});return(0,I.jsxs)(gS,(0,u.Z)({viewType:"clock",landscapeDirection:"row",toolbarTitle:S,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p,ownerState:P,className:T.root},b,{children:[(0,I.jsxs)(vS,{className:T.hourMinuteLabel,ownerState:P,children:[Xv(g,"hours")&&(0,I.jsx)(fS,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:"hours"===c,value:o?(R=o,n?w.format(R,"hours12h"):w.format(R,"hours24h")):"--"}),Xv(g,["hours","minutes"])&&O,Xv(g,"minutes")&&(0,I.jsx)(fS,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:"minutes"===c,value:o?w.format(o,"minutes"):"--"}),Xv(g,["minutes","seconds"])&&O,Xv(g,"seconds")&&(0,I.jsx)(fS,{variant:"h3",onClick:()=>d("seconds"),selected:"seconds"===c,value:o?w.format(o,"seconds"):"--"})]}),k&&(0,I.jsxs)(bS,{className:T.ampmSelection,ownerState:P,children:[(0,I.jsx)(fS,{disableRipple:!0,variant:"subtitle2",selected:"am"===E,typographyClassName:T.ampmLabel,value:w.getMeridiemText("am"),onClick:v?void 0:()=>C("am"),disabled:y}),(0,I.jsx)(fS,{disableRipple:!0,variant:"subtitle2",selected:"pm"===E,typographyClassName:T.ampmLabel,value:w.getMeridiemText("pm"),onClick:v?void 0:()=>C("pm"),disabled:y})]})]}));var R}const xS=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:o,minutesStep:i,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:s}=n,l=e.utils.date(t),u=Fb(s,e.utils);if(null===t)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(r&&u(r,l)):return"minTime";case Boolean(o&&u(l,o)):return"maxTime";case Boolean(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case Boolean(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case Boolean(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case Boolean(i&&e.utils.getMinutes(l)%i!=0):return"minutesStep";default:return null}},SS=(e,t)=>e===t,_S=e=>rw(e,xS,SS),kS=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],ES=e.forwardRef((function(e,t){const n=rS(e,"MuiDesktopTimePicker"),r=null!==_S(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,oS),{PaperProps:s,PopperProps:c,ToolbarComponent:d=wS,TransitionComponent:f,components:p,componentsProps:h}=n,m=(0,l.Z)(n,kS),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:r});return(0,I.jsx)(ob,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:c,PaperProps:s,TransitionComponent:f,components:p,componentsProps:h,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))})),CS=["ToolbarComponent","value","onChange","components","componentsProps"],PS=e.forwardRef((function(e,t){const n=rS(e,"MuiMobileTimePicker"),r=null!==_S(n),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(n,oS),{ToolbarComponent:s=wS,components:c,componentsProps:d}=n,f=(0,l.Z)(n,CS),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:r});return(0,I.jsx)(Xx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Qx,components:c,componentsProps:d,children:(0,I.jsx)(Ox,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),TS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],OS=e.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=n,s=(0,l.Z)(n,TS);return qy(r,{defaultMatches:!0})?(0,I.jsx)(ES,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,I.jsx)(PS,(0,u.Z)({ref:t,DialogProps:o},s))})),RS={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};class AS{constructor({locale:e,formats:t,instance:n}={}){this.lib="moment",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.getFormatHelperText=e=>{var t,n;return null!==(n=null===(t=e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g))||void 0===t?void 0:t.map(e=>{const t=e[0];return"L"===t||";"===t?this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat(e):e}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase())&&void 0!==n?n:e},this.getCurrentLocaleCode=()=>this.locale||this.moment.locale(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.date=e=>{if(null===e)return null;const t=this.moment(e);return this.locale&&t.locale(this.locale),t},this.toJsDate=e=>e.toDate(),this.isValid=e=>this.moment(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,n)=>this.moment(t).isValid()?e.diff(t,n):0,this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isBeforeMonth=(e,t)=>e.isBefore(t,"month"),this.isAfterMonth=(e,t)=>e.isAfter(t,"month"),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfDay=e=>e.clone().endOf("day"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return this.locale&&n.locale(this.locale),n.format(t)},this.formatNumber=e=>e,this.getHours=e=>e.get("hours"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.setHours=(e,t)=>e.clone().hours(t),this.getMinutes=e=>e.get("minutes"),this.setMinutes=(e,t)=>e.clone().minutes(t),this.getSeconds=e=>e.get("seconds"),this.setSeconds=(e,t)=>e.clone().seconds(t),this.getMonth=e=>e.get("month"),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.setMonth=(e,t)=>e.clone().month(t),this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?this.moment.localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.startOfYear=e=>e.clone().startOf("year"),this.endOfYear=e=>e.clone().endOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.endOfMonth=e=>e.clone().endOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.endOfWeek=e=>e.clone().endOf("week"),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[e.clone().startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.get("year"),this.setYear=(e,t)=>e.clone().set("year",t),this.getDate=e=>e.get("date"),this.setDate=(e,t)=>e.clone().set("date",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>this.moment.weekdaysShort(!0),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.getWeekArray=e=>{const t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week");let r=0,o=t;const i=[];for(;o.isBefore(n);){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=o.clone().add(1,"day"),r+=1}return i},this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[];let i=n;for(;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.moment=n||Go(),this.locale=e,this.formats=Object.assign({},RS,t)}}function MS(){return(MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function DS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IS=function(t,n,r){try{var o=vd(n);t.appendChild(e.createElement("div",{key:n.getHash()},o))}catch(e){console.warn("Could not present date, expected ISO8601 format in the form 2001-01-01 \n (potentially with time given after a 'T' character as well) but found '".concat(n.getValue(),"' instead."))}},NS=fi.presenterRegistry;NS.itemtype("text").datatype("xsd:dateTime").register(IS),NS.itemtype("text").datatype("xsd:date").register(IS),NS.itemtype("text").datatype("xsd:time").register(IS),NS.itemtype("text").datatype("xsd:gYear").register(IS),NS.itemtype("text").datatype("xsd:gYearMonth").register(IS),NS.itemtype("text").datatype("xsd:gMonthDay").register(IS),NS.itemtype("text").datatype("dcterms:W3CDTF").register(IS);var LS={format:{Year:"YYYY",DateTime:"YYYY-MM-DD",Date:"YYYY-MM-DD",YearMonth:"YYYY-MM",MonthDay:"MM-DD",Time:"YYYY-MM-DD"},mask:{Year:"____",DateTime:"____-__-__",Date:"____-__-__",YearMonth:"____-__",MonthDay:"__-__",Time:"____-__-__"},views:{Year:["year"],DateTime:["day"],Date:["day"],YearMonth:["year","month"],MonthDay:["month","day"],Time:["day"]},labelKey:{Year:"date_year",DateTime:"date_date",Date:"date_date",YearMonth:"date_year_and_month",MonthDay:"date_month_and_day",Time:"date_date"},ariaLabelKey:{Year:"date_openYearPicker",DateTime:"date_openDatePicker",Date:"date_openDatePicker",YearMonth:"date_openDatePicker",MonthDay:"date_openDatePicker",Time:"date_openDatePicker"}},ZS=function(t,n,r){var o=r.view.messages,i=function(){var i=n.getGist(),a=(0,e.useMemo)((function(){return yd(n.getItem())}),[]),s=DS((0,e.useState)(""===i?null:pd(i)),2),l=s[0],u=s[1],c=DS((0,e.useState)(function(e,t){var n=hd(e.getDatatype());return t[n]||(t[n]="error"),n||md(e.getItem())}(n,a)),2),d=c[0],f=c[1],p=1===Object.keys(a).length,h=DS((0,e.useState)(n.getMatchingCode()===Os.WRONG_DATATYPE),2),m=h[0],g=h[1];(0,e.useEffect)((function(){t.toggleClass("mismatchReport",m)}),[m]),(0,e.useEffect)((function(){r.clear=function(){u(null),f(md(n.getItem())),g(!1)}}),[]);var y=function(e){null==e?(n.setValue(""),u(null)):e.isValid()&&(n.setValue(gd(e.toDate(),d)),u(e.toDate()))},v={"aria-labelledby":r.view.getLabelIndex(n),variant:fi.materialVariant},b=tm(n,r),w=a.Date||a.DateTime||a.Year||a.YearMonth||a.MonthDay,x=!b&&("DateTime"===d||"Date"===d||"Year"===d||"YearMonth"===d||"MonthDay"===d);return e.createElement(e.Fragment,null,e.createElement(ev,{dateAdapter:AS},e.createElement("span",{className:"rdformsDatePicker"},w&&e.createElement(nS,MS({renderInput:function(t){return e.createElement(Dh,MS({},t,v))},leftArrowButtonProps:{"aria-label":o.date_previousMonth},rightArrowButtonProps:{"aria-label":o.date_nextMonth},KeyboardButtonProps:{"aria-label":o[LS.ariaLabelKey[d]]},label:o[LS.labelKey[d]]},x?{}:{disabled:!0},{value:x?l:null,minDate:Go()(new Date("0000-01-01")),inputFormat:LS.format[d],views:LS.views[d],onChange:y,autoOk:!0,mask:LS.mask[d]})),(a.DateTime||a.Time)&&e.createElement(OS,MS({renderInput:function(t){return e.createElement(Dh,MS({},t,v))},label:o.date_time},b||"DateTime"!==d&&"Time"!==d?{disabled:!0}:{},{KeyboardButtonProps:{"aria-label":o.date_openTimePicker},value:"DateTime"===d||"Time"===d?l:null,onChange:y,ampm:!1,autoOk:!0})),!p&&e.createElement(Lf,{variant:fi.materialVariant},e.createElement(Th,{value:d,inputProps:v,error:"error"===a[d],onChange:function(e){n.setDatatype(function(e){switch(e){case"DateTime":return"http://www.w3.org/2001/XMLSchema#dateTime";case"Date":return"http://www.w3.org/2001/XMLSchema#date";case"Time":return"http://www.w3.org/2001/XMLSchema#time";case"Year":return"http://www.w3.org/2001/XMLSchema#gYear";case"YearMonth":return"http://www.w3.org/2001/XMLSchema#gYearMonth";case"MonthDay":return"http://www.w3.org/2001/XMLSchema#gMonthDay";default:return""}}(e.target.value)),n.setValue(gd(l,e.target.value)),f(e.target.value),g("error"===a[e.target.value])},disabled:!!b},a.Year&&e.createElement(Yh,{disabled:"error"===a.Year,className:"rdformsDatatypeOption",value:"Year"},o.date_year),a.Date&&e.createElement(Yh,{disabled:"error"===a.Date,className:"rdformsDatatypeOption",value:"Date"},o.date_date),a.DateTime&&e.createElement(Yh,{disabled:"error"===a.DateTime,className:"rdformsDatatypeOption",value:"DateTime"},o.date_date_and_time),a.YearMonth&&e.createElement(Yh,{disabled:"error"===a.YearMonth,className:"rdformsDatatypeOption",value:"YearMonth"},o.date_year_and_month),a.MonthDay&&e.createElement(Yh,{disabled:"error"===a.MonthDay,className:"rdformsDatatypeOption",value:"MonthDay"},o.date_month_and_day),a.Time&&e.createElement(Yh,{disabled:"error"===a.Time,className:"rdformsDatatypeOption",value:"Time"},o.date_time))))),m&&e.createElement("div",{key:"warning",className:"rdformsWarning"},r.view.messages.wrongDatatypeField))};t.appendChild(e.createElement(i,{key:n.getHash()}))},FS=fi.editorRegistry;FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gMonthDay").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYearMonth").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#time").register(ZS),FS.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(ZS);o(9474);function BS(e){return(BS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function VS(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 zS(e,t,n){var r;return r=function(e,t){if("object"!=BS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==BS(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return US(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return US(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function US(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $S=["years","months","days","hours","minutes"];fi.editorRegistry.itemtype("text").datatype("xsd:duration").register((function(t,n,r){var o=r.view.messages,i=function(){var t=WS((0,e.useState)((function(){var e=n.getValue();return""===e?{}:fd(e)})),2),i=t[0],a=t[1];(0,e.useEffect)((function(){r.clear=function(){a({})}}),[]);var s=(0,e.useMemo)((function(){return $S.reduce((function(e,t){return e[t]=function(e){var r=e.target.value||"";a((function(e){var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VS(Object(n),!0).forEach((function(t){zS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return""!==r?o[t]=Math.abs(parseInt(r,10)):delete o[t],setTimeout((function(){n.setValue(function(e){if(e.years||e.months||e.days||e.hours||e.minutes){var t="P".concat(e.years?"".concat(e.years,"Y"):"").concat(e.months?"".concat(e.months,"M"):"").concat(e.days?"".concat(e.days,"D"):"");return(e.hours||e.minutes)&&(t="".concat(t,"T").concat(e.hours?"".concat(e.hours,"H"):"").concat(e.minutes?"".concat(e.minutes,"M"):"")),t}return null}(o))}),1),o}))},e}),{})})),l=r.view.getLabelIndex(n),u=tm(n,r);return e.createElement(e.Fragment,null,$S.map((function(t){return e.createElement(Dh,{key:t,className:"rdformsDurationInput",value:"".concat(i[t]||""),disabled:!!u,label:o["duration_".concat(t)],type:"number",onChange:s[t],inputProps:{min:0,"aria-label":o["duration_".concat(t)],"aria-describedby":l},variant:fi.materialVariant})})))};t.appendChild(e.createElement(i,{key:n.getHash()}))}));var HS=fi.presenterRegistry,YS=fi.editorRegistry,GS=function(e){return function t(n,r,o){var i=r.getValue();o.inEditor&&(null!=i&&""!==i||r.setGist(Xo.generateUUID(),!0)),e.getComponentBefore(r.getItem(),t)(n,r,o)}};HS.itemtype("text").style("autoUUID").register(GS(HS)),YS.itemtype("text").style("autoUUID").register(GS(YS));var qS=function(e){return function t(n,r,o){var i=r.getValue(),a=r.getItem();o.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&r.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&r.setValue((new Date).toISOString(),!0)),e.getComponentBefore(r.getItem(),t)(n,r,o)}},KS=qS(HS);HS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(KS),HS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(KS),HS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(KS),HS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(KS);var XS=qS(YS);YS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(XS);var QS=function(e){return function t(n,r,o){if(o.inEditor){var i=r.getValue(),a=r.getItem().getDeps();if((null==i||""===i)&&a){var s=Hu.findBindingRelativeToParentBinding(r.getParent(),a),l=function(e){var t=Hu.matchPathBelowBinding(s,a),n=r.getGist(),o=t?t.getValue():"";n!=o&&r.setGist(o,e)};l(!0),s.addListener((function(e){e!=r&&l()}))}}e.getComponentBefore(r.getItem(),t)(n,r,o)}};function JS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return e_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e_(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}HS.itemtype("text").style("autoValue").register(QS(HS)),YS.itemtype("text").style("autoValue").register(QS(YS));var t_=function(t){var n=t.element,r=(0,e.useRef)();return(0,e.useEffect)((function(){r.current.appendChild(n)}),[n]),e.createElement("div",{ref:r})},n_=function(e,t,n){var r=!1;return t.split(" ").forEach((function(t){n?e.has(t)||(e.add(t),r=!0):e.has(t)&&(e.delete(t),r=!0)})),r},r_=function(e,t){return t.has(e.substr(1))},o_=function(e,t){return t.find((function(t){return t.component&&void 0!==t.domQuery(e)}))},i_=function(e,t,n){return n?e[t]=n:delete e[t],e},a_=0,s_=function(t,n,r){var o,i=new Set,a=[],s={},l={id:"struct_".concat(a_+=1),parent:n,toggleClass:function(e,t){return n_(i,e,t)},domQuery:function(e){return r_(e,i)?l:o_(e,a)},appendChild:function(e){a.push(e)},appendAfter:function(e,t){a.splice(a.indexOf(t)+1,0,e)},text:function(e){o=e},attr:function(e,t){return i_(s,e,t)},destroy:function(){return!(l.parent instanceof Node)&&l.parent.removeChild(l)},clear:function(){a=[]},component:function(){var n=JS((0,e.useState)(i),2),u=n[0],c=n[1],d=JS((0,e.useState)(a),2),f=d[0],p=d[1],h=JS((0,e.useState)(o),2),m=h[0],g=h[1],y=JS((0,e.useState)(s),2),v=(y[0],y[1]);return l.domQuery=function(e){return r_(e,u)?l:o_(e,f)},l.toggleClass=function(e,t){c((function(n){var r=new Set(n);return n_(r,e,t)?r:n}))},l.appendChild=function(e){p((function(t){return t.concat([e])}))},l.appendAfter=function(e,t){p((function(n){var r=n.slice(0);return r.splice(t&&r.indexOf(t)+1||0,0,e),r}))},l.text=function(e){return g(e)},l.removeChild=function(e){p((function(t){var n=t.slice(0);return n.splice(n.indexOf(e),1),n}))},l.clear=function(){p([])},l.attr=function(e,t){v((function(n){return i_(Object.assign({},n),e,t)}))},e.createElement(t,{id:r,className:Array.from(u).join(" ")},f.map((function(t,n){return function(t,n){return t instanceof Node?e.createElement(t_,{key:n,element:t}):t.component?e.createElement(t.component,{key:t.id}):t}(t,n)})),m)}};return l};fi.domQuery=function(e,t){return t.domQuery(e)},fi.domCreate=function(e,t,n){var r=s_(e,t,n);return t.appendChild(r),r},fi.domCreateAfter=function(e,t,n){if(t.parent){var r=s_(e,t.parent,n);return t.parent.appendAfter(r,t),r}},fi.domSetAttr=function(e,t,n){return e.attr(t,n)},fi.domText=function(e,t){return e.text(t)},fi.domClassToggle=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.toggleClass(t,n)},fi.createDomNode=function(e){var t;return null!=e&&e.component?e:(t=e instanceof Node?e:"string"==typeof e?document.getElementById(e):s_("div"),s_("div",t))},fi.destroyDomNode=function(e){e.component&&e.destroy()},fi.prePresenterViewRenderer=function(){},fi.materialVariant="filled",fi.preEditorRenderer=function(t,n,r){if("group"!==n.getItem().getType()&&!0!==r.noCardinalityButtons){r.controlDiv=s_("div",t),fi.domClassToggle(r.controlDiv,"rdformsFieldControl");var o=fi.addRemoveButton(t,n,r);r.controlDiv.appendChild(e.createElement(o,{key:"".concat(n.getHash(),"_removeButton")}))}},fi.postEditorRenderer=function(e,t,n){n.controlDiv&&e.appendChild(n.controlDiv)};var l_={error:r.Z,warning:n.Z,deprecated:a.Z},u_=0;fi.renderValidationMessage=function(t,n,r){var o=l_[n];u_+=1,t.appendChild(e.createElement("div",{className:"rdformsValidationMessageWrapper",key:"rdforms_valcount_".concat(u_)},e.createElement(o,null),e.createElement("span",{className:"rdformsValidationMessage"},r)))},fi.multiValueSupport=!0,fi.addTruncateControl=function(t,n){var r=function(){var r=JS((0,e.useState)(!0),2),o=r[0],i=r[1],a=n.view.messages;return e.createElement(e.Fragment,null,o?e.createElement(pe,{className:"rdformsShowMore",size:"small",onClick:function(){fi.domClassToggle(t,"rdformsTruncated",!1),i(!1)}},a.showMore):e.createElement(pe,{className:"rdformsShowLess",size:"small",onClick:function(){fi.domClassToggle(t,"rdformsTruncated",!0),i(!0)}},a.showLess))};t.appendChild(e.createElement(r,null))};var c_=o(3379),d_=o.n(c_),f_=o(7795),p_=o.n(f_),h_=o(569),m_=o.n(h_),g_=o(3565),y_=o.n(g_),v_=o(9216),b_=o.n(v_),w_=o(4589),x_=o.n(w_),S_=o(7135),__={};__.styleTagTransform=x_(),__.setAttributes=y_(),__.insert=m_().bind(null,"head"),__.domAPI=p_(),__.insertStyleElement=b_();d_()(S_.Z,__);S_.Z&&S_.Z.locals&&S_.Z.locals;var k_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==o.g&&o.g||{},E_="URLSearchParams"in k_,C_="Symbol"in k_&&"iterator"in Symbol,P_="FileReader"in k_&&"Blob"in k_&&function(){try{return new Blob,!0}catch(e){return!1}}(),T_="FormData"in k_,O_="ArrayBuffer"in k_;if(O_)var R_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A_=ArrayBuffer.isView||function(e){return e&&R_.indexOf(Object.prototype.toString.call(e))>-1};function M_(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function D_(e){return"string"!=typeof e&&(e=String(e)),e}function j_(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return C_&&(t[Symbol.iterator]=function(){return t}),t}function I_(e){this.map={},e instanceof I_?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function N_(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function L_(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Z_(e){var t=new FileReader,n=L_(t);return t.readAsArrayBuffer(e),n}function F_(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function B_(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:P_&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:T_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:E_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():O_&&P_&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=F_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):O_&&(ArrayBuffer.prototype.isPrototypeOf(e)||A_(e))?this._bodyArrayBuffer=F_(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):E_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P_&&(this.blob=function(){var e=N_(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=N_(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(P_)return this.blob().then(Z_);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=N_(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=L_(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},T_&&(this.formData=function(){return this.text().then(W_)}),this.json=function(){return this.text().then(JSON.parse)},this}I_.prototype.append=function(e,t){e=M_(e),t=D_(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},I_.prototype.delete=function(e){delete this.map[M_(e)]},I_.prototype.get=function(e){return e=M_(e),this.has(e)?this.map[e]:null},I_.prototype.has=function(e){return this.map.hasOwnProperty(M_(e))},I_.prototype.set=function(e,t){this.map[M_(e)]=D_(t)},I_.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},I_.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),j_(e)},I_.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),j_(e)},I_.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),j_(e)},C_&&(I_.prototype[Symbol.iterator]=I_.prototype.entries);var V_=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function z_(e,t){if(!(this instanceof z_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof z_){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new I_(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new I_(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),V_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in k_)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function W_(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function U_(e,t){if(!(this instanceof U_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new I_(t.headers),this.url=t.url||"",this._initBody(e)}z_.prototype.clone=function(){return new z_(this,{body:this._bodyInit})},B_.call(z_.prototype),B_.call(U_.prototype),U_.prototype.clone=function(){return new U_(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I_(this.headers),url:this.url})},U_.error=function(){var e=new U_(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var $_=[301,302,303,307,308];U_.redirect=function(e,t){if(-1===$_.indexOf(t))throw new RangeError("Invalid status code");return new U_(null,{status:t,headers:{location:e}})};var H_=k_.DOMException;try{new H_}catch(e){(H_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),H_.prototype.constructor=H_}function Y_(e,t){return new Promise((function(n,r){var o=new z_(e,t);if(o.signal&&o.signal.aborted)return r(new H_("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,r={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new I_,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?r.status=200:r.status=i.status,r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){n(new U_(a,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){r(new H_("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&k_.location.href?k_.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(P_?i.responseType="blob":O_&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof I_||k_.Headers&&t.headers instanceof k_.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(M_(e)),i.setRequestHeader(e,D_(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Y_.polyfill=!0,k_.fetch||(k_.fetch=Y_,k_.Headers=I_,k_.Request=z_,k_.Response=U_);const G_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const q_=function(e){return this.__data__.has(e)};function K_(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}K_.prototype.add=K_.prototype.push=G_,K_.prototype.has=q_;const X_=K_;const Q_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const J_=function(e,t){return e.has(t)};const ek=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new X_:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Q_(t,(function(e,t){if(!J_(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const tk=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const nk=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var rk=nn?nn.prototype:void 0,ok=rk?rk.valueOf:void 0;const ik=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Eo(e),new Eo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Bt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=tk;case"[object Set]":var l=1&r;if(s||(s=nk),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ek(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ok)return ok.call(e)==ok.call(t)}return!1};var ak=Object.prototype.hasOwnProperty;const sk=function(e,t,n,r,o,i){var a=1&n,s=uo(e),l=s.length;if(l!=uo(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:ak.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var y=a?r(g,m,c,t,e,i):r(m,g,c,e,t,i);if(!(void 0===y?m===g||o(m,g,n,r,i):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p};var lk=Object.prototype.hasOwnProperty;const uk=function(e,t,n,r,o,i){var a=fr(e),s=fr(t),l=a?"[object Array]":So(e),u=s?"[object Array]":So(t),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f=l==u;if(f&&yr(e)){if(!yr(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Qn),a||Or(e)?ek(e,t,n,r,o,i):ik(e,t,l,n,r,o,i);if(!(1&n)){var p=c&&lk.call(e,"__wrapped__"),h=d&&lk.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return i||(i=new Qn),o(m,g,n,r,i)}}return!!f&&(i||(i=new Qn),sk(e,t,n,r,o,i))};const ck=function e(t,n,r,o,i){return t===n||(null==t||null==n||!ar(t)&&!ar(n)?t!=t&&n!=n:uk(t,n,r,o,e,i))};const dk=function(e,t){return ck(e,t)};function fk(e){return(fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pk(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,hk(r.key),r)}}function hk(e){var t=function(e,t){if("object"!=fk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fk(t)?t:String(t)}var mk=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._registry={}}var t,n,r;return t=e,(n=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var n=this._findChoices(e);if(null==n);else{if(null==t)return n;t(n)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];if(dk(r.constraints,e.getConstraints())&&e.getParentProperty()===r.parentProperty&&e.getHierarchyProperty()===r.hierarchyProperty&&e.isParentPropertyInverted()===(r.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(r.isHierarchyPropertyInverted||!1))return r.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var n=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(n+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var r=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(r+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&pk(t.prototype,n),r&&pk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gk(e){return(gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yk(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,vk(r.key),r)}}function vk(e){var t=function(e,t){if("object"!=gk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gk(t)?t:String(t)}var bk=0,wk=function(){function e(t){var n=t.itemStore,r=t.source,o=t.path,i=t.readOnly,a=void 0!==i&&i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=n,this._source=r,this._path=o,this._readOnly=a,this._items=[],bk+=1,this._id="_bundle_".concat(bk),this._root=null,this._modified=!1}var t,n,r;return t=e,(n=[{key:"getInternalId",value:function(){return this._id}},{key:"getSource",value:function(){return this._source}},{key:"setRoot",value:function(e){return this._source.root=e,e}},{key:"getRoot",value:function(){if(this._source.root)return this._itemStore.getItem(this._source.root)}},{key:"getItemStore",value:function(){return this._itemStore}},{key:"getPath",value:function(){return this._path}},{key:"getItems",value:function(){return this._items}},{key:"addItem",value:function(e){this._items.push(e)}},{key:"removeItem",value:function(e){this._items.splice(this._items.indexOf(e),1)}},{key:"isModified",value:function(){return this._modified}},{key:"setModified",value:function(e){this._modified=e}},{key:"isReadOnly",value:function(){return this._readOnly||null==this._path}}])&&yk(t.prototype,n),r&&yk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xk(e){return(xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sk(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,_k(r.key),r)}}function _k(e){var t=function(e,t){if("object"!=xk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xk(t)?t:String(t)}var kk=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.automaticSortAllowed=!0,this.handleErrorAs="throw",this._bundles=[],this._registry={},this._registryByProperty={},this._ontologyStore=t||new mk}var t,n,r;return t=e,(n=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var n=e.getSource(!0),r=n.content||n.items||[];if(t)return this._createItems(r,e._forceChildrenClones,e.getBundle());var o=this.getItem(n.extends);return o?o.getChildren().concat(e.getChildren(!0)):e.getChildren(!0)}},{key:"getItem",value:function(e){if(null!=e)return this._registry[e]}},{key:"getItems",value:function(){var e=this;return Object.keys(this._registry).map((function(t){return e._registry[t]}))}},{key:"renameItem",value:function(e,t){if(this._registry[t])this._handleError("Cannot rename to ".concat(t," since an item with that id already exists."));else if(""!==t&&null!==t){var n=this._registry[e];n&&(delete this._registry[e],this._registry[t]=n,n.setId(t));for(var r=function n(r){var o=r.content;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&n(a)}},o=this.getItems(),i=0;i<o.length;i++){var a=o[i];a instanceof il&&r(a._source)}}else this._handleError("Cannot give an item an empty string or null as id.")}},{key:"getItemIds",value:function(){return Object.keys(this._registry)}},{key:"getItemByProperty",value:function(e){return this._registryByProperty[e]}},{key:"detectTemplate",value:function(e,t,n){return Fu(e,t,this,n)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new wk(e);this._bundles.push(t),e.source&&e.source.namespaces&&Se(e.source.namespaces);var n=e.source.templates||e.source.auxilliary;return n instanceof Array&&this._createItems(n,!1,t),"object"===xk(e.source.cachedChoices)&&this._ontologyStore.importRegistry(e.source.cachedChoices),t}},{key:"getBundles",value:function(){return this._bundles}},{key:"createTemplate",value:function(e){return this.registerBundle({source:e}).getRoot()}},{key:"createTemplateFromChildren",value:function(e){var t=this,n=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new il({source:{},children:n,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var n=Object.assign(Object.assign({},e),t);return n._extendedSource=t,n.extends=null,delete n.children,n}},{key:"createItem",value:function(e,t,n,r){var o,i=e.id||e["@id"],a=e.type||e["@type"];if(e.extends){var s=this._registry[e.extends];if(null==s&&this._handleError("Cannot find item to extend with id: ".concat(e.extends)),s){var l=this.createExtendedSource(s.getSource(),e);return this.createItem(l,!1,!1,r)}}if(null!=a){switch(a){case"text":o=new _l({source:e,itemStore:this,bundle:r});break;case"choice":o=new Dl({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:r});break;case"group":o=new il({source:e,children:null,itemStore:this,bundle:r});break;case"propertygroup":o=new ml({source:e,children:null,itemStore:this,bundle:r})}return!0!==n&&(null!=e.property&&(this._registryByProperty[e.property]=o,this.priorities&&null!=this.priorities[e.property]&&(o.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=o,null!=r&&r.addItem(o))),o}if(null!=i){if(null!=this._registry[i]){if(!0===t||Object.keys(e).find((function(e){return"id"!==e&&"@id"!==e}))){var u=Object.assign(Object.assign({},this._registry[i]._source),e);return this.createItem(u,!1,!0)}return this._registry[i]}this._handleError("Cannot find referenced subitem using identifier: ".concat(i))}else this._handleError("Cannot create subitem, `type` for creating new or `id` for referencing external are required.")}},{key:"removeItem",value:function(e,t){var n=e.getBundle();null!=n&&n.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var r=e.getProperty();null!=r&&this._registryByProperty[r]===e&&delete this._registryByProperty[r]}},{key:"_createItems",value:function(e,t,n){var r=this;return e.map((function(o,i){var a="string"==typeof o?e[i]={id:o}:o;return r.createItem(a,t,!1,n)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Sk(t.prototype,n),r&&Sk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ek(e){return(Ek="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ck(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ck=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=v.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Ek(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ek(t)+" is not iterable")}return y.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(k.prototype),u(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!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 l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){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),T(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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Pk(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Tk(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pk(i,r,o,a,s,"next",e)}function s(e){Pk(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ok=function(e,t,n){var r="Fetching template bundle ".concat(n," failed.");if(e===t-1)throw Error("".concat(r," Cannot recover from this, please fix."));console.log("".concat(r," Will try to fetch from a fallback option."))},Rk=function(){var e=Tk(Ck().mark((function e(t){var n,r,o,i,a;return Ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length,i=0;case 2:if(!(i<n)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:r=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(3),Error("A network error ocurred while trying to fetch bundle ".concat(t[i]));case 12:if(!r||!r.ok){e.next=30;break}if(e.prev=13,!(a=r.headers.has("content-type")&&r.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,r.json();case 18:return o=e.sent,e.abrupt("break",34);case 22:throw new Error("Failed fetching template ".concat(t[i],". Expected a JSON file and got ").concat(a));case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(13),Ok(i,n,t[i]);case 28:e.next=31;break;case 30:Ok(i,n,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",o);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),Ak=function(e){return e.map((function(e){return e instanceof Array?Rk(e):Promise.resolve(e)}))},Mk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const Dk=function(){var e=Tk(Ck().mark((function e(t){var n,r,o,i,a,s=arguments;return Ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],r=s.length>2&&void 0!==s[2]?s[2]:function(){},0===n.length&&r&&r([]),o=Ak(n),e.next=6,Promise.all(o);case 6:return i=e.sent,a=Mk(t,i),r(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),i})());
|